Pass llvm/test/Regression/CodeGen/Generic/debug-info.ll.
[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.7cvs.
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.7cvs'
429 PACKAGE_STRING='llvm 1.7cvs'
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 ENABLE_OPTIMIZED DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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.7cvs 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.7cvs:";;
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-debug-runtime
1039   --enable-jit            Enable Just In Time Compiling (default is YES)
1040   --enable-doxygen        Build doxygen documentation (default is NO)
1041   --enable-threads        Use threads if available (default is YES)
1042   --enable-target         Build specific host targets:
1043                           all,host-only,{target-name} (default=all)
1044   --enable-ltdl-install   install libltdl
1045   --enable-shared[=PKGS]
1046                           build shared libraries [default=yes]
1047   --enable-static[=PKGS]
1048                           build static libraries [default=yes]
1049   --enable-fast-install[=PKGS]
1050                           optimize for fast installation [default=yes]
1051   --disable-libtool-lock  avoid locking (might break parallel builds)
1052
1053 Optional Packages:
1054   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1055   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1056   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1057                           searches PATH)
1058   --with-tclinclude       directory where tcl headers are
1059   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060   --with-pic              try to use only PIC/non-PIC objects [default=use
1061                           both]
1062   --with-tags[=TAGS]
1063                           include additional configurations [automatic]
1064
1065 Some influential environment variables:
1066   CC          C compiler command
1067   CFLAGS      C compiler flags
1068   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1069               nonstandard directory <lib dir>
1070   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071               headers in a nonstandard directory <include dir>
1072   CPP         C preprocessor
1073   CXX         C++ compiler command
1074   CXXFLAGS    C++ compiler flags
1075   CXXCPP      C++ preprocessor
1076   F77         Fortran 77 compiler command
1077   FFLAGS      Fortran 77 compiler flags
1078
1079 Use these variables to override the choices made by `configure' or to help
1080 it to find libraries and programs with nonstandard names/locations.
1081
1082 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 _ACEOF
1084 fi
1085
1086 if test "$ac_init_help" = "recursive"; then
1087   # If there are subdirs, report their specific --help.
1088   ac_popdir=`pwd`
1089   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090     test -d $ac_dir || continue
1091     ac_builddir=.
1092
1093 if test "$ac_dir" != .; then
1094   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095   # A "../" for each directory in $ac_dir_suffix.
1096   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098   ac_dir_suffix= ac_top_builddir=
1099 fi
1100
1101 case $srcdir in
1102   .)  # No --srcdir option.  We are building in place.
1103     ac_srcdir=.
1104     if test -z "$ac_top_builddir"; then
1105        ac_top_srcdir=.
1106     else
1107        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108     fi ;;
1109   [\\/]* | ?:[\\/]* )  # Absolute path.
1110     ac_srcdir=$srcdir$ac_dir_suffix;
1111     ac_top_srcdir=$srcdir ;;
1112   *) # Relative path.
1113     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1116
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122   case "$ac_dir" in
1123   .) ac_abs_builddir=`pwd`;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131   case ${ac_top_builddir}. in
1132   .) ac_abs_top_builddir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140   case $ac_srcdir in
1141   .) ac_abs_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149   case $ac_top_srcdir in
1150   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153   esac;;
1154 esac
1155
1156     cd $ac_dir
1157     # Check for guested configure; otherwise get Cygnus style configure.
1158     if test -f $ac_srcdir/configure.gnu; then
1159       echo
1160       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161     elif test -f $ac_srcdir/configure; then
1162       echo
1163       $SHELL $ac_srcdir/configure  --help=recursive
1164     elif test -f $ac_srcdir/configure.ac ||
1165            test -f $ac_srcdir/configure.in; then
1166       echo
1167       $ac_configure --help
1168     else
1169       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170     fi
1171     cd $ac_popdir
1172   done
1173 fi
1174
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177   cat <<\_ACEOF
1178 llvm configure 1.7cvs
1179 generated by GNU Autoconf 2.59
1180
1181 Copyright (C) 2003 Free Software Foundation, Inc.
1182 This configure script is free software; the Free Software Foundation
1183 gives unlimited permission to copy, distribute and modify it.
1184
1185 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1186 _ACEOF
1187   exit 0
1188 fi
1189 exec 5>config.log
1190 cat >&5 <<_ACEOF
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1193
1194 It was created by llvm $as_me 1.7cvs, which was
1195 generated by GNU Autoconf 2.59.  Invocation command line was
1196
1197   $ $0 $@
1198
1199 _ACEOF
1200 {
1201 cat <<_ASUNAME
1202 ## --------- ##
1203 ## Platform. ##
1204 ## --------- ##
1205
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1214
1215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1222
1223 _ASUNAME
1224
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 for as_dir in $PATH
1227 do
1228   IFS=$as_save_IFS
1229   test -z "$as_dir" && as_dir=.
1230   echo "PATH: $as_dir"
1231 done
1232
1233 } >&5
1234
1235 cat >&5 <<_ACEOF
1236
1237
1238 ## ----------- ##
1239 ## Core tests. ##
1240 ## ----------- ##
1241
1242 _ACEOF
1243
1244
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_configure_args=
1251 ac_configure_args0=
1252 ac_configure_args1=
1253 ac_sep=
1254 ac_must_keep_next=false
1255 for ac_pass in 1 2
1256 do
1257   for ac_arg
1258   do
1259     case $ac_arg in
1260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262     | -silent | --silent | --silen | --sile | --sil)
1263       continue ;;
1264     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266     esac
1267     case $ac_pass in
1268     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269     2)
1270       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271       if test $ac_must_keep_next = true; then
1272         ac_must_keep_next=false # Got value, back to normal.
1273       else
1274         case $ac_arg in
1275           *=* | --config-cache | -C | -disable-* | --disable-* \
1276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278           | -with-* | --with-* | -without-* | --without-* | --x)
1279             case "$ac_configure_args0 " in
1280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281             esac
1282             ;;
1283           -* ) ac_must_keep_next=true ;;
1284         esac
1285       fi
1286       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287       # Get rid of the leading space.
1288       ac_sep=" "
1289       ;;
1290     esac
1291   done
1292 done
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log.  We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302   # Save into config.log some information that might help in debugging.
1303   {
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1310 _ASBOX
1311     echo
1312     # The following way of writing the cache mishandles newlines in values,
1313 {
1314   (set) 2>&1 |
1315     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316     *ac_space=\ *)
1317       sed -n \
1318         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320       ;;
1321     *)
1322       sed -n \
1323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324       ;;
1325     esac;
1326 }
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1333 _ASBOX
1334     echo
1335     for ac_var in $ac_subst_vars
1336     do
1337       eval ac_val=$`echo $ac_var`
1338       echo "$ac_var='"'"'$ac_val'"'"'"
1339     done | sort
1340     echo
1341
1342     if test -n "$ac_subst_files"; then
1343       cat <<\_ASBOX
1344 ## ------------- ##
1345 ## Output files. ##
1346 ## ------------- ##
1347 _ASBOX
1348       echo
1349       for ac_var in $ac_subst_files
1350       do
1351         eval ac_val=$`echo $ac_var`
1352         echo "$ac_var='"'"'$ac_val'"'"'"
1353       done | sort
1354       echo
1355     fi
1356
1357     if test -s confdefs.h; then
1358       cat <<\_ASBOX
1359 ## ----------- ##
1360 ## confdefs.h. ##
1361 ## ----------- ##
1362 _ASBOX
1363       echo
1364       sed "/^$/d" confdefs.h | sort
1365       echo
1366     fi
1367     test "$ac_signal" != 0 &&
1368       echo "$as_me: caught signal $ac_signal"
1369     echo "$as_me: exit $exit_status"
1370   } >&5
1371   rm -f core *.core &&
1372   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373     exit $exit_status
1374      ' 0
1375 for ac_signal in 1 2 13 15; do
1376   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 done
1378 ac_signal=0
1379
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383 echo >confdefs.h
1384
1385 # Predefined preprocessor variables.
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 _ACEOF
1410
1411
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415   if test "x$prefix" != xNONE; then
1416     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417   else
1418     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419   fi
1420 fi
1421 for ac_site_file in $CONFIG_SITE; do
1422   if test -r "$ac_site_file"; then
1423     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425     sed 's/^/| /' "$ac_site_file" >&5
1426     . "$ac_site_file"
1427   fi
1428 done
1429
1430 if test -r "$cache_file"; then
1431   # Some versions of bash will fail to source /dev/null (special
1432   # files actually), so we avoid doing that.
1433   if test -f "$cache_file"; then
1434     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1436     case $cache_file in
1437       [\\/]* | ?:[\\/]* ) . $cache_file;;
1438       *)                      . ./$cache_file;;
1439     esac
1440   fi
1441 else
1442   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1444   >$cache_file
1445 fi
1446
1447 # Check that the precious variables saved in the cache have kept the same
1448 # value.
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453   eval ac_new_set=\$ac_env_${ac_var}_set
1454   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455   eval ac_new_val="\$ac_env_${ac_var}_value"
1456   case $ac_old_set,$ac_new_set in
1457     set,)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,set)
1462       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464       ac_cache_corrupted=: ;;
1465     ,);;
1466     *)
1467       if test "x$ac_old_val" != "x$ac_new_val"; then
1468         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1471 echo "$as_me:   former value:  $ac_old_val" >&2;}
1472         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1473 echo "$as_me:   current value: $ac_new_val" >&2;}
1474         ac_cache_corrupted=:
1475       fi;;
1476   esac
1477   # Pass precious variables to config.status.
1478   if test "$ac_new_set" = set; then
1479     case $ac_new_val in
1480     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482     *) ac_arg=$ac_var=$ac_new_val ;;
1483     esac
1484     case " $ac_configure_args " in
1485       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1486       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487     esac
1488   fi
1489 done
1490 if $ac_cache_corrupted; then
1491   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495    { (exit 1); exit 1; }; }
1496 fi
1497
1498 ac_ext=c
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1532
1533
1534
1535
1536
1537
1538
1539 ac_aux_dir=
1540 for ac_dir in autoconf $srcdir/autoconf; do
1541   if test -f $ac_dir/install-sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install-sh -c"
1544     break
1545   elif test -f $ac_dir/install.sh; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/install.sh -c"
1548     break
1549   elif test -f $ac_dir/shtool; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/shtool install -c"
1552     break
1553   fi
1554 done
1555 if test -z "$ac_aux_dir"; then
1556   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558    { (exit 1); exit 1; }; }
1559 fi
1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564
1565 if test ${srcdir} != "." ; then
1566   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1568 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569    { (exit 1); exit 1; }; }
1570   fi
1571 fi
1572
1573 for i in `ls ${srcdir}/projects`
1574 do
1575   if test -d ${srcdir}/projects/${i} ; then
1576     case ${i} in
1577       "CVS") ;;
1578       "sample")
1579
1580 subdirs="$subdirs projects/sample"
1581     ;;
1582       "Stacker")
1583
1584 subdirs="$subdirs projects/Stacker"
1585    ;;
1586       "llvm-test")
1587
1588 subdirs="$subdirs projects/llvm-test"
1589  ;;
1590       "llvm-reopt")
1591
1592 subdirs="$subdirs projects/llvm-reopt"
1593 ;;
1594       "llvm-gcc")
1595
1596 subdirs="$subdirs projects/llvm-gcc"
1597   ;;
1598       "llvm-java")
1599
1600 subdirs="$subdirs projects/llvm-java"
1601  ;;
1602       "llvm-tv")
1603
1604 subdirs="$subdirs projects/llvm-tv"
1605    ;;
1606       "llvm-poolalloc")
1607
1608 subdirs="$subdirs projects/llvm-poolalloc"
1609  ;;
1610       "llvm-kernel")
1611
1612 subdirs="$subdirs projects/llvm-kernel"
1613  ;;
1614       *)
1615         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617         ;;
1618     esac
1619   fi
1620 done
1621
1622
1623 # Make sure we can run config.sub.
1624 $ac_config_sub sun4 >/dev/null 2>&1 ||
1625   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627    { (exit 1); exit 1; }; }
1628
1629 echo "$as_me:$LINENO: checking build system type" >&5
1630 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631 if test "${ac_cv_build+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   ac_cv_build_alias=$build_alias
1635 test -z "$ac_cv_build_alias" &&
1636   ac_cv_build_alias=`$ac_config_guess`
1637 test -z "$ac_cv_build_alias" &&
1638   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640    { (exit 1); exit 1; }; }
1641 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644    { (exit 1); exit 1; }; }
1645
1646 fi
1647 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648 echo "${ECHO_T}$ac_cv_build" >&6
1649 build=$ac_cv_build
1650 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655 echo "$as_me:$LINENO: checking host system type" >&5
1656 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657 if test "${ac_cv_host+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   ac_cv_host_alias=$host_alias
1661 test -z "$ac_cv_host_alias" &&
1662   ac_cv_host_alias=$ac_cv_build_alias
1663 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666    { (exit 1); exit 1; }; }
1667
1668 fi
1669 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670 echo "${ECHO_T}$ac_cv_host" >&6
1671 host=$ac_cv_host
1672 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677 echo "$as_me:$LINENO: checking target system type" >&5
1678 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679 if test "${ac_cv_target+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   ac_cv_target_alias=$target_alias
1683 test "x$ac_cv_target_alias" = "x" &&
1684   ac_cv_target_alias=$ac_cv_host_alias
1685 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688    { (exit 1); exit 1; }; }
1689
1690 fi
1691 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692 echo "${ECHO_T}$ac_cv_target" >&6
1693 target=$ac_cv_target
1694 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699 # The aliases save the names the user supplied, while $host etc.
1700 # will get canonicalized.
1701 test -n "$target_alias" &&
1702   test "$program_prefix$program_suffix$program_transform_name" = \
1703     NONENONEs,x,x, &&
1704   program_prefix=${target_alias}-
1705
1706 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708 if test "${llvm_cv_os_type+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   case $build in
1712   *-*-aix*)
1713     llvm_cv_os_type="AIX"
1714     llvm_cv_platform_type="Unix" ;;
1715   *-*-cygwin*)
1716     llvm_cv_os_type="Cygwin"
1717     llvm_cv_platform_type="Unix" ;;
1718   *-*-darwin*)
1719     llvm_cv_os_type="Darwin"
1720     llvm_cv_platform_type="Unix" ;;
1721   *-*-freebsd*)
1722     llvm_cv_os_type="FreeBSD"
1723     llvm_cv_platform_type="Unix" ;;
1724   *-*-hpux*)
1725     llvm_cv_os_type="HP-UX"
1726     llvm_cv_platform_type="Unix" ;;
1727   *-*-interix*)
1728     llvm_cv_os_type="Interix"
1729     llvm_cv_platform_type="Unix" ;;
1730   *-*-linux*)
1731     llvm_cv_os_type="Linux"
1732     llvm_cv_platform_type="Unix" ;;
1733   *-*-solaris*)
1734     llvm_cv_os_type="SunOS"
1735     llvm_cv_platform_type="Unix" ;;
1736   *-*-win32*)
1737     llvm_cv_os_type="Win32"
1738     llvm_cv_platform_type="Win32" ;;
1739   *-*-mingw*)
1740     llvm_cv_os_type="MingW"
1741     llvm_cv_platform_type="Win32" ;;
1742   *)
1743     llvm_cv_os_type="Unknown"
1744     llvm_cv_platform_type="Unknown" ;;
1745 esac
1746 fi
1747 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748 echo "${ECHO_T}$llvm_cv_os_type" >&6
1749
1750 if test "$llvm_cv_os_type" = "Unknown" ; then
1751   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 OS=$llvm_cv_os_type
1757
1758
1759 case $llvm_cv_platform_type in
1760   Unix)
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_UNIX 1
1764 _ACEOF
1765
1766     LLVM_ON_UNIX=1
1767
1768     LLVM_ON_WIN32=0
1769
1770     ;;
1771   Win32)
1772
1773 cat >>confdefs.h <<\_ACEOF
1774 #define LLVM_ON_WIN32 1
1775 _ACEOF
1776
1777     LLVM_ON_UNIX=0
1778
1779     LLVM_ON_WIN32=1
1780
1781     ;;
1782 esac
1783
1784 echo "$as_me:$LINENO: checking target architecture" >&5
1785 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1786 if test "${llvm_cv_target_arch+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   case $target in
1790   i?86-*)                 llvm_cv_target_arch="x86" ;;
1791   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1792   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1793   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1794   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1795   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1796   *)                      llvm_cv_target_arch="Unknown" ;;
1797 esac
1798 fi
1799 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1801
1802 if test "$llvm_cv_target_arch" = "Unknown" ; then
1803   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805 fi
1806
1807 ARCH=$llvm_cv_target_arch
1808
1809
1810 ac_ext=c
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853   ac_ct_CC=$CC
1854   # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$ac_ct_CC"; then
1862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871     ac_cv_prog_ac_ct_CC="gcc"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889   CC=$ac_ct_CC
1890 else
1891   CC="$ac_cv_prog_CC"
1892 fi
1893
1894 if test -z "$CC"; then
1895   if test -n "$ac_tool_prefix"; then
1896   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$CC"; then
1904   ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_CC="${ac_tool_prefix}cc"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924   echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$ac_cv_prog_CC"; then
1933   ac_ct_CC=$CC
1934   # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$ac_ct_CC"; then
1942   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_ac_ct_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969   CC=$ac_ct_CC
1970 else
1971   CC="$ac_cv_prog_CC"
1972 fi
1973
1974 fi
1975 if test -z "$CC"; then
1976   # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$CC"; then
1984   ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986   ac_prog_rejected=no
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995        ac_prog_rejected=yes
1996        continue
1997      fi
1998     ac_cv_prog_CC="cc"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004
2005 if test $ac_prog_rejected = yes; then
2006   # We found a bogon in the path, so make sure we never use it.
2007   set dummy $ac_cv_prog_CC
2008   shift
2009   if test $# != 0; then
2010     # We chose a different compiler from the bogus one.
2011     # However, it has the same basename, so the bogon will be chosen
2012     # first if we set CC to just the basename; use the full file name.
2013     shift
2014     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015   fi
2016 fi
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021   echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028 fi
2029 if test -z "$CC"; then
2030   if test -n "$ac_tool_prefix"; then
2031   for ac_prog in cl
2032   do
2033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061   echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2063 else
2064   echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068     test -n "$CC" && break
2069   done
2070 fi
2071 if test -z "$CC"; then
2072   ac_ct_CC=$CC
2073   for ac_prog in cl
2074 do
2075   # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$ac_ct_CC"; then
2083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092     ac_cv_prog_ac_ct_CC="$ac_prog"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098
2099 fi
2100 fi
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2105 else
2106   echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2108 fi
2109
2110   test -n "$ac_ct_CC" && break
2111 done
2112
2113   CC=$ac_ct_CC
2114 fi
2115
2116 fi
2117
2118
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123    { (exit 1); exit 1; }; }
2124
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127      "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130   (eval $ac_compiler --version </dev/null >&5) 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135   (eval $ac_compiler -v </dev/null >&5) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140   (eval $ac_compiler -V </dev/null >&5) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2151
2152 int
2153 main ()
2154 {
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169   (eval $ac_link_default) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; then
2173   # Find the output, starting from the most likely.  This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175 # resort.
2176
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 ac_cv_exeext=
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 do
2183   test -f "$ac_file" || continue
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186         ;;
2187     conftest.$ac_ext )
2188         # This is the source file.
2189         ;;
2190     [ab].out )
2191         # We found the default executable, but exeext='' is most
2192         # certainly right.
2193         break;;
2194     *.* )
2195         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196         # FIXME: I believe we export ac_cv_exeext for Libtool,
2197         # but it would be cool to find out if it's true.  Does anybody
2198         # maintain Libtool? --akim.
2199         export ac_cv_exeext
2200         break;;
2201     * )
2202         break;;
2203   esac
2204 done
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213    { (exit 77); exit 77; }; }
2214 fi
2215
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2219
2220 # Check the compiler produces executables we can run.  If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227   if { ac_try='./$ac_file'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233     cross_compiling=no
2234   else
2235     if test "$cross_compiling" = maybe; then
2236         cross_compiling=yes
2237     else
2238         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245     fi
2246   fi
2247 fi
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run.  If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2259
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263   (eval $ac_link) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           export ac_cv_exeext
2277           break;;
2278     * ) break;;
2279   esac
2280 done
2281 else
2282   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323   case $ac_file in
2324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326        break;;
2327   esac
2328 done
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338 fi
2339
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2345 ac_objext=$OBJEXT
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357
2358 int
2359 main ()
2360 {
2361 #ifndef __GNUC__
2362        choke me
2363 #endif
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   ac_compiler_gnu=yes
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 ac_compiler_gnu=no
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401 fi
2402 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2407 CFLAGS="-g"
2408 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_g+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419
2420 int
2421 main ()
2422 {
2423
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430   (eval $ac_compile) 2>conftest.er1
2431   ac_status=$?
2432   grep -v '^ *+' conftest.er1 >conftest.err
2433   rm -f conftest.er1
2434   cat conftest.err >&5
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -z "$ac_c_werror_flag"
2438                          || test ! -s conftest.err'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; } &&
2444          { ac_try='test -s conftest.$ac_objext'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450   ac_cv_prog_cc_g=yes
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_cv_prog_cc_g=no
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462   CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464   if test "$GCC" = yes; then
2465     CFLAGS="-g -O2"
2466   else
2467     CFLAGS="-g"
2468   fi
2469 else
2470   if test "$GCC" = yes; then
2471     CFLAGS="-O2"
2472   else
2473     CFLAGS=
2474   fi
2475 fi
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2497      char **p;
2498      int i;
2499 {
2500   return p[i];
2501 }
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2503 {
2504   char *s;
2505   va_list v;
2506   va_start (v,p);
2507   s = g (p, va_arg (v,int));
2508   va_end (v);
2509   return s;
2510 }
2511
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513    function prototypes and stuff, but not '\xHH' hex character constants.
2514    These don't provoke an error unfortunately, instead are silently treated
2515    as 'x'.  The following induces an error, until -std1 is added to get
2516    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517    array size at least.  It's necessary to write '\x00'==0 to get something
2518    that's true only with -std1.  */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525 int argc;
2526 char **argv;
2527 int
2528 main ()
2529 {
2530 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX                   -qlanglvl=ansi
2538 # Ultrix and OSF/1      -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2541 # SVR4                  -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 do
2544   CC="$ac_save_CC $ac_arg"
2545   rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"
2555                          || test ! -s conftest.err'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   ac_cv_prog_cc_stdc=$ac_arg
2568 break
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 fi
2574 rm -f conftest.err conftest.$ac_objext
2575 done
2576 rm -f conftest.$ac_ext conftest.$ac_objext
2577 CC=$ac_save_CC
2578
2579 fi
2580
2581 case "x$ac_cv_prog_cc_stdc" in
2582   x|xno)
2583     echo "$as_me:$LINENO: result: none needed" >&5
2584 echo "${ECHO_T}none needed" >&6 ;;
2585   *)
2586     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588     CC="$CC $ac_cv_prog_cc_stdc" ;;
2589 esac
2590
2591 # Some people use a C++ compiler to compile C.  Since we use `exit',
2592 # in C++ we need to declare it.  In case someone uses the same compiler
2593 # for both compiling C and C++ we need to have the C++ compiler decide
2594 # the declaration of exit, since it's the most demanding environment.
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #ifndef __cplusplus
2597   choke me
2598 #endif
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   for ac_declaration in \
2623    '' \
2624    'extern "C" void std::exit (int) throw (); using std::exit;' \
2625    'extern "C" void std::exit (int); using std::exit;' \
2626    'extern "C" void exit (int) throw ();' \
2627    'extern "C" void exit (int);' \
2628    'void exit (int);'
2629 do
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 $ac_declaration
2637 #include <stdlib.h>
2638 int
2639 main ()
2640 {
2641 exit (42);
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_c_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   :
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 continue
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 $ac_declaration
2683 int
2684 main ()
2685 {
2686 exit (42);
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693   (eval $ac_compile) 2>conftest.er1
2694   ac_status=$?
2695   grep -v '^ *+' conftest.er1 >conftest.err
2696   rm -f conftest.er1
2697   cat conftest.err >&5
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -z "$ac_c_werror_flag"
2701                          || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   break
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 fi
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 rm -f conftest*
2722 if test -n "$ac_declaration"; then
2723   echo '#ifdef __cplusplus' >>confdefs.h
2724   echo $ac_declaration      >>confdefs.h
2725   echo '#endif'             >>confdefs.h
2726 fi
2727
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 fi
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743 if test "${ac_cv_c_bigendian+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   # See if sys/param.h defines the BYTE_ORDER macro.
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 #include <sys/types.h>
2754 #include <sys/param.h>
2755
2756 int
2757 main ()
2758 {
2759 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760  bogus endian macros
2761 #endif
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769   (eval $ac_compile) 2>conftest.er1
2770   ac_status=$?
2771   grep -v '^ *+' conftest.er1 >conftest.err
2772   rm -f conftest.er1
2773   cat conftest.err >&5
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); } &&
2776          { ac_try='test -z "$ac_c_werror_flag"
2777                          || test ! -s conftest.err'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   # It does; now see whether it defined to BIG_ENDIAN or not.
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h.  */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h.  */
2796 #include <sys/types.h>
2797 #include <sys/param.h>
2798
2799 int
2800 main ()
2801 {
2802 #if BYTE_ORDER != BIG_ENDIAN
2803  not big endian
2804 #endif
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812   (eval $ac_compile) 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -z "$ac_c_werror_flag"
2820                          || test ! -s conftest.err'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; } &&
2826          { ac_try='test -s conftest.$ac_objext'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   ac_cv_c_bigendian=yes
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_cv_c_bigendian=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 # It does not; compile a test program.
2845 if test "$cross_compiling" = yes; then
2846   # try to guess the endianness by grepping values into an object file
2847   ac_cv_c_bigendian=unknown
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860 int
2861 main ()
2862 {
2863  _ascii (); _ebcdic ();
2864   ;
2865   return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870   (eval $ac_compile) 2>conftest.er1
2871   ac_status=$?
2872   grep -v '^ *+' conftest.er1 >conftest.err
2873   rm -f conftest.er1
2874   cat conftest.err >&5
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -z "$ac_c_werror_flag"
2878                          || test ! -s conftest.err'
2879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880   (eval $ac_try) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; } &&
2884          { ac_try='test -s conftest.$ac_objext'
2885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891   ac_cv_c_bigendian=yes
2892 fi
2893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894   if test "$ac_cv_c_bigendian" = unknown; then
2895     ac_cv_c_bigendian=no
2896   else
2897     # finding both strings is unlikely to happen, but who knows?
2898     ac_cv_c_bigendian=unknown
2899   fi
2900 fi
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 int
2915 main ()
2916 {
2917   /* Are we little or big endian?  From Harbison&Steele.  */
2918   union
2919   {
2920     long l;
2921     char c[sizeof (long)];
2922   } u;
2923   u.l = 1;
2924   exit (u.c[sizeof (long) - 1] == 1);
2925 }
2926 _ACEOF
2927 rm -f conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929   (eval $ac_link) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_cv_c_bigendian=no
2939 else
2940   echo "$as_me: program exited with status $ac_status" >&5
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 ( exit $ac_status )
2945 ac_cv_c_bigendian=yes
2946 fi
2947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948 fi
2949 fi
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 fi
2952 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954 case $ac_cv_c_bigendian in
2955   yes)
2956     ENDIAN=big
2957  ;;
2958   no)
2959     ENDIAN=little
2960  ;;
2961   *)
2962     { { echo "$as_me:$LINENO: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964 echo "$as_me: error: unknown endianness
2965 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966    { (exit 1); exit 1; }; } ;;
2967 esac
2968
2969
2970
2971 # Check whether --enable-optimized or --disable-optimized was given.
2972 if test "${enable_optimized+set}" = set; then
2973   enableval="$enable_optimized"
2974
2975 else
2976   enableval=no
2977 fi;
2978 if test ${enableval} = "no" ; then
2979   ENABLE_OPTIMIZED=
2980
2981 else
2982   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983
2984 fi
2985
2986 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987 if test "${enable_debug_runtime+set}" = set; then
2988   enableval="$enable_debug_runtime"
2989
2990 else
2991   enableval=no
2992 fi;
2993 if test ${enableval} = "no" ; then
2994   DEBUG_RUNTIME=
2995
2996 else
2997   DEBUG_RUNTIME=DEBUG_RUNTIME=1
2998
2999 fi
3000
3001 # Check whether --enable-jit or --disable-jit was given.
3002 if test "${enable_jit+set}" = set; then
3003   enableval="$enable_jit"
3004
3005 else
3006   enableval=default
3007 fi;
3008 if test ${enableval} = "no"
3009 then
3010   JIT=
3011
3012 else
3013   case "$llvm_cv_target_arch" in
3014     x86)     TARGET_HAS_JIT=1
3015  ;;
3016     Sparc)   TARGET_HAS_JIT=1
3017  ;;
3018     PowerPC) TARGET_HAS_JIT=1
3019  ;;
3020     x86_64)  TARGET_HAS_JIT=0
3021  ;;
3022     Alpha)   TARGET_HAS_JIT=1
3023  ;;
3024     IA64)    TARGET_HAS_JIT=0
3025  ;;
3026     *)       TARGET_HAS_JIT=0
3027  ;;
3028   esac
3029 fi
3030
3031 # Check whether --enable-doxygen or --disable-doxygen was given.
3032 if test "${enable_doxygen+set}" = set; then
3033   enableval="$enable_doxygen"
3034
3035 else
3036   enableval=default
3037 fi;
3038 case "$enableval" in
3039   yes) ENABLE_DOXYGEN=1
3040  ;;
3041   no)  ENABLE_DOXYGEN=0
3042  ;;
3043   default) ENABLE_DOXYGEN=0
3044  ;;
3045   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047    { (exit 1); exit 1; }; } ;;
3048 esac
3049
3050 # Check whether --enable-threads or --disable-threads was given.
3051 if test "${enable_threads+set}" = set; then
3052   enableval="$enable_threads"
3053
3054 else
3055   enableval=yes
3056 fi;
3057 case "$enableval" in
3058   yes) ENABLE_THREADS=1
3059  ;;
3060   no)  ENABLE_THREADS=0
3061  ;;
3062   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064    { (exit 1); exit 1; }; } ;;
3065 esac
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define ENABLE_THREADS $ENABLE_THREADS
3069 _ACEOF
3070
3071
3072 TARGETS_TO_BUILD=""
3073 # Check whether --enable-targets or --disable-targets was given.
3074 if test "${enable_targets+set}" = set; then
3075   enableval="$enable_targets"
3076
3077 else
3078   enableval=all
3079 fi;
3080 case "$enableval" in
3081   all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
3082   host-only)
3083     case "$llvm_cv_target_arch" in
3084       x86)     TARGETS_TO_BUILD="X86" ;;
3085       x86_64)  TARGETS_TO_BUILD="X86" ;;
3086       Sparc)   TARGETS_TO_BUILD="Sparc SparcV9" ;;
3087       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3089       IA64)    TARGETS_TO_BUILD="IA64" ;;
3090       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3091 echo "$as_me: error: Can not set target to build" >&2;}
3092    { (exit 1); exit 1; }; } ;;
3093     esac
3094     ;;
3095   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3096       case "$a_target" in
3097         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3099         sparc)   TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
3100         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3103         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3104 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3105    { (exit 1); exit 1; }; } ;;
3106       esac
3107   done
3108   ;;
3109 esac
3110 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3111 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3112
3113
3114
3115 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3116 if test "${with_llvmgccdir+set}" = set; then
3117   withval="$with_llvmgccdir"
3118
3119 else
3120   withval=default
3121 fi;
3122 case "$withval" in
3123   default) WITH_LLVMGCCDIR=default ;;
3124   /*)      WITH_LLVMGCCDIR=$withval ;;
3125   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3126 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3127    { (exit 1); exit 1; }; } ;;
3128 esac
3129
3130
3131
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3139 # On Suns, sometimes $CPP names a directory.
3140 if test -n "$CPP" && test -d "$CPP"; then
3141   CPP=
3142 fi
3143 if test -z "$CPP"; then
3144   if test "${ac_cv_prog_CPP+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147       # Double quotes because CPP needs to be expanded
3148     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3149     do
3150       ac_preproc_ok=false
3151 for ac_c_preproc_warn_flag in '' yes
3152 do
3153   # Use a header file that comes with gcc, so configuring glibc
3154   # with a fresh cross-compiler works.
3155   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156   # <limits.h> exists even on freestanding compilers.
3157   # On the NeXT, cc -E runs the code through the compiler's parser,
3158   # not just through cpp. "Syntax error" is here to catch this case.
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #ifdef __STDC__
3166 # include <limits.h>
3167 #else
3168 # include <assert.h>
3169 #endif
3170                      Syntax error
3171 _ACEOF
3172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174   ac_status=$?
3175   grep -v '^ *+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } >/dev/null; then
3180   if test -s conftest.err; then
3181     ac_cpp_err=$ac_c_preproc_warn_flag
3182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3183   else
3184     ac_cpp_err=
3185   fi
3186 else
3187   ac_cpp_err=yes
3188 fi
3189 if test -z "$ac_cpp_err"; then
3190   :
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195   # Broken: fails on valid input.
3196 continue
3197 fi
3198 rm -f conftest.err conftest.$ac_ext
3199
3200   # OK, works on sane cases.  Now check whether non-existent headers
3201   # can be detected and how.
3202   cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208 #include <ac_nonexistent.h>
3209 _ACEOF
3210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
3215   cat conftest.err >&5
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); } >/dev/null; then
3218   if test -s conftest.err; then
3219     ac_cpp_err=$ac_c_preproc_warn_flag
3220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3221   else
3222     ac_cpp_err=
3223   fi
3224 else
3225   ac_cpp_err=yes
3226 fi
3227 if test -z "$ac_cpp_err"; then
3228   # Broken: success on invalid input.
3229 continue
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234   # Passes both tests.
3235 ac_preproc_ok=:
3236 break
3237 fi
3238 rm -f conftest.err conftest.$ac_ext
3239
3240 done
3241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3242 rm -f conftest.err conftest.$ac_ext
3243 if $ac_preproc_ok; then
3244   break
3245 fi
3246
3247     done
3248     ac_cv_prog_CPP=$CPP
3249
3250 fi
3251   CPP=$ac_cv_prog_CPP
3252 else
3253   ac_cv_prog_CPP=$CPP
3254 fi
3255 echo "$as_me:$LINENO: result: $CPP" >&5
3256 echo "${ECHO_T}$CPP" >&6
3257 ac_preproc_ok=false
3258 for ac_c_preproc_warn_flag in '' yes
3259 do
3260   # Use a header file that comes with gcc, so configuring glibc
3261   # with a fresh cross-compiler works.
3262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263   # <limits.h> exists even on freestanding compilers.
3264   # On the NeXT, cc -E runs the code through the compiler's parser,
3265   # not just through cpp. "Syntax error" is here to catch this case.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277                      Syntax error
3278 _ACEOF
3279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   :
3298 else
3299   echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302   # Broken: fails on valid input.
3303 continue
3304 fi
3305 rm -f conftest.err conftest.$ac_ext
3306
3307   # OK, works on sane cases.  Now check whether non-existent headers
3308   # can be detected and how.
3309   cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } >/dev/null; then
3325   if test -s conftest.err; then
3326     ac_cpp_err=$ac_c_preproc_warn_flag
3327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328   else
3329     ac_cpp_err=
3330   fi
3331 else
3332   ac_cpp_err=yes
3333 fi
3334 if test -z "$ac_cpp_err"; then
3335   # Broken: success on invalid input.
3336 continue
3337 else
3338   echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341   # Passes both tests.
3342 ac_preproc_ok=:
3343 break
3344 fi
3345 rm -f conftest.err conftest.$ac_ext
3346
3347 done
3348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349 rm -f conftest.err conftest.$ac_ext
3350 if $ac_preproc_ok; then
3351   :
3352 else
3353   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3354 See \`config.log' for more details." >&5
3355 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3356 See \`config.log' for more details." >&2;}
3357    { (exit 1); exit 1; }; }
3358 fi
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366 ac_ext=c
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 if test -n "$ac_tool_prefix"; then
3372   for ac_prog in gcc
3373   do
3374     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_prog_CC+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   if test -n "$CC"; then
3382   ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389   for ac_exec_ext in '' $ac_executable_extensions; do
3390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396 done
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402   echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6
3404 else
3405   echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3407 fi
3408
3409     test -n "$CC" && break
3410   done
3411 fi
3412 if test -z "$CC"; then
3413   ac_ct_CC=$CC
3414   for ac_prog in gcc
3415 do
3416   # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   if test -n "$ac_ct_CC"; then
3424   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_prog_ac_ct_CC="$ac_prog"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440 fi
3441 fi
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3445 echo "${ECHO_T}$ac_ct_CC" >&6
3446 else
3447   echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3449 fi
3450
3451   test -n "$ac_ct_CC" && break
3452 done
3453
3454   CC=$ac_ct_CC
3455 fi
3456
3457
3458 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3459 See \`config.log' for more details." >&5
3460 echo "$as_me: error: no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details." >&2;}
3462    { (exit 1); exit 1; }; }
3463
3464 # Provide some information about the compiler.
3465 echo "$as_me:$LINENO:" \
3466      "checking for C compiler version" >&5
3467 ac_compiler=`set X $ac_compile; echo $2`
3468 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3469   (eval $ac_compiler --version </dev/null >&5) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }
3473 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3474   (eval $ac_compiler -v </dev/null >&5) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }
3478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3479   (eval $ac_compiler -V </dev/null >&5) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }
3483
3484 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3485 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3486 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495
3496 int
3497 main ()
3498 {
3499 #ifndef __GNUC__
3500        choke me
3501 #endif
3502
3503   ;
3504   return 0;
3505 }
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509   (eval $ac_compile) 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } &&
3516          { ac_try='test -z "$ac_c_werror_flag"
3517                          || test ! -s conftest.err'
3518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; } &&
3523          { ac_try='test -s conftest.$ac_objext'
3524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525   (eval $ac_try) 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); }; }; then
3529   ac_compiler_gnu=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 ac_compiler_gnu=no
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3541 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3542 GCC=`test $ac_compiler_gnu = yes && echo yes`
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 CFLAGS="-g"
3546 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3547 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3548 if test "${ac_cv_prog_cc_g+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568   (eval $ac_compile) 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } &&
3575          { ac_try='test -z "$ac_c_werror_flag"
3576                          || test ! -s conftest.err'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; } &&
3582          { ac_try='test -s conftest.$ac_objext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   ac_cv_prog_cc_g=yes
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 ac_cv_prog_cc_g=no
3594 fi
3595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3599 if test "$ac_test_CFLAGS" = set; then
3600   CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602   if test "$GCC" = yes; then
3603     CFLAGS="-g -O2"
3604   else
3605     CFLAGS="-g"
3606   fi
3607 else
3608   if test "$GCC" = yes; then
3609     CFLAGS="-O2"
3610   else
3611     CFLAGS=
3612   fi
3613 fi
3614 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3615 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3616 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   ac_cv_prog_cc_stdc=no
3620 ac_save_CC=$CC
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627 #include <stdarg.h>
3628 #include <stdio.h>
3629 #include <sys/types.h>
3630 #include <sys/stat.h>
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3635      char **p;
3636      int i;
3637 {
3638   return p[i];
3639 }
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3641 {
3642   char *s;
3643   va_list v;
3644   va_start (v,p);
3645   s = g (p, va_arg (v,int));
3646   va_end (v);
3647   return s;
3648 }
3649
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3651    function prototypes and stuff, but not '\xHH' hex character constants.
3652    These don't provoke an error unfortunately, instead are silently treated
3653    as 'x'.  The following induces an error, until -std1 is added to get
3654    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3655    array size at least.  It's necessary to write '\x00'==0 to get something
3656    that's true only with -std1.  */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 # Don't try gcc -ansi; that turns off useful extensions and
3674 # breaks some systems' header files.
3675 # AIX                   -qlanglvl=ansi
3676 # Ultrix and OSF/1      -std1
3677 # HP-UX 10.20 and later -Ae
3678 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3679 # SVR4                  -Xc -D__EXTENSIONS__
3680 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 do
3682   CC="$ac_save_CC $ac_arg"
3683   rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685   (eval $ac_compile) 2>conftest.er1
3686   ac_status=$?
3687   grep -v '^ *+' conftest.er1 >conftest.err
3688   rm -f conftest.er1
3689   cat conftest.err >&5
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); } &&
3692          { ac_try='test -z "$ac_c_werror_flag"
3693                          || test ! -s conftest.err'
3694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695   (eval $ac_try) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; } &&
3699          { ac_try='test -s conftest.$ac_objext'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   ac_cv_prog_cc_stdc=$ac_arg
3706 break
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 fi
3712 rm -f conftest.err conftest.$ac_objext
3713 done
3714 rm -f conftest.$ac_ext conftest.$ac_objext
3715 CC=$ac_save_CC
3716
3717 fi
3718
3719 case "x$ac_cv_prog_cc_stdc" in
3720   x|xno)
3721     echo "$as_me:$LINENO: result: none needed" >&5
3722 echo "${ECHO_T}none needed" >&6 ;;
3723   *)
3724     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3725 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3726     CC="$CC $ac_cv_prog_cc_stdc" ;;
3727 esac
3728
3729 # Some people use a C++ compiler to compile C.  Since we use `exit',
3730 # in C++ we need to declare it.  In case someone uses the same compiler
3731 # for both compiling C and C++ we need to have the C++ compiler decide
3732 # the declaration of exit, since it's the most demanding environment.
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #ifndef __cplusplus
3735   choke me
3736 #endif
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740   (eval $ac_compile) 2>conftest.er1
3741   ac_status=$?
3742   grep -v '^ *+' conftest.er1 >conftest.err
3743   rm -f conftest.er1
3744   cat conftest.err >&5
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); } &&
3747          { ac_try='test -z "$ac_c_werror_flag"
3748                          || test ! -s conftest.err'
3749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750   (eval $ac_try) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; } &&
3754          { ac_try='test -s conftest.$ac_objext'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; }; then
3760   for ac_declaration in \
3761    '' \
3762    'extern "C" void std::exit (int) throw (); using std::exit;' \
3763    'extern "C" void std::exit (int); using std::exit;' \
3764    'extern "C" void exit (int) throw ();' \
3765    'extern "C" void exit (int);' \
3766    'void exit (int);'
3767 do
3768   cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774 $ac_declaration
3775 #include <stdlib.h>
3776 int
3777 main ()
3778 {
3779 exit (42);
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786   (eval $ac_compile) 2>conftest.er1
3787   ac_status=$?
3788   grep -v '^ *+' conftest.er1 >conftest.err
3789   rm -f conftest.er1
3790   cat conftest.err >&5
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } &&
3793          { ac_try='test -z "$ac_c_werror_flag"
3794                          || test ! -s conftest.err'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; } &&
3800          { ac_try='test -s conftest.$ac_objext'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; }; then
3806   :
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 continue
3812 fi
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 $ac_declaration
3821 int
3822 main ()
3823 {
3824 exit (42);
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831   (eval $ac_compile) 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } &&
3838          { ac_try='test -z "$ac_c_werror_flag"
3839                          || test ! -s conftest.err'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; } &&
3845          { ac_try='test -s conftest.$ac_objext'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; }; then
3851   break
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 fi
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 done
3859 rm -f conftest*
3860 if test -n "$ac_declaration"; then
3861   echo '#ifdef __cplusplus' >>confdefs.h
3862   echo $ac_declaration      >>confdefs.h
3863   echo '#endif'             >>confdefs.h
3864 fi
3865
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 fi
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878 ac_ext=cc
3879 ac_cpp='$CXXCPP $CPPFLAGS'
3880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3883 if test -n "$ac_tool_prefix"; then
3884   for ac_prog in $CCC g++
3885   do
3886     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888 echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_CXX+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   if test -n "$CXX"; then
3894   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_exec_ext in '' $ac_executable_extensions; do
3902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905     break 2
3906   fi
3907 done
3908 done
3909
3910 fi
3911 fi
3912 CXX=$ac_cv_prog_CXX
3913 if test -n "$CXX"; then
3914   echo "$as_me:$LINENO: result: $CXX" >&5
3915 echo "${ECHO_T}$CXX" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3919 fi
3920
3921     test -n "$CXX" && break
3922   done
3923 fi
3924 if test -z "$CXX"; then
3925   ac_ct_CXX=$CXX
3926   for ac_prog in $CCC g++
3927 do
3928   # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   if test -n "$ac_ct_CXX"; then
3936   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for ac_exec_ext in '' $ac_executable_extensions; do
3944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945     ac_cv_prog_ac_ct_CXX="$ac_prog"
3946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950 done
3951
3952 fi
3953 fi
3954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955 if test -n "$ac_ct_CXX"; then
3956   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3957 echo "${ECHO_T}$ac_ct_CXX" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963   test -n "$ac_ct_CXX" && break
3964 done
3965 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3966
3967   CXX=$ac_ct_CXX
3968 fi
3969
3970
3971 # Provide some information about the compiler.
3972 echo "$as_me:$LINENO:" \
3973      "checking for C++ compiler version" >&5
3974 ac_compiler=`set X $ac_compile; echo $2`
3975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3976   (eval $ac_compiler --version </dev/null >&5) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }
3980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3981   (eval $ac_compiler -v </dev/null >&5) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }
3985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3986   (eval $ac_compiler -V </dev/null >&5) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }
3990
3991 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3992 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3993 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h.  */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h.  */
4002
4003 int
4004 main ()
4005 {
4006 #ifndef __GNUC__
4007        choke me
4008 #endif
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016   (eval $ac_compile) 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } &&
4023          { ac_try='test -z "$ac_cxx_werror_flag"
4024                          || test ! -s conftest.err'
4025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026   (eval $ac_try) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; } &&
4030          { ac_try='test -s conftest.$ac_objext'
4031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032   (eval $ac_try) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; }; then
4036   ac_compiler_gnu=yes
4037 else
4038   echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 ac_compiler_gnu=no
4042 fi
4043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4045
4046 fi
4047 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4048 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4049 GXX=`test $ac_compiler_gnu = yes && echo yes`
4050 ac_test_CXXFLAGS=${CXXFLAGS+set}
4051 ac_save_CXXFLAGS=$CXXFLAGS
4052 CXXFLAGS="-g"
4053 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4054 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4055 if test "${ac_cv_prog_cxx_g+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h.  */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h.  */
4064
4065 int
4066 main ()
4067 {
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075   (eval $ac_compile) 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } &&
4082          { ac_try='test -z "$ac_cxx_werror_flag"
4083                          || test ! -s conftest.err'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; }; then
4095   ac_cv_prog_cxx_g=yes
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 ac_cv_prog_cxx_g=no
4101 fi
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 fi
4104 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4105 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4106 if test "$ac_test_CXXFLAGS" = set; then
4107   CXXFLAGS=$ac_save_CXXFLAGS
4108 elif test $ac_cv_prog_cxx_g = yes; then
4109   if test "$GXX" = yes; then
4110     CXXFLAGS="-g -O2"
4111   else
4112     CXXFLAGS="-g"
4113   fi
4114 else
4115   if test "$GXX" = yes; then
4116     CXXFLAGS="-O2"
4117   else
4118     CXXFLAGS=
4119   fi
4120 fi
4121 for ac_declaration in \
4122    '' \
4123    'extern "C" void std::exit (int) throw (); using std::exit;' \
4124    'extern "C" void std::exit (int); using std::exit;' \
4125    'extern "C" void exit (int) throw ();' \
4126    'extern "C" void exit (int);' \
4127    'void exit (int);'
4128 do
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 $ac_declaration
4136 #include <stdlib.h>
4137 int
4138 main ()
4139 {
4140 exit (42);
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_cxx_werror_flag"
4155                          || test ! -s conftest.err'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   :
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 continue
4173 fi
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175   cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 $ac_declaration
4182 int
4183 main ()
4184 {
4185 exit (42);
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192   (eval $ac_compile) 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } &&
4199          { ac_try='test -z "$ac_cxx_werror_flag"
4200                          || test ! -s conftest.err'
4201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202   (eval $ac_try) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }; } &&
4206          { ac_try='test -s conftest.$ac_objext'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   break
4213 else
4214   echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 fi
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 done
4220 rm -f conftest*
4221 if test -n "$ac_declaration"; then
4222   echo '#ifdef __cplusplus' >>confdefs.h
4223   echo $ac_declaration      >>confdefs.h
4224   echo '#endif'             >>confdefs.h
4225 fi
4226
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
4233 echo "$as_me:$LINENO: checking " >&5
4234 echo $ECHO_N "checking ... $ECHO_C" >&6
4235 if test "${ac_cv_has_flex+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   for ac_prog in flex lex
4239 do
4240   # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_LEX+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$LEX"; then
4248   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_prog_LEX="$ac_prog"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264 fi
4265 fi
4266 LEX=$ac_cv_prog_LEX
4267 if test -n "$LEX"; then
4268   echo "$as_me:$LINENO: result: $LEX" >&5
4269 echo "${ECHO_T}$LEX" >&6
4270 else
4271   echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4273 fi
4274
4275   test -n "$LEX" && break
4276 done
4277 test -n "$LEX" || LEX=":"
4278
4279 if test -z "$LEXLIB"
4280 then
4281   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4282 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4283 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   ac_check_lib_save_LIBS=$LIBS
4287 LIBS="-lfl  $LIBS"
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294
4295 /* Override any gcc2 internal prototype to avoid an error.  */
4296 #ifdef __cplusplus
4297 extern "C"
4298 #endif
4299 /* We use char because int might match the return type of a gcc2
4300    builtin and then its argument prototype would still apply.  */
4301 char yywrap ();
4302 int
4303 main ()
4304 {
4305 yywrap ();
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.$ac_objext conftest$ac_exeext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4312   (eval $ac_link) 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag"
4320                          || test ! -s conftest.err'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; } &&
4326          { ac_try='test -s conftest$ac_exeext'
4327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328   (eval $ac_try) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); }; }; then
4332   ac_cv_lib_fl_yywrap=yes
4333 else
4334   echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_cv_lib_fl_yywrap=no
4338 fi
4339 rm -f conftest.err conftest.$ac_objext \
4340       conftest$ac_exeext conftest.$ac_ext
4341 LIBS=$ac_check_lib_save_LIBS
4342 fi
4343 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4344 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4345 if test $ac_cv_lib_fl_yywrap = yes; then
4346   LEXLIB="-lfl"
4347 else
4348   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4349 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4350 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   ac_check_lib_save_LIBS=$LIBS
4354 LIBS="-ll  $LIBS"
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h.  */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h.  */
4361
4362 /* Override any gcc2 internal prototype to avoid an error.  */
4363 #ifdef __cplusplus
4364 extern "C"
4365 #endif
4366 /* We use char because int might match the return type of a gcc2
4367    builtin and then its argument prototype would still apply.  */
4368 char yywrap ();
4369 int
4370 main ()
4371 {
4372 yywrap ();
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext conftest$ac_exeext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379   (eval $ac_link) 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag"
4387                          || test ! -s conftest.err'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; } &&
4393          { ac_try='test -s conftest$ac_exeext'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   ac_cv_lib_l_yywrap=yes
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 ac_cv_lib_l_yywrap=no
4405 fi
4406 rm -f conftest.err conftest.$ac_objext \
4407       conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4409 fi
4410 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4411 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4412 if test $ac_cv_lib_l_yywrap = yes; then
4413   LEXLIB="-ll"
4414 fi
4415
4416 fi
4417
4418 fi
4419
4420 if test "x$LEX" != "x:"; then
4421   echo "$as_me:$LINENO: checking lex output file root" >&5
4422 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4423 if test "${ac_cv_prog_lex_root+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   # The minimal lex program is just a single line: %%.  But some broken lexes
4427 # (Solaris, I think it was) want two %% lines, so accommodate them.
4428 cat >conftest.l <<_ACEOF
4429 %%
4430 %%
4431 _ACEOF
4432 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4433   (eval $LEX conftest.l) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }
4437 if test -f lex.yy.c; then
4438   ac_cv_prog_lex_root=lex.yy
4439 elif test -f lexyy.c; then
4440   ac_cv_prog_lex_root=lexyy
4441 else
4442   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4443 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4444    { (exit 1); exit 1; }; }
4445 fi
4446 fi
4447 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4448 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4449 rm -f conftest.l
4450 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4451
4452 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4453 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4454 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   # POSIX says lex can declare yytext either as a pointer or an array; the
4458 # default is implementation-dependent. Figure out which it is, since
4459 # not all implementations provide the %pointer and %array declarations.
4460 ac_cv_prog_lex_yytext_pointer=no
4461 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4462 ac_save_LIBS=$LIBS
4463 LIBS="$LIBS $LEXLIB"
4464 cat >conftest.$ac_ext <<_ACEOF
4465 `cat $LEX_OUTPUT_ROOT.c`
4466 _ACEOF
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469   (eval $ac_link) 2>conftest.er1
4470   ac_status=$?
4471   grep -v '^ *+' conftest.er1 >conftest.err
4472   rm -f conftest.er1
4473   cat conftest.err >&5
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } &&
4476          { ac_try='test -z "$ac_c_werror_flag"
4477                          || test ! -s conftest.err'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest$ac_exeext'
4484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485   (eval $ac_try) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_prog_lex_yytext_pointer=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 fi
4495 rm -f conftest.err conftest.$ac_objext \
4496       conftest$ac_exeext conftest.$ac_ext
4497 LIBS=$ac_save_LIBS
4498 rm -f "${LEX_OUTPUT_ROOT}.c"
4499
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4502 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4503 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4504
4505 cat >>confdefs.h <<\_ACEOF
4506 #define YYTEXT_POINTER 1
4507 _ACEOF
4508
4509 fi
4510
4511 fi
4512
4513 fi
4514 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4515 echo "${ECHO_T}$ac_cv_has_flex" >&6
4516 if test "$LEX" != "flex"; then
4517   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4518 echo "$as_me: error: flex not found but required" >&2;}
4519    { (exit 1); exit 1; }; }
4520 else
4521   FLEX=flex
4522
4523 fi
4524
4525 echo "$as_me:$LINENO: checking " >&5
4526 echo $ECHO_N "checking ... $ECHO_C" >&6
4527 if test "${llvm_cv_has_bison+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   for ac_prog in 'bison -y' byacc
4531 do
4532   # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_YACC+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   if test -n "$YACC"; then
4540   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547   for ac_exec_ext in '' $ac_executable_extensions; do
4548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549     ac_cv_prog_YACC="$ac_prog"
4550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554 done
4555
4556 fi
4557 fi
4558 YACC=$ac_cv_prog_YACC
4559 if test -n "$YACC"; then
4560   echo "$as_me:$LINENO: result: $YACC" >&5
4561 echo "${ECHO_T}$YACC" >&6
4562 else
4563   echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4565 fi
4566
4567   test -n "$YACC" && break
4568 done
4569 test -n "$YACC" || YACC="yacc"
4570
4571 fi
4572 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4573 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4574 if test "$YACC" != "bison -y"; then
4575   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4576 echo "$as_me: error: bison not found but required" >&2;}
4577    { (exit 1); exit 1; }; }
4578 else
4579   BISON=bison
4580
4581 fi
4582
4583 echo "$as_me:$LINENO: checking for GNU make" >&5
4584 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4585 if test "${llvm_cv_gnu_make_command+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   llvm_cv_gnu_make_command=''
4589  for a in "$MAKE" make gmake gnumake ; do
4590   if test -z "$a" ; then continue ; fi ;
4591   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4592   then
4593    llvm_cv_gnu_make_command=$a ;
4594    break;
4595   fi
4596  done
4597 fi
4598 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4599 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4600  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4601    ifGNUmake='' ;
4602  else
4603    ifGNUmake='#' ;
4604    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4605 echo "${ECHO_T}\"Not found\"" >&6;
4606  fi
4607
4608
4609 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4610 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4611 LN_S=$as_ln_s
4612 if test "$LN_S" = "ln -s"; then
4613   echo "$as_me:$LINENO: result: yes" >&5
4614 echo "${ECHO_T}yes" >&6
4615 else
4616   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4617 echo "${ECHO_T}no, using $LN_S" >&6
4618 fi
4619
4620 # Extract the first word of "cmp", so it can be a program name with args.
4621 set dummy cmp; ac_word=$2
4622 echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624 if test "${ac_cv_path_CMP+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   case $CMP in
4628   [\\/]* | ?:[\\/]*)
4629   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4630   ;;
4631   *)
4632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645
4646   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4647   ;;
4648 esac
4649 fi
4650 CMP=$ac_cv_path_CMP
4651
4652 if test -n "$CMP"; then
4653   echo "$as_me:$LINENO: result: $CMP" >&5
4654 echo "${ECHO_T}$CMP" >&6
4655 else
4656   echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4658 fi
4659
4660 # Extract the first word of "cp", so it can be a program name with args.
4661 set dummy cp; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_path_CP+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   case $CP in
4668   [\\/]* | ?:[\\/]*)
4669   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4670   ;;
4671   *)
4672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685
4686   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4687   ;;
4688 esac
4689 fi
4690 CP=$ac_cv_path_CP
4691
4692 if test -n "$CP"; then
4693   echo "$as_me:$LINENO: result: $CP" >&5
4694 echo "${ECHO_T}$CP" >&6
4695 else
4696   echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4698 fi
4699
4700 # Extract the first word of "date", so it can be a program name with args.
4701 set dummy date; ac_word=$2
4702 echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_DATE+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   case $DATE in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   for ac_exec_ext in '' $ac_executable_extensions; do
4718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724 done
4725
4726   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4727   ;;
4728 esac
4729 fi
4730 DATE=$ac_cv_path_DATE
4731
4732 if test -n "$DATE"; then
4733   echo "$as_me:$LINENO: result: $DATE" >&5
4734 echo "${ECHO_T}$DATE" >&6
4735 else
4736   echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738 fi
4739
4740 # Extract the first word of "find", so it can be a program name with args.
4741 set dummy find; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_path_FIND+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   case $FIND in
4748   [\\/]* | ?:[\\/]*)
4749   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4750   ;;
4751   *)
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765
4766   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4767   ;;
4768 esac
4769 fi
4770 FIND=$ac_cv_path_FIND
4771
4772 if test -n "$FIND"; then
4773   echo "$as_me:$LINENO: result: $FIND" >&5
4774 echo "${ECHO_T}$FIND" >&6
4775 else
4776   echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4778 fi
4779
4780 # Extract the first word of "grep", so it can be a program name with args.
4781 set dummy grep; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_path_GREP+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   case $GREP in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797   for ac_exec_ext in '' $ac_executable_extensions; do
4798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804 done
4805
4806   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4807   ;;
4808 esac
4809 fi
4810 GREP=$ac_cv_path_GREP
4811
4812 if test -n "$GREP"; then
4813   echo "$as_me:$LINENO: result: $GREP" >&5
4814 echo "${ECHO_T}$GREP" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820 # Extract the first word of "mkdir", so it can be a program name with args.
4821 set dummy mkdir; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_path_MKDIR+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   case $MKDIR in
4828   [\\/]* | ?:[\\/]*)
4829   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4830   ;;
4831   *)
4832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845
4846   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4847   ;;
4848 esac
4849 fi
4850 MKDIR=$ac_cv_path_MKDIR
4851
4852 if test -n "$MKDIR"; then
4853   echo "$as_me:$LINENO: result: $MKDIR" >&5
4854 echo "${ECHO_T}$MKDIR" >&6
4855 else
4856   echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4858 fi
4859
4860 # Extract the first word of "mv", so it can be a program name with args.
4861 set dummy mv; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_path_MV+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   case $MV in
4868   [\\/]* | ?:[\\/]*)
4869   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4870   ;;
4871   *)
4872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885
4886   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4887   ;;
4888 esac
4889 fi
4890 MV=$ac_cv_path_MV
4891
4892 if test -n "$MV"; then
4893   echo "$as_me:$LINENO: result: $MV" >&5
4894 echo "${ECHO_T}$MV" >&6
4895 else
4896   echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4898 fi
4899
4900 if test -n "$ac_tool_prefix"; then
4901   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_RANLIB+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -n "$RANLIB"; then
4909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923 done
4924
4925 fi
4926 fi
4927 RANLIB=$ac_cv_prog_RANLIB
4928 if test -n "$RANLIB"; then
4929   echo "$as_me:$LINENO: result: $RANLIB" >&5
4930 echo "${ECHO_T}$RANLIB" >&6
4931 else
4932   echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934 fi
4935
4936 fi
4937 if test -z "$ac_cv_prog_RANLIB"; then
4938   ac_ct_RANLIB=$RANLIB
4939   # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib; ac_word=$2
4941 echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   if test -n "$ac_ct_RANLIB"; then
4947   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956     ac_cv_prog_ac_ct_RANLIB="ranlib"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962
4963   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4964 fi
4965 fi
4966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4967 if test -n "$ac_ct_RANLIB"; then
4968   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4969 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4970 else
4971   echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4973 fi
4974
4975   RANLIB=$ac_ct_RANLIB
4976 else
4977   RANLIB="$ac_cv_prog_RANLIB"
4978 fi
4979
4980 # Extract the first word of "rm", so it can be a program name with args.
4981 set dummy rm; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_RM+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $RM in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005
5006   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5007   ;;
5008 esac
5009 fi
5010 RM=$ac_cv_path_RM
5011
5012 if test -n "$RM"; then
5013   echo "$as_me:$LINENO: result: $RM" >&5
5014 echo "${ECHO_T}$RM" >&6
5015 else
5016   echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5018 fi
5019
5020 # Extract the first word of "sed", so it can be a program name with args.
5021 set dummy sed; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_path_SED+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   case $SED in
5028   [\\/]* | ?:[\\/]*)
5029   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5030   ;;
5031   *)
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045
5046   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5047   ;;
5048 esac
5049 fi
5050 SED=$ac_cv_path_SED
5051
5052 if test -n "$SED"; then
5053   echo "$as_me:$LINENO: result: $SED" >&5
5054 echo "${ECHO_T}$SED" >&6
5055 else
5056   echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5058 fi
5059
5060 # Extract the first word of "tar", so it can be a program name with args.
5061 set dummy tar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_path_TAR+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   case $TAR in
5068   [\\/]* | ?:[\\/]*)
5069   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5070   ;;
5071   *)
5072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077   for ac_exec_ext in '' $ac_executable_extensions; do
5078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084 done
5085
5086   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5087   ;;
5088 esac
5089 fi
5090 TAR=$ac_cv_path_TAR
5091
5092 if test -n "$TAR"; then
5093   echo "$as_me:$LINENO: result: $TAR" >&5
5094 echo "${ECHO_T}$TAR" >&6
5095 else
5096   echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6
5098 fi
5099
5100 # Extract the first word of "Graphviz", so it can be a program name with args.
5101 set dummy Graphviz; ac_word=$2
5102 echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   case $GRAPHVIZ in
5108   [\\/]* | ?:[\\/]*)
5109   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5110   ;;
5111   *)
5112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125
5126   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5127   ;;
5128 esac
5129 fi
5130 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5131
5132 if test -n "$GRAPHVIZ"; then
5133   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5134 echo "${ECHO_T}$GRAPHVIZ" >&6
5135 else
5136   echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5138 fi
5139
5140 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5141
5142 cat >>confdefs.h <<\_ACEOF
5143 #define HAVE_GRAPHVIZ 1
5144 _ACEOF
5145
5146
5147 cat >>confdefs.h <<_ACEOF
5148 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5149 _ACEOF
5150
5151 fi
5152 # Extract the first word of "gv", so it can be a program name with args.
5153 set dummy gv; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_path_GV+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   case $GV in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_exec_ext in '' $ac_executable_extensions; do
5170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176 done
5177
5178   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5179   ;;
5180 esac
5181 fi
5182 GV=$ac_cv_path_GV
5183
5184 if test -n "$GV"; then
5185   echo "$as_me:$LINENO: result: $GV" >&5
5186 echo "${ECHO_T}$GV" >&6
5187 else
5188   echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5190 fi
5191
5192 if test "$GV" != "echo gv" ; then
5193
5194 cat >>confdefs.h <<\_ACEOF
5195 #define HAVE_GV 1
5196 _ACEOF
5197
5198
5199 cat >>confdefs.h <<_ACEOF
5200 #define LLVM_PATH_GV "$GV"
5201 _ACEOF
5202
5203 fi
5204
5205
5206 # Extract the first word of "perl", so it can be a program name with args.
5207 set dummy perl; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_path_PERL+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   case $PERL in
5214   [\\/]* | ?:[\\/]*)
5215   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5216   ;;
5217   *)
5218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231
5232   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5233   ;;
5234 esac
5235 fi
5236 PERL=$ac_cv_path_PERL
5237
5238 if test -n "$PERL"; then
5239   echo "$as_me:$LINENO: result: $PERL" >&5
5240 echo "${ECHO_T}$PERL" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246 if test "$PERL" != "none"; then
5247   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5248 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5249   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5250     echo "$as_me:$LINENO: result: yes" >&5
5251 echo "${ECHO_T}yes" >&6
5252   else
5253     PERL=none
5254     echo "$as_me:$LINENO: result: not found" >&5
5255 echo "${ECHO_T}not found" >&6
5256   fi
5257 fi
5258
5259
5260 if test x"$PERL" = xnone; then
5261    HAVE_PERL=0
5262
5263 else
5264    HAVE_PERL=1
5265
5266 fi
5267
5268 # Find a good install program.  We prefer a C program (faster),
5269 # so one script is as good as another.  But avoid the broken or
5270 # incompatible versions:
5271 # SysV /etc/install, /usr/sbin/install
5272 # SunOS /usr/etc/install
5273 # IRIX /sbin/install
5274 # AIX /bin/install
5275 # AmigaOS /C/install, which installs bootblocks on floppy discs
5276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5279 # OS/2's system install, which has a completely different semantic
5280 # ./install, which can be erroneously created by make from ./install.sh.
5281 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5283 if test -z "$INSTALL"; then
5284 if test "${ac_cv_path_install+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   # Account for people who put trailing slashes in PATH elements.
5293 case $as_dir/ in
5294   ./ | .// | /cC/* | \
5295   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5296   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5297   /usr/ucb/* ) ;;
5298   *)
5299     # OSF1 and SCO ODT 3.0 have their own names for install.
5300     # Don't use installbsd from OSF since it installs stuff as root
5301     # by default.
5302     for ac_prog in ginstall scoinst install; do
5303       for ac_exec_ext in '' $ac_executable_extensions; do
5304         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5305           if test $ac_prog = install &&
5306             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5307             # AIX install.  It has an incompatible calling convention.
5308             :
5309           elif test $ac_prog = install &&
5310             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5311             # program-specific install script used by HP pwplus--don't use.
5312             :
5313           else
5314             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5315             break 3
5316           fi
5317         fi
5318       done
5319     done
5320     ;;
5321 esac
5322 done
5323
5324
5325 fi
5326   if test "${ac_cv_path_install+set}" = set; then
5327     INSTALL=$ac_cv_path_install
5328   else
5329     # As a last resort, use the slow shell script.  We don't cache a
5330     # path for INSTALL within a source directory, because that will
5331     # break other packages using the cache if that directory is
5332     # removed, or if the path is relative.
5333     INSTALL=$ac_install_sh
5334   fi
5335 fi
5336 echo "$as_me:$LINENO: result: $INSTALL" >&5
5337 echo "${ECHO_T}$INSTALL" >&6
5338
5339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5340 # It thinks the first close brace ends the variable substitution.
5341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5342
5343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5344
5345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5346
5347
5348 # Extract the first word of "bzip2", so it can be a program name with args.
5349 set dummy bzip2; ac_word=$2
5350 echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352 if test "${ac_cv_path_BZIP2+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   case $BZIP2 in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365   for ac_exec_ext in '' $ac_executable_extensions; do
5366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372 done
5373
5374   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5375   ;;
5376 esac
5377 fi
5378 BZIP2=$ac_cv_path_BZIP2
5379
5380 if test -n "$BZIP2"; then
5381   echo "$as_me:$LINENO: result: $BZIP2" >&5
5382 echo "${ECHO_T}$BZIP2" >&6
5383 else
5384   echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6
5386 fi
5387
5388 # Extract the first word of "dot", so it can be a program name with args.
5389 set dummy dot; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_path_DOT+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   case $DOT in
5396   [\\/]* | ?:[\\/]*)
5397   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5398   ;;
5399   *)
5400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405   for ac_exec_ext in '' $ac_executable_extensions; do
5406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412 done
5413
5414   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5415   ;;
5416 esac
5417 fi
5418 DOT=$ac_cv_path_DOT
5419
5420 if test -n "$DOT"; then
5421   echo "$as_me:$LINENO: result: $DOT" >&5
5422 echo "${ECHO_T}$DOT" >&6
5423 else
5424   echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5426 fi
5427
5428 # Extract the first word of "doxygen", so it can be a program name with args.
5429 set dummy doxygen; ac_word=$2
5430 echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   case $DOXYGEN in
5436   [\\/]* | ?:[\\/]*)
5437   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5438   ;;
5439   *)
5440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453
5454   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5455   ;;
5456 esac
5457 fi
5458 DOXYGEN=$ac_cv_path_DOXYGEN
5459
5460 if test -n "$DOXYGEN"; then
5461   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5462 echo "${ECHO_T}$DOXYGEN" >&6
5463 else
5464   echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5466 fi
5467
5468 # Extract the first word of "etags", so it can be a program name with args.
5469 set dummy etags; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_path_ETAGS+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   case $ETAGS in
5476   [\\/]* | ?:[\\/]*)
5477   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5478   ;;
5479   *)
5480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483   IFS=$as_save_IFS
5484   test -z "$as_dir" && as_dir=.
5485   for ac_exec_ext in '' $ac_executable_extensions; do
5486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489     break 2
5490   fi
5491 done
5492 done
5493
5494   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5495   ;;
5496 esac
5497 fi
5498 ETAGS=$ac_cv_path_ETAGS
5499
5500 if test -n "$ETAGS"; then
5501   echo "$as_me:$LINENO: result: $ETAGS" >&5
5502 echo "${ECHO_T}$ETAGS" >&6
5503 else
5504   echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5506 fi
5507
5508 # Extract the first word of "groff", so it can be a program name with args.
5509 set dummy groff; ac_word=$2
5510 echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5512 if test "${ac_cv_path_GROFF+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   case $GROFF in
5516   [\\/]* | ?:[\\/]*)
5517   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5518   ;;
5519   *)
5520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532 done
5533
5534   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5535   ;;
5536 esac
5537 fi
5538 GROFF=$ac_cv_path_GROFF
5539
5540 if test -n "$GROFF"; then
5541   echo "$as_me:$LINENO: result: $GROFF" >&5
5542 echo "${ECHO_T}$GROFF" >&6
5543 else
5544   echo "$as_me:$LINENO: result: no" >&5
5545 echo "${ECHO_T}no" >&6
5546 fi
5547
5548 # Extract the first word of "gzip", so it can be a program name with args.
5549 set dummy gzip; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_path_GZIP+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   case $GZIP in
5556   [\\/]* | ?:[\\/]*)
5557   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5558   ;;
5559   *)
5560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_exec_ext in '' $ac_executable_extensions; do
5566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572 done
5573
5574   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5575   ;;
5576 esac
5577 fi
5578 GZIP=$ac_cv_path_GZIP
5579
5580 if test -n "$GZIP"; then
5581   echo "$as_me:$LINENO: result: $GZIP" >&5
5582 echo "${ECHO_T}$GZIP" >&6
5583 else
5584   echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5586 fi
5587
5588 # Extract the first word of "pod2html", so it can be a program name with args.
5589 set dummy pod2html; ac_word=$2
5590 echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5592 if test "${ac_cv_path_POD2HTML+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   case $POD2HTML in
5596   [\\/]* | ?:[\\/]*)
5597   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5598   ;;
5599   *)
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605   for ac_exec_ext in '' $ac_executable_extensions; do
5606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612 done
5613
5614   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5615   ;;
5616 esac
5617 fi
5618 POD2HTML=$ac_cv_path_POD2HTML
5619
5620 if test -n "$POD2HTML"; then
5621   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5622 echo "${ECHO_T}$POD2HTML" >&6
5623 else
5624   echo "$as_me:$LINENO: result: no" >&5
5625 echo "${ECHO_T}no" >&6
5626 fi
5627
5628 # Extract the first word of "pod2man", so it can be a program name with args.
5629 set dummy pod2man; ac_word=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_path_POD2MAN+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   case $POD2MAN in
5636   [\\/]* | ?:[\\/]*)
5637   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5638   ;;
5639   *)
5640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645   for ac_exec_ext in '' $ac_executable_extensions; do
5646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652 done
5653
5654   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5655   ;;
5656 esac
5657 fi
5658 POD2MAN=$ac_cv_path_POD2MAN
5659
5660 if test -n "$POD2MAN"; then
5661   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5662 echo "${ECHO_T}$POD2MAN" >&6
5663 else
5664   echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668 # Extract the first word of "runtest", so it can be a program name with args.
5669 set dummy runtest; ac_word=$2
5670 echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5672 if test "${ac_cv_path_RUNTEST+set}" = set; then
5673   echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675   case $RUNTEST in
5676   [\\/]* | ?:[\\/]*)
5677   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5678   ;;
5679   *)
5680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685   for ac_exec_ext in '' $ac_executable_extensions; do
5686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692 done
5693
5694   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5695   ;;
5696 esac
5697 fi
5698 RUNTEST=$ac_cv_path_RUNTEST
5699
5700 if test -n "$RUNTEST"; then
5701   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5702 echo "${ECHO_T}$RUNTEST" >&6
5703 else
5704   echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5706 fi
5707
5708
5709 no_itcl=true
5710 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5711 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5712
5713 # Check whether --with-tclinclude or --without-tclinclude was given.
5714 if test "${with_tclinclude+set}" = set; then
5715   withval="$with_tclinclude"
5716   with_tclinclude=${withval}
5717 else
5718   with_tclinclude=''
5719 fi;
5720 if test "${ac_cv_path_tclsh+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723
5724 if test x"${with_tclinclude}" != x ; then
5725   if test -f ${with_tclinclude}/tclsh ; then
5726     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5727   elif test -f ${with_tclinclude}/src/tclsh ; then
5728     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5729   else
5730     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5731 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5732    { (exit 1); exit 1; }; }
5733   fi
5734 fi
5735
5736 if test x"${ac_cv_path_tclsh}" = x ; then
5737   echo "$as_me:$LINENO: result: none" >&5
5738 echo "${ECHO_T}none" >&6
5739   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
5740 do
5741   # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_path_TCLSH+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   case $TCLSH in
5749   [\\/]* | ?:[\\/]*)
5750   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5751   ;;
5752   *)
5753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766
5767   ;;
5768 esac
5769 fi
5770 TCLSH=$ac_cv_path_TCLSH
5771
5772 if test -n "$TCLSH"; then
5773   echo "$as_me:$LINENO: result: $TCLSH" >&5
5774 echo "${ECHO_T}$TCLSH" >&6
5775 else
5776   echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5778 fi
5779
5780   test -n "$TCLSH" && break
5781 done
5782
5783   if test x"${TCLSH}" = x ; then
5784     ac_cv_path_tclsh='';
5785   else
5786     ac_cv_path_tclsh="${TCLSH}";
5787   fi
5788 else
5789   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5790 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5791   TCLSH="${ac_cv_path_tclsh}"
5792
5793 fi
5794
5795 fi
5796
5797 # Extract the first word of "zip", so it can be a program name with args.
5798 set dummy zip; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_path_ZIP+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   case $ZIP in
5805   [\\/]* | ?:[\\/]*)
5806   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5807   ;;
5808   *)
5809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814   for ac_exec_ext in '' $ac_executable_extensions; do
5815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821 done
5822
5823   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5824   ;;
5825 esac
5826 fi
5827 ZIP=$ac_cv_path_ZIP
5828
5829 if test -n "$ZIP"; then
5830   echo "$as_me:$LINENO: result: $ZIP" >&5
5831 echo "${ECHO_T}$ZIP" >&6
5832 else
5833   echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5835 fi
5836
5837
5838 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5839 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5840 if test "${llvm_cv_link_use_r+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843    ac_ext=c
5844 ac_cpp='$CPP $CPPFLAGS'
5845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848
5849   oldcflags="$CFLAGS"
5850   CFLAGS="$CFLAGS -Wl,-R."
5851   cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857
5858 int
5859 main ()
5860 {
5861 int main() { return 0; }
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868   (eval $ac_link) 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -z "$ac_c_werror_flag"
5876                          || test ! -s conftest.err'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest$ac_exeext'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; }; then
5888   llvm_cv_link_use_r=yes
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 llvm_cv_link_use_r=no
5894 fi
5895 rm -f conftest.err conftest.$ac_objext \
5896       conftest$ac_exeext conftest.$ac_ext
5897   CFLAGS="$oldcflags"
5898   ac_ext=c
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
5904
5905 fi
5906 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5907 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5908 if test "$llvm_cv_link_use_r" = yes ; then
5909
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_LINK_R 1
5912 _ACEOF
5913
5914   fi
5915
5916
5917
5918
5919 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5920 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5921 if test "${ac_cv_c_const+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h.  */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h.  */
5930
5931 int
5932 main ()
5933 {
5934 /* FIXME: Include the comments suggested by Paul. */
5935 #ifndef __cplusplus
5936   /* Ultrix mips cc rejects this.  */
5937   typedef int charset[2];
5938   const charset x;
5939   /* SunOS 4.1.1 cc rejects this.  */
5940   char const *const *ccp;
5941   char **p;
5942   /* NEC SVR4.0.2 mips cc rejects this.  */
5943   struct point {int x, y;};
5944   static struct point const zero = {0,0};
5945   /* AIX XL C 1.02.0.0 rejects this.
5946      It does not let you subtract one const X* pointer from another in
5947      an arm of an if-expression whose if-part is not a constant
5948      expression */
5949   const char *g = "string";
5950   ccp = &g + (g ? g-g : 0);
5951   /* HPUX 7.0 cc rejects these. */
5952   ++ccp;
5953   p = (char**) ccp;
5954   ccp = (char const *const *) p;
5955   { /* SCO 3.2v4 cc rejects this.  */
5956     char *t;
5957     char const *s = 0 ? (char *) 0 : (char const *) 0;
5958
5959     *t++ = 0;
5960   }
5961   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5962     int x[] = {25, 17};
5963     const int *foo = &x[0];
5964     ++foo;
5965   }
5966   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5967     typedef const int *iptr;
5968     iptr p = 0;
5969     ++p;
5970   }
5971   { /* AIX XL C 1.02.0.0 rejects this saying
5972        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5973     struct s { int j; const int *ap[3]; };
5974     struct s *b; b->j = 5;
5975   }
5976   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5977     const int foo = 10;
5978   }
5979 #endif
5980
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987   (eval $ac_compile) 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } &&
5994          { ac_try='test -z "$ac_c_werror_flag"
5995                          || test ! -s conftest.err'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; } &&
6001          { ac_try='test -s conftest.$ac_objext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_c_const=yes
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 ac_cv_c_const=no
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 fi
6016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6017 echo "${ECHO_T}$ac_cv_c_const" >&6
6018 if test $ac_cv_c_const = no; then
6019
6020 cat >>confdefs.h <<\_ACEOF
6021 #define const
6022 _ACEOF
6023
6024 fi
6025
6026
6027 echo "$as_me:$LINENO: checking for egrep" >&5
6028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6029 if test "${ac_cv_prog_egrep+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6033     then ac_cv_prog_egrep='grep -E'
6034     else ac_cv_prog_egrep='egrep'
6035     fi
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6038 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6039  EGREP=$ac_cv_prog_egrep
6040
6041
6042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6044 if test "${ac_cv_header_stdc+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #include <stdlib.h>
6054 #include <stdarg.h>
6055 #include <string.h>
6056 #include <float.h>
6057
6058 int
6059 main ()
6060 {
6061
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068   (eval $ac_compile) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } &&
6075          { ac_try='test -z "$ac_c_werror_flag"
6076                          || test ! -s conftest.err'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; } &&
6082          { ac_try='test -s conftest.$ac_objext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   ac_cv_header_stdc=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_cv_header_stdc=no
6094 fi
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096
6097 if test $ac_cv_header_stdc = yes; then
6098   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6099   cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <string.h>
6106
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109   $EGREP "memchr" >/dev/null 2>&1; then
6110   :
6111 else
6112   ac_cv_header_stdc=no
6113 fi
6114 rm -f conftest*
6115
6116 fi
6117
6118 if test $ac_cv_header_stdc = yes; then
6119   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #include <stdlib.h>
6127
6128 _ACEOF
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130   $EGREP "free" >/dev/null 2>&1; then
6131   :
6132 else
6133   ac_cv_header_stdc=no
6134 fi
6135 rm -f conftest*
6136
6137 fi
6138
6139 if test $ac_cv_header_stdc = yes; then
6140   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141   if test "$cross_compiling" = yes; then
6142   :
6143 else
6144   cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h.  */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h.  */
6150 #include <ctype.h>
6151 #if ((' ' & 0x0FF) == 0x020)
6152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6154 #else
6155 # define ISLOWER(c) \
6156                    (('a' <= (c) && (c) <= 'i') \
6157                      || ('j' <= (c) && (c) <= 'r') \
6158                      || ('s' <= (c) && (c) <= 'z'))
6159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6160 #endif
6161
6162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6163 int
6164 main ()
6165 {
6166   int i;
6167   for (i = 0; i < 256; i++)
6168     if (XOR (islower (i), ISLOWER (i))
6169         || toupper (i) != TOUPPER (i))
6170       exit(2);
6171   exit (0);
6172 }
6173 _ACEOF
6174 rm -f conftest$ac_exeext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176   (eval $ac_link) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181   (eval $ac_try) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; }; then
6185   :
6186 else
6187   echo "$as_me: program exited with status $ac_status" >&5
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191 ( exit $ac_status )
6192 ac_cv_header_stdc=no
6193 fi
6194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6195 fi
6196 fi
6197 fi
6198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6200 if test $ac_cv_header_stdc = yes; then
6201
6202 cat >>confdefs.h <<\_ACEOF
6203 #define STDC_HEADERS 1
6204 _ACEOF
6205
6206 fi
6207
6208
6209
6210
6211
6212
6213 ac_header_dirent=no
6214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6215   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6216 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6217 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <sys/types.h>
6228 #include <$ac_hdr>
6229
6230 int
6231 main ()
6232 {
6233 if ((DIR *) 0)
6234 return 0;
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241   (eval $ac_compile) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_c_werror_flag"
6249                          || test ! -s conftest.err'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; } &&
6255          { ac_try='test -s conftest.$ac_objext'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; }; then
6261   eval "$as_ac_Header=yes"
6262 else
6263   echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 eval "$as_ac_Header=no"
6267 fi
6268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6269 fi
6270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6273   cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6275 _ACEOF
6276
6277 ac_header_dirent=$ac_hdr; break
6278 fi
6279
6280 done
6281 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6282 if test $ac_header_dirent = dirent.h; then
6283   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6285 if test "${ac_cv_search_opendir+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   ac_func_search_save_LIBS=$LIBS
6289 ac_cv_search_opendir=no
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h.  */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h.  */
6296
6297 /* Override any gcc2 internal prototype to avoid an error.  */
6298 #ifdef __cplusplus
6299 extern "C"
6300 #endif
6301 /* We use char because int might match the return type of a gcc2
6302    builtin and then its argument prototype would still apply.  */
6303 char opendir ();
6304 int
6305 main ()
6306 {
6307 opendir ();
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314   (eval $ac_link) 2>conftest.er1
6315   ac_status=$?
6316   grep -v '^ *+' conftest.er1 >conftest.err
6317   rm -f conftest.er1
6318   cat conftest.err >&5
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); } &&
6321          { ac_try='test -z "$ac_c_werror_flag"
6322                          || test ! -s conftest.err'
6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324   (eval $ac_try) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; } &&
6328          { ac_try='test -s conftest$ac_exeext'
6329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330   (eval $ac_try) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); }; }; then
6334   ac_cv_search_opendir="none required"
6335 else
6336   echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 fi
6340 rm -f conftest.err conftest.$ac_objext \
6341       conftest$ac_exeext conftest.$ac_ext
6342 if test "$ac_cv_search_opendir" = no; then
6343   for ac_lib in dir; do
6344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6345     cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351
6352 /* Override any gcc2 internal prototype to avoid an error.  */
6353 #ifdef __cplusplus
6354 extern "C"
6355 #endif
6356 /* We use char because int might match the return type of a gcc2
6357    builtin and then its argument prototype would still apply.  */
6358 char opendir ();
6359 int
6360 main ()
6361 {
6362 opendir ();
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369   (eval $ac_link) 2>conftest.er1
6370   ac_status=$?
6371   grep -v '^ *+' conftest.er1 >conftest.err
6372   rm -f conftest.er1
6373   cat conftest.err >&5
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -z "$ac_c_werror_flag"
6377                          || test ! -s conftest.err'
6378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379   (eval $ac_try) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; } &&
6383          { ac_try='test -s conftest$ac_exeext'
6384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385   (eval $ac_try) 2>&5
6386   ac_status=$?
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); }; }; then
6389   ac_cv_search_opendir="-l$ac_lib"
6390 break
6391 else
6392   echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 fi
6396 rm -f conftest.err conftest.$ac_objext \
6397       conftest$ac_exeext conftest.$ac_ext
6398   done
6399 fi
6400 LIBS=$ac_func_search_save_LIBS
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6403 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6404 if test "$ac_cv_search_opendir" != no; then
6405   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6406
6407 fi
6408
6409 else
6410   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6412 if test "${ac_cv_search_opendir+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   ac_func_search_save_LIBS=$LIBS
6416 ac_cv_search_opendir=no
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423
6424 /* Override any gcc2 internal prototype to avoid an error.  */
6425 #ifdef __cplusplus
6426 extern "C"
6427 #endif
6428 /* We use char because int might match the return type of a gcc2
6429    builtin and then its argument prototype would still apply.  */
6430 char opendir ();
6431 int
6432 main ()
6433 {
6434 opendir ();
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441   (eval $ac_link) 2>conftest.er1
6442   ac_status=$?
6443   grep -v '^ *+' conftest.er1 >conftest.err
6444   rm -f conftest.er1
6445   cat conftest.err >&5
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); } &&
6448          { ac_try='test -z "$ac_c_werror_flag"
6449                          || test ! -s conftest.err'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; } &&
6455          { ac_try='test -s conftest$ac_exeext'
6456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457   (eval $ac_try) 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; }; then
6461   ac_cv_search_opendir="none required"
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 fi
6467 rm -f conftest.err conftest.$ac_objext \
6468       conftest$ac_exeext conftest.$ac_ext
6469 if test "$ac_cv_search_opendir" = no; then
6470   for ac_lib in x; do
6471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6472     cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h.  */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h.  */
6478
6479 /* Override any gcc2 internal prototype to avoid an error.  */
6480 #ifdef __cplusplus
6481 extern "C"
6482 #endif
6483 /* We use char because int might match the return type of a gcc2
6484    builtin and then its argument prototype would still apply.  */
6485 char opendir ();
6486 int
6487 main ()
6488 {
6489 opendir ();
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496   (eval $ac_link) 2>conftest.er1
6497   ac_status=$?
6498   grep -v '^ *+' conftest.er1 >conftest.err
6499   rm -f conftest.er1
6500   cat conftest.err >&5
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); } &&
6503          { ac_try='test -z "$ac_c_werror_flag"
6504                          || test ! -s conftest.err'
6505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506   (eval $ac_try) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; } &&
6510          { ac_try='test -s conftest$ac_exeext'
6511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512   (eval $ac_try) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); }; }; then
6516   ac_cv_search_opendir="-l$ac_lib"
6517 break
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522 fi
6523 rm -f conftest.err conftest.$ac_objext \
6524       conftest$ac_exeext conftest.$ac_ext
6525   done
6526 fi
6527 LIBS=$ac_func_search_save_LIBS
6528 fi
6529 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6530 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6531 if test "$ac_cv_search_opendir" != no; then
6532   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6533
6534 fi
6535
6536 fi
6537
6538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6549                   inttypes.h stdint.h unistd.h
6550 do
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552 echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 $ac_includes_default
6564
6565 #include <$ac_header>
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569   (eval $ac_compile) 2>conftest.er1
6570   ac_status=$?
6571   grep -v '^ *+' conftest.er1 >conftest.err
6572   rm -f conftest.er1
6573   cat conftest.err >&5
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -z "$ac_c_werror_flag"
6577                          || test ! -s conftest.err'
6578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579   (eval $ac_try) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); }; } &&
6583          { ac_try='test -s conftest.$ac_objext'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   eval "$as_ac_Header=yes"
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 eval "$as_ac_Header=no"
6595 fi
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 fi
6598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6601   cat >>confdefs.h <<_ACEOF
6602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 _ACEOF
6604
6605 fi
6606
6607 done
6608
6609
6610
6611 for ac_header in dlfcn.h
6612 do
6613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615   echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 fi
6620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622 else
6623   # Is the header compilable?
6624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h.  */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h.  */
6632 $ac_includes_default
6633 #include <$ac_header>
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637   (eval $ac_compile) 2>conftest.er1
6638   ac_status=$?
6639   grep -v '^ *+' conftest.er1 >conftest.err
6640   rm -f conftest.er1
6641   cat conftest.err >&5
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } &&
6644          { ac_try='test -z "$ac_c_werror_flag"
6645                          || test ! -s conftest.err'
6646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647   (eval $ac_try) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); }; } &&
6651          { ac_try='test -s conftest.$ac_objext'
6652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653   (eval $ac_try) 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }; }; then
6657   ac_header_compiler=yes
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_header_compiler=no
6663 fi
6664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6666 echo "${ECHO_T}$ac_header_compiler" >&6
6667
6668 # Is the header present?
6669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 #include <$ac_header>
6678 _ACEOF
6679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6681   ac_status=$?
6682   grep -v '^ *+' conftest.er1 >conftest.err
6683   rm -f conftest.er1
6684   cat conftest.err >&5
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } >/dev/null; then
6687   if test -s conftest.err; then
6688     ac_cpp_err=$ac_c_preproc_warn_flag
6689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6690   else
6691     ac_cpp_err=
6692   fi
6693 else
6694   ac_cpp_err=yes
6695 fi
6696 if test -z "$ac_cpp_err"; then
6697   ac_header_preproc=yes
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702   ac_header_preproc=no
6703 fi
6704 rm -f conftest.err conftest.$ac_ext
6705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6706 echo "${ECHO_T}$ac_header_preproc" >&6
6707
6708 # So?  What about this header?
6709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710   yes:no: )
6711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6715     ac_header_preproc=yes
6716     ;;
6717   no:yes:* )
6718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6730     (
6731       cat <<\_ASBOX
6732 ## ----------------------------------- ##
6733 ## Report this to llvmbugs@cs.uiuc.edu ##
6734 ## ----------------------------------- ##
6735 _ASBOX
6736     ) |
6737       sed "s/^/$as_me: WARNING:     /" >&2
6738     ;;
6739 esac
6740 echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   eval "$as_ac_Header=\$ac_header_preproc"
6746 fi
6747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6749
6750 fi
6751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6752   cat >>confdefs.h <<_ACEOF
6753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754 _ACEOF
6755
6756 fi
6757
6758 done
6759
6760 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6761 if test "${enable_ltdl_install+set}" = set; then
6762   enableval="$enable_ltdl_install"
6763
6764 fi;
6765
6766
6767
6768 if test x"${enable_ltdl_install-no}" != xno; then
6769   INSTALL_LTDL_TRUE=
6770   INSTALL_LTDL_FALSE='#'
6771 else
6772   INSTALL_LTDL_TRUE='#'
6773   INSTALL_LTDL_FALSE=
6774 fi
6775
6776
6777
6778 if test x"${enable_ltdl_convenience-no}" != xno; then
6779   CONVENIENCE_LTDL_TRUE=
6780   CONVENIENCE_LTDL_FALSE='#'
6781 else
6782   CONVENIENCE_LTDL_TRUE='#'
6783   CONVENIENCE_LTDL_FALSE=
6784 fi
6785
6786
6787 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6789 library_names_spec=
6790 libname_spec='lib$name'
6791 soname_spec=
6792 shrext_cmds=".so"
6793 postinstall_cmds=
6794 postuninstall_cmds=
6795 finish_cmds=
6796 finish_eval=
6797 shlibpath_var=
6798 shlibpath_overrides_runpath=unknown
6799 version_type=none
6800 dynamic_linker="$host_os ld.so"
6801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6802 if test "$GCC" = yes; then
6803   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6804   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6805     # if the path contains ";" then we assume it to be the separator
6806     # otherwise default to the standard path separator (i.e. ":") - it is
6807     # assumed that no part of a normal pathname contains ";" but that should
6808     # okay in the real world where ";" in dirpaths is itself problematic.
6809     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6810   else
6811     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6812   fi
6813 else
6814   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6815 fi
6816 need_lib_prefix=unknown
6817 hardcode_into_libs=no
6818
6819 # when you set need_version to no, make sure it does not cause -set_version
6820 # flags to be left without arguments
6821 need_version=unknown
6822
6823 case $host_os in
6824 aix3*)
6825   version_type=linux
6826   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6827   shlibpath_var=LIBPATH
6828
6829   # AIX 3 has no versioning support, so we append a major version to the name.
6830   soname_spec='${libname}${release}${shared_ext}$major'
6831   ;;
6832
6833 aix4* | aix5*)
6834   version_type=linux
6835   need_lib_prefix=no
6836   need_version=no
6837   hardcode_into_libs=yes
6838   if test "$host_cpu" = ia64; then
6839     # AIX 5 supports IA64
6840     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6841     shlibpath_var=LD_LIBRARY_PATH
6842   else
6843     # With GCC up to 2.95.x, collect2 would create an import file
6844     # for dependence libraries.  The import file would start with
6845     # the line `#! .'.  This would cause the generated library to
6846     # depend on `.', always an invalid library.  This was fixed in
6847     # development snapshots of GCC prior to 3.0.
6848     case $host_os in
6849       aix4 | aix4.[01] | aix4.[01].*)
6850       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6851            echo ' yes '
6852            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6853         :
6854       else
6855         can_build_shared=no
6856       fi
6857       ;;
6858     esac
6859     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6860     # soname into executable. Probably we can add versioning support to
6861     # collect2, so additional links can be useful in future.
6862     if test "$aix_use_runtimelinking" = yes; then
6863       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6864       # instead of lib<name>.a to let people know that these are not
6865       # typical AIX shared libraries.
6866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867     else
6868       # We preserve .a as extension for shared libraries through AIX4.2
6869       # and later when we are not doing run time linking.
6870       library_names_spec='${libname}${release}.a $libname.a'
6871       soname_spec='${libname}${release}${shared_ext}$major'
6872     fi
6873     shlibpath_var=LIBPATH
6874   fi
6875   ;;
6876
6877 amigaos*)
6878   library_names_spec='$libname.ixlibrary $libname.a'
6879   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6880   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'
6881   ;;
6882
6883 beos*)
6884   library_names_spec='${libname}${shared_ext}'
6885   dynamic_linker="$host_os ld.so"
6886   shlibpath_var=LIBRARY_PATH
6887   ;;
6888
6889 bsdi[45]*)
6890   version_type=linux
6891   need_version=no
6892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6893   soname_spec='${libname}${release}${shared_ext}$major'
6894   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6895   shlibpath_var=LD_LIBRARY_PATH
6896   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6897   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6898   # the default ld.so.conf also contains /usr/contrib/lib and
6899   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6900   # libtool to hard-code these into programs
6901   ;;
6902
6903 cygwin* | mingw* | pw32*)
6904   version_type=windows
6905   shrext_cmds=".dll"
6906   need_version=no
6907   need_lib_prefix=no
6908
6909   case $GCC,$host_os in
6910   yes,cygwin* | yes,mingw* | yes,pw32*)
6911     library_names_spec='$libname.dll.a'
6912     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6913     postinstall_cmds='base_file=`basename \${file}`~
6914       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6915       dldir=$destdir/`dirname \$dlpath`~
6916       test -d \$dldir || mkdir -p \$dldir~
6917       $install_prog $dir/$dlname \$dldir/$dlname'
6918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6919       dlpath=$dir/\$dldll~
6920        $rm \$dlpath'
6921     shlibpath_overrides_runpath=yes
6922
6923     case $host_os in
6924     cygwin*)
6925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6927       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6928       ;;
6929     mingw*)
6930       # MinGW DLLs use traditional 'lib' prefix
6931       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6932       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6933       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6934         # It is most probably a Windows format PATH printed by
6935         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6936         # path with ; separators, and with drive letters. We can handle the
6937         # drive letters (cygwin fileutils understands them), so leave them,
6938         # especially as we might pass files found there to a mingw objdump,
6939         # which wouldn't understand a cygwinified path. Ahh.
6940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6941       else
6942         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6943       fi
6944       ;;
6945     pw32*)
6946       # pw32 DLLs use 'pw' prefix rather than 'lib'
6947       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6948       ;;
6949     esac
6950     ;;
6951
6952   *)
6953     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6954     ;;
6955   esac
6956   dynamic_linker='Win32 ld.exe'
6957   # FIXME: first we should search . and the directory the executable is in
6958   shlibpath_var=PATH
6959   ;;
6960
6961 darwin* | rhapsody*)
6962   dynamic_linker="$host_os dyld"
6963   version_type=darwin
6964   need_lib_prefix=no
6965   need_version=no
6966   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6967   soname_spec='${libname}${release}${major}$shared_ext'
6968   shlibpath_overrides_runpath=yes
6969   shlibpath_var=DYLD_LIBRARY_PATH
6970   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6971   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6972   if test "$GCC" = yes; then
6973     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"`
6974   else
6975     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6976   fi
6977   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6978   ;;
6979
6980 dgux*)
6981   version_type=linux
6982   need_lib_prefix=no
6983   need_version=no
6984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6985   soname_spec='${libname}${release}${shared_ext}$major'
6986   shlibpath_var=LD_LIBRARY_PATH
6987   ;;
6988
6989 freebsd1*)
6990   dynamic_linker=no
6991   ;;
6992
6993 kfreebsd*-gnu)
6994   version_type=linux
6995   need_lib_prefix=no
6996   need_version=no
6997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6998   soname_spec='${libname}${release}${shared_ext}$major'
6999   shlibpath_var=LD_LIBRARY_PATH
7000   shlibpath_overrides_runpath=no
7001   hardcode_into_libs=yes
7002   dynamic_linker='GNU ld.so'
7003   ;;
7004
7005 freebsd*)
7006   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7007   version_type=freebsd-$objformat
7008   case $version_type in
7009     freebsd-elf*)
7010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7011       need_version=no
7012       need_lib_prefix=no
7013       ;;
7014     freebsd-*)
7015       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7016       need_version=yes
7017       ;;
7018   esac
7019   shlibpath_var=LD_LIBRARY_PATH
7020   case $host_os in
7021   freebsd2*)
7022     shlibpath_overrides_runpath=yes
7023     ;;
7024   freebsd3.01* | freebsdelf3.01*)
7025     shlibpath_overrides_runpath=yes
7026     hardcode_into_libs=yes
7027     ;;
7028   *) # from 3.2 on
7029     shlibpath_overrides_runpath=no
7030     hardcode_into_libs=yes
7031     ;;
7032   esac
7033   ;;
7034
7035 gnu*)
7036   version_type=linux
7037   need_lib_prefix=no
7038   need_version=no
7039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7040   soname_spec='${libname}${release}${shared_ext}$major'
7041   shlibpath_var=LD_LIBRARY_PATH
7042   hardcode_into_libs=yes
7043   ;;
7044
7045 hpux9* | hpux10* | hpux11*)
7046   # Give a soname corresponding to the major version so that dld.sl refuses to
7047   # link against other versions.
7048   version_type=sunos
7049   need_lib_prefix=no
7050   need_version=no
7051   case "$host_cpu" in
7052   ia64*)
7053     shrext_cmds='.so'
7054     hardcode_into_libs=yes
7055     dynamic_linker="$host_os dld.so"
7056     shlibpath_var=LD_LIBRARY_PATH
7057     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059     soname_spec='${libname}${release}${shared_ext}$major'
7060     if test "X$HPUX_IA64_MODE" = X32; then
7061       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7062     else
7063       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7064     fi
7065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7066     ;;
7067    hppa*64*)
7068      shrext_cmds='.sl'
7069      hardcode_into_libs=yes
7070      dynamic_linker="$host_os dld.sl"
7071      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7072      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7074      soname_spec='${libname}${release}${shared_ext}$major'
7075      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7076      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7077      ;;
7078    *)
7079     shrext_cmds='.sl'
7080     dynamic_linker="$host_os dld.sl"
7081     shlibpath_var=SHLIB_PATH
7082     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7084     soname_spec='${libname}${release}${shared_ext}$major'
7085     ;;
7086   esac
7087   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7088   postinstall_cmds='chmod 555 $lib'
7089   ;;
7090
7091 irix5* | irix6* | nonstopux*)
7092   case $host_os in
7093     nonstopux*) version_type=nonstopux ;;
7094     *)
7095         if test "$lt_cv_prog_gnu_ld" = yes; then
7096                 version_type=linux
7097         else
7098                 version_type=irix
7099         fi ;;
7100   esac
7101   need_lib_prefix=no
7102   need_version=no
7103   soname_spec='${libname}${release}${shared_ext}$major'
7104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7105   case $host_os in
7106   irix5* | nonstopux*)
7107     libsuff= shlibsuff=
7108     ;;
7109   *)
7110     case $LD in # libtool.m4 will add one of these switches to LD
7111     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7112       libsuff= shlibsuff= libmagic=32-bit;;
7113     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7114       libsuff=32 shlibsuff=N32 libmagic=N32;;
7115     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7116       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7117     *) libsuff= shlibsuff= libmagic=never-match;;
7118     esac
7119     ;;
7120   esac
7121   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7122   shlibpath_overrides_runpath=no
7123   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7124   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7125   hardcode_into_libs=yes
7126   ;;
7127
7128 # No shared lib support for Linux oldld, aout, or coff.
7129 linux*oldld* | linux*aout* | linux*coff*)
7130   dynamic_linker=no
7131   ;;
7132
7133 # This must be Linux ELF.
7134 linux*)
7135   version_type=linux
7136   need_lib_prefix=no
7137   need_version=no
7138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7139   soname_spec='${libname}${release}${shared_ext}$major'
7140   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7141   shlibpath_var=LD_LIBRARY_PATH
7142   shlibpath_overrides_runpath=no
7143   # This implies no fast_install, which is unacceptable.
7144   # Some rework will be needed to allow for fast_install
7145   # before this can be enabled.
7146   hardcode_into_libs=yes
7147
7148   # Append ld.so.conf contents to the search path
7149   if test -f /etc/ld.so.conf; then
7150     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7151     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7152   fi
7153
7154   # We used to test for /lib/ld.so.1 and disable shared libraries on
7155   # powerpc, because MkLinux only supported shared libraries with the
7156   # GNU dynamic linker.  Since this was broken with cross compilers,
7157   # most powerpc-linux boxes support dynamic linking these days and
7158   # people can always --disable-shared, the test was removed, and we
7159   # assume the GNU/Linux dynamic linker is in use.
7160   dynamic_linker='GNU/Linux ld.so'
7161   ;;
7162
7163 knetbsd*-gnu)
7164   version_type=linux
7165   need_lib_prefix=no
7166   need_version=no
7167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7168   soname_spec='${libname}${release}${shared_ext}$major'
7169   shlibpath_var=LD_LIBRARY_PATH
7170   shlibpath_overrides_runpath=no
7171   hardcode_into_libs=yes
7172   dynamic_linker='GNU ld.so'
7173   ;;
7174
7175 netbsd*)
7176   version_type=sunos
7177   need_lib_prefix=no
7178   need_version=no
7179   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7181     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7182     dynamic_linker='NetBSD (a.out) ld.so'
7183   else
7184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7185     soname_spec='${libname}${release}${shared_ext}$major'
7186     dynamic_linker='NetBSD ld.elf_so'
7187   fi
7188   shlibpath_var=LD_LIBRARY_PATH
7189   shlibpath_overrides_runpath=yes
7190   hardcode_into_libs=yes
7191   ;;
7192
7193 newsos6)
7194   version_type=linux
7195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7196   shlibpath_var=LD_LIBRARY_PATH
7197   shlibpath_overrides_runpath=yes
7198   ;;
7199
7200 nto-qnx*)
7201   version_type=linux
7202   need_lib_prefix=no
7203   need_version=no
7204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7205   soname_spec='${libname}${release}${shared_ext}$major'
7206   shlibpath_var=LD_LIBRARY_PATH
7207   shlibpath_overrides_runpath=yes
7208   ;;
7209
7210 openbsd*)
7211   version_type=sunos
7212   need_lib_prefix=no
7213   need_version=no
7214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7216   shlibpath_var=LD_LIBRARY_PATH
7217   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7218     case $host_os in
7219       openbsd2.[89] | openbsd2.[89].*)
7220         shlibpath_overrides_runpath=no
7221         ;;
7222       *)
7223         shlibpath_overrides_runpath=yes
7224         ;;
7225       esac
7226   else
7227     shlibpath_overrides_runpath=yes
7228   fi
7229   ;;
7230
7231 os2*)
7232   libname_spec='$name'
7233   shrext_cmds=".dll"
7234   need_lib_prefix=no
7235   library_names_spec='$libname${shared_ext} $libname.a'
7236   dynamic_linker='OS/2 ld.exe'
7237   shlibpath_var=LIBPATH
7238   ;;
7239
7240 osf3* | osf4* | osf5*)
7241   version_type=osf
7242   need_lib_prefix=no
7243   need_version=no
7244   soname_spec='${libname}${release}${shared_ext}$major'
7245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7246   shlibpath_var=LD_LIBRARY_PATH
7247   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7248   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7249   ;;
7250
7251 sco3.2v5*)
7252   version_type=osf
7253   soname_spec='${libname}${release}${shared_ext}$major'
7254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255   shlibpath_var=LD_LIBRARY_PATH
7256   ;;
7257
7258 solaris*)
7259   version_type=linux
7260   need_lib_prefix=no
7261   need_version=no
7262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7263   soname_spec='${libname}${release}${shared_ext}$major'
7264   shlibpath_var=LD_LIBRARY_PATH
7265   shlibpath_overrides_runpath=yes
7266   hardcode_into_libs=yes
7267   # ldd complains unless libraries are executable
7268   postinstall_cmds='chmod +x $lib'
7269   ;;
7270
7271 sunos4*)
7272   version_type=sunos
7273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7274   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7275   shlibpath_var=LD_LIBRARY_PATH
7276   shlibpath_overrides_runpath=yes
7277   if test "$with_gnu_ld" = yes; then
7278     need_lib_prefix=no
7279   fi
7280   need_version=yes
7281   ;;
7282
7283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7284   version_type=linux
7285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286   soname_spec='${libname}${release}${shared_ext}$major'
7287   shlibpath_var=LD_LIBRARY_PATH
7288   case $host_vendor in
7289     sni)
7290       shlibpath_overrides_runpath=no
7291       need_lib_prefix=no
7292       export_dynamic_flag_spec='${wl}-Blargedynsym'
7293       runpath_var=LD_RUN_PATH
7294       ;;
7295     siemens)
7296       need_lib_prefix=no
7297       ;;
7298     motorola)
7299       need_lib_prefix=no
7300       need_version=no
7301       shlibpath_overrides_runpath=no
7302       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7303       ;;
7304   esac
7305   ;;
7306
7307 sysv4*MP*)
7308   if test -d /usr/nec ;then
7309     version_type=linux
7310     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7311     soname_spec='$libname${shared_ext}.$major'
7312     shlibpath_var=LD_LIBRARY_PATH
7313   fi
7314   ;;
7315
7316 uts4*)
7317   version_type=linux
7318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7319   soname_spec='${libname}${release}${shared_ext}$major'
7320   shlibpath_var=LD_LIBRARY_PATH
7321   ;;
7322
7323 *)
7324   dynamic_linker=no
7325   ;;
7326 esac
7327 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7328 echo "${ECHO_T}$dynamic_linker" >&6
7329 test "$dynamic_linker" = no && can_build_shared=no
7330
7331
7332 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7333 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7334 if test "${libltdl_cv_shlibext+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337
7338 module=yes
7339 eval libltdl_cv_shlibext=$shrext_cmds
7340
7341 fi
7342 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7343 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7344 if test -n "$libltdl_cv_shlibext"; then
7345
7346 cat >>confdefs.h <<_ACEOF
7347 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7348 _ACEOF
7349
7350 fi
7351
7352
7353 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7354 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7355 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   libltdl_cv_shlibpath_var="$shlibpath_var"
7359 fi
7360 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7361 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7362 if test -n "$libltdl_cv_shlibpath_var"; then
7363
7364 cat >>confdefs.h <<_ACEOF
7365 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7366 _ACEOF
7367
7368 fi
7369
7370
7371 echo "$as_me:$LINENO: checking for the default library search path" >&5
7372 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7373 if test "${libltdl_cv_sys_search_path+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7377 fi
7378 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7379 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7380 if test -n "$libltdl_cv_sys_search_path"; then
7381   sys_search_path=
7382   for dir in $libltdl_cv_sys_search_path; do
7383     if test -z "$sys_search_path"; then
7384       sys_search_path="$dir"
7385     else
7386       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7387     fi
7388   done
7389
7390 cat >>confdefs.h <<_ACEOF
7391 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7392 _ACEOF
7393
7394 fi
7395
7396 echo "$as_me:$LINENO: checking for objdir" >&5
7397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7398 if test "${libltdl_cv_objdir+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   libltdl_cv_objdir="$objdir"
7402   if test -n "$objdir"; then
7403     :
7404   else
7405     rm -f .libs 2>/dev/null
7406     mkdir .libs 2>/dev/null
7407     if test -d .libs; then
7408       libltdl_cv_objdir=.libs
7409     else
7410       # MS-DOS does not allow filenames that begin with a dot.
7411       libltdl_cv_objdir=_libs
7412     fi
7413   rmdir .libs 2>/dev/null
7414   fi
7415
7416 fi
7417 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7418 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7419
7420 cat >>confdefs.h <<_ACEOF
7421 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7422 _ACEOF
7423
7424
7425 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7426 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7427 if test "${lt_cv_path_NM+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   if test -n "$NM"; then
7431   # Let the user override the test.
7432   lt_cv_path_NM="$NM"
7433 else
7434   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7435   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7436     IFS="$lt_save_ifs"
7437     test -z "$ac_dir" && ac_dir=.
7438     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7439     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7440       # Check to see if the nm accepts a BSD-compat flag.
7441       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7442       #   nm: unknown option "B" ignored
7443       # Tru64's nm complains that /dev/null is an invalid object file
7444       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7445       */dev/null* | *'Invalid file or object type'*)
7446         lt_cv_path_NM="$tmp_nm -B"
7447         break
7448         ;;
7449       *)
7450         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7451         */dev/null*)
7452           lt_cv_path_NM="$tmp_nm -p"
7453           break
7454           ;;
7455         *)
7456           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7457           continue # so that we can try to find one that supports BSD flags
7458           ;;
7459         esac
7460       esac
7461     fi
7462   done
7463   IFS="$lt_save_ifs"
7464   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7465 fi
7466 fi
7467 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7468 echo "${ECHO_T}$lt_cv_path_NM" >&6
7469 NM="$lt_cv_path_NM"
7470
7471
7472
7473
7474
7475 # Check for command to grab the raw symbol name followed by C symbol from nm.
7476 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7477 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481
7482 # These are sane defaults that work on at least a few old systems.
7483 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7484
7485 # Character class describing NM global symbol codes.
7486 symcode='[BCDEGRST]'
7487
7488 # Regexp to match symbols that can be accessed directly from C.
7489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7490
7491 # Transform the above into a raw symbol and a C symbol.
7492 symxfrm='\1 \2\3 \3'
7493
7494 # Transform an extracted symbol line into a proper C declaration
7495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7496
7497 # Transform an extracted symbol line into symbol name and symbol address
7498 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'"
7499
7500 # Define system-specific variables.
7501 case $host_os in
7502 aix*)
7503   symcode='[BCDT]'
7504   ;;
7505 cygwin* | mingw* | pw32*)
7506   symcode='[ABCDGISTW]'
7507   ;;
7508 hpux*) # Its linker distinguishes data from code symbols
7509   if test "$host_cpu" = ia64; then
7510     symcode='[ABCDEGRST]'
7511   fi
7512   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7513   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'"
7514   ;;
7515 linux*)
7516   if test "$host_cpu" = ia64; then
7517     symcode='[ABCDGIRSTW]'
7518     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519     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'"
7520   fi
7521   ;;
7522 irix* | nonstopux*)
7523   symcode='[BCDEGRST]'
7524   ;;
7525 osf*)
7526   symcode='[BCDEGQRST]'
7527   ;;
7528 solaris* | sysv5*)
7529   symcode='[BDRT]'
7530   ;;
7531 sysv4)
7532   symcode='[DFNSTU]'
7533   ;;
7534 esac
7535
7536 # Handle CRLF in mingw tool chain
7537 opt_cr=
7538 case $build_os in
7539 mingw*)
7540   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7541   ;;
7542 esac
7543
7544 # If we're using GNU nm, then use its standard symbol codes.
7545 case `$NM -V 2>&1` in
7546 *GNU* | *'with BFD'*)
7547   symcode='[ABCDGIRSTW]' ;;
7548 esac
7549
7550 # Try without a prefix undercore, then with it.
7551 for ac_symprfx in "" "_"; do
7552
7553   # Write the raw and C identifiers.
7554   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7555
7556   # Check to see that the pipe works correctly.
7557   pipe_works=no
7558
7559   rm -f conftest*
7560   cat > conftest.$ac_ext <<EOF
7561 #ifdef __cplusplus
7562 extern "C" {
7563 #endif
7564 char nm_test_var;
7565 void nm_test_func(){}
7566 #ifdef __cplusplus
7567 }
7568 #endif
7569 int main(){nm_test_var='a';nm_test_func();return(0);}
7570 EOF
7571
7572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573   (eval $ac_compile) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; then
7577     # Now try to grab the symbols.
7578     nlist=conftest.nm
7579     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7580   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } && test -s "$nlist"; then
7584       # Try sorting and uniquifying the output.
7585       if sort "$nlist" | uniq > "$nlist"T; then
7586         mv -f "$nlist"T "$nlist"
7587       else
7588         rm -f "$nlist"T
7589       fi
7590
7591       # Make sure that we snagged all the symbols we need.
7592       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7593         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7594           cat <<EOF > conftest.$ac_ext
7595 #ifdef __cplusplus
7596 extern "C" {
7597 #endif
7598
7599 EOF
7600           # Now generate the symbol file.
7601           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7602
7603           cat <<EOF >> conftest.$ac_ext
7604 #if defined (__STDC__) && __STDC__
7605 # define lt_ptr_t void *
7606 #else
7607 # define lt_ptr_t char *
7608 # define const
7609 #endif
7610
7611 /* The mapping between symbol names and symbols. */
7612 const struct {
7613   const char *name;
7614   lt_ptr_t address;
7615 }
7616 lt_preloaded_symbols[] =
7617 {
7618 EOF
7619           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7620           cat <<\EOF >> conftest.$ac_ext
7621   {0, (lt_ptr_t) 0}
7622 };
7623
7624 #ifdef __cplusplus
7625 }
7626 #endif
7627 EOF
7628           # Now try linking the two files.
7629           mv conftest.$ac_objext conftstm.$ac_objext
7630           lt_save_LIBS="$LIBS"
7631           lt_save_CFLAGS="$CFLAGS"
7632           LIBS="conftstm.$ac_objext"
7633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7634           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7639             pipe_works=yes
7640           fi
7641           LIBS="$lt_save_LIBS"
7642           CFLAGS="$lt_save_CFLAGS"
7643         else
7644           echo "cannot find nm_test_func in $nlist" >&5
7645         fi
7646       else
7647         echo "cannot find nm_test_var in $nlist" >&5
7648       fi
7649     else
7650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7651     fi
7652   else
7653     echo "$progname: failed program was:" >&5
7654     cat conftest.$ac_ext >&5
7655   fi
7656   rm -f conftest* conftst*
7657
7658   # Do not use the global_symbol_pipe unless it works.
7659   if test "$pipe_works" = yes; then
7660     break
7661   else
7662     lt_cv_sys_global_symbol_pipe=
7663   fi
7664 done
7665
7666 fi
7667
7668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7669   lt_cv_sys_global_symbol_to_cdecl=
7670 fi
7671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7672   echo "$as_me:$LINENO: result: failed" >&5
7673 echo "${ECHO_T}failed" >&6
7674 else
7675   echo "$as_me:$LINENO: result: ok" >&5
7676 echo "${ECHO_T}ok" >&6
7677 fi
7678
7679
7680 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7686     libltdl_cv_preloaded_symbols=yes
7687   else
7688     libltdl_cv_preloaded_symbols=no
7689   fi
7690
7691 fi
7692 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7695
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_PRELOADED_SYMBOLS 1
7698 _ACEOF
7699
7700 fi
7701
7702 LIBADD_DL=
7703
7704 ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711 echo "$as_me:$LINENO: checking for shl_load" >&5
7712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7713 if test "${ac_cv_func_shl_load+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7724 #define shl_load innocuous_shl_load
7725
7726 /* System header to define __stub macros and hopefully few prototypes,
7727     which can conflict with char shl_load (); below.
7728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729     <limits.h> exists even on freestanding compilers.  */
7730
7731 #ifdef __STDC__
7732 # include <limits.h>
7733 #else
7734 # include <assert.h>
7735 #endif
7736
7737 #undef shl_load
7738
7739 /* Override any gcc2 internal prototype to avoid an error.  */
7740 #ifdef __cplusplus
7741 extern "C"
7742 {
7743 #endif
7744 /* We use char because int might match the return type of a gcc2
7745    builtin and then its argument prototype would still apply.  */
7746 char shl_load ();
7747 /* The GNU C library defines this for functions which it implements
7748     to always fail with ENOSYS.  Some functions are actually named
7749     something starting with __ and the normal name is an alias.  */
7750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7751 choke me
7752 #else
7753 char (*f) () = shl_load;
7754 #endif
7755 #ifdef __cplusplus
7756 }
7757 #endif
7758
7759 int
7760 main ()
7761 {
7762 return f != shl_load;
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769   (eval $ac_link) 2>conftest.er1
7770   ac_status=$?
7771   grep -v '^ *+' conftest.er1 >conftest.err
7772   rm -f conftest.er1
7773   cat conftest.err >&5
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); } &&
7776          { ac_try='test -z "$ac_c_werror_flag"
7777                          || test ! -s conftest.err'
7778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779   (eval $ac_try) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; } &&
7783          { ac_try='test -s conftest$ac_exeext'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   ac_cv_func_shl_load=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_cv_func_shl_load=no
7795 fi
7796 rm -f conftest.err conftest.$ac_objext \
7797       conftest$ac_exeext conftest.$ac_ext
7798 fi
7799 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7800 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7801 if test $ac_cv_func_shl_load = yes; then
7802
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_SHL_LOAD 1
7805 _ACEOF
7806
7807 else
7808   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7809 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7810 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-ldld  $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821
7822 /* Override any gcc2 internal prototype to avoid an error.  */
7823 #ifdef __cplusplus
7824 extern "C"
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 int
7830 main ()
7831 {
7832 shl_load ();
7833   ;
7834   return 0;
7835 }
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839   (eval $ac_link) 2>conftest.er1
7840   ac_status=$?
7841   grep -v '^ *+' conftest.er1 >conftest.err
7842   rm -f conftest.er1
7843   cat conftest.err >&5
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } &&
7846          { ac_try='test -z "$ac_c_werror_flag"
7847                          || test ! -s conftest.err'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; } &&
7853          { ac_try='test -s conftest$ac_exeext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_cv_lib_dld_shl_load=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 ac_cv_lib_dld_shl_load=no
7865 fi
7866 rm -f conftest.err conftest.$ac_objext \
7867       conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7869 fi
7870 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7871 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7872 if test $ac_cv_lib_dld_shl_load = yes; then
7873
7874 cat >>confdefs.h <<\_ACEOF
7875 #define HAVE_SHL_LOAD 1
7876 _ACEOF
7877
7878         LIBADD_DL="$LIBADD_DL -ldld"
7879 else
7880   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   ac_check_lib_save_LIBS=$LIBS
7886 LIBS="-ldl  $LIBS"
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893
7894 /* Override any gcc2 internal prototype to avoid an error.  */
7895 #ifdef __cplusplus
7896 extern "C"
7897 #endif
7898 /* We use char because int might match the return type of a gcc2
7899    builtin and then its argument prototype would still apply.  */
7900 char dlopen ();
7901 int
7902 main ()
7903 {
7904 dlopen ();
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911   (eval $ac_link) 2>conftest.er1
7912   ac_status=$?
7913   grep -v '^ *+' conftest.er1 >conftest.err
7914   rm -f conftest.er1
7915   cat conftest.err >&5
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } &&
7918          { ac_try='test -z "$ac_c_werror_flag"
7919                          || test ! -s conftest.err'
7920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921   (eval $ac_try) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; } &&
7925          { ac_try='test -s conftest$ac_exeext'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   ac_cv_lib_dl_dlopen=yes
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 ac_cv_lib_dl_dlopen=no
7937 fi
7938 rm -f conftest.err conftest.$ac_objext \
7939       conftest$ac_exeext conftest.$ac_ext
7940 LIBS=$ac_check_lib_save_LIBS
7941 fi
7942 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7944 if test $ac_cv_lib_dl_dlopen = yes; then
7945
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_LIBDL 1
7948 _ACEOF
7949
7950                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7951 else
7952   cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958 #if HAVE_DLFCN_H
7959 #  include <dlfcn.h>
7960 #endif
7961
7962 int
7963 main ()
7964 {
7965 dlopen(0, 0);
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972   (eval $ac_link) 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -z "$ac_c_werror_flag"
7980                          || test ! -s conftest.err'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; } &&
7986          { ac_try='test -s conftest$ac_exeext'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; }; then
7992
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_LIBDL 1
7995 _ACEOF
7996  libltdl_cv_func_dlopen="yes"
7997 else
7998   echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8002 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8003 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   ac_check_lib_save_LIBS=$LIBS
8007 LIBS="-lsvld  $LIBS"
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h.  */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h.  */
8014
8015 /* Override any gcc2 internal prototype to avoid an error.  */
8016 #ifdef __cplusplus
8017 extern "C"
8018 #endif
8019 /* We use char because int might match the return type of a gcc2
8020    builtin and then its argument prototype would still apply.  */
8021 char dlopen ();
8022 int
8023 main ()
8024 {
8025 dlopen ();
8026   ;
8027   return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032   (eval $ac_link) 2>conftest.er1
8033   ac_status=$?
8034   grep -v '^ *+' conftest.er1 >conftest.err
8035   rm -f conftest.er1
8036   cat conftest.err >&5
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); } &&
8039          { ac_try='test -z "$ac_c_werror_flag"
8040                          || test ! -s conftest.err'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; } &&
8046          { ac_try='test -s conftest$ac_exeext'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; }; then
8052   ac_cv_lib_svld_dlopen=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_cv_lib_svld_dlopen=no
8058 fi
8059 rm -f conftest.err conftest.$ac_objext \
8060       conftest$ac_exeext conftest.$ac_ext
8061 LIBS=$ac_check_lib_save_LIBS
8062 fi
8063 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8064 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8065 if test $ac_cv_lib_svld_dlopen = yes; then
8066
8067 cat >>confdefs.h <<\_ACEOF
8068 #define HAVE_LIBDL 1
8069 _ACEOF
8070
8071                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8072 else
8073   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8074 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8075 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   ac_check_lib_save_LIBS=$LIBS
8079 LIBS="-ldld  $LIBS"
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086
8087 /* Override any gcc2 internal prototype to avoid an error.  */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 /* We use char because int might match the return type of a gcc2
8092    builtin and then its argument prototype would still apply.  */
8093 char dld_link ();
8094 int
8095 main ()
8096 {
8097 dld_link ();
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"
8112                          || test ! -s conftest.err'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   ac_cv_lib_dld_dld_link=yes
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 ac_cv_lib_dld_dld_link=no
8130 fi
8131 rm -f conftest.err conftest.$ac_objext \
8132       conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_lib_save_LIBS
8134 fi
8135 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8136 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8137 if test $ac_cv_lib_dld_dld_link = yes; then
8138
8139 cat >>confdefs.h <<\_ACEOF
8140 #define HAVE_DLD 1
8141 _ACEOF
8142
8143                 LIBADD_DL="$LIBADD_DL -ldld"
8144 else
8145   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8146 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8147 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150   cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8158 #define _dyld_func_lookup innocuous__dyld_func_lookup
8159
8160 /* System header to define __stub macros and hopefully few prototypes,
8161     which can conflict with char _dyld_func_lookup (); below.
8162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163     <limits.h> exists even on freestanding compilers.  */
8164
8165 #ifdef __STDC__
8166 # include <limits.h>
8167 #else
8168 # include <assert.h>
8169 #endif
8170
8171 #undef _dyld_func_lookup
8172
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 {
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179    builtin and then its argument prototype would still apply.  */
8180 char _dyld_func_lookup ();
8181 /* The GNU C library defines this for functions which it implements
8182     to always fail with ENOSYS.  Some functions are actually named
8183     something starting with __ and the normal name is an alias.  */
8184 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8185 choke me
8186 #else
8187 char (*f) () = _dyld_func_lookup;
8188 #endif
8189 #ifdef __cplusplus
8190 }
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 return f != _dyld_func_lookup;
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203   (eval $ac_link) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_func__dyld_func_lookup=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_func__dyld_func_lookup=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext \
8231       conftest$ac_exeext conftest.$ac_ext
8232 fi
8233 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8234 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8235 if test $ac_cv_func__dyld_func_lookup = yes; then
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_DYLD 1
8239 _ACEOF
8240
8241 fi
8242
8243
8244 fi
8245
8246
8247 fi
8248
8249
8250 fi
8251 rm -f conftest.err conftest.$ac_objext \
8252       conftest$ac_exeext conftest.$ac_ext
8253
8254 fi
8255
8256
8257 fi
8258
8259
8260 fi
8261
8262
8263 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8264 then
8265   lt_save_LIBS="$LIBS"
8266   LIBS="$LIBS $LIBADD_DL"
8267
8268 for ac_func in dlerror
8269 do
8270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8271 echo "$as_me:$LINENO: checking for $ac_func" >&5
8272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8273 if eval "test \"\${$as_ac_var+set}\" = set"; then
8274   echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276   cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8284 #define $ac_func innocuous_$ac_func
8285
8286 /* System header to define __stub macros and hopefully few prototypes,
8287     which can conflict with char $ac_func (); below.
8288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8289     <limits.h> exists even on freestanding compilers.  */
8290
8291 #ifdef __STDC__
8292 # include <limits.h>
8293 #else
8294 # include <assert.h>
8295 #endif
8296
8297 #undef $ac_func
8298
8299 /* Override any gcc2 internal prototype to avoid an error.  */
8300 #ifdef __cplusplus
8301 extern "C"
8302 {
8303 #endif
8304 /* We use char because int might match the return type of a gcc2
8305    builtin and then its argument prototype would still apply.  */
8306 char $ac_func ();
8307 /* The GNU C library defines this for functions which it implements
8308     to always fail with ENOSYS.  Some functions are actually named
8309     something starting with __ and the normal name is an alias.  */
8310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8311 choke me
8312 #else
8313 char (*f) () = $ac_func;
8314 #endif
8315 #ifdef __cplusplus
8316 }
8317 #endif
8318
8319 int
8320 main ()
8321 {
8322 return f != $ac_func;
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329   (eval $ac_link) 2>conftest.er1
8330   ac_status=$?
8331   grep -v '^ *+' conftest.er1 >conftest.err
8332   rm -f conftest.er1
8333   cat conftest.err >&5
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); } &&
8336          { ac_try='test -z "$ac_c_werror_flag"
8337                          || test ! -s conftest.err'
8338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339   (eval $ac_try) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; } &&
8343          { ac_try='test -s conftest$ac_exeext'
8344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345   (eval $ac_try) 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; }; then
8349   eval "$as_ac_var=yes"
8350 else
8351   echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354 eval "$as_ac_var=no"
8355 fi
8356 rm -f conftest.err conftest.$ac_objext \
8357       conftest$ac_exeext conftest.$ac_ext
8358 fi
8359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8361 if test `eval echo '${'$as_ac_var'}'` = yes; then
8362   cat >>confdefs.h <<_ACEOF
8363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8364 _ACEOF
8365
8366 fi
8367 done
8368
8369   LIBS="$lt_save_LIBS"
8370 fi
8371 ac_ext=c
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8376
8377
8378
8379 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8380 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8381 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384   ac_cv_sys_symbol_underscore=no
8385   cat > conftest.$ac_ext <<EOF
8386 void nm_test_func(){}
8387 int main(){nm_test_func;return 0;}
8388 EOF
8389   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390   (eval $ac_compile) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; then
8394     # Now try to grab the symbols.
8395     ac_nlist=conftest.nm
8396     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8397   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } && test -s "$ac_nlist"; then
8401       # See whether the symbols have a leading underscore.
8402       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8403         ac_cv_sys_symbol_underscore=yes
8404       else
8405         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8406           :
8407         else
8408           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8409         fi
8410       fi
8411     else
8412       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8413     fi
8414   else
8415     echo "configure: failed program was:" >&5
8416     cat conftest.c >&5
8417   fi
8418   rm -rf conftest*
8419
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8422 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8423
8424
8425 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8426   if test x"$libltdl_cv_func_dlopen" = xyes ||
8427      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8428         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8429 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8430 if test "${libltdl_cv_need_uscore+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   libltdl_cv_need_uscore=unknown
8434           save_LIBS="$LIBS"
8435           LIBS="$LIBS $LIBADD_DL"
8436           if test "$cross_compiling" = yes; then :
8437   libltdl_cv_need_uscore=cross
8438 else
8439   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8440   lt_status=$lt_dlunknown
8441   cat > conftest.$ac_ext <<EOF
8442 #line 8442 "configure"
8443 #include "confdefs.h"
8444
8445 #if HAVE_DLFCN_H
8446 #include <dlfcn.h>
8447 #endif
8448
8449 #include <stdio.h>
8450
8451 #ifdef RTLD_GLOBAL
8452 #  define LT_DLGLOBAL           RTLD_GLOBAL
8453 #else
8454 #  ifdef DL_GLOBAL
8455 #    define LT_DLGLOBAL         DL_GLOBAL
8456 #  else
8457 #    define LT_DLGLOBAL         0
8458 #  endif
8459 #endif
8460
8461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8462    find out it does not work in some platform. */
8463 #ifndef LT_DLLAZY_OR_NOW
8464 #  ifdef RTLD_LAZY
8465 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8466 #  else
8467 #    ifdef DL_LAZY
8468 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8469 #    else
8470 #      ifdef RTLD_NOW
8471 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8472 #      else
8473 #        ifdef DL_NOW
8474 #          define LT_DLLAZY_OR_NOW      DL_NOW
8475 #        else
8476 #          define LT_DLLAZY_OR_NOW      0
8477 #        endif
8478 #      endif
8479 #    endif
8480 #  endif
8481 #endif
8482
8483 #ifdef __cplusplus
8484 extern "C" void exit (int);
8485 #endif
8486
8487 void fnord() { int i=42;}
8488 int main ()
8489 {
8490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8491   int status = $lt_dlunknown;
8492
8493   if (self)
8494     {
8495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8496       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8497       /* dlclose (self); */
8498     }
8499
8500     exit (status);
8501 }
8502 EOF
8503   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504   (eval $ac_link) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8508     (./conftest; exit; ) 2>/dev/null
8509     lt_status=$?
8510     case x$lt_status in
8511       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8512       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8513       x$lt_unknown|x*)  ;;
8514     esac
8515   else :
8516     # compilation failed
8517
8518   fi
8519 fi
8520 rm -fr conftest*
8521
8522           LIBS="$save_LIBS"
8523
8524 fi
8525 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8526 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8527   fi
8528 fi
8529
8530 if test x"$libltdl_cv_need_uscore" = xyes; then
8531
8532 cat >>confdefs.h <<\_ACEOF
8533 #define NEED_USCORE 1
8534 _ACEOF
8535
8536 fi
8537
8538
8539 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8540 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8541 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   # PORTME does your system automatically load deplibs for dlopen?
8545   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8546   # For now, we just catch OSes we know something about -- in the
8547   # future, we'll try test this programmatically.
8548   libltdl_cv_sys_dlopen_deplibs=unknown
8549   case "$host_os" in
8550   aix3*|aix4.1.*|aix4.2.*)
8551     # Unknown whether this is true for these versions of AIX, but
8552     # we want this `case' here to explicitly catch those versions.
8553     libltdl_cv_sys_dlopen_deplibs=unknown
8554     ;;
8555   aix[45]*)
8556     libltdl_cv_sys_dlopen_deplibs=yes
8557     ;;
8558   darwin*)
8559     # Assuming the user has installed a libdl from somewhere, this is true
8560     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8561     libltdl_cv_sys_dlopen_deplibs=yes
8562     ;;
8563   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8564     # GNU and its variants, using gnu ld.so (Glibc)
8565     libltdl_cv_sys_dlopen_deplibs=yes
8566     ;;
8567   hpux10*|hpux11*)
8568     libltdl_cv_sys_dlopen_deplibs=yes
8569     ;;
8570   irix[12345]*|irix6.[01]*)
8571     # Catch all versions of IRIX before 6.2, and indicate that we don't
8572     # know how it worked for any of those versions.
8573     libltdl_cv_sys_dlopen_deplibs=unknown
8574     ;;
8575   irix*)
8576     # The case above catches anything before 6.2, and it's known that
8577     # at 6.2 and later dlopen does load deplibs.
8578     libltdl_cv_sys_dlopen_deplibs=yes
8579     ;;
8580   netbsd*)
8581     libltdl_cv_sys_dlopen_deplibs=yes
8582     ;;
8583   openbsd*)
8584     libltdl_cv_sys_dlopen_deplibs=yes
8585     ;;
8586   osf[1234]*)
8587     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8588     # it did *not* use an RPATH in a shared library to find objects the
8589     # library depends on, so we explictly say `no'.
8590     libltdl_cv_sys_dlopen_deplibs=no
8591     ;;
8592   osf5.0|osf5.0a|osf5.1)
8593     # dlopen *does* load deplibs and with the right loader patch applied
8594     # it even uses RPATH in a shared library to search for shared objects
8595     # that the library depends on, but there's no easy way to know if that
8596     # patch is installed.  Since this is the case, all we can really
8597     # say is unknown -- it depends on the patch being installed.  If
8598     # it is, this changes to `yes'.  Without it, it would be `no'.
8599     libltdl_cv_sys_dlopen_deplibs=unknown
8600     ;;
8601   osf*)
8602     # the two cases above should catch all versions of osf <= 5.1.  Read
8603     # the comments above for what we know about them.
8604     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8605     # is used to find them so we can finally say `yes'.
8606     libltdl_cv_sys_dlopen_deplibs=yes
8607     ;;
8608   solaris*)
8609     libltdl_cv_sys_dlopen_deplibs=yes
8610     ;;
8611   esac
8612
8613 fi
8614 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8615 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8616 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8617
8618 cat >>confdefs.h <<\_ACEOF
8619 #define LTDL_DLOPEN_DEPLIBS 1
8620 _ACEOF
8621
8622 fi
8623
8624
8625 for ac_header in argz.h
8626 do
8627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8629   echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 fi
8634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8636 else
8637   # Is the header compilable?
8638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h.  */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h.  */
8646 $ac_includes_default
8647 #include <$ac_header>
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651   (eval $ac_compile) 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } &&
8658          { ac_try='test -z "$ac_c_werror_flag"
8659                          || test ! -s conftest.err'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; } &&
8665          { ac_try='test -s conftest.$ac_objext'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; }; then
8671   ac_header_compiler=yes
8672 else
8673   echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 ac_header_compiler=no
8677 fi
8678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8680 echo "${ECHO_T}$ac_header_compiler" >&6
8681
8682 # Is the header present?
8683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691 #include <$ac_header>
8692 _ACEOF
8693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } >/dev/null; then
8701   if test -s conftest.err; then
8702     ac_cpp_err=$ac_c_preproc_warn_flag
8703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8704   else
8705     ac_cpp_err=
8706   fi
8707 else
8708   ac_cpp_err=yes
8709 fi
8710 if test -z "$ac_cpp_err"; then
8711   ac_header_preproc=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716   ac_header_preproc=no
8717 fi
8718 rm -f conftest.err conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8720 echo "${ECHO_T}$ac_header_preproc" >&6
8721
8722 # So?  What about this header?
8723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8724   yes:no: )
8725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8729     ac_header_preproc=yes
8730     ;;
8731   no:yes:* )
8732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8744     (
8745       cat <<\_ASBOX
8746 ## ----------------------------------- ##
8747 ## Report this to llvmbugs@cs.uiuc.edu ##
8748 ## ----------------------------------- ##
8749 _ASBOX
8750     ) |
8751       sed "s/^/$as_me: WARNING:     /" >&2
8752     ;;
8753 esac
8754 echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   eval "$as_ac_Header=\$ac_header_preproc"
8760 fi
8761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8763
8764 fi
8765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8766   cat >>confdefs.h <<_ACEOF
8767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8768 _ACEOF
8769
8770 fi
8771
8772 done
8773
8774
8775 echo "$as_me:$LINENO: checking for error_t" >&5
8776 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8777 if test "${ac_cv_type_error_t+set}" = set; then
8778   echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #if HAVE_ARGZ_H
8787 #  include <argz.h>
8788 #endif
8789
8790 int
8791 main ()
8792 {
8793 if ((error_t *) 0)
8794   return 0;
8795 if (sizeof (error_t))
8796   return 0;
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803   (eval $ac_compile) 2>conftest.er1
8804   ac_status=$?
8805   grep -v '^ *+' conftest.er1 >conftest.err
8806   rm -f conftest.er1
8807   cat conftest.err >&5
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -z "$ac_c_werror_flag"
8811                          || test ! -s conftest.err'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; } &&
8817          { ac_try='test -s conftest.$ac_objext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_cv_type_error_t=yes
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 ac_cv_type_error_t=no
8829 fi
8830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8833 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8834 if test $ac_cv_type_error_t = yes; then
8835
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_ERROR_T 1
8838 _ACEOF
8839
8840
8841 else
8842
8843 cat >>confdefs.h <<\_ACEOF
8844 #define error_t int
8845 _ACEOF
8846
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8856 do
8857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8858 echo "$as_me:$LINENO: checking for $ac_func" >&5
8859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8860 if eval "test \"\${$as_ac_var+set}\" = set"; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8871 #define $ac_func innocuous_$ac_func
8872
8873 /* System header to define __stub macros and hopefully few prototypes,
8874     which can conflict with char $ac_func (); below.
8875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876     <limits.h> exists even on freestanding compilers.  */
8877
8878 #ifdef __STDC__
8879 # include <limits.h>
8880 #else
8881 # include <assert.h>
8882 #endif
8883
8884 #undef $ac_func
8885
8886 /* Override any gcc2 internal prototype to avoid an error.  */
8887 #ifdef __cplusplus
8888 extern "C"
8889 {
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892    builtin and then its argument prototype would still apply.  */
8893 char $ac_func ();
8894 /* The GNU C library defines this for functions which it implements
8895     to always fail with ENOSYS.  Some functions are actually named
8896     something starting with __ and the normal name is an alias.  */
8897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8898 choke me
8899 #else
8900 char (*f) () = $ac_func;
8901 #endif
8902 #ifdef __cplusplus
8903 }
8904 #endif
8905
8906 int
8907 main ()
8908 {
8909 return f != $ac_func;
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916   (eval $ac_link) 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -z "$ac_c_werror_flag"
8924                          || test ! -s conftest.err'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; } &&
8930          { ac_try='test -s conftest$ac_exeext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   eval "$as_ac_var=yes"
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 eval "$as_ac_var=no"
8942 fi
8943 rm -f conftest.err conftest.$ac_objext \
8944       conftest$ac_exeext conftest.$ac_ext
8945 fi
8946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8948 if test `eval echo '${'$as_ac_var'}'` = yes; then
8949   cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8951 _ACEOF
8952
8953 fi
8954 done
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8984                   stdio.h unistd.h
8985 do
8986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988   echo "$as_me:$LINENO: checking for $ac_header" >&5
8989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 fi
8993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8995 else
8996   # Is the header compilable?
8997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005 $ac_includes_default
9006 #include <$ac_header>
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010   (eval $ac_compile) 2>conftest.er1
9011   ac_status=$?
9012   grep -v '^ *+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } &&
9017          { ac_try='test -z "$ac_c_werror_flag"
9018                          || test ! -s conftest.err'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; } &&
9024          { ac_try='test -s conftest.$ac_objext'
9025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026   (eval $ac_try) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; }; then
9030   ac_header_compiler=yes
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 ac_header_compiler=no
9036 fi
9037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9039 echo "${ECHO_T}$ac_header_compiler" >&6
9040
9041 # Is the header present?
9042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050 #include <$ac_header>
9051 _ACEOF
9052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } >/dev/null; then
9060   if test -s conftest.err; then
9061     ac_cpp_err=$ac_c_preproc_warn_flag
9062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9063   else
9064     ac_cpp_err=
9065   fi
9066 else
9067   ac_cpp_err=yes
9068 fi
9069 if test -z "$ac_cpp_err"; then
9070   ac_header_preproc=yes
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075   ac_header_preproc=no
9076 fi
9077 rm -f conftest.err conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9079 echo "${ECHO_T}$ac_header_preproc" >&6
9080
9081 # So?  What about this header?
9082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9083   yes:no: )
9084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9088     ac_header_preproc=yes
9089     ;;
9090   no:yes:* )
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9103     (
9104       cat <<\_ASBOX
9105 ## ----------------------------------- ##
9106 ## Report this to llvmbugs@cs.uiuc.edu ##
9107 ## ----------------------------------- ##
9108 _ASBOX
9109     ) |
9110       sed "s/^/$as_me: WARNING:     /" >&2
9111     ;;
9112 esac
9113 echo "$as_me:$LINENO: checking for $ac_header" >&5
9114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   eval "$as_ac_Header=\$ac_header_preproc"
9119 fi
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122
9123 fi
9124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9125   cat >>confdefs.h <<_ACEOF
9126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 _ACEOF
9128
9129 fi
9130
9131 done
9132
9133
9134
9135
9136
9137 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9138 do
9139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141   echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 fi
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148 else
9149   # Is the header compilable?
9150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158 $ac_includes_default
9159 #include <$ac_header>
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163   (eval $ac_compile) 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -z "$ac_c_werror_flag"
9171                          || test ! -s conftest.err'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; } &&
9177          { ac_try='test -s conftest.$ac_objext'
9178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179   (eval $ac_try) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); }; }; then
9183   ac_header_compiler=yes
9184 else
9185   echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188 ac_header_compiler=no
9189 fi
9190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9192 echo "${ECHO_T}$ac_header_compiler" >&6
9193
9194 # Is the header present?
9195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 #include <$ac_header>
9204 _ACEOF
9205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9207   ac_status=$?
9208   grep -v '^ *+' conftest.er1 >conftest.err
9209   rm -f conftest.er1
9210   cat conftest.err >&5
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } >/dev/null; then
9213   if test -s conftest.err; then
9214     ac_cpp_err=$ac_c_preproc_warn_flag
9215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9216   else
9217     ac_cpp_err=
9218   fi
9219 else
9220   ac_cpp_err=yes
9221 fi
9222 if test -z "$ac_cpp_err"; then
9223   ac_header_preproc=yes
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228   ac_header_preproc=no
9229 fi
9230 rm -f conftest.err conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9232 echo "${ECHO_T}$ac_header_preproc" >&6
9233
9234 # So?  What about this header?
9235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9236   yes:no: )
9237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9241     ac_header_preproc=yes
9242     ;;
9243   no:yes:* )
9244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9256     (
9257       cat <<\_ASBOX
9258 ## ----------------------------------- ##
9259 ## Report this to llvmbugs@cs.uiuc.edu ##
9260 ## ----------------------------------- ##
9261 _ASBOX
9262     ) |
9263       sed "s/^/$as_me: WARNING:     /" >&2
9264     ;;
9265 esac
9266 echo "$as_me:$LINENO: checking for $ac_header" >&5
9267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   eval "$as_ac_Header=\$ac_header_preproc"
9272 fi
9273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275
9276 fi
9277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9278   cat >>confdefs.h <<_ACEOF
9279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280 _ACEOF
9281
9282 fi
9283
9284 done
9285
9286
9287
9288 for ac_header in string.h strings.h
9289 do
9290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292   echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 fi
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9299 else
9300   # Is the header compilable?
9301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309 $ac_includes_default
9310 #include <$ac_header>
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314   (eval $ac_compile) 2>conftest.er1
9315   ac_status=$?
9316   grep -v '^ *+' conftest.er1 >conftest.err
9317   rm -f conftest.er1
9318   cat conftest.err >&5
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } &&
9321          { ac_try='test -z "$ac_c_werror_flag"
9322                          || test ! -s conftest.err'
9323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324   (eval $ac_try) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); }; } &&
9328          { ac_try='test -s conftest.$ac_objext'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_header_compiler=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339 ac_header_compiler=no
9340 fi
9341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343 echo "${ECHO_T}$ac_header_compiler" >&6
9344
9345 # Is the header present?
9346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <$ac_header>
9355 _ACEOF
9356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } >/dev/null; then
9364   if test -s conftest.err; then
9365     ac_cpp_err=$ac_c_preproc_warn_flag
9366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9367   else
9368     ac_cpp_err=
9369   fi
9370 else
9371   ac_cpp_err=yes
9372 fi
9373 if test -z "$ac_cpp_err"; then
9374   ac_header_preproc=yes
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379   ac_header_preproc=no
9380 fi
9381 rm -f conftest.err conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9383 echo "${ECHO_T}$ac_header_preproc" >&6
9384
9385 # So?  What about this header?
9386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9387   yes:no: )
9388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9392     ac_header_preproc=yes
9393     ;;
9394   no:yes:* )
9395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9407     (
9408       cat <<\_ASBOX
9409 ## ----------------------------------- ##
9410 ## Report this to llvmbugs@cs.uiuc.edu ##
9411 ## ----------------------------------- ##
9412 _ASBOX
9413     ) |
9414       sed "s/^/$as_me: WARNING:     /" >&2
9415     ;;
9416 esac
9417 echo "$as_me:$LINENO: checking for $ac_header" >&5
9418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   eval "$as_ac_Header=\$ac_header_preproc"
9423 fi
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9426
9427 fi
9428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9429   cat >>confdefs.h <<_ACEOF
9430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9431 _ACEOF
9432  break
9433 fi
9434
9435 done
9436
9437
9438
9439
9440 for ac_func in strchr index
9441 do
9442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9443 echo "$as_me:$LINENO: checking for $ac_func" >&5
9444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_var+set}\" = set"; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h.  */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h.  */
9454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9456 #define $ac_func innocuous_$ac_func
9457
9458 /* System header to define __stub macros and hopefully few prototypes,
9459     which can conflict with char $ac_func (); below.
9460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461     <limits.h> exists even on freestanding compilers.  */
9462
9463 #ifdef __STDC__
9464 # include <limits.h>
9465 #else
9466 # include <assert.h>
9467 #endif
9468
9469 #undef $ac_func
9470
9471 /* Override any gcc2 internal prototype to avoid an error.  */
9472 #ifdef __cplusplus
9473 extern "C"
9474 {
9475 #endif
9476 /* We use char because int might match the return type of a gcc2
9477    builtin and then its argument prototype would still apply.  */
9478 char $ac_func ();
9479 /* The GNU C library defines this for functions which it implements
9480     to always fail with ENOSYS.  Some functions are actually named
9481     something starting with __ and the normal name is an alias.  */
9482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483 choke me
9484 #else
9485 char (*f) () = $ac_func;
9486 #endif
9487 #ifdef __cplusplus
9488 }
9489 #endif
9490
9491 int
9492 main ()
9493 {
9494 return f != $ac_func;
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501   (eval $ac_link) 2>conftest.er1
9502   ac_status=$?
9503   grep -v '^ *+' conftest.er1 >conftest.err
9504   rm -f conftest.er1
9505   cat conftest.err >&5
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -z "$ac_c_werror_flag"
9509                          || test ! -s conftest.err'
9510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511   (eval $ac_try) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; } &&
9515          { ac_try='test -s conftest$ac_exeext'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; }; then
9521   eval "$as_ac_var=yes"
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 eval "$as_ac_var=no"
9527 fi
9528 rm -f conftest.err conftest.$ac_objext \
9529       conftest$ac_exeext conftest.$ac_ext
9530 fi
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533 if test `eval echo '${'$as_ac_var'}'` = yes; then
9534   cat >>confdefs.h <<_ACEOF
9535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536 _ACEOF
9537  break
9538 fi
9539 done
9540
9541
9542
9543 for ac_func in strrchr rindex
9544 do
9545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9548 if eval "test \"\${$as_ac_var+set}\" = set"; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9559 #define $ac_func innocuous_$ac_func
9560
9561 /* System header to define __stub macros and hopefully few prototypes,
9562     which can conflict with char $ac_func (); below.
9563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564     <limits.h> exists even on freestanding compilers.  */
9565
9566 #ifdef __STDC__
9567 # include <limits.h>
9568 #else
9569 # include <assert.h>
9570 #endif
9571
9572 #undef $ac_func
9573
9574 /* Override any gcc2 internal prototype to avoid an error.  */
9575 #ifdef __cplusplus
9576 extern "C"
9577 {
9578 #endif
9579 /* We use char because int might match the return type of a gcc2
9580    builtin and then its argument prototype would still apply.  */
9581 char $ac_func ();
9582 /* The GNU C library defines this for functions which it implements
9583     to always fail with ENOSYS.  Some functions are actually named
9584     something starting with __ and the normal name is an alias.  */
9585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9586 choke me
9587 #else
9588 char (*f) () = $ac_func;
9589 #endif
9590 #ifdef __cplusplus
9591 }
9592 #endif
9593
9594 int
9595 main ()
9596 {
9597 return f != $ac_func;
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604   (eval $ac_link) 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } &&
9611          { ac_try='test -z "$ac_c_werror_flag"
9612                          || test ! -s conftest.err'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; } &&
9618          { ac_try='test -s conftest$ac_exeext'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   eval "$as_ac_var=yes"
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 eval "$as_ac_var=no"
9630 fi
9631 rm -f conftest.err conftest.$ac_objext \
9632       conftest$ac_exeext conftest.$ac_ext
9633 fi
9634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9636 if test `eval echo '${'$as_ac_var'}'` = yes; then
9637   cat >>confdefs.h <<_ACEOF
9638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9639 _ACEOF
9640  break
9641 fi
9642 done
9643
9644
9645
9646 for ac_func in memcpy bcopy
9647 do
9648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9649 echo "$as_me:$LINENO: checking for $ac_func" >&5
9650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9651 if eval "test \"\${$as_ac_var+set}\" = set"; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9662 #define $ac_func innocuous_$ac_func
9663
9664 /* System header to define __stub macros and hopefully few prototypes,
9665     which can conflict with char $ac_func (); below.
9666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667     <limits.h> exists even on freestanding compilers.  */
9668
9669 #ifdef __STDC__
9670 # include <limits.h>
9671 #else
9672 # include <assert.h>
9673 #endif
9674
9675 #undef $ac_func
9676
9677 /* Override any gcc2 internal prototype to avoid an error.  */
9678 #ifdef __cplusplus
9679 extern "C"
9680 {
9681 #endif
9682 /* We use char because int might match the return type of a gcc2
9683    builtin and then its argument prototype would still apply.  */
9684 char $ac_func ();
9685 /* The GNU C library defines this for functions which it implements
9686     to always fail with ENOSYS.  Some functions are actually named
9687     something starting with __ and the normal name is an alias.  */
9688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9689 choke me
9690 #else
9691 char (*f) () = $ac_func;
9692 #endif
9693 #ifdef __cplusplus
9694 }
9695 #endif
9696
9697 int
9698 main ()
9699 {
9700 return f != $ac_func;
9701   ;
9702   return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707   (eval $ac_link) 2>conftest.er1
9708   ac_status=$?
9709   grep -v '^ *+' conftest.er1 >conftest.err
9710   rm -f conftest.er1
9711   cat conftest.err >&5
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -z "$ac_c_werror_flag"
9715                          || test ! -s conftest.err'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; } &&
9721          { ac_try='test -s conftest$ac_exeext'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   eval "$as_ac_var=yes"
9728 else
9729   echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 eval "$as_ac_var=no"
9733 fi
9734 rm -f conftest.err conftest.$ac_objext \
9735       conftest$ac_exeext conftest.$ac_ext
9736 fi
9737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9739 if test `eval echo '${'$as_ac_var'}'` = yes; then
9740   cat >>confdefs.h <<_ACEOF
9741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9742 _ACEOF
9743  break
9744 fi
9745 done
9746
9747
9748
9749 for ac_func in memmove strcmp
9750 do
9751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9752 echo "$as_me:$LINENO: checking for $ac_func" >&5
9753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9754 if eval "test \"\${$as_ac_var+set}\" = set"; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9765 #define $ac_func innocuous_$ac_func
9766
9767 /* System header to define __stub macros and hopefully few prototypes,
9768     which can conflict with char $ac_func (); below.
9769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770     <limits.h> exists even on freestanding compilers.  */
9771
9772 #ifdef __STDC__
9773 # include <limits.h>
9774 #else
9775 # include <assert.h>
9776 #endif
9777
9778 #undef $ac_func
9779
9780 /* Override any gcc2 internal prototype to avoid an error.  */
9781 #ifdef __cplusplus
9782 extern "C"
9783 {
9784 #endif
9785 /* We use char because int might match the return type of a gcc2
9786    builtin and then its argument prototype would still apply.  */
9787 char $ac_func ();
9788 /* The GNU C library defines this for functions which it implements
9789     to always fail with ENOSYS.  Some functions are actually named
9790     something starting with __ and the normal name is an alias.  */
9791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9792 choke me
9793 #else
9794 char (*f) () = $ac_func;
9795 #endif
9796 #ifdef __cplusplus
9797 }
9798 #endif
9799
9800 int
9801 main ()
9802 {
9803 return f != $ac_func;
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810   (eval $ac_link) 2>conftest.er1
9811   ac_status=$?
9812   grep -v '^ *+' conftest.er1 >conftest.err
9813   rm -f conftest.er1
9814   cat conftest.err >&5
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -z "$ac_c_werror_flag"
9818                          || test ! -s conftest.err'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; } &&
9824          { ac_try='test -s conftest$ac_exeext'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; }; then
9830   eval "$as_ac_var=yes"
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 eval "$as_ac_var=no"
9836 fi
9837 rm -f conftest.err conftest.$ac_objext \
9838       conftest$ac_exeext conftest.$ac_ext
9839 fi
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9842 if test `eval echo '${'$as_ac_var'}'` = yes; then
9843   cat >>confdefs.h <<_ACEOF
9844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9845 _ACEOF
9846
9847 fi
9848 done
9849
9850
9851
9852
9853 for ac_func in closedir opendir readdir
9854 do
9855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856 echo "$as_me:$LINENO: checking for $ac_func" >&5
9857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_var+set}\" = set"; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9869 #define $ac_func innocuous_$ac_func
9870
9871 /* System header to define __stub macros and hopefully few prototypes,
9872     which can conflict with char $ac_func (); below.
9873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874     <limits.h> exists even on freestanding compilers.  */
9875
9876 #ifdef __STDC__
9877 # include <limits.h>
9878 #else
9879 # include <assert.h>
9880 #endif
9881
9882 #undef $ac_func
9883
9884 /* Override any gcc2 internal prototype to avoid an error.  */
9885 #ifdef __cplusplus
9886 extern "C"
9887 {
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890    builtin and then its argument prototype would still apply.  */
9891 char $ac_func ();
9892 /* The GNU C library defines this for functions which it implements
9893     to always fail with ENOSYS.  Some functions are actually named
9894     something starting with __ and the normal name is an alias.  */
9895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9896 choke me
9897 #else
9898 char (*f) () = $ac_func;
9899 #endif
9900 #ifdef __cplusplus
9901 }
9902 #endif
9903
9904 int
9905 main ()
9906 {
9907 return f != $ac_func;
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914   (eval $ac_link) 2>conftest.er1
9915   ac_status=$?
9916   grep -v '^ *+' conftest.er1 >conftest.err
9917   rm -f conftest.er1
9918   cat conftest.err >&5
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); } &&
9921          { ac_try='test -z "$ac_c_werror_flag"
9922                          || test ! -s conftest.err'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; } &&
9928          { ac_try='test -s conftest$ac_exeext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   eval "$as_ac_var=yes"
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 eval "$as_ac_var=no"
9940 fi
9941 rm -f conftest.err conftest.$ac_objext \
9942       conftest$ac_exeext conftest.$ac_ext
9943 fi
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9946 if test `eval echo '${'$as_ac_var'}'` = yes; then
9947   cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9949 _ACEOF
9950
9951 fi
9952 done
9953
9954
9955 # Check whether --enable-shared or --disable-shared was given.
9956 if test "${enable_shared+set}" = set; then
9957   enableval="$enable_shared"
9958   p=${PACKAGE-default}
9959     case $enableval in
9960     yes) enable_shared=yes ;;
9961     no) enable_shared=no ;;
9962     *)
9963       enable_shared=no
9964       # Look at the argument we got.  We use all the common list separators.
9965       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9966       for pkg in $enableval; do
9967         IFS="$lt_save_ifs"
9968         if test "X$pkg" = "X$p"; then
9969           enable_shared=yes
9970         fi
9971       done
9972       IFS="$lt_save_ifs"
9973       ;;
9974     esac
9975 else
9976   enable_shared=yes
9977 fi;
9978
9979 # Check whether --enable-static or --disable-static was given.
9980 if test "${enable_static+set}" = set; then
9981   enableval="$enable_static"
9982   p=${PACKAGE-default}
9983     case $enableval in
9984     yes) enable_static=yes ;;
9985     no) enable_static=no ;;
9986     *)
9987      enable_static=no
9988       # Look at the argument we got.  We use all the common list separators.
9989       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9990       for pkg in $enableval; do
9991         IFS="$lt_save_ifs"
9992         if test "X$pkg" = "X$p"; then
9993           enable_static=yes
9994         fi
9995       done
9996       IFS="$lt_save_ifs"
9997       ;;
9998     esac
9999 else
10000   enable_static=yes
10001 fi;
10002
10003 # Check whether --enable-fast-install or --disable-fast-install was given.
10004 if test "${enable_fast_install+set}" = set; then
10005   enableval="$enable_fast_install"
10006   p=${PACKAGE-default}
10007     case $enableval in
10008     yes) enable_fast_install=yes ;;
10009     no) enable_fast_install=no ;;
10010     *)
10011       enable_fast_install=no
10012       # Look at the argument we got.  We use all the common list separators.
10013       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10014       for pkg in $enableval; do
10015         IFS="$lt_save_ifs"
10016         if test "X$pkg" = "X$p"; then
10017           enable_fast_install=yes
10018         fi
10019       done
10020       IFS="$lt_save_ifs"
10021       ;;
10022     esac
10023 else
10024   enable_fast_install=yes
10025 fi;
10026
10027 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10028 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10029 if test "${lt_cv_path_SED+set}" = set; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032   # Loop through the user's path and test for sed and gsed.
10033 # Then use that list of sed's as ones to test for truncation.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10036 do
10037   IFS=$as_save_IFS
10038   test -z "$as_dir" && as_dir=.
10039   for lt_ac_prog in sed gsed; do
10040     for ac_exec_ext in '' $ac_executable_extensions; do
10041       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10042         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10043       fi
10044     done
10045   done
10046 done
10047 lt_ac_max=0
10048 lt_ac_count=0
10049 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10050 # along with /bin/sed that truncates output.
10051 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10052   test ! -f $lt_ac_sed && break
10053   cat /dev/null > conftest.in
10054   lt_ac_count=0
10055   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10056   # Check for GNU sed and select it if it is found.
10057   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10058     lt_cv_path_SED=$lt_ac_sed
10059     break
10060   fi
10061   while true; do
10062     cat conftest.in conftest.in >conftest.tmp
10063     mv conftest.tmp conftest.in
10064     cp conftest.in conftest.nl
10065     echo >>conftest.nl
10066     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10067     cmp -s conftest.out conftest.nl || break
10068     # 10000 chars as input seems more than enough
10069     test $lt_ac_count -gt 10 && break
10070     lt_ac_count=`expr $lt_ac_count + 1`
10071     if test $lt_ac_count -gt $lt_ac_max; then
10072       lt_ac_max=$lt_ac_count
10073       lt_cv_path_SED=$lt_ac_sed
10074     fi
10075   done
10076 done
10077
10078 fi
10079
10080 SED=$lt_cv_path_SED
10081 echo "$as_me:$LINENO: result: $SED" >&5
10082 echo "${ECHO_T}$SED" >&6
10083
10084
10085 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10086 if test "${with_gnu_ld+set}" = set; then
10087   withval="$with_gnu_ld"
10088   test "$withval" = no || with_gnu_ld=yes
10089 else
10090   with_gnu_ld=no
10091 fi;
10092 ac_prog=ld
10093 if test "$GCC" = yes; then
10094   # Check if gcc -print-prog-name=ld gives a path.
10095   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10096 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10097   case $host in
10098   *-*-mingw*)
10099     # gcc leaves a trailing carriage return which upsets mingw
10100     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10101   *)
10102     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10103   esac
10104   case $ac_prog in
10105     # Accept absolute paths.
10106     [\\/]* | ?:[\\/]*)
10107       re_direlt='/[^/][^/]*/\.\./'
10108       # Canonicalize the pathname of ld
10109       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10110       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10111         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10112       done
10113       test -z "$LD" && LD="$ac_prog"
10114       ;;
10115   "")
10116     # If it fails, then pretend we aren't using GCC.
10117     ac_prog=ld
10118     ;;
10119   *)
10120     # If it is relative, then search for the first ld in PATH.
10121     with_gnu_ld=unknown
10122     ;;
10123   esac
10124 elif test "$with_gnu_ld" = yes; then
10125   echo "$as_me:$LINENO: checking for GNU ld" >&5
10126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10127 else
10128   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10130 fi
10131 if test "${lt_cv_path_LD+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   if test -z "$LD"; then
10135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10136   for ac_dir in $PATH; do
10137     IFS="$lt_save_ifs"
10138     test -z "$ac_dir" && ac_dir=.
10139     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10140       lt_cv_path_LD="$ac_dir/$ac_prog"
10141       # Check to see if the program is GNU ld.  I'd rather use --version,
10142       # but apparently some GNU ld's only accept -v.
10143       # Break only if it was the GNU/non-GNU ld that we prefer.
10144       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10145       *GNU* | *'with BFD'*)
10146         test "$with_gnu_ld" != no && break
10147         ;;
10148       *)
10149         test "$with_gnu_ld" != yes && break
10150         ;;
10151       esac
10152     fi
10153   done
10154   IFS="$lt_save_ifs"
10155 else
10156   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10157 fi
10158 fi
10159
10160 LD="$lt_cv_path_LD"
10161 if test -n "$LD"; then
10162   echo "$as_me:$LINENO: result: $LD" >&5
10163 echo "${ECHO_T}$LD" >&6
10164 else
10165   echo "$as_me:$LINENO: result: no" >&5
10166 echo "${ECHO_T}no" >&6
10167 fi
10168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10170    { (exit 1); exit 1; }; }
10171 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10177 case `$LD -v 2>&1 </dev/null` in
10178 *GNU* | *'with BFD'*)
10179   lt_cv_prog_gnu_ld=yes
10180   ;;
10181 *)
10182   lt_cv_prog_gnu_ld=no
10183   ;;
10184 esac
10185 fi
10186 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10187 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10188 with_gnu_ld=$lt_cv_prog_gnu_ld
10189
10190
10191 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10192 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10193 if test "${lt_cv_ld_reload_flag+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196   lt_cv_ld_reload_flag='-r'
10197 fi
10198 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10199 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10200 reload_flag=$lt_cv_ld_reload_flag
10201 case $reload_flag in
10202 "" | " "*) ;;
10203 *) reload_flag=" $reload_flag" ;;
10204 esac
10205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10206 case $host_os in
10207   darwin*)
10208     if test "$GCC" = yes; then
10209       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10210     else
10211       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10212     fi
10213     ;;
10214 esac
10215
10216 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10217 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10218 if test "${lt_cv_deplibs_check_method+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   lt_cv_file_magic_cmd='$MAGIC_CMD'
10222 lt_cv_file_magic_test_file=
10223 lt_cv_deplibs_check_method='unknown'
10224 # Need to set the preceding variable on all platforms that support
10225 # interlibrary dependencies.
10226 # 'none' -- dependencies not supported.
10227 # `unknown' -- same as none, but documents that we really don't know.
10228 # 'pass_all' -- all dependencies passed with no checks.
10229 # 'test_compile' -- check by making test program.
10230 # 'file_magic [[regex]]' -- check by looking for files in library path
10231 # which responds to the $file_magic_cmd with a given extended regex.
10232 # If you have `file' or equivalent on your system and you're not sure
10233 # whether `pass_all' will *always* work, you probably want this one.
10234
10235 case $host_os in
10236 aix4* | aix5*)
10237   lt_cv_deplibs_check_method=pass_all
10238   ;;
10239
10240 beos*)
10241   lt_cv_deplibs_check_method=pass_all
10242   ;;
10243
10244 bsdi[45]*)
10245   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10246   lt_cv_file_magic_cmd='/usr/bin/file -L'
10247   lt_cv_file_magic_test_file=/shlib/libc.so
10248   ;;
10249
10250 cygwin*)
10251   # func_win32_libid is a shell function defined in ltmain.sh
10252   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10253   lt_cv_file_magic_cmd='func_win32_libid'
10254   ;;
10255
10256 mingw* | pw32*)
10257   # Base MSYS/MinGW do not provide the 'file' command needed by
10258   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10259   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10260   lt_cv_file_magic_cmd='$OBJDUMP -f'
10261   ;;
10262
10263 darwin* | rhapsody*)
10264   lt_cv_deplibs_check_method=pass_all
10265   ;;
10266
10267 freebsd* | kfreebsd*-gnu)
10268   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10269     case $host_cpu in
10270     i*86 )
10271       # Not sure whether the presence of OpenBSD here was a mistake.
10272       # Let's accept both of them until this is cleared up.
10273       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10274       lt_cv_file_magic_cmd=/usr/bin/file
10275       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10276       ;;
10277     esac
10278   else
10279     lt_cv_deplibs_check_method=pass_all
10280   fi
10281   ;;
10282
10283 gnu*)
10284   lt_cv_deplibs_check_method=pass_all
10285   ;;
10286
10287 hpux10.20* | hpux11*)
10288   lt_cv_file_magic_cmd=/usr/bin/file
10289   case "$host_cpu" in
10290   ia64*)
10291     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10292     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10293     ;;
10294   hppa*64*)
10295     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]'
10296     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10297     ;;
10298   *)
10299     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10300     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10301     ;;
10302   esac
10303   ;;
10304
10305 irix5* | irix6* | nonstopux*)
10306   case $LD in
10307   *-32|*"-32 ") libmagic=32-bit;;
10308   *-n32|*"-n32 ") libmagic=N32;;
10309   *-64|*"-64 ") libmagic=64-bit;;
10310   *) libmagic=never-match;;
10311   esac
10312   lt_cv_deplibs_check_method=pass_all
10313   ;;
10314
10315 # This must be Linux ELF.
10316 linux*)
10317   lt_cv_deplibs_check_method=pass_all
10318   ;;
10319
10320 netbsd*)
10321   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10322     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10323   else
10324     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10325   fi
10326   ;;
10327
10328 newos6*)
10329   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10330   lt_cv_file_magic_cmd=/usr/bin/file
10331   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10332   ;;
10333
10334 nto-qnx*)
10335   lt_cv_deplibs_check_method=unknown
10336   ;;
10337
10338 openbsd*)
10339   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10340     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10341   else
10342     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10343   fi
10344   ;;
10345
10346 osf3* | osf4* | osf5*)
10347   lt_cv_deplibs_check_method=pass_all
10348   ;;
10349
10350 sco3.2v5*)
10351   lt_cv_deplibs_check_method=pass_all
10352   ;;
10353
10354 solaris*)
10355   lt_cv_deplibs_check_method=pass_all
10356   ;;
10357
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359   case $host_vendor in
10360   motorola)
10361     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]'
10362     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10363     ;;
10364   ncr)
10365     lt_cv_deplibs_check_method=pass_all
10366     ;;
10367   sequent)
10368     lt_cv_file_magic_cmd='/bin/file'
10369     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10370     ;;
10371   sni)
10372     lt_cv_file_magic_cmd='/bin/file'
10373     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10374     lt_cv_file_magic_test_file=/lib/libc.so
10375     ;;
10376   siemens)
10377     lt_cv_deplibs_check_method=pass_all
10378     ;;
10379   esac
10380   ;;
10381
10382 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10383   lt_cv_deplibs_check_method=pass_all
10384   ;;
10385 esac
10386
10387 fi
10388 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10389 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10390 file_magic_cmd=$lt_cv_file_magic_cmd
10391 deplibs_check_method=$lt_cv_deplibs_check_method
10392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10393
10394
10395
10396 # If no C compiler was specified, use CC.
10397 LTCC=${LTCC-"$CC"}
10398
10399 # Allow CC to be a program name with arguments.
10400 compiler=$CC
10401
10402 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10403 if test "${enable_libtool_lock+set}" = set; then
10404   enableval="$enable_libtool_lock"
10405
10406 fi;
10407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10408
10409 # Some flags need to be propagated to the compiler or linker for good
10410 # libtool support.
10411 case $host in
10412 ia64-*-hpux*)
10413   # Find out which ABI we are using.
10414   echo 'int i;' > conftest.$ac_ext
10415   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416   (eval $ac_compile) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; then
10420     case `/usr/bin/file conftest.$ac_objext` in
10421     *ELF-32*)
10422       HPUX_IA64_MODE="32"
10423       ;;
10424     *ELF-64*)
10425       HPUX_IA64_MODE="64"
10426       ;;
10427     esac
10428   fi
10429   rm -rf conftest*
10430   ;;
10431 *-*-irix6*)
10432   # Find out which ABI we are using.
10433   echo '#line 10433 "configure"' > conftest.$ac_ext
10434   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10435   (eval $ac_compile) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); }; then
10439    if test "$lt_cv_prog_gnu_ld" = yes; then
10440     case `/usr/bin/file conftest.$ac_objext` in
10441     *32-bit*)
10442       LD="${LD-ld} -melf32bsmip"
10443       ;;
10444     *N32*)
10445       LD="${LD-ld} -melf32bmipn32"
10446       ;;
10447     *64-bit*)
10448       LD="${LD-ld} -melf64bmip"
10449       ;;
10450     esac
10451    else
10452     case `/usr/bin/file conftest.$ac_objext` in
10453     *32-bit*)
10454       LD="${LD-ld} -32"
10455       ;;
10456     *N32*)
10457       LD="${LD-ld} -n32"
10458       ;;
10459     *64-bit*)
10460       LD="${LD-ld} -64"
10461       ;;
10462     esac
10463    fi
10464   fi
10465   rm -rf conftest*
10466   ;;
10467
10468 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10469   # Find out which ABI we are using.
10470   echo 'int i;' > conftest.$ac_ext
10471   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472   (eval $ac_compile) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; then
10476     case "`/usr/bin/file conftest.o`" in
10477     *32-bit*)
10478       case $host in
10479         x86_64-*linux*)
10480           LD="${LD-ld} -m elf_i386"
10481           ;;
10482         ppc64-*linux*|powerpc64-*linux*)
10483           LD="${LD-ld} -m elf32ppclinux"
10484           ;;
10485         s390x-*linux*)
10486           LD="${LD-ld} -m elf_s390"
10487           ;;
10488         sparc64-*linux*)
10489           LD="${LD-ld} -m elf32_sparc"
10490           ;;
10491       esac
10492       ;;
10493     *64-bit*)
10494       case $host in
10495         x86_64-*linux*)
10496           LD="${LD-ld} -m elf_x86_64"
10497           ;;
10498         ppc*-*linux*|powerpc*-*linux*)
10499           LD="${LD-ld} -m elf64ppc"
10500           ;;
10501         s390*-*linux*)
10502           LD="${LD-ld} -m elf64_s390"
10503           ;;
10504         sparc*-*linux*)
10505           LD="${LD-ld} -m elf64_sparc"
10506           ;;
10507       esac
10508       ;;
10509     esac
10510   fi
10511   rm -rf conftest*
10512   ;;
10513
10514 *-*-sco3.2v5*)
10515   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10516   SAVE_CFLAGS="$CFLAGS"
10517   CFLAGS="$CFLAGS -belf"
10518   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10519 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10520 if test "${lt_cv_cc_needs_belf+set}" = set; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   ac_ext=c
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528
10529      cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h.  */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h.  */
10535
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539   (eval $ac_link) 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } &&
10546          { ac_try='test -z "$ac_c_werror_flag"
10547                          || test ! -s conftest.err'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; } &&
10553          { ac_try='test -s conftest$ac_exeext'
10554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555   (eval $ac_try) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   lt_cv_cc_needs_belf=yes
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 lt_cv_cc_needs_belf=no
10565 fi
10566 rm -f conftest.err conftest.$ac_objext \
10567       conftest$ac_exeext conftest.$ac_ext
10568      ac_ext=c
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573
10574 fi
10575 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10576 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10577   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10578     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10579     CFLAGS="$SAVE_CFLAGS"
10580   fi
10581   ;;
10582
10583 esac
10584
10585 need_locks="$enable_libtool_lock"
10586
10587
10588
10589
10590 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10591     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10592     (test "X$CXX" != "Xg++"))) ; then
10593   ac_ext=cc
10594 ac_cpp='$CXXCPP $CPPFLAGS'
10595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10599 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10600 if test -z "$CXXCPP"; then
10601   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604       # Double quotes because CXXCPP needs to be expanded
10605     for CXXCPP in "$CXX -E" "/lib/cpp"
10606     do
10607       ac_preproc_ok=false
10608 for ac_cxx_preproc_warn_flag in '' yes
10609 do
10610   # Use a header file that comes with gcc, so configuring glibc
10611   # with a fresh cross-compiler works.
10612   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613   # <limits.h> exists even on freestanding compilers.
10614   # On the NeXT, cc -E runs the code through the compiler's parser,
10615   # not just through cpp. "Syntax error" is here to catch this case.
10616   cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 #ifdef __STDC__
10623 # include <limits.h>
10624 #else
10625 # include <assert.h>
10626 #endif
10627                      Syntax error
10628 _ACEOF
10629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10631   ac_status=$?
10632   grep -v '^ *+' conftest.er1 >conftest.err
10633   rm -f conftest.er1
10634   cat conftest.err >&5
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); } >/dev/null; then
10637   if test -s conftest.err; then
10638     ac_cpp_err=$ac_cxx_preproc_warn_flag
10639     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10640   else
10641     ac_cpp_err=
10642   fi
10643 else
10644   ac_cpp_err=yes
10645 fi
10646 if test -z "$ac_cpp_err"; then
10647   :
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652   # Broken: fails on valid input.
10653 continue
10654 fi
10655 rm -f conftest.err conftest.$ac_ext
10656
10657   # OK, works on sane cases.  Now check whether non-existent headers
10658   # can be detected and how.
10659   cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h.  */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h.  */
10665 #include <ac_nonexistent.h>
10666 _ACEOF
10667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10669   ac_status=$?
10670   grep -v '^ *+' conftest.er1 >conftest.err
10671   rm -f conftest.er1
10672   cat conftest.err >&5
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } >/dev/null; then
10675   if test -s conftest.err; then
10676     ac_cpp_err=$ac_cxx_preproc_warn_flag
10677     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10678   else
10679     ac_cpp_err=
10680   fi
10681 else
10682   ac_cpp_err=yes
10683 fi
10684 if test -z "$ac_cpp_err"; then
10685   # Broken: success on invalid input.
10686 continue
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691   # Passes both tests.
10692 ac_preproc_ok=:
10693 break
10694 fi
10695 rm -f conftest.err conftest.$ac_ext
10696
10697 done
10698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10699 rm -f conftest.err conftest.$ac_ext
10700 if $ac_preproc_ok; then
10701   break
10702 fi
10703
10704     done
10705     ac_cv_prog_CXXCPP=$CXXCPP
10706
10707 fi
10708   CXXCPP=$ac_cv_prog_CXXCPP
10709 else
10710   ac_cv_prog_CXXCPP=$CXXCPP
10711 fi
10712 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10713 echo "${ECHO_T}$CXXCPP" >&6
10714 ac_preproc_ok=false
10715 for ac_cxx_preproc_warn_flag in '' yes
10716 do
10717   # Use a header file that comes with gcc, so configuring glibc
10718   # with a fresh cross-compiler works.
10719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720   # <limits.h> exists even on freestanding compilers.
10721   # On the NeXT, cc -E runs the code through the compiler's parser,
10722   # not just through cpp. "Syntax error" is here to catch this case.
10723   cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 #ifdef __STDC__
10730 # include <limits.h>
10731 #else
10732 # include <assert.h>
10733 #endif
10734                      Syntax error
10735 _ACEOF
10736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10738   ac_status=$?
10739   grep -v '^ *+' conftest.er1 >conftest.err
10740   rm -f conftest.er1
10741   cat conftest.err >&5
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } >/dev/null; then
10744   if test -s conftest.err; then
10745     ac_cpp_err=$ac_cxx_preproc_warn_flag
10746     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10747   else
10748     ac_cpp_err=
10749   fi
10750 else
10751   ac_cpp_err=yes
10752 fi
10753 if test -z "$ac_cpp_err"; then
10754   :
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759   # Broken: fails on valid input.
10760 continue
10761 fi
10762 rm -f conftest.err conftest.$ac_ext
10763
10764   # OK, works on sane cases.  Now check whether non-existent headers
10765   # can be detected and how.
10766   cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 #include <ac_nonexistent.h>
10773 _ACEOF
10774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10776   ac_status=$?
10777   grep -v '^ *+' conftest.er1 >conftest.err
10778   rm -f conftest.er1
10779   cat conftest.err >&5
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } >/dev/null; then
10782   if test -s conftest.err; then
10783     ac_cpp_err=$ac_cxx_preproc_warn_flag
10784     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10785   else
10786     ac_cpp_err=
10787   fi
10788 else
10789   ac_cpp_err=yes
10790 fi
10791 if test -z "$ac_cpp_err"; then
10792   # Broken: success on invalid input.
10793 continue
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798   # Passes both tests.
10799 ac_preproc_ok=:
10800 break
10801 fi
10802 rm -f conftest.err conftest.$ac_ext
10803
10804 done
10805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10806 rm -f conftest.err conftest.$ac_ext
10807 if $ac_preproc_ok; then
10808   :
10809 else
10810   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10811 See \`config.log' for more details." >&5
10812 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10813 See \`config.log' for more details." >&2;}
10814    { (exit 1); exit 1; }; }
10815 fi
10816
10817 ac_ext=cc
10818 ac_cpp='$CXXCPP $CPPFLAGS'
10819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10822
10823 fi
10824
10825
10826 ac_ext=f
10827 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10828 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10829 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10830 if test -n "$ac_tool_prefix"; then
10831   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10832   do
10833     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10835 echo "$as_me:$LINENO: checking for $ac_word" >&5
10836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10837 if test "${ac_cv_prog_F77+set}" = set; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   if test -n "$F77"; then
10841   ac_cv_prog_F77="$F77" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848   for ac_exec_ext in '' $ac_executable_extensions; do
10849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855 done
10856
10857 fi
10858 fi
10859 F77=$ac_cv_prog_F77
10860 if test -n "$F77"; then
10861   echo "$as_me:$LINENO: result: $F77" >&5
10862 echo "${ECHO_T}$F77" >&6
10863 else
10864   echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10866 fi
10867
10868     test -n "$F77" && break
10869   done
10870 fi
10871 if test -z "$F77"; then
10872   ac_ct_F77=$F77
10873   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10874 do
10875   # Extract the first word of "$ac_prog", so it can be a program name with args.
10876 set dummy $ac_prog; ac_word=$2
10877 echo "$as_me:$LINENO: checking for $ac_word" >&5
10878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10879 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   if test -n "$ac_ct_F77"; then
10883   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10887 do
10888   IFS=$as_save_IFS
10889   test -z "$as_dir" && as_dir=.
10890   for ac_exec_ext in '' $ac_executable_extensions; do
10891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892     ac_cv_prog_ac_ct_F77="$ac_prog"
10893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10894     break 2
10895   fi
10896 done
10897 done
10898
10899 fi
10900 fi
10901 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10902 if test -n "$ac_ct_F77"; then
10903   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10904 echo "${ECHO_T}$ac_ct_F77" >&6
10905 else
10906   echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6
10908 fi
10909
10910   test -n "$ac_ct_F77" && break
10911 done
10912
10913   F77=$ac_ct_F77
10914 fi
10915
10916
10917 # Provide some information about the compiler.
10918 echo "$as_me:10918:" \
10919      "checking for Fortran 77 compiler version" >&5
10920 ac_compiler=`set X $ac_compile; echo $2`
10921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10922   (eval $ac_compiler --version </dev/null >&5) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }
10926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10927   (eval $ac_compiler -v </dev/null >&5) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }
10931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10932   (eval $ac_compiler -V </dev/null >&5) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }
10936 rm -f a.out
10937
10938 # If we don't use `.F' as extension, the preprocessor is not run on the
10939 # input file.  (Note that this only needs to work for GNU compilers.)
10940 ac_save_ext=$ac_ext
10941 ac_ext=F
10942 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10943 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10944 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   cat >conftest.$ac_ext <<_ACEOF
10948       program main
10949 #ifndef __GNUC__
10950        choke me
10951 #endif
10952
10953       end
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957   (eval $ac_compile) 2>conftest.er1
10958   ac_status=$?
10959   grep -v '^ *+' conftest.er1 >conftest.err
10960   rm -f conftest.er1
10961   cat conftest.err >&5
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } &&
10964          { ac_try='test -z "$ac_f77_werror_flag"
10965                          || test ! -s conftest.err'
10966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967   (eval $ac_try) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; } &&
10971          { ac_try='test -s conftest.$ac_objext'
10972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973   (eval $ac_try) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }; then
10977   ac_compiler_gnu=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10981
10982 ac_compiler_gnu=no
10983 fi
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10985 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10986
10987 fi
10988 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10989 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10990 ac_ext=$ac_save_ext
10991 ac_test_FFLAGS=${FFLAGS+set}
10992 ac_save_FFLAGS=$FFLAGS
10993 FFLAGS=
10994 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10995 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10996 if test "${ac_cv_prog_f77_g+set}" = set; then
10997   echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999   FFLAGS=-g
11000 cat >conftest.$ac_ext <<_ACEOF
11001       program main
11002
11003       end
11004 _ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007   (eval $ac_compile) 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_f77_werror_flag"
11015                          || test ! -s conftest.err'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest.$ac_objext'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   ac_cv_prog_f77_g=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_cv_prog_f77_g=no
11033 fi
11034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035
11036 fi
11037 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11038 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11039 if test "$ac_test_FFLAGS" = set; then
11040   FFLAGS=$ac_save_FFLAGS
11041 elif test $ac_cv_prog_f77_g = yes; then
11042   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11043     FFLAGS="-g -O2"
11044   else
11045     FFLAGS="-g"
11046   fi
11047 else
11048   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11049     FFLAGS="-O2"
11050   else
11051     FFLAGS=
11052   fi
11053 fi
11054
11055 G77=`test $ac_compiler_gnu = yes && echo yes`
11056 ac_ext=c
11057 ac_cpp='$CPP $CPPFLAGS'
11058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11061
11062
11063
11064 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11065
11066 # find the maximum length of command line arguments
11067 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11068 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11069 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072     i=0
11073   teststring="ABCD"
11074
11075   case $build_os in
11076   msdosdjgpp*)
11077     # On DJGPP, this test can blow up pretty badly due to problems in libc
11078     # (any single argument exceeding 2000 bytes causes a buffer overrun
11079     # during glob expansion).  Even if it were fixed, the result of this
11080     # check would be larger than it should be.
11081     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11082     ;;
11083
11084   gnu*)
11085     # Under GNU Hurd, this test is not required because there is
11086     # no limit to the length of command line arguments.
11087     # Libtool will interpret -1 as no limit whatsoever
11088     lt_cv_sys_max_cmd_len=-1;
11089     ;;
11090
11091   cygwin* | mingw*)
11092     # On Win9x/ME, this test blows up -- it succeeds, but takes
11093     # about 5 minutes as the teststring grows exponentially.
11094     # Worse, since 9x/ME are not pre-emptively multitasking,
11095     # you end up with a "frozen" computer, even though with patience
11096     # the test eventually succeeds (with a max line length of 256k).
11097     # Instead, let's just punt: use the minimum linelength reported by
11098     # all of the supported platforms: 8192 (on NT/2K/XP).
11099     lt_cv_sys_max_cmd_len=8192;
11100     ;;
11101
11102   amigaos*)
11103     # On AmigaOS with pdksh, this test takes hours, literally.
11104     # So we just punt and use a minimum line length of 8192.
11105     lt_cv_sys_max_cmd_len=8192;
11106     ;;
11107
11108   netbsd* | freebsd* | openbsd* | darwin* )
11109     # This has been around since 386BSD, at least.  Likely further.
11110     if test -x /sbin/sysctl; then
11111       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11112     elif test -x /usr/sbin/sysctl; then
11113       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11114     else
11115       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11116     fi
11117     # And add a safety zone
11118     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11119     ;;
11120
11121  *)
11122     # If test is not a shell built-in, we'll probably end up computing a
11123     # maximum length that is only half of the actual maximum length, but
11124     # we can't tell.
11125     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11126     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11127                = "XX$teststring") >/dev/null 2>&1 &&
11128             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11129             lt_cv_sys_max_cmd_len=$new_result &&
11130             test $i != 17 # 1/2 MB should be enough
11131     do
11132       i=`expr $i + 1`
11133       teststring=$teststring$teststring
11134     done
11135     teststring=
11136     # Add a significant safety factor because C++ compilers can tack on massive
11137     # amounts of additional arguments before passing them to the linker.
11138     # It appears as though 1/2 is a usable value.
11139     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11140     ;;
11141   esac
11142
11143 fi
11144
11145 if test -n $lt_cv_sys_max_cmd_len ; then
11146   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11148 else
11149   echo "$as_me:$LINENO: result: none" >&5
11150 echo "${ECHO_T}none" >&6
11151 fi
11152
11153
11154
11155
11156 # Check for command to grab the raw symbol name followed by C symbol from nm.
11157 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11158 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11160   echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162
11163 # These are sane defaults that work on at least a few old systems.
11164 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11165
11166 # Character class describing NM global symbol codes.
11167 symcode='[BCDEGRST]'
11168
11169 # Regexp to match symbols that can be accessed directly from C.
11170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11171
11172 # Transform the above into a raw symbol and a C symbol.
11173 symxfrm='\1 \2\3 \3'
11174
11175 # Transform an extracted symbol line into a proper C declaration
11176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11177
11178 # Transform an extracted symbol line into symbol name and symbol address
11179 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'"
11180
11181 # Define system-specific variables.
11182 case $host_os in
11183 aix*)
11184   symcode='[BCDT]'
11185   ;;
11186 cygwin* | mingw* | pw32*)
11187   symcode='[ABCDGISTW]'
11188   ;;
11189 hpux*) # Its linker distinguishes data from code symbols
11190   if test "$host_cpu" = ia64; then
11191     symcode='[ABCDEGRST]'
11192   fi
11193   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11194   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'"
11195   ;;
11196 linux*)
11197   if test "$host_cpu" = ia64; then
11198     symcode='[ABCDGIRSTW]'
11199     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11200     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'"
11201   fi
11202   ;;
11203 irix* | nonstopux*)
11204   symcode='[BCDEGRST]'
11205   ;;
11206 osf*)
11207   symcode='[BCDEGQRST]'
11208   ;;
11209 solaris* | sysv5*)
11210   symcode='[BDRT]'
11211   ;;
11212 sysv4)
11213   symcode='[DFNSTU]'
11214   ;;
11215 esac
11216
11217 # Handle CRLF in mingw tool chain
11218 opt_cr=
11219 case $build_os in
11220 mingw*)
11221   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11222   ;;
11223 esac
11224
11225 # If we're using GNU nm, then use its standard symbol codes.
11226 case `$NM -V 2>&1` in
11227 *GNU* | *'with BFD'*)
11228   symcode='[ABCDGIRSTW]' ;;
11229 esac
11230
11231 # Try without a prefix undercore, then with it.
11232 for ac_symprfx in "" "_"; do
11233
11234   # Write the raw and C identifiers.
11235   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11236
11237   # Check to see that the pipe works correctly.
11238   pipe_works=no
11239
11240   rm -f conftest*
11241   cat > conftest.$ac_ext <<EOF
11242 #ifdef __cplusplus
11243 extern "C" {
11244 #endif
11245 char nm_test_var;
11246 void nm_test_func(){}
11247 #ifdef __cplusplus
11248 }
11249 #endif
11250 int main(){nm_test_var='a';nm_test_func();return(0);}
11251 EOF
11252
11253   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11254   (eval $ac_compile) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); }; then
11258     # Now try to grab the symbols.
11259     nlist=conftest.nm
11260     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11261   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } && test -s "$nlist"; then
11265       # Try sorting and uniquifying the output.
11266       if sort "$nlist" | uniq > "$nlist"T; then
11267         mv -f "$nlist"T "$nlist"
11268       else
11269         rm -f "$nlist"T
11270       fi
11271
11272       # Make sure that we snagged all the symbols we need.
11273       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11274         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11275           cat <<EOF > conftest.$ac_ext
11276 #ifdef __cplusplus
11277 extern "C" {
11278 #endif
11279
11280 EOF
11281           # Now generate the symbol file.
11282           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11283
11284           cat <<EOF >> conftest.$ac_ext
11285 #if defined (__STDC__) && __STDC__
11286 # define lt_ptr_t void *
11287 #else
11288 # define lt_ptr_t char *
11289 # define const
11290 #endif
11291
11292 /* The mapping between symbol names and symbols. */
11293 const struct {
11294   const char *name;
11295   lt_ptr_t address;
11296 }
11297 lt_preloaded_symbols[] =
11298 {
11299 EOF
11300           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11301           cat <<\EOF >> conftest.$ac_ext
11302   {0, (lt_ptr_t) 0}
11303 };
11304
11305 #ifdef __cplusplus
11306 }
11307 #endif
11308 EOF
11309           # Now try linking the two files.
11310           mv conftest.$ac_objext conftstm.$ac_objext
11311           lt_save_LIBS="$LIBS"
11312           lt_save_CFLAGS="$CFLAGS"
11313           LIBS="conftstm.$ac_objext"
11314           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11315           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316   (eval $ac_link) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11320             pipe_works=yes
11321           fi
11322           LIBS="$lt_save_LIBS"
11323           CFLAGS="$lt_save_CFLAGS"
11324         else
11325           echo "cannot find nm_test_func in $nlist" >&5
11326         fi
11327       else
11328         echo "cannot find nm_test_var in $nlist" >&5
11329       fi
11330     else
11331       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11332     fi
11333   else
11334     echo "$progname: failed program was:" >&5
11335     cat conftest.$ac_ext >&5
11336   fi
11337   rm -f conftest* conftst*
11338
11339   # Do not use the global_symbol_pipe unless it works.
11340   if test "$pipe_works" = yes; then
11341     break
11342   else
11343     lt_cv_sys_global_symbol_pipe=
11344   fi
11345 done
11346
11347 fi
11348
11349 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11350   lt_cv_sys_global_symbol_to_cdecl=
11351 fi
11352 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11353   echo "$as_me:$LINENO: result: failed" >&5
11354 echo "${ECHO_T}failed" >&6
11355 else
11356   echo "$as_me:$LINENO: result: ok" >&5
11357 echo "${ECHO_T}ok" >&6
11358 fi
11359
11360 echo "$as_me:$LINENO: checking for objdir" >&5
11361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11362 if test "${lt_cv_objdir+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   rm -f .libs 2>/dev/null
11366 mkdir .libs 2>/dev/null
11367 if test -d .libs; then
11368   lt_cv_objdir=.libs
11369 else
11370   # MS-DOS does not allow filenames that begin with a dot.
11371   lt_cv_objdir=_libs
11372 fi
11373 rmdir .libs 2>/dev/null
11374 fi
11375 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11376 echo "${ECHO_T}$lt_cv_objdir" >&6
11377 objdir=$lt_cv_objdir
11378
11379
11380
11381
11382
11383 case $host_os in
11384 aix3*)
11385   # AIX sometimes has problems with the GCC collect2 program.  For some
11386   # reason, if we set the COLLECT_NAMES environment variable, the problems
11387   # vanish in a puff of smoke.
11388   if test "X${COLLECT_NAMES+set}" != Xset; then
11389     COLLECT_NAMES=
11390     export COLLECT_NAMES
11391   fi
11392   ;;
11393 esac
11394
11395 # Sed substitution that helps us do robust quoting.  It backslashifies
11396 # metacharacters that are still active within double-quoted strings.
11397 Xsed='sed -e s/^X//'
11398 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11399
11400 # Same as above, but do not quote variable references.
11401 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11402
11403 # Sed substitution to delay expansion of an escaped shell variable in a
11404 # double_quote_subst'ed string.
11405 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11406
11407 # Sed substitution to avoid accidental globbing in evaled expressions
11408 no_glob_subst='s/\*/\\\*/g'
11409
11410 # Constants:
11411 rm="rm -f"
11412
11413 # Global variables:
11414 default_ofile=mklib
11415 can_build_shared=yes
11416
11417 # All known linkers require a `.a' archive for static linking (except M$VC,
11418 # which needs '.lib').
11419 libext=a
11420 ltmain="$ac_aux_dir/ltmain.sh"
11421 ofile="$default_ofile"
11422 with_gnu_ld="$lt_cv_prog_gnu_ld"
11423
11424 if test -n "$ac_tool_prefix"; then
11425   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11426 set dummy ${ac_tool_prefix}ar; ac_word=$2
11427 echo "$as_me:$LINENO: checking for $ac_word" >&5
11428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11429 if test "${ac_cv_prog_AR+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   if test -n "$AR"; then
11433   ac_cv_prog_AR="$AR" # Let the user override the test.
11434 else
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438   IFS=$as_save_IFS
11439   test -z "$as_dir" && as_dir=.
11440   for ac_exec_ext in '' $ac_executable_extensions; do
11441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442     ac_cv_prog_AR="${ac_tool_prefix}ar"
11443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444     break 2
11445   fi
11446 done
11447 done
11448
11449 fi
11450 fi
11451 AR=$ac_cv_prog_AR
11452 if test -n "$AR"; then
11453   echo "$as_me:$LINENO: result: $AR" >&5
11454 echo "${ECHO_T}$AR" >&6
11455 else
11456   echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6
11458 fi
11459
11460 fi
11461 if test -z "$ac_cv_prog_AR"; then
11462   ac_ct_AR=$AR
11463   # Extract the first word of "ar", so it can be a program name with args.
11464 set dummy ar; ac_word=$2
11465 echo "$as_me:$LINENO: checking for $ac_word" >&5
11466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11467 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   if test -n "$ac_ct_AR"; then
11471   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11475 do
11476   IFS=$as_save_IFS
11477   test -z "$as_dir" && as_dir=.
11478   for ac_exec_ext in '' $ac_executable_extensions; do
11479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480     ac_cv_prog_ac_ct_AR="ar"
11481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482     break 2
11483   fi
11484 done
11485 done
11486
11487   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11488 fi
11489 fi
11490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11491 if test -n "$ac_ct_AR"; then
11492   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11493 echo "${ECHO_T}$ac_ct_AR" >&6
11494 else
11495   echo "$as_me:$LINENO: result: no" >&5
11496 echo "${ECHO_T}no" >&6
11497 fi
11498
11499   AR=$ac_ct_AR
11500 else
11501   AR="$ac_cv_prog_AR"
11502 fi
11503
11504 if test -n "$ac_tool_prefix"; then
11505   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11507 echo "$as_me:$LINENO: checking for $ac_word" >&5
11508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11509 if test "${ac_cv_prog_RANLIB+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   if test -n "$RANLIB"; then
11513   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11514 else
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518   IFS=$as_save_IFS
11519   test -z "$as_dir" && as_dir=.
11520   for ac_exec_ext in '' $ac_executable_extensions; do
11521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524     break 2
11525   fi
11526 done
11527 done
11528
11529 fi
11530 fi
11531 RANLIB=$ac_cv_prog_RANLIB
11532 if test -n "$RANLIB"; then
11533   echo "$as_me:$LINENO: result: $RANLIB" >&5
11534 echo "${ECHO_T}$RANLIB" >&6
11535 else
11536   echo "$as_me:$LINENO: result: no" >&5
11537 echo "${ECHO_T}no" >&6
11538 fi
11539
11540 fi
11541 if test -z "$ac_cv_prog_RANLIB"; then
11542   ac_ct_RANLIB=$RANLIB
11543   # Extract the first word of "ranlib", so it can be a program name with args.
11544 set dummy ranlib; ac_word=$2
11545 echo "$as_me:$LINENO: checking for $ac_word" >&5
11546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   if test -n "$ac_ct_RANLIB"; then
11551   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11552 else
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11555 do
11556   IFS=$as_save_IFS
11557   test -z "$as_dir" && as_dir=.
11558   for ac_exec_ext in '' $ac_executable_extensions; do
11559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560     ac_cv_prog_ac_ct_RANLIB="ranlib"
11561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11562     break 2
11563   fi
11564 done
11565 done
11566
11567   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11568 fi
11569 fi
11570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11571 if test -n "$ac_ct_RANLIB"; then
11572   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11573 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11574 else
11575   echo "$as_me:$LINENO: result: no" >&5
11576 echo "${ECHO_T}no" >&6
11577 fi
11578
11579   RANLIB=$ac_ct_RANLIB
11580 else
11581   RANLIB="$ac_cv_prog_RANLIB"
11582 fi
11583
11584 if test -n "$ac_tool_prefix"; then
11585   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11586 set dummy ${ac_tool_prefix}strip; ac_word=$2
11587 echo "$as_me:$LINENO: checking for $ac_word" >&5
11588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11589 if test "${ac_cv_prog_STRIP+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   if test -n "$STRIP"; then
11593   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11597 do
11598   IFS=$as_save_IFS
11599   test -z "$as_dir" && as_dir=.
11600   for ac_exec_ext in '' $ac_executable_extensions; do
11601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11604     break 2
11605   fi
11606 done
11607 done
11608
11609 fi
11610 fi
11611 STRIP=$ac_cv_prog_STRIP
11612 if test -n "$STRIP"; then
11613   echo "$as_me:$LINENO: result: $STRIP" >&5
11614 echo "${ECHO_T}$STRIP" >&6
11615 else
11616   echo "$as_me:$LINENO: result: no" >&5
11617 echo "${ECHO_T}no" >&6
11618 fi
11619
11620 fi
11621 if test -z "$ac_cv_prog_STRIP"; then
11622   ac_ct_STRIP=$STRIP
11623   # Extract the first word of "strip", so it can be a program name with args.
11624 set dummy strip; ac_word=$2
11625 echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   if test -n "$ac_ct_STRIP"; then
11631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11632 else
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11635 do
11636   IFS=$as_save_IFS
11637   test -z "$as_dir" && as_dir=.
11638   for ac_exec_ext in '' $ac_executable_extensions; do
11639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640     ac_cv_prog_ac_ct_STRIP="strip"
11641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642     break 2
11643   fi
11644 done
11645 done
11646
11647   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11648 fi
11649 fi
11650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11651 if test -n "$ac_ct_STRIP"; then
11652   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11653 echo "${ECHO_T}$ac_ct_STRIP" >&6
11654 else
11655   echo "$as_me:$LINENO: result: no" >&5
11656 echo "${ECHO_T}no" >&6
11657 fi
11658
11659   STRIP=$ac_ct_STRIP
11660 else
11661   STRIP="$ac_cv_prog_STRIP"
11662 fi
11663
11664
11665 old_CC="$CC"
11666 old_CFLAGS="$CFLAGS"
11667
11668 # Set sane defaults for various variables
11669 test -z "$AR" && AR=ar
11670 test -z "$AR_FLAGS" && AR_FLAGS=cru
11671 test -z "$AS" && AS=as
11672 test -z "$CC" && CC=cc
11673 test -z "$LTCC" && LTCC=$CC
11674 test -z "$DLLTOOL" && DLLTOOL=dlltool
11675 test -z "$LD" && LD=ld
11676 test -z "$LN_S" && LN_S="ln -s"
11677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11678 test -z "$NM" && NM=nm
11679 test -z "$SED" && SED=sed
11680 test -z "$OBJDUMP" && OBJDUMP=objdump
11681 test -z "$RANLIB" && RANLIB=:
11682 test -z "$STRIP" && STRIP=:
11683 test -z "$ac_objext" && ac_objext=o
11684
11685 # Determine commands to create old-style static archives.
11686 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11687 old_postinstall_cmds='chmod 644 $oldlib'
11688 old_postuninstall_cmds=
11689
11690 if test -n "$RANLIB"; then
11691   case $host_os in
11692   openbsd*)
11693     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11694     ;;
11695   *)
11696     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11697     ;;
11698   esac
11699   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11700 fi
11701
11702 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11703
11704 # Only perform the check for file, if the check method requires it
11705 case $deplibs_check_method in
11706 file_magic*)
11707   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11708     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11709 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   case $MAGIC_CMD in
11714 [\\/*] |  ?:[\\/]*)
11715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11716   ;;
11717 *)
11718   lt_save_MAGIC_CMD="$MAGIC_CMD"
11719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721   for ac_dir in $ac_dummy; do
11722     IFS="$lt_save_ifs"
11723     test -z "$ac_dir" && ac_dir=.
11724     if test -f $ac_dir/${ac_tool_prefix}file; then
11725       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11726       if test -n "$file_magic_test_file"; then
11727         case $deplibs_check_method in
11728         "file_magic "*)
11729           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732             $EGREP "$file_magic_regex" > /dev/null; then
11733             :
11734           else
11735             cat <<EOF 1>&2
11736
11737 *** Warning: the command libtool uses to detect shared libraries,
11738 *** $file_magic_cmd, produces output that libtool cannot recognize.
11739 *** The result is that libtool may fail to recognize shared libraries
11740 *** as such.  This will affect the creation of libtool libraries that
11741 *** depend on shared libraries, but programs linked with such libtool
11742 *** libraries will work regardless of this problem.  Nevertheless, you
11743 *** may want to report the problem to your system manager and/or to
11744 *** bug-libtool@gnu.org
11745
11746 EOF
11747           fi ;;
11748         esac
11749       fi
11750       break
11751     fi
11752   done
11753   IFS="$lt_save_ifs"
11754   MAGIC_CMD="$lt_save_MAGIC_CMD"
11755   ;;
11756 esac
11757 fi
11758
11759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760 if test -n "$MAGIC_CMD"; then
11761   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762 echo "${ECHO_T}$MAGIC_CMD" >&6
11763 else
11764   echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6
11766 fi
11767
11768 if test -z "$lt_cv_path_MAGIC_CMD"; then
11769   if test -n "$ac_tool_prefix"; then
11770     echo "$as_me:$LINENO: checking for file" >&5
11771 echo $ECHO_N "checking for file... $ECHO_C" >&6
11772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775   case $MAGIC_CMD in
11776 [\\/*] |  ?:[\\/]*)
11777   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11778   ;;
11779 *)
11780   lt_save_MAGIC_CMD="$MAGIC_CMD"
11781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11782   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11783   for ac_dir in $ac_dummy; do
11784     IFS="$lt_save_ifs"
11785     test -z "$ac_dir" && ac_dir=.
11786     if test -f $ac_dir/file; then
11787       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11788       if test -n "$file_magic_test_file"; then
11789         case $deplibs_check_method in
11790         "file_magic "*)
11791           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11792           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11793           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11794             $EGREP "$file_magic_regex" > /dev/null; then
11795             :
11796           else
11797             cat <<EOF 1>&2
11798
11799 *** Warning: the command libtool uses to detect shared libraries,
11800 *** $file_magic_cmd, produces output that libtool cannot recognize.
11801 *** The result is that libtool may fail to recognize shared libraries
11802 *** as such.  This will affect the creation of libtool libraries that
11803 *** depend on shared libraries, but programs linked with such libtool
11804 *** libraries will work regardless of this problem.  Nevertheless, you
11805 *** may want to report the problem to your system manager and/or to
11806 *** bug-libtool@gnu.org
11807
11808 EOF
11809           fi ;;
11810         esac
11811       fi
11812       break
11813     fi
11814   done
11815   IFS="$lt_save_ifs"
11816   MAGIC_CMD="$lt_save_MAGIC_CMD"
11817   ;;
11818 esac
11819 fi
11820
11821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822 if test -n "$MAGIC_CMD"; then
11823   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11824 echo "${ECHO_T}$MAGIC_CMD" >&6
11825 else
11826   echo "$as_me:$LINENO: result: no" >&5
11827 echo "${ECHO_T}no" >&6
11828 fi
11829
11830   else
11831     MAGIC_CMD=:
11832   fi
11833 fi
11834
11835   fi
11836   ;;
11837 esac
11838
11839 enable_dlopen=yes
11840 enable_win32_dll=no
11841
11842 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11843 if test "${enable_libtool_lock+set}" = set; then
11844   enableval="$enable_libtool_lock"
11845
11846 fi;
11847 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11848
11849
11850 # Check whether --with-pic or --without-pic was given.
11851 if test "${with_pic+set}" = set; then
11852   withval="$with_pic"
11853   pic_mode="$withval"
11854 else
11855   pic_mode=default
11856 fi;
11857 test -z "$pic_mode" && pic_mode=default
11858
11859 # Use C for the default configuration in the libtool script
11860 tagname=
11861 lt_save_CC="$CC"
11862 ac_ext=c
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11867
11868
11869 # Source file extension for C test sources.
11870 ac_ext=c
11871
11872 # Object file extension for compiled C test sources.
11873 objext=o
11874 objext=$objext
11875
11876 # Code to be used in simple compile tests
11877 lt_simple_compile_test_code="int some_variable = 0;\n"
11878
11879 # Code to be used in simple link tests
11880 lt_simple_link_test_code='int main(){return(0);}\n'
11881
11882
11883 # If no C compiler was specified, use CC.
11884 LTCC=${LTCC-"$CC"}
11885
11886 # Allow CC to be a program name with arguments.
11887 compiler=$CC
11888
11889
11890 #
11891 # Check for any special shared library compilation flags.
11892 #
11893 lt_prog_cc_shlib=
11894 if test "$GCC" = no; then
11895   case $host_os in
11896   sco3.2v5*)
11897     lt_prog_cc_shlib='-belf'
11898     ;;
11899   esac
11900 fi
11901 if test -n "$lt_prog_cc_shlib"; then
11902   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11903 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11904   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11905   else
11906     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11907 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11908     lt_cv_prog_cc_can_build_shared=no
11909   fi
11910 fi
11911
11912
11913 #
11914 # Check to make sure the static flag actually works.
11915 #
11916 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11917 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11918 if test "${lt_prog_compiler_static_works+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   lt_prog_compiler_static_works=no
11922    save_LDFLAGS="$LDFLAGS"
11923    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11924    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11925    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11926      # The compiler can only warn and ignore the option if not recognized
11927      # So say no if there are warnings
11928      if test -s conftest.err; then
11929        # Append any errors to the config.log.
11930        cat conftest.err 1>&5
11931      else
11932        lt_prog_compiler_static_works=yes
11933      fi
11934    fi
11935    $rm conftest*
11936    LDFLAGS="$save_LDFLAGS"
11937
11938 fi
11939 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11940 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11941
11942 if test x"$lt_prog_compiler_static_works" = xyes; then
11943     :
11944 else
11945     lt_prog_compiler_static=
11946 fi
11947
11948
11949
11950
11951 lt_prog_compiler_no_builtin_flag=
11952
11953 if test "$GCC" = yes; then
11954   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11955
11956
11957 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11958 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   lt_cv_prog_compiler_rtti_exceptions=no
11963   ac_outfile=conftest.$ac_objext
11964    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11965    lt_compiler_flag="-fno-rtti -fno-exceptions"
11966    # Insert the option either (1) after the last *FLAGS variable, or
11967    # (2) before a word containing "conftest.", or (3) at the end.
11968    # Note that $ac_compile itself does not contain backslashes and begins
11969    # with a dollar sign (not a hyphen), so the echo should work correctly.
11970    # The option is referenced via a variable to avoid confusing sed.
11971    lt_compile=`echo "$ac_compile" | $SED \
11972    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11974    -e 's:$: $lt_compiler_flag:'`
11975    (eval echo "\"\$as_me:11975: $lt_compile\"" >&5)
11976    (eval "$lt_compile" 2>conftest.err)
11977    ac_status=$?
11978    cat conftest.err >&5
11979    echo "$as_me:11979: \$? = $ac_status" >&5
11980    if (exit $ac_status) && test -s "$ac_outfile"; then
11981      # The compiler can only warn and ignore the option if not recognized
11982      # So say no if there are warnings
11983      if test ! -s conftest.err; then
11984        lt_cv_prog_compiler_rtti_exceptions=yes
11985      fi
11986    fi
11987    $rm conftest*
11988
11989 fi
11990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11991 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11992
11993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11994     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11995 else
11996     :
11997 fi
11998
11999 fi
12000
12001 lt_prog_compiler_wl=
12002 lt_prog_compiler_pic=
12003 lt_prog_compiler_static=
12004
12005 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12007
12008   if test "$GCC" = yes; then
12009     lt_prog_compiler_wl='-Wl,'
12010     lt_prog_compiler_static='-static'
12011
12012     case $host_os in
12013       aix*)
12014       # All AIX code is PIC.
12015       if test "$host_cpu" = ia64; then
12016         # AIX 5 now supports IA64 processor
12017         lt_prog_compiler_static='-Bstatic'
12018       fi
12019       ;;
12020
12021     amigaos*)
12022       # FIXME: we need at least 68020 code to build shared libraries, but
12023       # adding the `-m68020' flag to GCC prevents building anything better,
12024       # like `-m68040'.
12025       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12026       ;;
12027
12028     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12029       # PIC is the default for these OSes.
12030       ;;
12031
12032     mingw* | pw32* | os2*)
12033       # This hack is so that the source file can tell whether it is being
12034       # built for inclusion in a dll (and should export symbols for example).
12035       lt_prog_compiler_pic='-DDLL_EXPORT'
12036       ;;
12037
12038     darwin* | rhapsody*)
12039       # PIC is the default on this platform
12040       # Common symbols not allowed in MH_DYLIB files
12041       lt_prog_compiler_pic='-fno-common'
12042       ;;
12043
12044     msdosdjgpp*)
12045       # Just because we use GCC doesn't mean we suddenly get shared libraries
12046       # on systems that don't support them.
12047       lt_prog_compiler_can_build_shared=no
12048       enable_shared=no
12049       ;;
12050
12051     sysv4*MP*)
12052       if test -d /usr/nec; then
12053         lt_prog_compiler_pic=-Kconform_pic
12054       fi
12055       ;;
12056
12057     hpux*)
12058       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12059       # not for PA HP-UX.
12060       case "$host_cpu" in
12061       hppa*64*|ia64*)
12062         # +Z the default
12063         ;;
12064       *)
12065         lt_prog_compiler_pic='-fPIC'
12066         ;;
12067       esac
12068       ;;
12069
12070     *)
12071       lt_prog_compiler_pic='-fPIC'
12072       ;;
12073     esac
12074   else
12075     # PORTME Check for flag to pass linker flags through the system compiler.
12076     case $host_os in
12077     aix*)
12078       lt_prog_compiler_wl='-Wl,'
12079       if test "$host_cpu" = ia64; then
12080         # AIX 5 now supports IA64 processor
12081         lt_prog_compiler_static='-Bstatic'
12082       else
12083         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12084       fi
12085       ;;
12086       darwin*)
12087         # PIC is the default on this platform
12088         # Common symbols not allowed in MH_DYLIB files
12089        case "$cc_basename" in
12090          xlc*)
12091          lt_prog_compiler_pic='-qnocommon'
12092          lt_prog_compiler_wl='-Wl,'
12093          ;;
12094        esac
12095        ;;
12096
12097     mingw* | pw32* | os2*)
12098       # This hack is so that the source file can tell whether it is being
12099       # built for inclusion in a dll (and should export symbols for example).
12100       lt_prog_compiler_pic='-DDLL_EXPORT'
12101       ;;
12102
12103     hpux9* | hpux10* | hpux11*)
12104       lt_prog_compiler_wl='-Wl,'
12105       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12106       # not for PA HP-UX.
12107       case "$host_cpu" in
12108       hppa*64*|ia64*)
12109         # +Z the default
12110         ;;
12111       *)
12112         lt_prog_compiler_pic='+Z'
12113         ;;
12114       esac
12115       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12116       lt_prog_compiler_static='${wl}-a ${wl}archive'
12117       ;;
12118
12119     irix5* | irix6* | nonstopux*)
12120       lt_prog_compiler_wl='-Wl,'
12121       # PIC (with -KPIC) is the default.
12122       lt_prog_compiler_static='-non_shared'
12123       ;;
12124
12125     newsos6)
12126       lt_prog_compiler_pic='-KPIC'
12127       lt_prog_compiler_static='-Bstatic'
12128       ;;
12129
12130     linux*)
12131       case $CC in
12132       icc* | ecc*)
12133         lt_prog_compiler_wl='-Wl,'
12134         lt_prog_compiler_pic='-KPIC'
12135         lt_prog_compiler_static='-static'
12136         ;;
12137       ccc*)
12138         lt_prog_compiler_wl='-Wl,'
12139         # All Alpha code is PIC.
12140         lt_prog_compiler_static='-non_shared'
12141         ;;
12142       esac
12143       ;;
12144
12145     osf3* | osf4* | osf5*)
12146       lt_prog_compiler_wl='-Wl,'
12147       # All OSF/1 code is PIC.
12148       lt_prog_compiler_static='-non_shared'
12149       ;;
12150
12151     sco3.2v5*)
12152       lt_prog_compiler_pic='-Kpic'
12153       lt_prog_compiler_static='-dn'
12154       ;;
12155
12156     solaris*)
12157       lt_prog_compiler_wl='-Wl,'
12158       lt_prog_compiler_pic='-KPIC'
12159       lt_prog_compiler_static='-Bstatic'
12160       ;;
12161
12162     sunos4*)
12163       lt_prog_compiler_wl='-Qoption ld '
12164       lt_prog_compiler_pic='-PIC'
12165       lt_prog_compiler_static='-Bstatic'
12166       ;;
12167
12168     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12169       lt_prog_compiler_wl='-Wl,'
12170       lt_prog_compiler_pic='-KPIC'
12171       lt_prog_compiler_static='-Bstatic'
12172       ;;
12173
12174     sysv4*MP*)
12175       if test -d /usr/nec ;then
12176         lt_prog_compiler_pic='-Kconform_pic'
12177         lt_prog_compiler_static='-Bstatic'
12178       fi
12179       ;;
12180
12181     uts4*)
12182       lt_prog_compiler_pic='-pic'
12183       lt_prog_compiler_static='-Bstatic'
12184       ;;
12185
12186     *)
12187       lt_prog_compiler_can_build_shared=no
12188       ;;
12189     esac
12190   fi
12191
12192 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12193 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12194
12195 #
12196 # Check to make sure the PIC flag actually works.
12197 #
12198 if test -n "$lt_prog_compiler_pic"; then
12199
12200 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12201 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12202 if test "${lt_prog_compiler_pic_works+set}" = set; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   lt_prog_compiler_pic_works=no
12206   ac_outfile=conftest.$ac_objext
12207    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12208    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12209    # Insert the option either (1) after the last *FLAGS variable, or
12210    # (2) before a word containing "conftest.", or (3) at the end.
12211    # Note that $ac_compile itself does not contain backslashes and begins
12212    # with a dollar sign (not a hyphen), so the echo should work correctly.
12213    # The option is referenced via a variable to avoid confusing sed.
12214    lt_compile=`echo "$ac_compile" | $SED \
12215    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12216    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12217    -e 's:$: $lt_compiler_flag:'`
12218    (eval echo "\"\$as_me:12218: $lt_compile\"" >&5)
12219    (eval "$lt_compile" 2>conftest.err)
12220    ac_status=$?
12221    cat conftest.err >&5
12222    echo "$as_me:12222: \$? = $ac_status" >&5
12223    if (exit $ac_status) && test -s "$ac_outfile"; then
12224      # The compiler can only warn and ignore the option if not recognized
12225      # So say no if there are warnings
12226      if test ! -s conftest.err; then
12227        lt_prog_compiler_pic_works=yes
12228      fi
12229    fi
12230    $rm conftest*
12231
12232 fi
12233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12234 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12235
12236 if test x"$lt_prog_compiler_pic_works" = xyes; then
12237     case $lt_prog_compiler_pic in
12238      "" | " "*) ;;
12239      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12240      esac
12241 else
12242     lt_prog_compiler_pic=
12243      lt_prog_compiler_can_build_shared=no
12244 fi
12245
12246 fi
12247 case "$host_os" in
12248   # For platforms which do not support PIC, -DPIC is meaningless:
12249   *djgpp*)
12250     lt_prog_compiler_pic=
12251     ;;
12252   *)
12253     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12254     ;;
12255 esac
12256
12257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12259 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262   lt_cv_prog_compiler_c_o=no
12263    $rm -r conftest 2>/dev/null
12264    mkdir conftest
12265    cd conftest
12266    mkdir out
12267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12268
12269    lt_compiler_flag="-o out/conftest2.$ac_objext"
12270    # Insert the option either (1) after the last *FLAGS variable, or
12271    # (2) before a word containing "conftest.", or (3) at the end.
12272    # Note that $ac_compile itself does not contain backslashes and begins
12273    # with a dollar sign (not a hyphen), so the echo should work correctly.
12274    lt_compile=`echo "$ac_compile" | $SED \
12275    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12277    -e 's:$: $lt_compiler_flag:'`
12278    (eval echo "\"\$as_me:12278: $lt_compile\"" >&5)
12279    (eval "$lt_compile" 2>out/conftest.err)
12280    ac_status=$?
12281    cat out/conftest.err >&5
12282    echo "$as_me:12282: \$? = $ac_status" >&5
12283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12284    then
12285      # The compiler can only warn and ignore the option if not recognized
12286      # So say no if there are warnings
12287      if test ! -s out/conftest.err; then
12288        lt_cv_prog_compiler_c_o=yes
12289      fi
12290    fi
12291    chmod u+w .
12292    $rm conftest*
12293    # SGI C++ compiler will create directory out/ii_files/ for
12294    # template instantiation
12295    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12296    $rm out/* && rmdir out
12297    cd ..
12298    rmdir conftest
12299    $rm conftest*
12300
12301 fi
12302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12304
12305
12306 hard_links="nottested"
12307 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12308   # do not overwrite the value of need_locks provided by the user
12309   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12310 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12311   hard_links=yes
12312   $rm conftest*
12313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12314   touch conftest.a
12315   ln conftest.a conftest.b 2>&5 || hard_links=no
12316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12317   echo "$as_me:$LINENO: result: $hard_links" >&5
12318 echo "${ECHO_T}$hard_links" >&6
12319   if test "$hard_links" = no; then
12320     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12321 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12322     need_locks=warn
12323   fi
12324 else
12325   need_locks=no
12326 fi
12327
12328 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12330
12331   runpath_var=
12332   allow_undefined_flag=
12333   enable_shared_with_static_runtimes=no
12334   archive_cmds=
12335   archive_expsym_cmds=
12336   old_archive_From_new_cmds=
12337   old_archive_from_expsyms_cmds=
12338   export_dynamic_flag_spec=
12339   whole_archive_flag_spec=
12340   thread_safe_flag_spec=
12341   hardcode_libdir_flag_spec=
12342   hardcode_libdir_flag_spec_ld=
12343   hardcode_libdir_separator=
12344   hardcode_direct=no
12345   hardcode_minus_L=no
12346   hardcode_shlibpath_var=unsupported
12347   link_all_deplibs=unknown
12348   hardcode_automatic=no
12349   module_cmds=
12350   module_expsym_cmds=
12351   always_export_symbols=no
12352   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12353   # include_expsyms should be a list of space-separated symbols to be *always*
12354   # included in the symbol list
12355   include_expsyms=
12356   # exclude_expsyms can be an extended regexp of symbols to exclude
12357   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12358   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12359   # as well as any symbol that contains `d'.
12360   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12361   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12362   # platforms (ab)use it in PIC code, but their linkers get confused if
12363   # the symbol is explicitly referenced.  Since portable code cannot
12364   # rely on this symbol name, it's probably fine to never include it in
12365   # preloaded symbol tables.
12366   extract_expsyms_cmds=
12367
12368   case $host_os in
12369   cygwin* | mingw* | pw32*)
12370     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12371     # When not using gcc, we currently assume that we are using
12372     # Microsoft Visual C++.
12373     if test "$GCC" != yes; then
12374       with_gnu_ld=no
12375     fi
12376     ;;
12377   openbsd*)
12378     with_gnu_ld=no
12379     ;;
12380   esac
12381
12382   ld_shlibs=yes
12383   if test "$with_gnu_ld" = yes; then
12384     # If archive_cmds runs LD, not CC, wlarc should be empty
12385     wlarc='${wl}'
12386
12387     # See if GNU ld supports shared libraries.
12388     case $host_os in
12389     aix3* | aix4* | aix5*)
12390       # On AIX/PPC, the GNU linker is very broken
12391       if test "$host_cpu" != ia64; then
12392         ld_shlibs=no
12393         cat <<EOF 1>&2
12394
12395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12396 *** to be unable to reliably create shared libraries on AIX.
12397 *** Therefore, libtool is disabling shared libraries support.  If you
12398 *** really care for shared libraries, you may want to modify your PATH
12399 *** so that a non-GNU linker is found, and then restart.
12400
12401 EOF
12402       fi
12403       ;;
12404
12405     amigaos*)
12406       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)'
12407       hardcode_libdir_flag_spec='-L$libdir'
12408       hardcode_minus_L=yes
12409
12410       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12411       # that the semantics of dynamic libraries on AmigaOS, at least up
12412       # to version 4, is to share data among multiple programs linked
12413       # with the same dynamic library.  Since this doesn't match the
12414       # behavior of shared libraries on other platforms, we can't use
12415       # them.
12416       ld_shlibs=no
12417       ;;
12418
12419     beos*)
12420       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12421         allow_undefined_flag=unsupported
12422         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12423         # support --undefined.  This deserves some investigation.  FIXME
12424         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425       else
12426         ld_shlibs=no
12427       fi
12428       ;;
12429
12430     cygwin* | mingw* | pw32*)
12431       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12432       # as there is no search path for DLLs.
12433       hardcode_libdir_flag_spec='-L$libdir'
12434       allow_undefined_flag=unsupported
12435       always_export_symbols=no
12436       enable_shared_with_static_runtimes=yes
12437       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12438
12439       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12441         # If the export-symbols file already is a .def file (1st line
12442         # is EXPORTS), use it as is; otherwise, prepend...
12443         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12444           cp $export_symbols $output_objdir/$soname.def;
12445         else
12446           echo EXPORTS > $output_objdir/$soname.def;
12447           cat $export_symbols >> $output_objdir/$soname.def;
12448         fi~
12449         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12450       else
12451         ld_shlibs=no
12452       fi
12453       ;;
12454
12455     netbsd*)
12456       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12458         wlarc=
12459       else
12460         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12461         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12462       fi
12463       ;;
12464
12465     solaris* | sysv5*)
12466       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12467         ld_shlibs=no
12468         cat <<EOF 1>&2
12469
12470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12471 *** create shared libraries on Solaris systems.  Therefore, libtool
12472 *** is disabling shared libraries support.  We urge you to upgrade GNU
12473 *** binutils to release 2.9.1 or newer.  Another option is to modify
12474 *** your PATH or compiler configuration so that the native linker is
12475 *** used, and then restart.
12476
12477 EOF
12478       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12479         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12480         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12481       else
12482         ld_shlibs=no
12483       fi
12484       ;;
12485
12486     sunos4*)
12487       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12488       wlarc=
12489       hardcode_direct=yes
12490       hardcode_shlibpath_var=no
12491       ;;
12492
12493   linux*)
12494     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12495         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12496         archive_cmds="$tmp_archive_cmds"
12497       supports_anon_versioning=no
12498       case `$LD -v 2>/dev/null` in
12499         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12500         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12501         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12502         *\ 2.11.*) ;; # other 2.11 versions
12503         *) supports_anon_versioning=yes ;;
12504       esac
12505       if test $supports_anon_versioning = yes; then
12506         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12508 $echo "local: *; };" >> $output_objdir/$libname.ver~
12509         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12510       else
12511         archive_expsym_cmds="$tmp_archive_cmds"
12512       fi
12513     else
12514       ld_shlibs=no
12515     fi
12516     ;;
12517
12518     *)
12519       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12520         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12521         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12522       else
12523         ld_shlibs=no
12524       fi
12525       ;;
12526     esac
12527
12528     if test "$ld_shlibs" = yes; then
12529       runpath_var=LD_RUN_PATH
12530       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12531       export_dynamic_flag_spec='${wl}--export-dynamic'
12532       # ancient GNU ld didn't support --whole-archive et. al.
12533       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12534         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12535       else
12536         whole_archive_flag_spec=
12537       fi
12538     fi
12539   else
12540     # PORTME fill in a description of your system's linker (not GNU ld)
12541     case $host_os in
12542     aix3*)
12543       allow_undefined_flag=unsupported
12544       always_export_symbols=yes
12545       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'
12546       # Note: this linker hardcodes the directories in LIBPATH if there
12547       # are no directories specified by -L.
12548       hardcode_minus_L=yes
12549       if test "$GCC" = yes && test -z "$link_static_flag"; then
12550         # Neither direct hardcoding nor static linking is supported with a
12551         # broken collect2.
12552         hardcode_direct=unsupported
12553       fi
12554       ;;
12555
12556     aix4* | aix5*)
12557       if test "$host_cpu" = ia64; then
12558         # On IA64, the linker does run time linking by default, so we don't
12559         # have to do anything special.
12560         aix_use_runtimelinking=no
12561         exp_sym_flag='-Bexport'
12562         no_entry_flag=""
12563       else
12564         # If we're using GNU nm, then we don't want the "-C" option.
12565         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12566         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12567           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'
12568         else
12569           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'
12570         fi
12571         aix_use_runtimelinking=no
12572
12573         # Test if we are trying to use run time linking or normal
12574         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12575         # need to do runtime linking.
12576         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12577           for ld_flag in $LDFLAGS; do
12578           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12579             aix_use_runtimelinking=yes
12580             break
12581           fi
12582           done
12583         esac
12584
12585         exp_sym_flag='-bexport'
12586         no_entry_flag='-bnoentry'
12587       fi
12588
12589       # When large executables or shared objects are built, AIX ld can
12590       # have problems creating the table of contents.  If linking a library
12591       # or program results in "error TOC overflow" add -mminimal-toc to
12592       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12593       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12594
12595       archive_cmds=''
12596       hardcode_direct=yes
12597       hardcode_libdir_separator=':'
12598       link_all_deplibs=yes
12599
12600       if test "$GCC" = yes; then
12601         case $host_os in aix4.012|aix4.012.*)
12602         # We only want to do this on AIX 4.2 and lower, the check
12603         # below for broken collect2 doesn't work under 4.3+
12604           collect2name=`${CC} -print-prog-name=collect2`
12605           if test -f "$collect2name" && \
12606            strings "$collect2name" | grep resolve_lib_name >/dev/null
12607           then
12608           # We have reworked collect2
12609           hardcode_direct=yes
12610           else
12611           # We have old collect2
12612           hardcode_direct=unsupported
12613           # It fails to find uninstalled libraries when the uninstalled
12614           # path is not listed in the libpath.  Setting hardcode_minus_L
12615           # to unsupported forces relinking
12616           hardcode_minus_L=yes
12617           hardcode_libdir_flag_spec='-L$libdir'
12618           hardcode_libdir_separator=
12619           fi
12620         esac
12621         shared_flag='-shared'
12622       else
12623         # not using gcc
12624         if test "$host_cpu" = ia64; then
12625         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12626         # chokes on -Wl,-G. The following line is correct:
12627           shared_flag='-G'
12628         else
12629         if test "$aix_use_runtimelinking" = yes; then
12630             shared_flag='${wl}-G'
12631           else
12632             shared_flag='${wl}-bM:SRE'
12633         fi
12634         fi
12635       fi
12636
12637       # It seems that -bexpall does not export symbols beginning with
12638       # underscore (_), so it is better to generate a list of symbols to export.
12639       always_export_symbols=yes
12640       if test "$aix_use_runtimelinking" = yes; then
12641         # Warning - without using the other runtime loading flags (-brtl),
12642         # -berok will link without error, but may produce a broken library.
12643         allow_undefined_flag='-berok'
12644        # Determine the default libpath from the value encoded in an empty executable.
12645        cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651
12652 int
12653 main ()
12654 {
12655
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662   (eval $ac_link) 2>conftest.er1
12663   ac_status=$?
12664   grep -v '^ *+' conftest.er1 >conftest.err
12665   rm -f conftest.er1
12666   cat conftest.err >&5
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } &&
12669          { ac_try='test -z "$ac_c_werror_flag"
12670                          || test ! -s conftest.err'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; } &&
12676          { ac_try='test -s conftest$ac_exeext'
12677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678   (eval $ac_try) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; }; then
12682
12683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12684 }'`
12685 # Check for a 64-bit object if we didn't find anything.
12686 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; }
12687 }'`; fi
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 fi
12693 rm -f conftest.err conftest.$ac_objext \
12694       conftest$ac_exeext conftest.$ac_ext
12695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12696
12697        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12698         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"
12699        else
12700         if test "$host_cpu" = ia64; then
12701           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12702           allow_undefined_flag="-z nodefs"
12703           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"
12704         else
12705          # Determine the default libpath from the value encoded in an empty executable.
12706          cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712
12713 int
12714 main ()
12715 {
12716
12717   ;
12718   return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12723   (eval $ac_link) 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -z "$ac_c_werror_flag"
12731                          || test ! -s conftest.err'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; } &&
12737          { ac_try='test -s conftest$ac_exeext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743
12744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12745 }'`
12746 # Check for a 64-bit object if we didn't find anything.
12747 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; }
12748 }'`; fi
12749 else
12750   echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753 fi
12754 rm -f conftest.err conftest.$ac_objext \
12755       conftest$ac_exeext conftest.$ac_ext
12756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12757
12758          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12759           # Warning - without using the other run time loading flags,
12760           # -berok will link without error, but may produce a broken library.
12761           no_undefined_flag=' ${wl}-bernotok'
12762           allow_undefined_flag=' ${wl}-berok'
12763           # -bexpall does not export symbols beginning with underscore (_)
12764           always_export_symbols=yes
12765           # Exported symbols can be pulled into shared objects from archives
12766           whole_archive_flag_spec=' '
12767           archive_cmds_need_lc=yes
12768           # This is similar to how AIX traditionally builds it's shared libraries.
12769           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'
12770         fi
12771       fi
12772       ;;
12773
12774     amigaos*)
12775       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)'
12776       hardcode_libdir_flag_spec='-L$libdir'
12777       hardcode_minus_L=yes
12778       # see comment about different semantics on the GNU ld section
12779       ld_shlibs=no
12780       ;;
12781
12782     bsdi[45]*)
12783       export_dynamic_flag_spec=-rdynamic
12784       ;;
12785
12786     cygwin* | mingw* | pw32*)
12787       # When not using gcc, we currently assume that we are using
12788       # Microsoft Visual C++.
12789       # hardcode_libdir_flag_spec is actually meaningless, as there is
12790       # no search path for DLLs.
12791       hardcode_libdir_flag_spec=' '
12792       allow_undefined_flag=unsupported
12793       # Tell ltmain to make .lib files, not .a files.
12794       libext=lib
12795       # Tell ltmain to make .dll files, not .so files.
12796       shrext_cmds=".dll"
12797       # FIXME: Setting linknames here is a bad hack.
12798       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12799       # The linker will automatically build a .lib file if we build a DLL.
12800       old_archive_From_new_cmds='true'
12801       # FIXME: Should let the user specify the lib program.
12802       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12803       fix_srcfile_path='`cygpath -w "$srcfile"`'
12804       enable_shared_with_static_runtimes=yes
12805       ;;
12806
12807     darwin* | rhapsody*)
12808       case "$host_os" in
12809         rhapsody* | darwin1.[012])
12810          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12811          ;;
12812        *) # Darwin 1.3 on
12813          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12814            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12815          else
12816            case ${MACOSX_DEPLOYMENT_TARGET} in
12817              10.[012])
12818                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12819                ;;
12820              10.*)
12821                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12822                ;;
12823            esac
12824          fi
12825          ;;
12826       esac
12827       archive_cmds_need_lc=no
12828       hardcode_direct=no
12829       hardcode_automatic=yes
12830       hardcode_shlibpath_var=unsupported
12831       whole_archive_flag_spec=''
12832       link_all_deplibs=yes
12833     if test "$GCC" = yes ; then
12834         output_verbose_link_cmd='echo'
12835         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12836       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12837       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12838       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}'
12839       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}'
12840     else
12841       case "$cc_basename" in
12842         xlc*)
12843          output_verbose_link_cmd='echo'
12844          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12845          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12846           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12847          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}'
12848           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}'
12849           ;;
12850        *)
12851          ld_shlibs=no
12852           ;;
12853       esac
12854     fi
12855       ;;
12856
12857     dgux*)
12858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12859       hardcode_libdir_flag_spec='-L$libdir'
12860       hardcode_shlibpath_var=no
12861       ;;
12862
12863     freebsd1*)
12864       ld_shlibs=no
12865       ;;
12866
12867     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12868     # support.  Future versions do this automatically, but an explicit c++rt0.o
12869     # does not break anything, and helps significantly (at the cost of a little
12870     # extra space).
12871     freebsd2.2*)
12872       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12873       hardcode_libdir_flag_spec='-R$libdir'
12874       hardcode_direct=yes
12875       hardcode_shlibpath_var=no
12876       ;;
12877
12878     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12879     freebsd2*)
12880       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12881       hardcode_direct=yes
12882       hardcode_minus_L=yes
12883       hardcode_shlibpath_var=no
12884       ;;
12885
12886     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12887     freebsd* | kfreebsd*-gnu)
12888       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12889       hardcode_libdir_flag_spec='-R$libdir'
12890       hardcode_direct=yes
12891       hardcode_shlibpath_var=no
12892       ;;
12893
12894     hpux9*)
12895       if test "$GCC" = yes; then
12896         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'
12897       else
12898         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'
12899       fi
12900       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12901       hardcode_libdir_separator=:
12902       hardcode_direct=yes
12903
12904       # hardcode_minus_L: Not really in the search PATH,
12905       # but as the default location of the library.
12906       hardcode_minus_L=yes
12907       export_dynamic_flag_spec='${wl}-E'
12908       ;;
12909
12910     hpux10* | hpux11*)
12911       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12912         case "$host_cpu" in
12913         hppa*64*|ia64*)
12914           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12915           ;;
12916         *)
12917           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12918           ;;
12919         esac
12920       else
12921         case "$host_cpu" in
12922         hppa*64*|ia64*)
12923           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12924           ;;
12925         *)
12926           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12927           ;;
12928         esac
12929       fi
12930       if test "$with_gnu_ld" = no; then
12931         case "$host_cpu" in
12932         hppa*64*)
12933           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12934           hardcode_libdir_flag_spec_ld='+b $libdir'
12935           hardcode_libdir_separator=:
12936           hardcode_direct=no
12937           hardcode_shlibpath_var=no
12938           ;;
12939         ia64*)
12940           hardcode_libdir_flag_spec='-L$libdir'
12941           hardcode_direct=no
12942           hardcode_shlibpath_var=no
12943
12944           # hardcode_minus_L: Not really in the search PATH,
12945           # but as the default location of the library.
12946           hardcode_minus_L=yes
12947           ;;
12948         *)
12949           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12950           hardcode_libdir_separator=:
12951           hardcode_direct=yes
12952           export_dynamic_flag_spec='${wl}-E'
12953
12954           # hardcode_minus_L: Not really in the search PATH,
12955           # but as the default location of the library.
12956           hardcode_minus_L=yes
12957           ;;
12958         esac
12959       fi
12960       ;;
12961
12962     irix5* | irix6* | nonstopux*)
12963       if test "$GCC" = yes; then
12964         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'
12965       else
12966         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'
12967         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12968       fi
12969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970       hardcode_libdir_separator=:
12971       link_all_deplibs=yes
12972       ;;
12973
12974     netbsd*)
12975       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12976         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12977       else
12978         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12979       fi
12980       hardcode_libdir_flag_spec='-R$libdir'
12981       hardcode_direct=yes
12982       hardcode_shlibpath_var=no
12983       ;;
12984
12985     newsos6)
12986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987       hardcode_direct=yes
12988       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12989       hardcode_libdir_separator=:
12990       hardcode_shlibpath_var=no
12991       ;;
12992
12993     openbsd*)
12994       hardcode_direct=yes
12995       hardcode_shlibpath_var=no
12996       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12997         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12998         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12999         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13000         export_dynamic_flag_spec='${wl}-E'
13001       else
13002        case $host_os in
13003          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13004            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13005            hardcode_libdir_flag_spec='-R$libdir'
13006            ;;
13007          *)
13008            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13009            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13010            ;;
13011        esac
13012       fi
13013       ;;
13014
13015     os2*)
13016       hardcode_libdir_flag_spec='-L$libdir'
13017       hardcode_minus_L=yes
13018       allow_undefined_flag=unsupported
13019       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'
13020       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13021       ;;
13022
13023     osf3*)
13024       if test "$GCC" = yes; then
13025         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13026         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'
13027       else
13028         allow_undefined_flag=' -expect_unresolved \*'
13029         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'
13030       fi
13031       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13032       hardcode_libdir_separator=:
13033       ;;
13034
13035     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13036       if test "$GCC" = yes; then
13037         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13038         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'
13039         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13040       else
13041         allow_undefined_flag=' -expect_unresolved \*'
13042         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'
13043         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13044         $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'
13045
13046         # Both c and cxx compiler support -rpath directly
13047         hardcode_libdir_flag_spec='-rpath $libdir'
13048       fi
13049       hardcode_libdir_separator=:
13050       ;;
13051
13052     sco3.2v5*)
13053       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054       hardcode_shlibpath_var=no
13055       export_dynamic_flag_spec='${wl}-Bexport'
13056       runpath_var=LD_RUN_PATH
13057       hardcode_runpath_var=yes
13058       ;;
13059
13060     solaris*)
13061       no_undefined_flag=' -z text'
13062       if test "$GCC" = yes; then
13063         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13064         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13065           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13066       else
13067         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13068         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13069         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13070       fi
13071       hardcode_libdir_flag_spec='-R$libdir'
13072       hardcode_shlibpath_var=no
13073       case $host_os in
13074       solaris2.[0-5] | solaris2.[0-5].*) ;;
13075       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13076         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13077       esac
13078       link_all_deplibs=yes
13079       ;;
13080
13081     sunos4*)
13082       if test "x$host_vendor" = xsequent; then
13083         # Use $CC to link under sequent, because it throws in some extra .o
13084         # files that make .init and .fini sections work.
13085         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13086       else
13087         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13088       fi
13089       hardcode_libdir_flag_spec='-L$libdir'
13090       hardcode_direct=yes
13091       hardcode_minus_L=yes
13092       hardcode_shlibpath_var=no
13093       ;;
13094
13095     sysv4)
13096       case $host_vendor in
13097         sni)
13098           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13099           hardcode_direct=yes # is this really true???
13100         ;;
13101         siemens)
13102           ## LD is ld it makes a PLAMLIB
13103           ## CC just makes a GrossModule.
13104           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13105           reload_cmds='$CC -r -o $output$reload_objs'
13106           hardcode_direct=no
13107         ;;
13108         motorola)
13109           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13111         ;;
13112       esac
13113       runpath_var='LD_RUN_PATH'
13114       hardcode_shlibpath_var=no
13115       ;;
13116
13117     sysv4.3*)
13118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119       hardcode_shlibpath_var=no
13120       export_dynamic_flag_spec='-Bexport'
13121       ;;
13122
13123     sysv4*MP*)
13124       if test -d /usr/nec; then
13125         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126         hardcode_shlibpath_var=no
13127         runpath_var=LD_RUN_PATH
13128         hardcode_runpath_var=yes
13129         ld_shlibs=yes
13130       fi
13131       ;;
13132
13133     sysv4.2uw2*)
13134       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13135       hardcode_direct=yes
13136       hardcode_minus_L=no
13137       hardcode_shlibpath_var=no
13138       hardcode_runpath_var=yes
13139       runpath_var=LD_RUN_PATH
13140       ;;
13141
13142    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13143       no_undefined_flag='${wl}-z ${wl}text'
13144       if test "$GCC" = yes; then
13145         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13146       else
13147         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13148       fi
13149       runpath_var='LD_RUN_PATH'
13150       hardcode_shlibpath_var=no
13151       ;;
13152
13153     sysv5*)
13154       no_undefined_flag=' -z text'
13155       # $CC -shared without GNU ld will not create a library from C++
13156       # object files and a static libstdc++, better avoid it by now
13157       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13158       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13159                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13160       hardcode_libdir_flag_spec=
13161       hardcode_shlibpath_var=no
13162       runpath_var='LD_RUN_PATH'
13163       ;;
13164
13165     uts4*)
13166       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13167       hardcode_libdir_flag_spec='-L$libdir'
13168       hardcode_shlibpath_var=no
13169       ;;
13170
13171     *)
13172       ld_shlibs=no
13173       ;;
13174     esac
13175   fi
13176
13177 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13178 echo "${ECHO_T}$ld_shlibs" >&6
13179 test "$ld_shlibs" = no && can_build_shared=no
13180
13181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13182 if test "$GCC" = yes; then
13183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13184 fi
13185
13186 #
13187 # Do we need to explicitly link libc?
13188 #
13189 case "x$archive_cmds_need_lc" in
13190 x|xyes)
13191   # Assume -lc should be added
13192   archive_cmds_need_lc=yes
13193
13194   if test "$enable_shared" = yes && test "$GCC" = yes; then
13195     case $archive_cmds in
13196     *'~'*)
13197       # FIXME: we may have to deal with multi-command sequences.
13198       ;;
13199     '$CC '*)
13200       # Test whether the compiler implicitly links with -lc since on some
13201       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13202       # to ld, don't add -lc before -lgcc.
13203       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13205       $rm conftest*
13206       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13207
13208       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209   (eval $ac_compile) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } 2>conftest.err; then
13213         soname=conftest
13214         lib=conftest
13215         libobjs=conftest.$ac_objext
13216         deplibs=
13217         wl=$lt_prog_compiler_wl
13218         compiler_flags=-v
13219         linker_flags=-v
13220         verstring=
13221         output_objdir=.
13222         libname=conftest
13223         lt_save_allow_undefined_flag=$allow_undefined_flag
13224         allow_undefined_flag=
13225         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13226   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }
13230         then
13231           archive_cmds_need_lc=no
13232         else
13233           archive_cmds_need_lc=yes
13234         fi
13235         allow_undefined_flag=$lt_save_allow_undefined_flag
13236       else
13237         cat conftest.err 1>&5
13238       fi
13239       $rm conftest*
13240       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13241 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13242       ;;
13243     esac
13244   fi
13245   ;;
13246 esac
13247
13248 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13249 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13250 library_names_spec=
13251 libname_spec='lib$name'
13252 soname_spec=
13253 shrext_cmds=".so"
13254 postinstall_cmds=
13255 postuninstall_cmds=
13256 finish_cmds=
13257 finish_eval=
13258 shlibpath_var=
13259 shlibpath_overrides_runpath=unknown
13260 version_type=none
13261 dynamic_linker="$host_os ld.so"
13262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13263 if test "$GCC" = yes; then
13264   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13265   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13266     # if the path contains ";" then we assume it to be the separator
13267     # otherwise default to the standard path separator (i.e. ":") - it is
13268     # assumed that no part of a normal pathname contains ";" but that should
13269     # okay in the real world where ";" in dirpaths is itself problematic.
13270     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13271   else
13272     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13273   fi
13274 else
13275   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13276 fi
13277 need_lib_prefix=unknown
13278 hardcode_into_libs=no
13279
13280 # when you set need_version to no, make sure it does not cause -set_version
13281 # flags to be left without arguments
13282 need_version=unknown
13283
13284 case $host_os in
13285 aix3*)
13286   version_type=linux
13287   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13288   shlibpath_var=LIBPATH
13289
13290   # AIX 3 has no versioning support, so we append a major version to the name.
13291   soname_spec='${libname}${release}${shared_ext}$major'
13292   ;;
13293
13294 aix4* | aix5*)
13295   version_type=linux
13296   need_lib_prefix=no
13297   need_version=no
13298   hardcode_into_libs=yes
13299   if test "$host_cpu" = ia64; then
13300     # AIX 5 supports IA64
13301     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13302     shlibpath_var=LD_LIBRARY_PATH
13303   else
13304     # With GCC up to 2.95.x, collect2 would create an import file
13305     # for dependence libraries.  The import file would start with
13306     # the line `#! .'.  This would cause the generated library to
13307     # depend on `.', always an invalid library.  This was fixed in
13308     # development snapshots of GCC prior to 3.0.
13309     case $host_os in
13310       aix4 | aix4.[01] | aix4.[01].*)
13311       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13312            echo ' yes '
13313            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13314         :
13315       else
13316         can_build_shared=no
13317       fi
13318       ;;
13319     esac
13320     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13321     # soname into executable. Probably we can add versioning support to
13322     # collect2, so additional links can be useful in future.
13323     if test "$aix_use_runtimelinking" = yes; then
13324       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13325       # instead of lib<name>.a to let people know that these are not
13326       # typical AIX shared libraries.
13327       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328     else
13329       # We preserve .a as extension for shared libraries through AIX4.2
13330       # and later when we are not doing run time linking.
13331       library_names_spec='${libname}${release}.a $libname.a'
13332       soname_spec='${libname}${release}${shared_ext}$major'
13333     fi
13334     shlibpath_var=LIBPATH
13335   fi
13336   ;;
13337
13338 amigaos*)
13339   library_names_spec='$libname.ixlibrary $libname.a'
13340   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13341   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'
13342   ;;
13343
13344 beos*)
13345   library_names_spec='${libname}${shared_ext}'
13346   dynamic_linker="$host_os ld.so"
13347   shlibpath_var=LIBRARY_PATH
13348   ;;
13349
13350 bsdi[45]*)
13351   version_type=linux
13352   need_version=no
13353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354   soname_spec='${libname}${release}${shared_ext}$major'
13355   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13356   shlibpath_var=LD_LIBRARY_PATH
13357   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13358   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13359   # the default ld.so.conf also contains /usr/contrib/lib and
13360   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13361   # libtool to hard-code these into programs
13362   ;;
13363
13364 cygwin* | mingw* | pw32*)
13365   version_type=windows
13366   shrext_cmds=".dll"
13367   need_version=no
13368   need_lib_prefix=no
13369
13370   case $GCC,$host_os in
13371   yes,cygwin* | yes,mingw* | yes,pw32*)
13372     library_names_spec='$libname.dll.a'
13373     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13374     postinstall_cmds='base_file=`basename \${file}`~
13375       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13376       dldir=$destdir/`dirname \$dlpath`~
13377       test -d \$dldir || mkdir -p \$dldir~
13378       $install_prog $dir/$dlname \$dldir/$dlname'
13379     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13380       dlpath=$dir/\$dldll~
13381        $rm \$dlpath'
13382     shlibpath_overrides_runpath=yes
13383
13384     case $host_os in
13385     cygwin*)
13386       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13387       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13388       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13389       ;;
13390     mingw*)
13391       # MinGW DLLs use traditional 'lib' prefix
13392       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13393       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13394       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13395         # It is most probably a Windows format PATH printed by
13396         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13397         # path with ; separators, and with drive letters. We can handle the
13398         # drive letters (cygwin fileutils understands them), so leave them,
13399         # especially as we might pass files found there to a mingw objdump,
13400         # which wouldn't understand a cygwinified path. Ahh.
13401         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13402       else
13403         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13404       fi
13405       ;;
13406     pw32*)
13407       # pw32 DLLs use 'pw' prefix rather than 'lib'
13408       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13409       ;;
13410     esac
13411     ;;
13412
13413   *)
13414     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13415     ;;
13416   esac
13417   dynamic_linker='Win32 ld.exe'
13418   # FIXME: first we should search . and the directory the executable is in
13419   shlibpath_var=PATH
13420   ;;
13421
13422 darwin* | rhapsody*)
13423   dynamic_linker="$host_os dyld"
13424   version_type=darwin
13425   need_lib_prefix=no
13426   need_version=no
13427   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13428   soname_spec='${libname}${release}${major}$shared_ext'
13429   shlibpath_overrides_runpath=yes
13430   shlibpath_var=DYLD_LIBRARY_PATH
13431   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13432   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13433   if test "$GCC" = yes; then
13434     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"`
13435   else
13436     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13437   fi
13438   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13439   ;;
13440
13441 dgux*)
13442   version_type=linux
13443   need_lib_prefix=no
13444   need_version=no
13445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13446   soname_spec='${libname}${release}${shared_ext}$major'
13447   shlibpath_var=LD_LIBRARY_PATH
13448   ;;
13449
13450 freebsd1*)
13451   dynamic_linker=no
13452   ;;
13453
13454 kfreebsd*-gnu)
13455   version_type=linux
13456   need_lib_prefix=no
13457   need_version=no
13458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13459   soname_spec='${libname}${release}${shared_ext}$major'
13460   shlibpath_var=LD_LIBRARY_PATH
13461   shlibpath_overrides_runpath=no
13462   hardcode_into_libs=yes
13463   dynamic_linker='GNU ld.so'
13464   ;;
13465
13466 freebsd*)
13467   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13468   version_type=freebsd-$objformat
13469   case $version_type in
13470     freebsd-elf*)
13471       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13472       need_version=no
13473       need_lib_prefix=no
13474       ;;
13475     freebsd-*)
13476       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13477       need_version=yes
13478       ;;
13479   esac
13480   shlibpath_var=LD_LIBRARY_PATH
13481   case $host_os in
13482   freebsd2*)
13483     shlibpath_overrides_runpath=yes
13484     ;;
13485   freebsd3.01* | freebsdelf3.01*)
13486     shlibpath_overrides_runpath=yes
13487     hardcode_into_libs=yes
13488     ;;
13489   *) # from 3.2 on
13490     shlibpath_overrides_runpath=no
13491     hardcode_into_libs=yes
13492     ;;
13493   esac
13494   ;;
13495
13496 gnu*)
13497   version_type=linux
13498   need_lib_prefix=no
13499   need_version=no
13500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13501   soname_spec='${libname}${release}${shared_ext}$major'
13502   shlibpath_var=LD_LIBRARY_PATH
13503   hardcode_into_libs=yes
13504   ;;
13505
13506 hpux9* | hpux10* | hpux11*)
13507   # Give a soname corresponding to the major version so that dld.sl refuses to
13508   # link against other versions.
13509   version_type=sunos
13510   need_lib_prefix=no
13511   need_version=no
13512   case "$host_cpu" in
13513   ia64*)
13514     shrext_cmds='.so'
13515     hardcode_into_libs=yes
13516     dynamic_linker="$host_os dld.so"
13517     shlibpath_var=LD_LIBRARY_PATH
13518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520     soname_spec='${libname}${release}${shared_ext}$major'
13521     if test "X$HPUX_IA64_MODE" = X32; then
13522       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13523     else
13524       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13525     fi
13526     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13527     ;;
13528    hppa*64*)
13529      shrext_cmds='.sl'
13530      hardcode_into_libs=yes
13531      dynamic_linker="$host_os dld.sl"
13532      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13533      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535      soname_spec='${libname}${release}${shared_ext}$major'
13536      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13537      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13538      ;;
13539    *)
13540     shrext_cmds='.sl'
13541     dynamic_linker="$host_os dld.sl"
13542     shlibpath_var=SHLIB_PATH
13543     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545     soname_spec='${libname}${release}${shared_ext}$major'
13546     ;;
13547   esac
13548   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13549   postinstall_cmds='chmod 555 $lib'
13550   ;;
13551
13552 irix5* | irix6* | nonstopux*)
13553   case $host_os in
13554     nonstopux*) version_type=nonstopux ;;
13555     *)
13556         if test "$lt_cv_prog_gnu_ld" = yes; then
13557                 version_type=linux
13558         else
13559                 version_type=irix
13560         fi ;;
13561   esac
13562   need_lib_prefix=no
13563   need_version=no
13564   soname_spec='${libname}${release}${shared_ext}$major'
13565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13566   case $host_os in
13567   irix5* | nonstopux*)
13568     libsuff= shlibsuff=
13569     ;;
13570   *)
13571     case $LD in # libtool.m4 will add one of these switches to LD
13572     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13573       libsuff= shlibsuff= libmagic=32-bit;;
13574     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13575       libsuff=32 shlibsuff=N32 libmagic=N32;;
13576     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13577       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13578     *) libsuff= shlibsuff= libmagic=never-match;;
13579     esac
13580     ;;
13581   esac
13582   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13583   shlibpath_overrides_runpath=no
13584   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13585   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13586   hardcode_into_libs=yes
13587   ;;
13588
13589 # No shared lib support for Linux oldld, aout, or coff.
13590 linux*oldld* | linux*aout* | linux*coff*)
13591   dynamic_linker=no
13592   ;;
13593
13594 # This must be Linux ELF.
13595 linux*)
13596   version_type=linux
13597   need_lib_prefix=no
13598   need_version=no
13599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600   soname_spec='${libname}${release}${shared_ext}$major'
13601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13602   shlibpath_var=LD_LIBRARY_PATH
13603   shlibpath_overrides_runpath=no
13604   # This implies no fast_install, which is unacceptable.
13605   # Some rework will be needed to allow for fast_install
13606   # before this can be enabled.
13607   hardcode_into_libs=yes
13608
13609   # Append ld.so.conf contents to the search path
13610   if test -f /etc/ld.so.conf; then
13611     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13612     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13613   fi
13614
13615   # We used to test for /lib/ld.so.1 and disable shared libraries on
13616   # powerpc, because MkLinux only supported shared libraries with the
13617   # GNU dynamic linker.  Since this was broken with cross compilers,
13618   # most powerpc-linux boxes support dynamic linking these days and
13619   # people can always --disable-shared, the test was removed, and we
13620   # assume the GNU/Linux dynamic linker is in use.
13621   dynamic_linker='GNU/Linux ld.so'
13622   ;;
13623
13624 knetbsd*-gnu)
13625   version_type=linux
13626   need_lib_prefix=no
13627   need_version=no
13628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629   soname_spec='${libname}${release}${shared_ext}$major'
13630   shlibpath_var=LD_LIBRARY_PATH
13631   shlibpath_overrides_runpath=no
13632   hardcode_into_libs=yes
13633   dynamic_linker='GNU ld.so'
13634   ;;
13635
13636 netbsd*)
13637   version_type=sunos
13638   need_lib_prefix=no
13639   need_version=no
13640   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13642     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13643     dynamic_linker='NetBSD (a.out) ld.so'
13644   else
13645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13646     soname_spec='${libname}${release}${shared_ext}$major'
13647     dynamic_linker='NetBSD ld.elf_so'
13648   fi
13649   shlibpath_var=LD_LIBRARY_PATH
13650   shlibpath_overrides_runpath=yes
13651   hardcode_into_libs=yes
13652   ;;
13653
13654 newsos6)
13655   version_type=linux
13656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657   shlibpath_var=LD_LIBRARY_PATH
13658   shlibpath_overrides_runpath=yes
13659   ;;
13660
13661 nto-qnx*)
13662   version_type=linux
13663   need_lib_prefix=no
13664   need_version=no
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   shlibpath_var=LD_LIBRARY_PATH
13668   shlibpath_overrides_runpath=yes
13669   ;;
13670
13671 openbsd*)
13672   version_type=sunos
13673   need_lib_prefix=no
13674   need_version=no
13675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13677   shlibpath_var=LD_LIBRARY_PATH
13678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13679     case $host_os in
13680       openbsd2.[89] | openbsd2.[89].*)
13681         shlibpath_overrides_runpath=no
13682         ;;
13683       *)
13684         shlibpath_overrides_runpath=yes
13685         ;;
13686       esac
13687   else
13688     shlibpath_overrides_runpath=yes
13689   fi
13690   ;;
13691
13692 os2*)
13693   libname_spec='$name'
13694   shrext_cmds=".dll"
13695   need_lib_prefix=no
13696   library_names_spec='$libname${shared_ext} $libname.a'
13697   dynamic_linker='OS/2 ld.exe'
13698   shlibpath_var=LIBPATH
13699   ;;
13700
13701 osf3* | osf4* | osf5*)
13702   version_type=osf
13703   need_lib_prefix=no
13704   need_version=no
13705   soname_spec='${libname}${release}${shared_ext}$major'
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707   shlibpath_var=LD_LIBRARY_PATH
13708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13710   ;;
13711
13712 sco3.2v5*)
13713   version_type=osf
13714   soname_spec='${libname}${release}${shared_ext}$major'
13715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716   shlibpath_var=LD_LIBRARY_PATH
13717   ;;
13718
13719 solaris*)
13720   version_type=linux
13721   need_lib_prefix=no
13722   need_version=no
13723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724   soname_spec='${libname}${release}${shared_ext}$major'
13725   shlibpath_var=LD_LIBRARY_PATH
13726   shlibpath_overrides_runpath=yes
13727   hardcode_into_libs=yes
13728   # ldd complains unless libraries are executable
13729   postinstall_cmds='chmod +x $lib'
13730   ;;
13731
13732 sunos4*)
13733   version_type=sunos
13734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13735   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13736   shlibpath_var=LD_LIBRARY_PATH
13737   shlibpath_overrides_runpath=yes
13738   if test "$with_gnu_ld" = yes; then
13739     need_lib_prefix=no
13740   fi
13741   need_version=yes
13742   ;;
13743
13744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13745   version_type=linux
13746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747   soname_spec='${libname}${release}${shared_ext}$major'
13748   shlibpath_var=LD_LIBRARY_PATH
13749   case $host_vendor in
13750     sni)
13751       shlibpath_overrides_runpath=no
13752       need_lib_prefix=no
13753       export_dynamic_flag_spec='${wl}-Blargedynsym'
13754       runpath_var=LD_RUN_PATH
13755       ;;
13756     siemens)
13757       need_lib_prefix=no
13758       ;;
13759     motorola)
13760       need_lib_prefix=no
13761       need_version=no
13762       shlibpath_overrides_runpath=no
13763       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13764       ;;
13765   esac
13766   ;;
13767
13768 sysv4*MP*)
13769   if test -d /usr/nec ;then
13770     version_type=linux
13771     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13772     soname_spec='$libname${shared_ext}.$major'
13773     shlibpath_var=LD_LIBRARY_PATH
13774   fi
13775   ;;
13776
13777 uts4*)
13778   version_type=linux
13779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780   soname_spec='${libname}${release}${shared_ext}$major'
13781   shlibpath_var=LD_LIBRARY_PATH
13782   ;;
13783
13784 *)
13785   dynamic_linker=no
13786   ;;
13787 esac
13788 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789 echo "${ECHO_T}$dynamic_linker" >&6
13790 test "$dynamic_linker" = no && can_build_shared=no
13791
13792 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13794 hardcode_action=
13795 if test -n "$hardcode_libdir_flag_spec" || \
13796    test -n "$runpath_var" || \
13797    test "X$hardcode_automatic" = "Xyes" ; then
13798
13799   # We can hardcode non-existant directories.
13800   if test "$hardcode_direct" != no &&
13801      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13802      # have to relink, otherwise we might link with an installed library
13803      # when we should be linking with a yet-to-be-installed one
13804      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13805      test "$hardcode_minus_L" != no; then
13806     # Linking always hardcodes the temporary library directory.
13807     hardcode_action=relink
13808   else
13809     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13810     hardcode_action=immediate
13811   fi
13812 else
13813   # We cannot hardcode anything, or else we can only hardcode existing
13814   # directories.
13815   hardcode_action=unsupported
13816 fi
13817 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13818 echo "${ECHO_T}$hardcode_action" >&6
13819
13820 if test "$hardcode_action" = relink; then
13821   # Fast installation is not supported
13822   enable_fast_install=no
13823 elif test "$shlibpath_overrides_runpath" = yes ||
13824      test "$enable_shared" = no; then
13825   # Fast installation is not necessary
13826   enable_fast_install=needless
13827 fi
13828
13829 striplib=
13830 old_striplib=
13831 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13834   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13835   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13836   echo "$as_me:$LINENO: result: yes" >&5
13837 echo "${ECHO_T}yes" >&6
13838 else
13839 # FIXME - insert some real tests, host_os isn't really good enough
13840   case $host_os in
13841    darwin*)
13842        if test -n "$STRIP" ; then
13843          striplib="$STRIP -x"
13844          echo "$as_me:$LINENO: result: yes" >&5
13845 echo "${ECHO_T}yes" >&6
13846        else
13847   echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13849 fi
13850        ;;
13851    *)
13852   echo "$as_me:$LINENO: result: no" >&5
13853 echo "${ECHO_T}no" >&6
13854     ;;
13855   esac
13856 fi
13857
13858 if test "x$enable_dlopen" != xyes; then
13859   enable_dlopen=unknown
13860   enable_dlopen_self=unknown
13861   enable_dlopen_self_static=unknown
13862 else
13863   lt_cv_dlopen=no
13864   lt_cv_dlopen_libs=
13865
13866   case $host_os in
13867   beos*)
13868     lt_cv_dlopen="load_add_on"
13869     lt_cv_dlopen_libs=
13870     lt_cv_dlopen_self=yes
13871     ;;
13872
13873   mingw* | pw32*)
13874     lt_cv_dlopen="LoadLibrary"
13875     lt_cv_dlopen_libs=
13876    ;;
13877
13878   cygwin*)
13879     lt_cv_dlopen="dlopen"
13880     lt_cv_dlopen_libs=
13881    ;;
13882
13883   darwin*)
13884   # if libdl is installed we need to link against it
13885     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-ldl  $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898
13899 /* Override any gcc2 internal prototype to avoid an error.  */
13900 #ifdef __cplusplus
13901 extern "C"
13902 #endif
13903 /* We use char because int might match the return type of a gcc2
13904    builtin and then its argument prototype would still apply.  */
13905 char dlopen ();
13906 int
13907 main ()
13908 {
13909 dlopen ();
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916   (eval $ac_link) 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_c_werror_flag"
13924                          || test ! -s conftest.err'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; } &&
13930          { ac_try='test -s conftest$ac_exeext'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }; then
13936   ac_cv_lib_dl_dlopen=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_cv_lib_dl_dlopen=no
13942 fi
13943 rm -f conftest.err conftest.$ac_objext \
13944       conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13946 fi
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949 if test $ac_cv_lib_dl_dlopen = yes; then
13950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13951 else
13952
13953     lt_cv_dlopen="dyld"
13954     lt_cv_dlopen_libs=
13955     lt_cv_dlopen_self=yes
13956
13957 fi
13958
13959    ;;
13960
13961   *)
13962     echo "$as_me:$LINENO: checking for shl_load" >&5
13963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13964 if test "${ac_cv_func_shl_load+set}" = set; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967   cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13975 #define shl_load innocuous_shl_load
13976
13977 /* System header to define __stub macros and hopefully few prototypes,
13978     which can conflict with char shl_load (); below.
13979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980     <limits.h> exists even on freestanding compilers.  */
13981
13982 #ifdef __STDC__
13983 # include <limits.h>
13984 #else
13985 # include <assert.h>
13986 #endif
13987
13988 #undef shl_load
13989
13990 /* Override any gcc2 internal prototype to avoid an error.  */
13991 #ifdef __cplusplus
13992 extern "C"
13993 {
13994 #endif
13995 /* We use char because int might match the return type of a gcc2
13996    builtin and then its argument prototype would still apply.  */
13997 char shl_load ();
13998 /* The GNU C library defines this for functions which it implements
13999     to always fail with ENOSYS.  Some functions are actually named
14000     something starting with __ and the normal name is an alias.  */
14001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14002 choke me
14003 #else
14004 char (*f) () = shl_load;
14005 #endif
14006 #ifdef __cplusplus
14007 }
14008 #endif
14009
14010 int
14011 main ()
14012 {
14013 return f != shl_load;
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020   (eval $ac_link) 2>conftest.er1
14021   ac_status=$?
14022   grep -v '^ *+' conftest.er1 >conftest.err
14023   rm -f conftest.er1
14024   cat conftest.err >&5
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -z "$ac_c_werror_flag"
14028                          || test ! -s conftest.err'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; } &&
14034          { ac_try='test -s conftest$ac_exeext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_cv_func_shl_load=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_cv_func_shl_load=no
14046 fi
14047 rm -f conftest.err conftest.$ac_objext \
14048       conftest$ac_exeext conftest.$ac_ext
14049 fi
14050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14052 if test $ac_cv_func_shl_load = yes; then
14053   lt_cv_dlopen="shl_load"
14054 else
14055   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14056 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-ldld  $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068
14069 /* Override any gcc2 internal prototype to avoid an error.  */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 /* We use char because int might match the return type of a gcc2
14074    builtin and then its argument prototype would still apply.  */
14075 char shl_load ();
14076 int
14077 main ()
14078 {
14079 shl_load ();
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086   (eval $ac_link) 2>conftest.er1
14087   ac_status=$?
14088   grep -v '^ *+' conftest.er1 >conftest.err
14089   rm -f conftest.er1
14090   cat conftest.err >&5
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); } &&
14093          { ac_try='test -z "$ac_c_werror_flag"
14094                          || test ! -s conftest.err'
14095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096   (eval $ac_try) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; } &&
14100          { ac_try='test -s conftest$ac_exeext'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }; then
14106   ac_cv_lib_dld_shl_load=yes
14107 else
14108   echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 ac_cv_lib_dld_shl_load=no
14112 fi
14113 rm -f conftest.err conftest.$ac_objext \
14114       conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14116 fi
14117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14118 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14119 if test $ac_cv_lib_dld_shl_load = yes; then
14120   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14121 else
14122   echo "$as_me:$LINENO: checking for dlopen" >&5
14123 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14124 if test "${ac_cv_func_dlopen+set}" = set; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14135 #define dlopen innocuous_dlopen
14136
14137 /* System header to define __stub macros and hopefully few prototypes,
14138     which can conflict with char dlopen (); below.
14139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14140     <limits.h> exists even on freestanding compilers.  */
14141
14142 #ifdef __STDC__
14143 # include <limits.h>
14144 #else
14145 # include <assert.h>
14146 #endif
14147
14148 #undef dlopen
14149
14150 /* Override any gcc2 internal prototype to avoid an error.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 {
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 dlopen ();
14158 /* The GNU C library defines this for functions which it implements
14159     to always fail with ENOSYS.  Some functions are actually named
14160     something starting with __ and the normal name is an alias.  */
14161 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14162 choke me
14163 #else
14164 char (*f) () = dlopen;
14165 #endif
14166 #ifdef __cplusplus
14167 }
14168 #endif
14169
14170 int
14171 main ()
14172 {
14173 return f != dlopen;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180   (eval $ac_link) 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -z "$ac_c_werror_flag"
14188                          || test ! -s conftest.err'
14189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190   (eval $ac_try) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; } &&
14194          { ac_try='test -s conftest$ac_exeext'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; }; then
14200   ac_cv_func_dlopen=yes
14201 else
14202   echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_cv_func_dlopen=no
14206 fi
14207 rm -f conftest.err conftest.$ac_objext \
14208       conftest$ac_exeext conftest.$ac_ext
14209 fi
14210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14212 if test $ac_cv_func_dlopen = yes; then
14213   lt_cv_dlopen="dlopen"
14214 else
14215   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-ldl  $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228
14229 /* Override any gcc2 internal prototype to avoid an error.  */
14230 #ifdef __cplusplus
14231 extern "C"
14232 #endif
14233 /* We use char because int might match the return type of a gcc2
14234    builtin and then its argument prototype would still apply.  */
14235 char dlopen ();
14236 int
14237 main ()
14238 {
14239 dlopen ();
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246   (eval $ac_link) 2>conftest.er1
14247   ac_status=$?
14248   grep -v '^ *+' conftest.er1 >conftest.err
14249   rm -f conftest.er1
14250   cat conftest.err >&5
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } &&
14253          { ac_try='test -z "$ac_c_werror_flag"
14254                          || test ! -s conftest.err'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; } &&
14260          { ac_try='test -s conftest$ac_exeext'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; }; then
14266   ac_cv_lib_dl_dlopen=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_cv_lib_dl_dlopen=no
14272 fi
14273 rm -f conftest.err conftest.$ac_objext \
14274       conftest$ac_exeext conftest.$ac_ext
14275 LIBS=$ac_check_lib_save_LIBS
14276 fi
14277 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14278 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14279 if test $ac_cv_lib_dl_dlopen = yes; then
14280   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14281 else
14282   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14283 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14284 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-lsvld  $LIBS"
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295
14296 /* Override any gcc2 internal prototype to avoid an error.  */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 /* We use char because int might match the return type of a gcc2
14301    builtin and then its argument prototype would still apply.  */
14302 char dlopen ();
14303 int
14304 main ()
14305 {
14306 dlopen ();
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313   (eval $ac_link) 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag"
14321                          || test ! -s conftest.err'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest$ac_exeext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_cv_lib_svld_dlopen=yes
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 ac_cv_lib_svld_dlopen=no
14339 fi
14340 rm -f conftest.err conftest.$ac_objext \
14341       conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14343 fi
14344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14346 if test $ac_cv_lib_svld_dlopen = yes; then
14347   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14348 else
14349   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   ac_check_lib_save_LIBS=$LIBS
14355 LIBS="-ldld  $LIBS"
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362
14363 /* Override any gcc2 internal prototype to avoid an error.  */
14364 #ifdef __cplusplus
14365 extern "C"
14366 #endif
14367 /* We use char because int might match the return type of a gcc2
14368    builtin and then its argument prototype would still apply.  */
14369 char dld_link ();
14370 int
14371 main ()
14372 {
14373 dld_link ();
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14380   (eval $ac_link) 2>conftest.er1
14381   ac_status=$?
14382   grep -v '^ *+' conftest.er1 >conftest.err
14383   rm -f conftest.er1
14384   cat conftest.err >&5
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); } &&
14387          { ac_try='test -z "$ac_c_werror_flag"
14388                          || test ! -s conftest.err'
14389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390   (eval $ac_try) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; } &&
14394          { ac_try='test -s conftest$ac_exeext'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; }; then
14400   ac_cv_lib_dld_dld_link=yes
14401 else
14402   echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 ac_cv_lib_dld_dld_link=no
14406 fi
14407 rm -f conftest.err conftest.$ac_objext \
14408       conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14410 fi
14411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14413 if test $ac_cv_lib_dld_dld_link = yes; then
14414   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14415 fi
14416
14417
14418 fi
14419
14420
14421 fi
14422
14423
14424 fi
14425
14426
14427 fi
14428
14429
14430 fi
14431
14432     ;;
14433   esac
14434
14435   if test "x$lt_cv_dlopen" != xno; then
14436     enable_dlopen=yes
14437   else
14438     enable_dlopen=no
14439   fi
14440
14441   case $lt_cv_dlopen in
14442   dlopen)
14443     save_CPPFLAGS="$CPPFLAGS"
14444     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14445
14446     save_LDFLAGS="$LDFLAGS"
14447     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14448
14449     save_LIBS="$LIBS"
14450     LIBS="$lt_cv_dlopen_libs $LIBS"
14451
14452     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14454 if test "${lt_cv_dlopen_self+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457           if test "$cross_compiling" = yes; then :
14458   lt_cv_dlopen_self=cross
14459 else
14460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14461   lt_status=$lt_dlunknown
14462   cat > conftest.$ac_ext <<EOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14465
14466 #if HAVE_DLFCN_H
14467 #include <dlfcn.h>
14468 #endif
14469
14470 #include <stdio.h>
14471
14472 #ifdef RTLD_GLOBAL
14473 #  define LT_DLGLOBAL           RTLD_GLOBAL
14474 #else
14475 #  ifdef DL_GLOBAL
14476 #    define LT_DLGLOBAL         DL_GLOBAL
14477 #  else
14478 #    define LT_DLGLOBAL         0
14479 #  endif
14480 #endif
14481
14482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14483    find out it does not work in some platform. */
14484 #ifndef LT_DLLAZY_OR_NOW
14485 #  ifdef RTLD_LAZY
14486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14487 #  else
14488 #    ifdef DL_LAZY
14489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14490 #    else
14491 #      ifdef RTLD_NOW
14492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14493 #      else
14494 #        ifdef DL_NOW
14495 #          define LT_DLLAZY_OR_NOW      DL_NOW
14496 #        else
14497 #          define LT_DLLAZY_OR_NOW      0
14498 #        endif
14499 #      endif
14500 #    endif
14501 #  endif
14502 #endif
14503
14504 #ifdef __cplusplus
14505 extern "C" void exit (int);
14506 #endif
14507
14508 void fnord() { int i=42;}
14509 int main ()
14510 {
14511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14512   int status = $lt_dlunknown;
14513
14514   if (self)
14515     {
14516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14518       /* dlclose (self); */
14519     }
14520
14521     exit (status);
14522 }
14523 EOF
14524   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525   (eval $ac_link) 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14529     (./conftest; exit; ) 2>/dev/null
14530     lt_status=$?
14531     case x$lt_status in
14532       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14533       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14534       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14535     esac
14536   else :
14537     # compilation failed
14538     lt_cv_dlopen_self=no
14539   fi
14540 fi
14541 rm -fr conftest*
14542
14543
14544 fi
14545 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14546 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14547
14548     if test "x$lt_cv_dlopen_self" = xyes; then
14549       LDFLAGS="$LDFLAGS $link_static_flag"
14550       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14551 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14552 if test "${lt_cv_dlopen_self_static+set}" = set; then
14553   echo $ECHO_N "(cached) $ECHO_C" >&6
14554 else
14555           if test "$cross_compiling" = yes; then :
14556   lt_cv_dlopen_self_static=cross
14557 else
14558   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14559   lt_status=$lt_dlunknown
14560   cat > conftest.$ac_ext <<EOF
14561 #line 14561 "configure"
14562 #include "confdefs.h"
14563
14564 #if HAVE_DLFCN_H
14565 #include <dlfcn.h>
14566 #endif
14567
14568 #include <stdio.h>
14569
14570 #ifdef RTLD_GLOBAL
14571 #  define LT_DLGLOBAL           RTLD_GLOBAL
14572 #else
14573 #  ifdef DL_GLOBAL
14574 #    define LT_DLGLOBAL         DL_GLOBAL
14575 #  else
14576 #    define LT_DLGLOBAL         0
14577 #  endif
14578 #endif
14579
14580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14581    find out it does not work in some platform. */
14582 #ifndef LT_DLLAZY_OR_NOW
14583 #  ifdef RTLD_LAZY
14584 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14585 #  else
14586 #    ifdef DL_LAZY
14587 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14588 #    else
14589 #      ifdef RTLD_NOW
14590 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14591 #      else
14592 #        ifdef DL_NOW
14593 #          define LT_DLLAZY_OR_NOW      DL_NOW
14594 #        else
14595 #          define LT_DLLAZY_OR_NOW      0
14596 #        endif
14597 #      endif
14598 #    endif
14599 #  endif
14600 #endif
14601
14602 #ifdef __cplusplus
14603 extern "C" void exit (int);
14604 #endif
14605
14606 void fnord() { int i=42;}
14607 int main ()
14608 {
14609   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14610   int status = $lt_dlunknown;
14611
14612   if (self)
14613     {
14614       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14615       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14616       /* dlclose (self); */
14617     }
14618
14619     exit (status);
14620 }
14621 EOF
14622   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623   (eval $ac_link) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14627     (./conftest; exit; ) 2>/dev/null
14628     lt_status=$?
14629     case x$lt_status in
14630       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14631       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14632       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14633     esac
14634   else :
14635     # compilation failed
14636     lt_cv_dlopen_self_static=no
14637   fi
14638 fi
14639 rm -fr conftest*
14640
14641
14642 fi
14643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14644 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14645     fi
14646
14647     CPPFLAGS="$save_CPPFLAGS"
14648     LDFLAGS="$save_LDFLAGS"
14649     LIBS="$save_LIBS"
14650     ;;
14651   esac
14652
14653   case $lt_cv_dlopen_self in
14654   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14655   *) enable_dlopen_self=unknown ;;
14656   esac
14657
14658   case $lt_cv_dlopen_self_static in
14659   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14660   *) enable_dlopen_self_static=unknown ;;
14661   esac
14662 fi
14663
14664
14665 # Report which librarie types wil actually be built
14666 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14667 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14668 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14669 echo "${ECHO_T}$can_build_shared" >&6
14670
14671 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14672 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14673 test "$can_build_shared" = "no" && enable_shared=no
14674
14675 # On AIX, shared libraries and static libraries use the same namespace, and
14676 # are all built from PIC.
14677 case "$host_os" in
14678 aix3*)
14679   test "$enable_shared" = yes && enable_static=no
14680   if test -n "$RANLIB"; then
14681     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14682     postinstall_cmds='$RANLIB $lib'
14683   fi
14684   ;;
14685
14686 aix4* | aix5*)
14687   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14688     test "$enable_shared" = yes && enable_static=no
14689   fi
14690     ;;
14691 esac
14692 echo "$as_me:$LINENO: result: $enable_shared" >&5
14693 echo "${ECHO_T}$enable_shared" >&6
14694
14695 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14696 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14697 # Make sure either enable_shared or enable_static is yes.
14698 test "$enable_shared" = yes || enable_static=yes
14699 echo "$as_me:$LINENO: result: $enable_static" >&5
14700 echo "${ECHO_T}$enable_static" >&6
14701
14702 # The else clause should only fire when bootstrapping the
14703 # libtool distribution, otherwise you forgot to ship ltmain.sh
14704 # with your package, and you will get complaints that there are
14705 # no rules to generate ltmain.sh.
14706 if test -f "$ltmain"; then
14707   # See if we are running on zsh, and set the options which allow our commands through
14708   # without removal of \ escapes.
14709   if test -n "${ZSH_VERSION+set}" ; then
14710     setopt NO_GLOB_SUBST
14711   fi
14712   # Now quote all the things that may contain metacharacters while being
14713   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14714   # variables and quote the copies for generation of the libtool script.
14715   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14716     SED SHELL STRIP \
14717     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14718     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14719     deplibs_check_method reload_flag reload_cmds need_locks \
14720     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14721     lt_cv_sys_global_symbol_to_c_name_address \
14722     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14723     old_postinstall_cmds old_postuninstall_cmds \
14724     compiler \
14725     CC \
14726     LD \
14727     lt_prog_compiler_wl \
14728     lt_prog_compiler_pic \
14729     lt_prog_compiler_static \
14730     lt_prog_compiler_no_builtin_flag \
14731     export_dynamic_flag_spec \
14732     thread_safe_flag_spec \
14733     whole_archive_flag_spec \
14734     enable_shared_with_static_runtimes \
14735     old_archive_cmds \
14736     old_archive_from_new_cmds \
14737     predep_objects \
14738     postdep_objects \
14739     predeps \
14740     postdeps \
14741     compiler_lib_search_path \
14742     archive_cmds \
14743     archive_expsym_cmds \
14744     postinstall_cmds \
14745     postuninstall_cmds \
14746     old_archive_from_expsyms_cmds \
14747     allow_undefined_flag \
14748     no_undefined_flag \
14749     export_symbols_cmds \
14750     hardcode_libdir_flag_spec \
14751     hardcode_libdir_flag_spec_ld \
14752     hardcode_libdir_separator \
14753     hardcode_automatic \
14754     module_cmds \
14755     module_expsym_cmds \
14756     lt_cv_prog_compiler_c_o \
14757     exclude_expsyms \
14758     include_expsyms; do
14759
14760     case $var in
14761     old_archive_cmds | \
14762     old_archive_from_new_cmds | \
14763     archive_cmds | \
14764     archive_expsym_cmds | \
14765     module_cmds | \
14766     module_expsym_cmds | \
14767     old_archive_from_expsyms_cmds | \
14768     export_symbols_cmds | \
14769     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14770     postinstall_cmds | postuninstall_cmds | \
14771     old_postinstall_cmds | old_postuninstall_cmds | \
14772     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14773       # Double-quote double-evaled strings.
14774       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14775       ;;
14776     *)
14777       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14778       ;;
14779     esac
14780   done
14781
14782   case $lt_echo in
14783   *'\$0 --fallback-echo"')
14784     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14785     ;;
14786   esac
14787
14788 cfgfile="${ofile}T"
14789   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14790   $rm -f "$cfgfile"
14791   { echo "$as_me:$LINENO: creating $ofile" >&5
14792 echo "$as_me: creating $ofile" >&6;}
14793
14794   cat <<__EOF__ >> "$cfgfile"
14795 #! $SHELL
14796
14797 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14798 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14799 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14800 #
14801 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14802 # Free Software Foundation, Inc.
14803 #
14804 # This file is part of GNU Libtool:
14805 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14806 #
14807 # This program is free software; you can redistribute it and/or modify
14808 # it under the terms of the GNU General Public License as published by
14809 # the Free Software Foundation; either version 2 of the License, or
14810 # (at your option) any later version.
14811 #
14812 # This program is distributed in the hope that it will be useful, but
14813 # WITHOUT ANY WARRANTY; without even the implied warranty of
14814 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14815 # General Public License for more details.
14816 #
14817 # You should have received a copy of the GNU General Public License
14818 # along with this program; if not, write to the Free Software
14819 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14820 #
14821 # As a special exception to the GNU General Public License, if you
14822 # distribute this file as part of a program that contains a
14823 # configuration script generated by Autoconf, you may include it under
14824 # the same distribution terms that you use for the rest of that program.
14825
14826 # A sed program that does not truncate output.
14827 SED=$lt_SED
14828
14829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14830 Xsed="$SED -e s/^X//"
14831
14832 # The HP-UX ksh and POSIX shell print the target directory to stdout
14833 # if CDPATH is set.
14834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14835
14836 # The names of the tagged configurations supported by this script.
14837 available_tags=
14838
14839 # ### BEGIN LIBTOOL CONFIG
14840
14841 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14842
14843 # Shell to use when invoking shell scripts.
14844 SHELL=$lt_SHELL
14845
14846 # Whether or not to build shared libraries.
14847 build_libtool_libs=$enable_shared
14848
14849 # Whether or not to build static libraries.
14850 build_old_libs=$enable_static
14851
14852 # Whether or not to add -lc for building shared libraries.
14853 build_libtool_need_lc=$archive_cmds_need_lc
14854
14855 # Whether or not to disallow shared libs when runtime libs are static
14856 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14857
14858 # Whether or not to optimize for fast installation.
14859 fast_install=$enable_fast_install
14860
14861 # The host system.
14862 host_alias=$host_alias
14863 host=$host
14864
14865 # An echo program that does not interpret backslashes.
14866 echo=$lt_echo
14867
14868 # The archiver.
14869 AR=$lt_AR
14870 AR_FLAGS=$lt_AR_FLAGS
14871
14872 # A C compiler.
14873 LTCC=$lt_LTCC
14874
14875 # A language-specific compiler.
14876 CC=$lt_compiler
14877
14878 # Is the compiler the GNU C compiler?
14879 with_gcc=$GCC
14880
14881 # An ERE matcher.
14882 EGREP=$lt_EGREP
14883
14884 # The linker used to build libraries.
14885 LD=$lt_LD
14886
14887 # Whether we need hard or soft links.
14888 LN_S=$lt_LN_S
14889
14890 # A BSD-compatible nm program.
14891 NM=$lt_NM
14892
14893 # A symbol stripping program
14894 STRIP=$lt_STRIP
14895
14896 # Used to examine libraries when file_magic_cmd begins "file"
14897 MAGIC_CMD=$MAGIC_CMD
14898
14899 # Used on cygwin: DLL creation program.
14900 DLLTOOL="$DLLTOOL"
14901
14902 # Used on cygwin: object dumper.
14903 OBJDUMP="$OBJDUMP"
14904
14905 # Used on cygwin: assembler.
14906 AS="$AS"
14907
14908 # The name of the directory that contains temporary libtool files.
14909 objdir=$objdir
14910
14911 # How to create reloadable object files.
14912 reload_flag=$lt_reload_flag
14913 reload_cmds=$lt_reload_cmds
14914
14915 # How to pass a linker flag through the compiler.
14916 wl=$lt_lt_prog_compiler_wl
14917
14918 # Object file suffix (normally "o").
14919 objext="$ac_objext"
14920
14921 # Old archive suffix (normally "a").
14922 libext="$libext"
14923
14924 # Shared library suffix (normally ".so").
14925 shrext_cmds='$shrext_cmds'
14926
14927 # Executable file suffix (normally "").
14928 exeext="$exeext"
14929
14930 # Additional compiler flags for building library objects.
14931 pic_flag=$lt_lt_prog_compiler_pic
14932 pic_mode=$pic_mode
14933
14934 # What is the maximum length of a command?
14935 max_cmd_len=$lt_cv_sys_max_cmd_len
14936
14937 # Does compiler simultaneously support -c and -o options?
14938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14939
14940 # Must we lock files when doing compilation ?
14941 need_locks=$lt_need_locks
14942
14943 # Do we need the lib prefix for modules?
14944 need_lib_prefix=$need_lib_prefix
14945
14946 # Do we need a version for libraries?
14947 need_version=$need_version
14948
14949 # Whether dlopen is supported.
14950 dlopen_support=$enable_dlopen
14951
14952 # Whether dlopen of programs is supported.
14953 dlopen_self=$enable_dlopen_self
14954
14955 # Whether dlopen of statically linked programs is supported.
14956 dlopen_self_static=$enable_dlopen_self_static
14957
14958 # Compiler flag to prevent dynamic linking.
14959 link_static_flag=$lt_lt_prog_compiler_static
14960
14961 # Compiler flag to turn off builtin functions.
14962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14963
14964 # Compiler flag to allow reflexive dlopens.
14965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14966
14967 # Compiler flag to generate shared objects directly from archives.
14968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14969
14970 # Compiler flag to generate thread-safe objects.
14971 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14972
14973 # Library versioning type.
14974 version_type=$version_type
14975
14976 # Format of library name prefix.
14977 libname_spec=$lt_libname_spec
14978
14979 # List of archive names.  First name is the real one, the rest are links.
14980 # The last name is the one that the linker finds with -lNAME.
14981 library_names_spec=$lt_library_names_spec
14982
14983 # The coded name of the library, if different from the real name.
14984 soname_spec=$lt_soname_spec
14985
14986 # Commands used to build and install an old-style archive.
14987 RANLIB=$lt_RANLIB
14988 old_archive_cmds=$lt_old_archive_cmds
14989 old_postinstall_cmds=$lt_old_postinstall_cmds
14990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14991
14992 # Create an old-style archive from a shared archive.
14993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14994
14995 # Create a temporary old-style archive to link instead of a shared archive.
14996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14997
14998 # Commands used to build and install a shared archive.
14999 archive_cmds=$lt_archive_cmds
15000 archive_expsym_cmds=$lt_archive_expsym_cmds
15001 postinstall_cmds=$lt_postinstall_cmds
15002 postuninstall_cmds=$lt_postuninstall_cmds
15003
15004 # Commands used to build a loadable module (assumed same as above if empty)
15005 module_cmds=$lt_module_cmds
15006 module_expsym_cmds=$lt_module_expsym_cmds
15007
15008 # Commands to strip libraries.
15009 old_striplib=$lt_old_striplib
15010 striplib=$lt_striplib
15011
15012 # Dependencies to place before the objects being linked to create a
15013 # shared library.
15014 predep_objects=$lt_predep_objects
15015
15016 # Dependencies to place after the objects being linked to create a
15017 # shared library.
15018 postdep_objects=$lt_postdep_objects
15019
15020 # Dependencies to place before the objects being linked to create a
15021 # shared library.
15022 predeps=$lt_predeps
15023
15024 # Dependencies to place after the objects being linked to create a
15025 # shared library.
15026 postdeps=$lt_postdeps
15027
15028 # The library search path used internally by the compiler when linking
15029 # a shared library.
15030 compiler_lib_search_path=$lt_compiler_lib_search_path
15031
15032 # Method to check whether dependent libraries are shared objects.
15033 deplibs_check_method=$lt_deplibs_check_method
15034
15035 # Command to use when deplibs_check_method == file_magic.
15036 file_magic_cmd=$lt_file_magic_cmd
15037
15038 # Flag that allows shared libraries with undefined symbols to be built.
15039 allow_undefined_flag=$lt_allow_undefined_flag
15040
15041 # Flag that forces no undefined symbols.
15042 no_undefined_flag=$lt_no_undefined_flag
15043
15044 # Commands used to finish a libtool library installation in a directory.
15045 finish_cmds=$lt_finish_cmds
15046
15047 # Same as above, but a single script fragment to be evaled but not shown.
15048 finish_eval=$lt_finish_eval
15049
15050 # Take the output of nm and produce a listing of raw symbols and C names.
15051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15052
15053 # Transform the output of nm in a proper C declaration
15054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15055
15056 # Transform the output of nm in a C name address pair
15057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15058
15059 # This is the shared library runtime path variable.
15060 runpath_var=$runpath_var
15061
15062 # This is the shared library path variable.
15063 shlibpath_var=$shlibpath_var
15064
15065 # Is shlibpath searched before the hard-coded library search path?
15066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15067
15068 # How to hardcode a shared library path into an executable.
15069 hardcode_action=$hardcode_action
15070
15071 # Whether we should hardcode library paths into libraries.
15072 hardcode_into_libs=$hardcode_into_libs
15073
15074 # Flag to hardcode \$libdir into a binary during linking.
15075 # This must work even if \$libdir does not exist.
15076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15077
15078 # If ld is used when linking, flag to hardcode \$libdir into
15079 # a binary during linking. This must work even if \$libdir does
15080 # not exist.
15081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15082
15083 # Whether we need a single -rpath flag with a separated argument.
15084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15085
15086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15087 # resulting binary.
15088 hardcode_direct=$hardcode_direct
15089
15090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15091 # resulting binary.
15092 hardcode_minus_L=$hardcode_minus_L
15093
15094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15095 # the resulting binary.
15096 hardcode_shlibpath_var=$hardcode_shlibpath_var
15097
15098 # Set to yes if building a shared library automatically hardcodes DIR into the library
15099 # and all subsequent libraries and executables linked against it.
15100 hardcode_automatic=$hardcode_automatic
15101
15102 # Variables whose values should be saved in libtool wrapper scripts and
15103 # restored at relink time.
15104 variables_saved_for_relink="$variables_saved_for_relink"
15105
15106 # Whether libtool must link a program against all its dependency libraries.
15107 link_all_deplibs=$link_all_deplibs
15108
15109 # Compile-time system search path for libraries
15110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15111
15112 # Run-time system search path for libraries
15113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15114
15115 # Fix the shell variable \$srcfile for the compiler.
15116 fix_srcfile_path="$fix_srcfile_path"
15117
15118 # Set to yes if exported symbols are required.
15119 always_export_symbols=$always_export_symbols
15120
15121 # The commands to list exported symbols.
15122 export_symbols_cmds=$lt_export_symbols_cmds
15123
15124 # The commands to extract the exported symbol list from a shared archive.
15125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15126
15127 # Symbols that should not be listed in the preloaded symbols.
15128 exclude_expsyms=$lt_exclude_expsyms
15129
15130 # Symbols that must always be exported.
15131 include_expsyms=$lt_include_expsyms
15132
15133 # ### END LIBTOOL CONFIG
15134
15135 __EOF__
15136
15137
15138   case $host_os in
15139   aix3*)
15140     cat <<\EOF >> "$cfgfile"
15141
15142 # AIX sometimes has problems with the GCC collect2 program.  For some
15143 # reason, if we set the COLLECT_NAMES environment variable, the problems
15144 # vanish in a puff of smoke.
15145 if test "X${COLLECT_NAMES+set}" != Xset; then
15146   COLLECT_NAMES=
15147   export COLLECT_NAMES
15148 fi
15149 EOF
15150     ;;
15151   esac
15152
15153   # We use sed instead of cat because bash on DJGPP gets confused if
15154   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15155   # text mode, it properly converts lines to CR/LF.  This bash problem
15156   # is reportedly fixed, but why not run on old versions too?
15157   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15158
15159   mv -f "$cfgfile" "$ofile" || \
15160     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15161   chmod +x "$ofile"
15162
15163 else
15164   # If there is no Makefile yet, we rely on a make rule to execute
15165   # `config.status --recheck' to rerun these tests and create the
15166   # libtool script then.
15167   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15168   if test -f "$ltmain_in"; then
15169     test -f Makefile && make "$ltmain"
15170   fi
15171 fi
15172
15173
15174 ac_ext=c
15175 ac_cpp='$CPP $CPPFLAGS'
15176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15179
15180 CC="$lt_save_CC"
15181
15182
15183 # Check whether --with-tags or --without-tags was given.
15184 if test "${with_tags+set}" = set; then
15185   withval="$with_tags"
15186   tagnames="$withval"
15187 fi;
15188
15189 if test -f "$ltmain" && test -n "$tagnames"; then
15190   if test ! -f "${ofile}"; then
15191     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15192 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15193   fi
15194
15195   if test -z "$LTCC"; then
15196     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15197     if test -z "$LTCC"; then
15198       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15199 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15200     else
15201       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15202 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15203     fi
15204   fi
15205
15206   # Extract list of available tagged configurations in $ofile.
15207   # Note that this assumes the entire list is on one line.
15208   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15209
15210   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15211   for tagname in $tagnames; do
15212     IFS="$lt_save_ifs"
15213     # Check whether tagname contains only valid characters
15214     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15215     "") ;;
15216     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15217 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15218    { (exit 1); exit 1; }; }
15219         ;;
15220     esac
15221
15222     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15223     then
15224       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15225 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15226    { (exit 1); exit 1; }; }
15227     fi
15228
15229     # Update the list of available tags.
15230     if test -n "$tagname"; then
15231       echo appending configuration tag "$tagname" to $ofile
15232
15233       case $tagname in
15234       CXX)
15235         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15236             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15237             (test "X$CXX" != "Xg++"))) ; then
15238           ac_ext=cc
15239 ac_cpp='$CXXCPP $CPPFLAGS'
15240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15243
15244
15245
15246
15247 archive_cmds_need_lc_CXX=no
15248 allow_undefined_flag_CXX=
15249 always_export_symbols_CXX=no
15250 archive_expsym_cmds_CXX=
15251 export_dynamic_flag_spec_CXX=
15252 hardcode_direct_CXX=no
15253 hardcode_libdir_flag_spec_CXX=
15254 hardcode_libdir_flag_spec_ld_CXX=
15255 hardcode_libdir_separator_CXX=
15256 hardcode_minus_L_CXX=no
15257 hardcode_automatic_CXX=no
15258 module_cmds_CXX=
15259 module_expsym_cmds_CXX=
15260 link_all_deplibs_CXX=unknown
15261 old_archive_cmds_CXX=$old_archive_cmds
15262 no_undefined_flag_CXX=
15263 whole_archive_flag_spec_CXX=
15264 enable_shared_with_static_runtimes_CXX=no
15265
15266 # Dependencies to place before and after the object being linked:
15267 predep_objects_CXX=
15268 postdep_objects_CXX=
15269 predeps_CXX=
15270 postdeps_CXX=
15271 compiler_lib_search_path_CXX=
15272
15273 # Source file extension for C++ test sources.
15274 ac_ext=cc
15275
15276 # Object file extension for compiled C++ test sources.
15277 objext=o
15278 objext_CXX=$objext
15279
15280 # Code to be used in simple compile tests
15281 lt_simple_compile_test_code="int some_variable = 0;\n"
15282
15283 # Code to be used in simple link tests
15284 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15285
15286 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15287
15288 # If no C compiler was specified, use CC.
15289 LTCC=${LTCC-"$CC"}
15290
15291 # Allow CC to be a program name with arguments.
15292 compiler=$CC
15293
15294
15295 # Allow CC to be a program name with arguments.
15296 lt_save_CC=$CC
15297 lt_save_LD=$LD
15298 lt_save_GCC=$GCC
15299 GCC=$GXX
15300 lt_save_with_gnu_ld=$with_gnu_ld
15301 lt_save_path_LD=$lt_cv_path_LD
15302 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15303   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15304 else
15305   unset lt_cv_prog_gnu_ld
15306 fi
15307 if test -n "${lt_cv_path_LDCXX+set}"; then
15308   lt_cv_path_LD=$lt_cv_path_LDCXX
15309 else
15310   unset lt_cv_path_LD
15311 fi
15312 test -z "${LDCXX+set}" || LD=$LDCXX
15313 CC=${CXX-"c++"}
15314 compiler=$CC
15315 compiler_CXX=$CC
15316 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15317
15318 # We don't want -fno-exception wen compiling C++ code, so set the
15319 # no_builtin_flag separately
15320 if test "$GXX" = yes; then
15321   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15322 else
15323   lt_prog_compiler_no_builtin_flag_CXX=
15324 fi
15325
15326 if test "$GXX" = yes; then
15327   # Set up default GNU C++ configuration
15328
15329
15330 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15331 if test "${with_gnu_ld+set}" = set; then
15332   withval="$with_gnu_ld"
15333   test "$withval" = no || with_gnu_ld=yes
15334 else
15335   with_gnu_ld=no
15336 fi;
15337 ac_prog=ld
15338 if test "$GCC" = yes; then
15339   # Check if gcc -print-prog-name=ld gives a path.
15340   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15341 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15342   case $host in
15343   *-*-mingw*)
15344     # gcc leaves a trailing carriage return which upsets mingw
15345     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15346   *)
15347     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15348   esac
15349   case $ac_prog in
15350     # Accept absolute paths.
15351     [\\/]* | ?:[\\/]*)
15352       re_direlt='/[^/][^/]*/\.\./'
15353       # Canonicalize the pathname of ld
15354       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15355       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15356         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15357       done
15358       test -z "$LD" && LD="$ac_prog"
15359       ;;
15360   "")
15361     # If it fails, then pretend we aren't using GCC.
15362     ac_prog=ld
15363     ;;
15364   *)
15365     # If it is relative, then search for the first ld in PATH.
15366     with_gnu_ld=unknown
15367     ;;
15368   esac
15369 elif test "$with_gnu_ld" = yes; then
15370   echo "$as_me:$LINENO: checking for GNU ld" >&5
15371 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15372 else
15373   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15374 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15375 fi
15376 if test "${lt_cv_path_LD+set}" = set; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379   if test -z "$LD"; then
15380   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15381   for ac_dir in $PATH; do
15382     IFS="$lt_save_ifs"
15383     test -z "$ac_dir" && ac_dir=.
15384     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15385       lt_cv_path_LD="$ac_dir/$ac_prog"
15386       # Check to see if the program is GNU ld.  I'd rather use --version,
15387       # but apparently some GNU ld's only accept -v.
15388       # Break only if it was the GNU/non-GNU ld that we prefer.
15389       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15390       *GNU* | *'with BFD'*)
15391         test "$with_gnu_ld" != no && break
15392         ;;
15393       *)
15394         test "$with_gnu_ld" != yes && break
15395         ;;
15396       esac
15397     fi
15398   done
15399   IFS="$lt_save_ifs"
15400 else
15401   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15402 fi
15403 fi
15404
15405 LD="$lt_cv_path_LD"
15406 if test -n "$LD"; then
15407   echo "$as_me:$LINENO: result: $LD" >&5
15408 echo "${ECHO_T}$LD" >&6
15409 else
15410   echo "$as_me:$LINENO: result: no" >&5
15411 echo "${ECHO_T}no" >&6
15412 fi
15413 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15414 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15415    { (exit 1); exit 1; }; }
15416 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15417 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15418 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15419   echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15422 case `$LD -v 2>&1 </dev/null` in
15423 *GNU* | *'with BFD'*)
15424   lt_cv_prog_gnu_ld=yes
15425   ;;
15426 *)
15427   lt_cv_prog_gnu_ld=no
15428   ;;
15429 esac
15430 fi
15431 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15432 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15433 with_gnu_ld=$lt_cv_prog_gnu_ld
15434
15435
15436
15437   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15438   # archiving commands below assume that GNU ld is being used.
15439   if test "$with_gnu_ld" = yes; then
15440     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441     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'
15442
15443     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15444     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15445
15446     # If archive_cmds runs LD, not CC, wlarc should be empty
15447     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15448     #     investigate it a little bit more. (MM)
15449     wlarc='${wl}'
15450
15451     # ancient GNU ld didn't support --whole-archive et. al.
15452     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15453         grep 'no-whole-archive' > /dev/null; then
15454       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15455     else
15456       whole_archive_flag_spec_CXX=
15457     fi
15458   else
15459     with_gnu_ld=no
15460     wlarc=
15461
15462     # A generic and very simple default shared library creation
15463     # command for GNU C++ for the case where it uses the native
15464     # linker, instead of GNU ld.  If possible, this setting should
15465     # overridden to take advantage of the native linker features on
15466     # the platform it is being used on.
15467     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15468   fi
15469
15470   # Commands to make compiler produce verbose output that lists
15471   # what "hidden" libraries, object files and flags are used when
15472   # linking a shared library.
15473   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15474
15475 else
15476   GXX=no
15477   with_gnu_ld=no
15478   wlarc=
15479 fi
15480
15481 # PORTME: fill in a description of your system's C++ link characteristics
15482 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15484 ld_shlibs_CXX=yes
15485 case $host_os in
15486   aix3*)
15487     # FIXME: insert proper C++ library support
15488     ld_shlibs_CXX=no
15489     ;;
15490   aix4* | aix5*)
15491     if test "$host_cpu" = ia64; then
15492       # On IA64, the linker does run time linking by default, so we don't
15493       # have to do anything special.
15494       aix_use_runtimelinking=no
15495       exp_sym_flag='-Bexport'
15496       no_entry_flag=""
15497     else
15498       aix_use_runtimelinking=no
15499
15500       # Test if we are trying to use run time linking or normal
15501       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15502       # need to do runtime linking.
15503       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15504         for ld_flag in $LDFLAGS; do
15505           case $ld_flag in
15506           *-brtl*)
15507             aix_use_runtimelinking=yes
15508             break
15509             ;;
15510           esac
15511         done
15512       esac
15513
15514       exp_sym_flag='-bexport'
15515       no_entry_flag='-bnoentry'
15516     fi
15517
15518     # When large executables or shared objects are built, AIX ld can
15519     # have problems creating the table of contents.  If linking a library
15520     # or program results in "error TOC overflow" add -mminimal-toc to
15521     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15522     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15523
15524     archive_cmds_CXX=''
15525     hardcode_direct_CXX=yes
15526     hardcode_libdir_separator_CXX=':'
15527     link_all_deplibs_CXX=yes
15528
15529     if test "$GXX" = yes; then
15530       case $host_os in aix4.012|aix4.012.*)
15531       # We only want to do this on AIX 4.2 and lower, the check
15532       # below for broken collect2 doesn't work under 4.3+
15533         collect2name=`${CC} -print-prog-name=collect2`
15534         if test -f "$collect2name" && \
15535            strings "$collect2name" | grep resolve_lib_name >/dev/null
15536         then
15537           # We have reworked collect2
15538           hardcode_direct_CXX=yes
15539         else
15540           # We have old collect2
15541           hardcode_direct_CXX=unsupported
15542           # It fails to find uninstalled libraries when the uninstalled
15543           # path is not listed in the libpath.  Setting hardcode_minus_L
15544           # to unsupported forces relinking
15545           hardcode_minus_L_CXX=yes
15546           hardcode_libdir_flag_spec_CXX='-L$libdir'
15547           hardcode_libdir_separator_CXX=
15548         fi
15549       esac
15550       shared_flag='-shared'
15551     else
15552       # not using gcc
15553       if test "$host_cpu" = ia64; then
15554         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15555         # chokes on -Wl,-G. The following line is correct:
15556         shared_flag='-G'
15557       else
15558         if test "$aix_use_runtimelinking" = yes; then
15559           shared_flag='${wl}-G'
15560         else
15561           shared_flag='${wl}-bM:SRE'
15562         fi
15563       fi
15564     fi
15565
15566     # It seems that -bexpall does not export symbols beginning with
15567     # underscore (_), so it is better to generate a list of symbols to export.
15568     always_export_symbols_CXX=yes
15569     if test "$aix_use_runtimelinking" = yes; then
15570       # Warning - without using the other runtime loading flags (-brtl),
15571       # -berok will link without error, but may produce a broken library.
15572       allow_undefined_flag_CXX='-berok'
15573       # Determine the default libpath from the value encoded in an empty executable.
15574       cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580
15581 int
15582 main ()
15583 {
15584
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591   (eval $ac_link) 2>conftest.er1
15592   ac_status=$?
15593   grep -v '^ *+' conftest.er1 >conftest.err
15594   rm -f conftest.er1
15595   cat conftest.err >&5
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } &&
15598          { ac_try='test -z "$ac_cxx_werror_flag"
15599                          || test ! -s conftest.err'
15600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601   (eval $ac_try) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; } &&
15605          { ac_try='test -s conftest$ac_exeext'
15606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607   (eval $ac_try) 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; }; then
15611
15612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15613 }'`
15614 # Check for a 64-bit object if we didn't find anything.
15615 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; }
15616 }'`; fi
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 fi
15622 rm -f conftest.err conftest.$ac_objext \
15623       conftest$ac_exeext conftest.$ac_ext
15624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625
15626       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627
15628       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"
15629      else
15630       if test "$host_cpu" = ia64; then
15631         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15632         allow_undefined_flag_CXX="-z nodefs"
15633         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"
15634       else
15635         # Determine the default libpath from the value encoded in an empty executable.
15636         cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642
15643 int
15644 main ()
15645 {
15646
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15653   (eval $ac_link) 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } &&
15660          { ac_try='test -z "$ac_cxx_werror_flag"
15661                          || test ! -s conftest.err'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; } &&
15667          { ac_try='test -s conftest$ac_exeext'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }; then
15673
15674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15675 }'`
15676 # Check for a 64-bit object if we didn't find anything.
15677 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; }
15678 }'`; fi
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 fi
15684 rm -f conftest.err conftest.$ac_objext \
15685       conftest$ac_exeext conftest.$ac_ext
15686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15687
15688         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15689         # Warning - without using the other run time loading flags,
15690         # -berok will link without error, but may produce a broken library.
15691         no_undefined_flag_CXX=' ${wl}-bernotok'
15692         allow_undefined_flag_CXX=' ${wl}-berok'
15693         # -bexpall does not export symbols beginning with underscore (_)
15694         always_export_symbols_CXX=yes
15695         # Exported symbols can be pulled into shared objects from archives
15696         whole_archive_flag_spec_CXX=' '
15697         archive_cmds_need_lc_CXX=yes
15698         # This is similar to how AIX traditionally builds it's shared libraries.
15699         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'
15700       fi
15701     fi
15702     ;;
15703   chorus*)
15704     case $cc_basename in
15705       *)
15706         # FIXME: insert proper C++ library support
15707         ld_shlibs_CXX=no
15708         ;;
15709     esac
15710     ;;
15711
15712
15713   cygwin* | mingw* | pw32*)
15714     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15715     # as there is no search path for DLLs.
15716     hardcode_libdir_flag_spec_CXX='-L$libdir'
15717     allow_undefined_flag_CXX=unsupported
15718     always_export_symbols_CXX=no
15719     enable_shared_with_static_runtimes_CXX=yes
15720
15721     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15722       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'
15723       # If the export-symbols file already is a .def file (1st line
15724       # is EXPORTS), use it as is; otherwise, prepend...
15725       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15726         cp $export_symbols $output_objdir/$soname.def;
15727       else
15728         echo EXPORTS > $output_objdir/$soname.def;
15729         cat $export_symbols >> $output_objdir/$soname.def;
15730       fi~
15731       $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'
15732     else
15733       ld_shlibs_CXX=no
15734     fi
15735   ;;
15736       darwin* | rhapsody*)
15737         case "$host_os" in
15738         rhapsody* | darwin1.[012])
15739          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15740          ;;
15741        *) # Darwin 1.3 on
15742          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15743            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15744          else
15745            case ${MACOSX_DEPLOYMENT_TARGET} in
15746              10.[012])
15747                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15748                ;;
15749              10.*)
15750                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15751                ;;
15752            esac
15753          fi
15754          ;;
15755         esac
15756       archive_cmds_need_lc_CXX=no
15757       hardcode_direct_CXX=no
15758       hardcode_automatic_CXX=yes
15759       hardcode_shlibpath_var_CXX=unsupported
15760       whole_archive_flag_spec_CXX=''
15761       link_all_deplibs_CXX=yes
15762
15763     if test "$GXX" = yes ; then
15764       lt_int_apple_cc_single_mod=no
15765       output_verbose_link_cmd='echo'
15766       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15767        lt_int_apple_cc_single_mod=yes
15768       fi
15769       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15770        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15771       else
15772           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'
15773         fi
15774         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15775         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15776           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15777             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}'
15778           else
15779             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}'
15780           fi
15781             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}'
15782       else
15783       case "$cc_basename" in
15784         xlc*)
15785          output_verbose_link_cmd='echo'
15786           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'
15787           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15788           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15789           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}'
15790           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}'
15791           ;;
15792        *)
15793          ld_shlibs_CXX=no
15794           ;;
15795       esac
15796       fi
15797         ;;
15798
15799   dgux*)
15800     case $cc_basename in
15801       ec++)
15802         # FIXME: insert proper C++ library support
15803         ld_shlibs_CXX=no
15804         ;;
15805       ghcx)
15806         # Green Hills C++ Compiler
15807         # FIXME: insert proper C++ library support
15808         ld_shlibs_CXX=no
15809         ;;
15810       *)
15811         # FIXME: insert proper C++ library support
15812         ld_shlibs_CXX=no
15813         ;;
15814     esac
15815     ;;
15816   freebsd12*)
15817     # C++ shared libraries reported to be fairly broken before switch to ELF
15818     ld_shlibs_CXX=no
15819     ;;
15820   freebsd-elf*)
15821     archive_cmds_need_lc_CXX=no
15822     ;;
15823   freebsd* | kfreebsd*-gnu)
15824     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15825     # conventions
15826     ld_shlibs_CXX=yes
15827     ;;
15828   gnu*)
15829     ;;
15830   hpux9*)
15831     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15832     hardcode_libdir_separator_CXX=:
15833     export_dynamic_flag_spec_CXX='${wl}-E'
15834     hardcode_direct_CXX=yes
15835     hardcode_minus_L_CXX=yes # Not in the search PATH,
15836                                 # but as the default
15837                                 # location of the library.
15838
15839     case $cc_basename in
15840     CC)
15841       # FIXME: insert proper C++ library support
15842       ld_shlibs_CXX=no
15843       ;;
15844     aCC)
15845       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'
15846       # Commands to make compiler produce verbose output that lists
15847       # what "hidden" libraries, object files and flags are used when
15848       # linking a shared library.
15849       #
15850       # There doesn't appear to be a way to prevent this compiler from
15851       # explicitly linking system object files so we need to strip them
15852       # from the output so that they don't get included in the library
15853       # dependencies.
15854       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'
15855       ;;
15856     *)
15857       if test "$GXX" = yes; then
15858         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'
15859       else
15860         # FIXME: insert proper C++ library support
15861         ld_shlibs_CXX=no
15862       fi
15863       ;;
15864     esac
15865     ;;
15866   hpux10*|hpux11*)
15867     if test $with_gnu_ld = no; then
15868       case "$host_cpu" in
15869       hppa*64*)
15870         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15871         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15872         hardcode_libdir_separator_CXX=:
15873         ;;
15874       ia64*)
15875         hardcode_libdir_flag_spec_CXX='-L$libdir'
15876         ;;
15877       *)
15878         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15879         hardcode_libdir_separator_CXX=:
15880         export_dynamic_flag_spec_CXX='${wl}-E'
15881         ;;
15882       esac
15883     fi
15884     case "$host_cpu" in
15885     hppa*64*)
15886       hardcode_direct_CXX=no
15887       hardcode_shlibpath_var_CXX=no
15888       ;;
15889     ia64*)
15890       hardcode_direct_CXX=no
15891       hardcode_shlibpath_var_CXX=no
15892       hardcode_minus_L_CXX=yes # Not in the search PATH,
15893                                               # but as the default
15894                                               # location of the library.
15895       ;;
15896     *)
15897       hardcode_direct_CXX=yes
15898       hardcode_minus_L_CXX=yes # Not in the search PATH,
15899                                               # but as the default
15900                                               # location of the library.
15901       ;;
15902     esac
15903
15904     case $cc_basename in
15905       CC)
15906         # FIXME: insert proper C++ library support
15907         ld_shlibs_CXX=no
15908         ;;
15909       aCC)
15910         case "$host_cpu" in
15911         hppa*64*|ia64*)
15912           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15913           ;;
15914         *)
15915           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15916           ;;
15917         esac
15918         # Commands to make compiler produce verbose output that lists
15919         # what "hidden" libraries, object files and flags are used when
15920         # linking a shared library.
15921         #
15922         # There doesn't appear to be a way to prevent this compiler from
15923         # explicitly linking system object files so we need to strip them
15924         # from the output so that they don't get included in the library
15925         # dependencies.
15926         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'
15927         ;;
15928       *)
15929         if test "$GXX" = yes; then
15930           if test $with_gnu_ld = no; then
15931             case "$host_cpu" in
15932             ia64*|hppa*64*)
15933               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15934               ;;
15935             *)
15936               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'
15937               ;;
15938             esac
15939           fi
15940         else
15941           # FIXME: insert proper C++ library support
15942           ld_shlibs_CXX=no
15943         fi
15944         ;;
15945     esac
15946     ;;
15947   irix5* | irix6*)
15948     case $cc_basename in
15949       CC)
15950         # SGI C++
15951         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'
15952
15953         # Archives containing C++ object files must be created using
15954         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15955         # necessary to make sure instantiated templates are included
15956         # in the archive.
15957         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15958         ;;
15959       *)
15960         if test "$GXX" = yes; then
15961           if test "$with_gnu_ld" = no; then
15962             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'
15963           else
15964             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'
15965           fi
15966         fi
15967         link_all_deplibs_CXX=yes
15968         ;;
15969     esac
15970     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15971     hardcode_libdir_separator_CXX=:
15972     ;;
15973   linux*)
15974     case $cc_basename in
15975       KCC)
15976         # Kuck and Associates, Inc. (KAI) C++ Compiler
15977
15978         # KCC will only create a shared library if the output file
15979         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15980         # to its proper name (with version) after linking.
15981         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'
15982         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'
15983         # Commands to make compiler produce verbose output that lists
15984         # what "hidden" libraries, object files and flags are used when
15985         # linking a shared library.
15986         #
15987         # There doesn't appear to be a way to prevent this compiler from
15988         # explicitly linking system object files so we need to strip them
15989         # from the output so that they don't get included in the library
15990         # dependencies.
15991         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'
15992
15993         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15994         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15995
15996         # Archives containing C++ object files must be created using
15997         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15998         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15999         ;;
16000       icpc)
16001         # Intel C++
16002         with_gnu_ld=yes
16003         # version 8.0 and above of icpc choke on multiply defined symbols
16004         # if we add $predep_objects and $postdep_objects, however 7.1 and
16005         # earlier do not add the objects themselves.
16006         case `$CC -V 2>&1` in
16007         *"Version 7."*)
16008           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009           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'
16010           ;;
16011         *)  # Version 8.0 or newer
16012           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014           ;;
16015         esac
16016         archive_cmds_need_lc_CXX=no
16017         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16018         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16019         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16020         ;;
16021       cxx)
16022         # Compaq C++
16023         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024         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'
16025
16026         runpath_var=LD_RUN_PATH
16027         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16028         hardcode_libdir_separator_CXX=:
16029
16030         # Commands to make compiler produce verbose output that lists
16031         # what "hidden" libraries, object files and flags are used when
16032         # linking a shared library.
16033         #
16034         # There doesn't appear to be a way to prevent this compiler from
16035         # explicitly linking system object files so we need to strip them
16036         # from the output so that they don't get included in the library
16037         # dependencies.
16038         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'
16039         ;;
16040     esac
16041     ;;
16042   lynxos*)
16043     # FIXME: insert proper C++ library support
16044     ld_shlibs_CXX=no
16045     ;;
16046   m88k*)
16047     # FIXME: insert proper C++ library support
16048     ld_shlibs_CXX=no
16049     ;;
16050   mvs*)
16051     case $cc_basename in
16052       cxx)
16053         # FIXME: insert proper C++ library support
16054         ld_shlibs_CXX=no
16055         ;;
16056       *)
16057         # FIXME: insert proper C++ library support
16058         ld_shlibs_CXX=no
16059         ;;
16060     esac
16061     ;;
16062   netbsd*)
16063     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16064       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16065       wlarc=
16066       hardcode_libdir_flag_spec_CXX='-R$libdir'
16067       hardcode_direct_CXX=yes
16068       hardcode_shlibpath_var_CXX=no
16069     fi
16070     # Workaround some broken pre-1.5 toolchains
16071     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16072     ;;
16073   openbsd2*)
16074     # C++ shared libraries are fairly broken
16075     ld_shlibs_CXX=no
16076     ;;
16077   openbsd*)
16078     hardcode_direct_CXX=yes
16079     hardcode_shlibpath_var_CXX=no
16080     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16081     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16082     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16083       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16084       export_dynamic_flag_spec_CXX='${wl}-E'
16085       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16086     fi
16087     output_verbose_link_cmd='echo'
16088     ;;
16089   osf3*)
16090     case $cc_basename in
16091       KCC)
16092         # Kuck and Associates, Inc. (KAI) C++ Compiler
16093
16094         # KCC will only create a shared library if the output file
16095         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096         # to its proper name (with version) after linking.
16097         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'
16098
16099         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100         hardcode_libdir_separator_CXX=:
16101
16102         # Archives containing C++ object files must be created using
16103         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16104         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16105
16106         ;;
16107       RCC)
16108         # Rational C++ 2.4.1
16109         # FIXME: insert proper C++ library support
16110         ld_shlibs_CXX=no
16111         ;;
16112       cxx)
16113         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16114         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'
16115
16116         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16117         hardcode_libdir_separator_CXX=:
16118
16119         # Commands to make compiler produce verbose output that lists
16120         # what "hidden" libraries, object files and flags are used when
16121         # linking a shared library.
16122         #
16123         # There doesn't appear to be a way to prevent this compiler from
16124         # explicitly linking system object files so we need to strip them
16125         # from the output so that they don't get included in the library
16126         # dependencies.
16127         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'
16128         ;;
16129       *)
16130         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16131           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16132           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'
16133
16134           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16135           hardcode_libdir_separator_CXX=:
16136
16137           # Commands to make compiler produce verbose output that lists
16138           # what "hidden" libraries, object files and flags are used when
16139           # linking a shared library.
16140           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16141
16142         else
16143           # FIXME: insert proper C++ library support
16144           ld_shlibs_CXX=no
16145         fi
16146         ;;
16147     esac
16148     ;;
16149   osf4* | osf5*)
16150     case $cc_basename in
16151       KCC)
16152         # Kuck and Associates, Inc. (KAI) C++ Compiler
16153
16154         # KCC will only create a shared library if the output file
16155         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16156         # to its proper name (with version) after linking.
16157         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'
16158
16159         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16160         hardcode_libdir_separator_CXX=:
16161
16162         # Archives containing C++ object files must be created using
16163         # the KAI C++ compiler.
16164         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16165         ;;
16166       RCC)
16167         # Rational C++ 2.4.1
16168         # FIXME: insert proper C++ library support
16169         ld_shlibs_CXX=no
16170         ;;
16171       cxx)
16172         allow_undefined_flag_CXX=' -expect_unresolved \*'
16173         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'
16174         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16175           echo "-hidden">> $lib.exp~
16176           $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~
16177           $rm $lib.exp'
16178
16179         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16180         hardcode_libdir_separator_CXX=:
16181
16182         # Commands to make compiler produce verbose output that lists
16183         # what "hidden" libraries, object files and flags are used when
16184         # linking a shared library.
16185         #
16186         # There doesn't appear to be a way to prevent this compiler from
16187         # explicitly linking system object files so we need to strip them
16188         # from the output so that they don't get included in the library
16189         # dependencies.
16190         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'
16191         ;;
16192       *)
16193         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16194           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16195          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'
16196
16197           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16198           hardcode_libdir_separator_CXX=:
16199
16200           # Commands to make compiler produce verbose output that lists
16201           # what "hidden" libraries, object files and flags are used when
16202           # linking a shared library.
16203           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16204
16205         else
16206           # FIXME: insert proper C++ library support
16207           ld_shlibs_CXX=no
16208         fi
16209         ;;
16210     esac
16211     ;;
16212   psos*)
16213     # FIXME: insert proper C++ library support
16214     ld_shlibs_CXX=no
16215     ;;
16216   sco*)
16217     archive_cmds_need_lc_CXX=no
16218     case $cc_basename in
16219       CC)
16220         # FIXME: insert proper C++ library support
16221         ld_shlibs_CXX=no
16222         ;;
16223       *)
16224         # FIXME: insert proper C++ library support
16225         ld_shlibs_CXX=no
16226         ;;
16227     esac
16228     ;;
16229   sunos4*)
16230     case $cc_basename in
16231       CC)
16232         # Sun C++ 4.x
16233         # FIXME: insert proper C++ library support
16234         ld_shlibs_CXX=no
16235         ;;
16236       lcc)
16237         # Lucid
16238         # FIXME: insert proper C++ library support
16239         ld_shlibs_CXX=no
16240         ;;
16241       *)
16242         # FIXME: insert proper C++ library support
16243         ld_shlibs_CXX=no
16244         ;;
16245     esac
16246     ;;
16247   solaris*)
16248     case $cc_basename in
16249       CC)
16250         # Sun C++ 4.2, 5.x and Centerline C++
16251         no_undefined_flag_CXX=' -zdefs'
16252         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16253         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16254         $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'
16255
16256         hardcode_libdir_flag_spec_CXX='-R$libdir'
16257         hardcode_shlibpath_var_CXX=no
16258         case $host_os in
16259           solaris2.0-5 | solaris2.0-5.*) ;;
16260           *)
16261             # The C++ compiler is used as linker so we must use $wl
16262             # flag to pass the commands to the underlying system
16263             # linker.
16264             # Supported since Solaris 2.6 (maybe 2.5.1?)
16265             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16266             ;;
16267         esac
16268         link_all_deplibs_CXX=yes
16269
16270         # Commands to make compiler produce verbose output that lists
16271         # what "hidden" libraries, object files and flags are used when
16272         # linking a shared library.
16273         #
16274         # There doesn't appear to be a way to prevent this compiler from
16275         # explicitly linking system object files so we need to strip them
16276         # from the output so that they don't get included in the library
16277         # dependencies.
16278         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'
16279
16280         # Archives containing C++ object files must be created using
16281         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16282         # necessary to make sure instantiated templates are included
16283         # in the archive.
16284         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16285         ;;
16286       gcx)
16287         # Green Hills C++ Compiler
16288         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16289
16290         # The C++ compiler must be used to create the archive.
16291         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16292         ;;
16293       *)
16294         # GNU C++ compiler with Solaris linker
16295         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16296           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16297           if $CC --version | grep -v '^2\.7' > /dev/null; then
16298             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16299             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16300                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16301
16302             # Commands to make compiler produce verbose output that lists
16303             # what "hidden" libraries, object files and flags are used when
16304             # linking a shared library.
16305             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16306           else
16307             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16308             # platform.
16309             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16310             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16311                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16312
16313             # Commands to make compiler produce verbose output that lists
16314             # what "hidden" libraries, object files and flags are used when
16315             # linking a shared library.
16316             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16317           fi
16318
16319           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16320         fi
16321         ;;
16322     esac
16323     ;;
16324   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16325     archive_cmds_need_lc_CXX=no
16326     ;;
16327   tandem*)
16328     case $cc_basename in
16329       NCC)
16330         # NonStop-UX NCC 3.20
16331         # FIXME: insert proper C++ library support
16332         ld_shlibs_CXX=no
16333         ;;
16334       *)
16335         # FIXME: insert proper C++ library support
16336         ld_shlibs_CXX=no
16337         ;;
16338     esac
16339     ;;
16340   vxworks*)
16341     # FIXME: insert proper C++ library support
16342     ld_shlibs_CXX=no
16343     ;;
16344   *)
16345     # FIXME: insert proper C++ library support
16346     ld_shlibs_CXX=no
16347     ;;
16348 esac
16349 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16350 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16351 test "$ld_shlibs_CXX" = no && can_build_shared=no
16352
16353 GCC_CXX="$GXX"
16354 LD_CXX="$LD"
16355
16356
16357 cat > conftest.$ac_ext <<EOF
16358 class Foo
16359 {
16360 public:
16361   Foo (void) { a = 0; }
16362 private:
16363   int a;
16364 };
16365 EOF
16366
16367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368   (eval $ac_compile) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; then
16372   # Parse the compiler output and extract the necessary
16373   # objects, libraries and library flags.
16374
16375   # Sentinel used to keep track of whether or not we are before
16376   # the conftest object file.
16377   pre_test_object_deps_done=no
16378
16379   # The `*' in the case matches for architectures that use `case' in
16380   # $output_verbose_cmd can trigger glob expansion during the loop
16381   # eval without this substitution.
16382   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16383
16384   for p in `eval $output_verbose_link_cmd`; do
16385     case $p in
16386
16387     -L* | -R* | -l*)
16388        # Some compilers place space between "-{L,R}" and the path.
16389        # Remove the space.
16390        if test $p = "-L" \
16391           || test $p = "-R"; then
16392          prev=$p
16393          continue
16394        else
16395          prev=
16396        fi
16397
16398        if test "$pre_test_object_deps_done" = no; then
16399          case $p in
16400          -L* | -R*)
16401            # Internal compiler library paths should come after those
16402            # provided the user.  The postdeps already come after the
16403            # user supplied libs so there is no need to process them.
16404            if test -z "$compiler_lib_search_path_CXX"; then
16405              compiler_lib_search_path_CXX="${prev}${p}"
16406            else
16407              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16408            fi
16409            ;;
16410          # The "-l" case would never come before the object being
16411          # linked, so don't bother handling this case.
16412          esac
16413        else
16414          if test -z "$postdeps_CXX"; then
16415            postdeps_CXX="${prev}${p}"
16416          else
16417            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16418          fi
16419        fi
16420        ;;
16421
16422     *.$objext)
16423        # This assumes that the test object file only shows up
16424        # once in the compiler output.
16425        if test "$p" = "conftest.$objext"; then
16426          pre_test_object_deps_done=yes
16427          continue
16428        fi
16429
16430        if test "$pre_test_object_deps_done" = no; then
16431          if test -z "$predep_objects_CXX"; then
16432            predep_objects_CXX="$p"
16433          else
16434            predep_objects_CXX="$predep_objects_CXX $p"
16435          fi
16436        else
16437          if test -z "$postdep_objects_CXX"; then
16438            postdep_objects_CXX="$p"
16439          else
16440            postdep_objects_CXX="$postdep_objects_CXX $p"
16441          fi
16442        fi
16443        ;;
16444
16445     *) ;; # Ignore the rest.
16446
16447     esac
16448   done
16449
16450   # Clean up.
16451   rm -f a.out a.exe
16452 else
16453   echo "libtool.m4: error: problem compiling CXX test program"
16454 fi
16455
16456 $rm -f confest.$objext
16457
16458 case " $postdeps_CXX " in
16459 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16460 esac
16461
16462 lt_prog_compiler_wl_CXX=
16463 lt_prog_compiler_pic_CXX=
16464 lt_prog_compiler_static_CXX=
16465
16466 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16467 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16468
16469   # C++ specific cases for pic, static, wl, etc.
16470   if test "$GXX" = yes; then
16471     lt_prog_compiler_wl_CXX='-Wl,'
16472     lt_prog_compiler_static_CXX='-static'
16473
16474     case $host_os in
16475     aix*)
16476       # All AIX code is PIC.
16477       if test "$host_cpu" = ia64; then
16478         # AIX 5 now supports IA64 processor
16479         lt_prog_compiler_static_CXX='-Bstatic'
16480       fi
16481       ;;
16482     amigaos*)
16483       # FIXME: we need at least 68020 code to build shared libraries, but
16484       # adding the `-m68020' flag to GCC prevents building anything better,
16485       # like `-m68040'.
16486       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16487       ;;
16488     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16489       # PIC is the default for these OSes.
16490       ;;
16491     mingw* | os2* | pw32*)
16492       # This hack is so that the source file can tell whether it is being
16493       # built for inclusion in a dll (and should export symbols for example).
16494       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16495       ;;
16496     darwin* | rhapsody*)
16497       # PIC is the default on this platform
16498       # Common symbols not allowed in MH_DYLIB files
16499       lt_prog_compiler_pic_CXX='-fno-common'
16500       ;;
16501     *djgpp*)
16502       # DJGPP does not support shared libraries at all
16503       lt_prog_compiler_pic_CXX=
16504       ;;
16505     sysv4*MP*)
16506       if test -d /usr/nec; then
16507         lt_prog_compiler_pic_CXX=-Kconform_pic
16508       fi
16509       ;;
16510     hpux*)
16511       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16512       # not for PA HP-UX.
16513       case "$host_cpu" in
16514       hppa*64*|ia64*)
16515         ;;
16516       *)
16517         lt_prog_compiler_pic_CXX='-fPIC'
16518         ;;
16519       esac
16520       ;;
16521     *)
16522       lt_prog_compiler_pic_CXX='-fPIC'
16523       ;;
16524     esac
16525   else
16526     case $host_os in
16527       aix4* | aix5*)
16528         # All AIX code is PIC.
16529         if test "$host_cpu" = ia64; then
16530           # AIX 5 now supports IA64 processor
16531           lt_prog_compiler_static_CXX='-Bstatic'
16532         else
16533           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16534         fi
16535         ;;
16536       chorus*)
16537         case $cc_basename in
16538         cxch68)
16539           # Green Hills C++ Compiler
16540           # _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"
16541           ;;
16542         esac
16543         ;;
16544        darwin*)
16545          # PIC is the default on this platform
16546          # Common symbols not allowed in MH_DYLIB files
16547          case "$cc_basename" in
16548            xlc*)
16549            lt_prog_compiler_pic_CXX='-qnocommon'
16550            lt_prog_compiler_wl_CXX='-Wl,'
16551            ;;
16552          esac
16553        ;;
16554       dgux*)
16555         case $cc_basename in
16556           ec++)
16557             lt_prog_compiler_pic_CXX='-KPIC'
16558             ;;
16559           ghcx)
16560             # Green Hills C++ Compiler
16561             lt_prog_compiler_pic_CXX='-pic'
16562             ;;
16563           *)
16564             ;;
16565         esac
16566         ;;
16567       freebsd* | kfreebsd*-gnu)
16568         # FreeBSD uses GNU C++
16569         ;;
16570       hpux9* | hpux10* | hpux11*)
16571         case $cc_basename in
16572           CC)
16573             lt_prog_compiler_wl_CXX='-Wl,'
16574             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16575             if test "$host_cpu" != ia64; then
16576               lt_prog_compiler_pic_CXX='+Z'
16577             fi
16578             ;;
16579           aCC)
16580             lt_prog_compiler_wl_CXX='-Wl,'
16581             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16582             case "$host_cpu" in
16583             hppa*64*|ia64*)
16584               # +Z the default
16585               ;;
16586             *)
16587               lt_prog_compiler_pic_CXX='+Z'
16588               ;;
16589             esac
16590             ;;
16591           *)
16592             ;;
16593         esac
16594         ;;
16595       irix5* | irix6* | nonstopux*)
16596         case $cc_basename in
16597           CC)
16598             lt_prog_compiler_wl_CXX='-Wl,'
16599             lt_prog_compiler_static_CXX='-non_shared'
16600             # CC pic flag -KPIC is the default.
16601             ;;
16602           *)
16603             ;;
16604         esac
16605         ;;
16606       linux*)
16607         case $cc_basename in
16608           KCC)
16609             # KAI C++ Compiler
16610             lt_prog_compiler_wl_CXX='--backend -Wl,'
16611             lt_prog_compiler_pic_CXX='-fPIC'
16612             ;;
16613           icpc)
16614             # Intel C++
16615             lt_prog_compiler_wl_CXX='-Wl,'
16616             lt_prog_compiler_pic_CXX='-KPIC'
16617             lt_prog_compiler_static_CXX='-static'
16618             ;;
16619           cxx)
16620             # Compaq C++
16621             # Make sure the PIC flag is empty.  It appears that all Alpha
16622             # Linux and Compaq Tru64 Unix objects are PIC.
16623             lt_prog_compiler_pic_CXX=
16624             lt_prog_compiler_static_CXX='-non_shared'
16625             ;;
16626           *)
16627             ;;
16628         esac
16629         ;;
16630       lynxos*)
16631         ;;
16632       m88k*)
16633         ;;
16634       mvs*)
16635         case $cc_basename in
16636           cxx)
16637             lt_prog_compiler_pic_CXX='-W c,exportall'
16638             ;;
16639           *)
16640             ;;
16641         esac
16642         ;;
16643       netbsd*)
16644         ;;
16645       osf3* | osf4* | osf5*)
16646         case $cc_basename in
16647           KCC)
16648             lt_prog_compiler_wl_CXX='--backend -Wl,'
16649             ;;
16650           RCC)
16651             # Rational C++ 2.4.1
16652             lt_prog_compiler_pic_CXX='-pic'
16653             ;;
16654           cxx)
16655             # Digital/Compaq C++
16656             lt_prog_compiler_wl_CXX='-Wl,'
16657             # Make sure the PIC flag is empty.  It appears that all Alpha
16658             # Linux and Compaq Tru64 Unix objects are PIC.
16659             lt_prog_compiler_pic_CXX=
16660             lt_prog_compiler_static_CXX='-non_shared'
16661             ;;
16662           *)
16663             ;;
16664         esac
16665         ;;
16666       psos*)
16667         ;;
16668       sco*)
16669         case $cc_basename in
16670           CC)
16671             lt_prog_compiler_pic_CXX='-fPIC'
16672             ;;
16673           *)
16674             ;;
16675         esac
16676         ;;
16677       solaris*)
16678         case $cc_basename in
16679           CC)
16680             # Sun C++ 4.2, 5.x and Centerline C++
16681             lt_prog_compiler_pic_CXX='-KPIC'
16682             lt_prog_compiler_static_CXX='-Bstatic'
16683             lt_prog_compiler_wl_CXX='-Qoption ld '
16684             ;;
16685           gcx)
16686             # Green Hills C++ Compiler
16687             lt_prog_compiler_pic_CXX='-PIC'
16688             ;;
16689           *)
16690             ;;
16691         esac
16692         ;;
16693       sunos4*)
16694         case $cc_basename in
16695           CC)
16696             # Sun C++ 4.x
16697             lt_prog_compiler_pic_CXX='-pic'
16698             lt_prog_compiler_static_CXX='-Bstatic'
16699             ;;
16700           lcc)
16701             # Lucid
16702             lt_prog_compiler_pic_CXX='-pic'
16703             ;;
16704           *)
16705             ;;
16706         esac
16707         ;;
16708       tandem*)
16709         case $cc_basename in
16710           NCC)
16711             # NonStop-UX NCC 3.20
16712             lt_prog_compiler_pic_CXX='-KPIC'
16713             ;;
16714           *)
16715             ;;
16716         esac
16717         ;;
16718       unixware*)
16719         ;;
16720       vxworks*)
16721         ;;
16722       *)
16723         lt_prog_compiler_can_build_shared_CXX=no
16724         ;;
16725     esac
16726   fi
16727
16728 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16730
16731 #
16732 # Check to make sure the PIC flag actually works.
16733 #
16734 if test -n "$lt_prog_compiler_pic_CXX"; then
16735
16736 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16738 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   lt_prog_compiler_pic_works_CXX=no
16742   ac_outfile=conftest.$ac_objext
16743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16745    # Insert the option either (1) after the last *FLAGS variable, or
16746    # (2) before a word containing "conftest.", or (3) at the end.
16747    # Note that $ac_compile itself does not contain backslashes and begins
16748    # with a dollar sign (not a hyphen), so the echo should work correctly.
16749    # The option is referenced via a variable to avoid confusing sed.
16750    lt_compile=`echo "$ac_compile" | $SED \
16751    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753    -e 's:$: $lt_compiler_flag:'`
16754    (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755    (eval "$lt_compile" 2>conftest.err)
16756    ac_status=$?
16757    cat conftest.err >&5
16758    echo "$as_me:16758: \$? = $ac_status" >&5
16759    if (exit $ac_status) && test -s "$ac_outfile"; then
16760      # The compiler can only warn and ignore the option if not recognized
16761      # So say no if there are warnings
16762      if test ! -s conftest.err; then
16763        lt_prog_compiler_pic_works_CXX=yes
16764      fi
16765    fi
16766    $rm conftest*
16767
16768 fi
16769 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16771
16772 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16773     case $lt_prog_compiler_pic_CXX in
16774      "" | " "*) ;;
16775      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16776      esac
16777 else
16778     lt_prog_compiler_pic_CXX=
16779      lt_prog_compiler_can_build_shared_CXX=no
16780 fi
16781
16782 fi
16783 case "$host_os" in
16784   # For platforms which do not support PIC, -DPIC is meaningless:
16785   *djgpp*)
16786     lt_prog_compiler_pic_CXX=
16787     ;;
16788   *)
16789     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16790     ;;
16791 esac
16792
16793 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16795 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   lt_cv_prog_compiler_c_o_CXX=no
16799    $rm -r conftest 2>/dev/null
16800    mkdir conftest
16801    cd conftest
16802    mkdir out
16803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16804
16805    lt_compiler_flag="-o out/conftest2.$ac_objext"
16806    # Insert the option either (1) after the last *FLAGS variable, or
16807    # (2) before a word containing "conftest.", or (3) at the end.
16808    # Note that $ac_compile itself does not contain backslashes and begins
16809    # with a dollar sign (not a hyphen), so the echo should work correctly.
16810    lt_compile=`echo "$ac_compile" | $SED \
16811    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16813    -e 's:$: $lt_compiler_flag:'`
16814    (eval echo "\"\$as_me:16814: $lt_compile\"" >&5)
16815    (eval "$lt_compile" 2>out/conftest.err)
16816    ac_status=$?
16817    cat out/conftest.err >&5
16818    echo "$as_me:16818: \$? = $ac_status" >&5
16819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16820    then
16821      # The compiler can only warn and ignore the option if not recognized
16822      # So say no if there are warnings
16823      if test ! -s out/conftest.err; then
16824        lt_cv_prog_compiler_c_o_CXX=yes
16825      fi
16826    fi
16827    chmod u+w .
16828    $rm conftest*
16829    # SGI C++ compiler will create directory out/ii_files/ for
16830    # template instantiation
16831    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16832    $rm out/* && rmdir out
16833    cd ..
16834    rmdir conftest
16835    $rm conftest*
16836
16837 fi
16838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16839 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16840
16841
16842 hard_links="nottested"
16843 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16844   # do not overwrite the value of need_locks provided by the user
16845   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16846 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16847   hard_links=yes
16848   $rm conftest*
16849   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16850   touch conftest.a
16851   ln conftest.a conftest.b 2>&5 || hard_links=no
16852   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16853   echo "$as_me:$LINENO: result: $hard_links" >&5
16854 echo "${ECHO_T}$hard_links" >&6
16855   if test "$hard_links" = no; then
16856     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16857 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16858     need_locks=warn
16859   fi
16860 else
16861   need_locks=no
16862 fi
16863
16864 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16865 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16866
16867   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16868   case $host_os in
16869   aix4* | aix5*)
16870     # If we're using GNU nm, then we don't want the "-C" option.
16871     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16872     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16873       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'
16874     else
16875       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'
16876     fi
16877     ;;
16878   pw32*)
16879     export_symbols_cmds_CXX="$ltdll_cmds"
16880   ;;
16881   cygwin* | mingw*)
16882     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16883   ;;
16884   *)
16885     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16886   ;;
16887   esac
16888
16889 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16890 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16891 test "$ld_shlibs_CXX" = no && can_build_shared=no
16892
16893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16894 if test "$GCC" = yes; then
16895   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16896 fi
16897
16898 #
16899 # Do we need to explicitly link libc?
16900 #
16901 case "x$archive_cmds_need_lc_CXX" in
16902 x|xyes)
16903   # Assume -lc should be added
16904   archive_cmds_need_lc_CXX=yes
16905
16906   if test "$enable_shared" = yes && test "$GCC" = yes; then
16907     case $archive_cmds_CXX in
16908     *'~'*)
16909       # FIXME: we may have to deal with multi-command sequences.
16910       ;;
16911     '$CC '*)
16912       # Test whether the compiler implicitly links with -lc since on some
16913       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16914       # to ld, don't add -lc before -lgcc.
16915       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16916 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16917       $rm conftest*
16918       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16919
16920       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921   (eval $ac_compile) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); } 2>conftest.err; then
16925         soname=conftest
16926         lib=conftest
16927         libobjs=conftest.$ac_objext
16928         deplibs=
16929         wl=$lt_prog_compiler_wl_CXX
16930         compiler_flags=-v
16931         linker_flags=-v
16932         verstring=
16933         output_objdir=.
16934         libname=conftest
16935         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16936         allow_undefined_flag_CXX=
16937         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16938   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }
16942         then
16943           archive_cmds_need_lc_CXX=no
16944         else
16945           archive_cmds_need_lc_CXX=yes
16946         fi
16947         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16948       else
16949         cat conftest.err 1>&5
16950       fi
16951       $rm conftest*
16952       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16953 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16954       ;;
16955     esac
16956   fi
16957   ;;
16958 esac
16959
16960 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16961 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16962 library_names_spec=
16963 libname_spec='lib$name'
16964 soname_spec=
16965 shrext_cmds=".so"
16966 postinstall_cmds=
16967 postuninstall_cmds=
16968 finish_cmds=
16969 finish_eval=
16970 shlibpath_var=
16971 shlibpath_overrides_runpath=unknown
16972 version_type=none
16973 dynamic_linker="$host_os ld.so"
16974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16975 if test "$GCC" = yes; then
16976   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16977   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16978     # if the path contains ";" then we assume it to be the separator
16979     # otherwise default to the standard path separator (i.e. ":") - it is
16980     # assumed that no part of a normal pathname contains ";" but that should
16981     # okay in the real world where ";" in dirpaths is itself problematic.
16982     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16983   else
16984     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16985   fi
16986 else
16987   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16988 fi
16989 need_lib_prefix=unknown
16990 hardcode_into_libs=no
16991
16992 # when you set need_version to no, make sure it does not cause -set_version
16993 # flags to be left without arguments
16994 need_version=unknown
16995
16996 case $host_os in
16997 aix3*)
16998   version_type=linux
16999   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17000   shlibpath_var=LIBPATH
17001
17002   # AIX 3 has no versioning support, so we append a major version to the name.
17003   soname_spec='${libname}${release}${shared_ext}$major'
17004   ;;
17005
17006 aix4* | aix5*)
17007   version_type=linux
17008   need_lib_prefix=no
17009   need_version=no
17010   hardcode_into_libs=yes
17011   if test "$host_cpu" = ia64; then
17012     # AIX 5 supports IA64
17013     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17014     shlibpath_var=LD_LIBRARY_PATH
17015   else
17016     # With GCC up to 2.95.x, collect2 would create an import file
17017     # for dependence libraries.  The import file would start with
17018     # the line `#! .'.  This would cause the generated library to
17019     # depend on `.', always an invalid library.  This was fixed in
17020     # development snapshots of GCC prior to 3.0.
17021     case $host_os in
17022       aix4 | aix4.[01] | aix4.[01].*)
17023       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17024            echo ' yes '
17025            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17026         :
17027       else
17028         can_build_shared=no
17029       fi
17030       ;;
17031     esac
17032     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17033     # soname into executable. Probably we can add versioning support to
17034     # collect2, so additional links can be useful in future.
17035     if test "$aix_use_runtimelinking" = yes; then
17036       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17037       # instead of lib<name>.a to let people know that these are not
17038       # typical AIX shared libraries.
17039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040     else
17041       # We preserve .a as extension for shared libraries through AIX4.2
17042       # and later when we are not doing run time linking.
17043       library_names_spec='${libname}${release}.a $libname.a'
17044       soname_spec='${libname}${release}${shared_ext}$major'
17045     fi
17046     shlibpath_var=LIBPATH
17047   fi
17048   ;;
17049
17050 amigaos*)
17051   library_names_spec='$libname.ixlibrary $libname.a'
17052   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17053   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'
17054   ;;
17055
17056 beos*)
17057   library_names_spec='${libname}${shared_ext}'
17058   dynamic_linker="$host_os ld.so"
17059   shlibpath_var=LIBRARY_PATH
17060   ;;
17061
17062 bsdi[45]*)
17063   version_type=linux
17064   need_version=no
17065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066   soname_spec='${libname}${release}${shared_ext}$major'
17067   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17068   shlibpath_var=LD_LIBRARY_PATH
17069   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17070   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17071   # the default ld.so.conf also contains /usr/contrib/lib and
17072   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17073   # libtool to hard-code these into programs
17074   ;;
17075
17076 cygwin* | mingw* | pw32*)
17077   version_type=windows
17078   shrext_cmds=".dll"
17079   need_version=no
17080   need_lib_prefix=no
17081
17082   case $GCC,$host_os in
17083   yes,cygwin* | yes,mingw* | yes,pw32*)
17084     library_names_spec='$libname.dll.a'
17085     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17086     postinstall_cmds='base_file=`basename \${file}`~
17087       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17088       dldir=$destdir/`dirname \$dlpath`~
17089       test -d \$dldir || mkdir -p \$dldir~
17090       $install_prog $dir/$dlname \$dldir/$dlname'
17091     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17092       dlpath=$dir/\$dldll~
17093        $rm \$dlpath'
17094     shlibpath_overrides_runpath=yes
17095
17096     case $host_os in
17097     cygwin*)
17098       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17099       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17100       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17101       ;;
17102     mingw*)
17103       # MinGW DLLs use traditional 'lib' prefix
17104       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17105       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17106       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17107         # It is most probably a Windows format PATH printed by
17108         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17109         # path with ; separators, and with drive letters. We can handle the
17110         # drive letters (cygwin fileutils understands them), so leave them,
17111         # especially as we might pass files found there to a mingw objdump,
17112         # which wouldn't understand a cygwinified path. Ahh.
17113         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17114       else
17115         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17116       fi
17117       ;;
17118     pw32*)
17119       # pw32 DLLs use 'pw' prefix rather than 'lib'
17120       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17121       ;;
17122     esac
17123     ;;
17124
17125   *)
17126     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17127     ;;
17128   esac
17129   dynamic_linker='Win32 ld.exe'
17130   # FIXME: first we should search . and the directory the executable is in
17131   shlibpath_var=PATH
17132   ;;
17133
17134 darwin* | rhapsody*)
17135   dynamic_linker="$host_os dyld"
17136   version_type=darwin
17137   need_lib_prefix=no
17138   need_version=no
17139   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17140   soname_spec='${libname}${release}${major}$shared_ext'
17141   shlibpath_overrides_runpath=yes
17142   shlibpath_var=DYLD_LIBRARY_PATH
17143   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17144   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17145   if test "$GCC" = yes; then
17146     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"`
17147   else
17148     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17149   fi
17150   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17151   ;;
17152
17153 dgux*)
17154   version_type=linux
17155   need_lib_prefix=no
17156   need_version=no
17157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17158   soname_spec='${libname}${release}${shared_ext}$major'
17159   shlibpath_var=LD_LIBRARY_PATH
17160   ;;
17161
17162 freebsd1*)
17163   dynamic_linker=no
17164   ;;
17165
17166 kfreebsd*-gnu)
17167   version_type=linux
17168   need_lib_prefix=no
17169   need_version=no
17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17171   soname_spec='${libname}${release}${shared_ext}$major'
17172   shlibpath_var=LD_LIBRARY_PATH
17173   shlibpath_overrides_runpath=no
17174   hardcode_into_libs=yes
17175   dynamic_linker='GNU ld.so'
17176   ;;
17177
17178 freebsd*)
17179   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17180   version_type=freebsd-$objformat
17181   case $version_type in
17182     freebsd-elf*)
17183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17184       need_version=no
17185       need_lib_prefix=no
17186       ;;
17187     freebsd-*)
17188       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17189       need_version=yes
17190       ;;
17191   esac
17192   shlibpath_var=LD_LIBRARY_PATH
17193   case $host_os in
17194   freebsd2*)
17195     shlibpath_overrides_runpath=yes
17196     ;;
17197   freebsd3.01* | freebsdelf3.01*)
17198     shlibpath_overrides_runpath=yes
17199     hardcode_into_libs=yes
17200     ;;
17201   *) # from 3.2 on
17202     shlibpath_overrides_runpath=no
17203     hardcode_into_libs=yes
17204     ;;
17205   esac
17206   ;;
17207
17208 gnu*)
17209   version_type=linux
17210   need_lib_prefix=no
17211   need_version=no
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   shlibpath_var=LD_LIBRARY_PATH
17215   hardcode_into_libs=yes
17216   ;;
17217
17218 hpux9* | hpux10* | hpux11*)
17219   # Give a soname corresponding to the major version so that dld.sl refuses to
17220   # link against other versions.
17221   version_type=sunos
17222   need_lib_prefix=no
17223   need_version=no
17224   case "$host_cpu" in
17225   ia64*)
17226     shrext_cmds='.so'
17227     hardcode_into_libs=yes
17228     dynamic_linker="$host_os dld.so"
17229     shlibpath_var=LD_LIBRARY_PATH
17230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232     soname_spec='${libname}${release}${shared_ext}$major'
17233     if test "X$HPUX_IA64_MODE" = X32; then
17234       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17235     else
17236       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17237     fi
17238     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17239     ;;
17240    hppa*64*)
17241      shrext_cmds='.sl'
17242      hardcode_into_libs=yes
17243      dynamic_linker="$host_os dld.sl"
17244      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17245      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247      soname_spec='${libname}${release}${shared_ext}$major'
17248      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17249      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17250      ;;
17251    *)
17252     shrext_cmds='.sl'
17253     dynamic_linker="$host_os dld.sl"
17254     shlibpath_var=SHLIB_PATH
17255     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257     soname_spec='${libname}${release}${shared_ext}$major'
17258     ;;
17259   esac
17260   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17261   postinstall_cmds='chmod 555 $lib'
17262   ;;
17263
17264 irix5* | irix6* | nonstopux*)
17265   case $host_os in
17266     nonstopux*) version_type=nonstopux ;;
17267     *)
17268         if test "$lt_cv_prog_gnu_ld" = yes; then
17269                 version_type=linux
17270         else
17271                 version_type=irix
17272         fi ;;
17273   esac
17274   need_lib_prefix=no
17275   need_version=no
17276   soname_spec='${libname}${release}${shared_ext}$major'
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17278   case $host_os in
17279   irix5* | nonstopux*)
17280     libsuff= shlibsuff=
17281     ;;
17282   *)
17283     case $LD in # libtool.m4 will add one of these switches to LD
17284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17285       libsuff= shlibsuff= libmagic=32-bit;;
17286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17287       libsuff=32 shlibsuff=N32 libmagic=N32;;
17288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17290     *) libsuff= shlibsuff= libmagic=never-match;;
17291     esac
17292     ;;
17293   esac
17294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17295   shlibpath_overrides_runpath=no
17296   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17297   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17298   hardcode_into_libs=yes
17299   ;;
17300
17301 # No shared lib support for Linux oldld, aout, or coff.
17302 linux*oldld* | linux*aout* | linux*coff*)
17303   dynamic_linker=no
17304   ;;
17305
17306 # This must be Linux ELF.
17307 linux*)
17308   version_type=linux
17309   need_lib_prefix=no
17310   need_version=no
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312   soname_spec='${libname}${release}${shared_ext}$major'
17313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17314   shlibpath_var=LD_LIBRARY_PATH
17315   shlibpath_overrides_runpath=no
17316   # This implies no fast_install, which is unacceptable.
17317   # Some rework will be needed to allow for fast_install
17318   # before this can be enabled.
17319   hardcode_into_libs=yes
17320
17321   # Append ld.so.conf contents to the search path
17322   if test -f /etc/ld.so.conf; then
17323     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17324     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17325   fi
17326
17327   # We used to test for /lib/ld.so.1 and disable shared libraries on
17328   # powerpc, because MkLinux only supported shared libraries with the
17329   # GNU dynamic linker.  Since this was broken with cross compilers,
17330   # most powerpc-linux boxes support dynamic linking these days and
17331   # people can always --disable-shared, the test was removed, and we
17332   # assume the GNU/Linux dynamic linker is in use.
17333   dynamic_linker='GNU/Linux ld.so'
17334   ;;
17335
17336 knetbsd*-gnu)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   shlibpath_var=LD_LIBRARY_PATH
17343   shlibpath_overrides_runpath=no
17344   hardcode_into_libs=yes
17345   dynamic_linker='GNU ld.so'
17346   ;;
17347
17348 netbsd*)
17349   version_type=sunos
17350   need_lib_prefix=no
17351   need_version=no
17352   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355     dynamic_linker='NetBSD (a.out) ld.so'
17356   else
17357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17358     soname_spec='${libname}${release}${shared_ext}$major'
17359     dynamic_linker='NetBSD ld.elf_so'
17360   fi
17361   shlibpath_var=LD_LIBRARY_PATH
17362   shlibpath_overrides_runpath=yes
17363   hardcode_into_libs=yes
17364   ;;
17365
17366 newsos6)
17367   version_type=linux
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369   shlibpath_var=LD_LIBRARY_PATH
17370   shlibpath_overrides_runpath=yes
17371   ;;
17372
17373 nto-qnx*)
17374   version_type=linux
17375   need_lib_prefix=no
17376   need_version=no
17377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378   soname_spec='${libname}${release}${shared_ext}$major'
17379   shlibpath_var=LD_LIBRARY_PATH
17380   shlibpath_overrides_runpath=yes
17381   ;;
17382
17383 openbsd*)
17384   version_type=sunos
17385   need_lib_prefix=no
17386   need_version=no
17387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17389   shlibpath_var=LD_LIBRARY_PATH
17390   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17391     case $host_os in
17392       openbsd2.[89] | openbsd2.[89].*)
17393         shlibpath_overrides_runpath=no
17394         ;;
17395       *)
17396         shlibpath_overrides_runpath=yes
17397         ;;
17398       esac
17399   else
17400     shlibpath_overrides_runpath=yes
17401   fi
17402   ;;
17403
17404 os2*)
17405   libname_spec='$name'
17406   shrext_cmds=".dll"
17407   need_lib_prefix=no
17408   library_names_spec='$libname${shared_ext} $libname.a'
17409   dynamic_linker='OS/2 ld.exe'
17410   shlibpath_var=LIBPATH
17411   ;;
17412
17413 osf3* | osf4* | osf5*)
17414   version_type=osf
17415   need_lib_prefix=no
17416   need_version=no
17417   soname_spec='${libname}${release}${shared_ext}$major'
17418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419   shlibpath_var=LD_LIBRARY_PATH
17420   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17421   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17422   ;;
17423
17424 sco3.2v5*)
17425   version_type=osf
17426   soname_spec='${libname}${release}${shared_ext}$major'
17427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428   shlibpath_var=LD_LIBRARY_PATH
17429   ;;
17430
17431 solaris*)
17432   version_type=linux
17433   need_lib_prefix=no
17434   need_version=no
17435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436   soname_spec='${libname}${release}${shared_ext}$major'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   shlibpath_overrides_runpath=yes
17439   hardcode_into_libs=yes
17440   # ldd complains unless libraries are executable
17441   postinstall_cmds='chmod +x $lib'
17442   ;;
17443
17444 sunos4*)
17445   version_type=sunos
17446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17447   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17448   shlibpath_var=LD_LIBRARY_PATH
17449   shlibpath_overrides_runpath=yes
17450   if test "$with_gnu_ld" = yes; then
17451     need_lib_prefix=no
17452   fi
17453   need_version=yes
17454   ;;
17455
17456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17457   version_type=linux
17458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459   soname_spec='${libname}${release}${shared_ext}$major'
17460   shlibpath_var=LD_LIBRARY_PATH
17461   case $host_vendor in
17462     sni)
17463       shlibpath_overrides_runpath=no
17464       need_lib_prefix=no
17465       export_dynamic_flag_spec='${wl}-Blargedynsym'
17466       runpath_var=LD_RUN_PATH
17467       ;;
17468     siemens)
17469       need_lib_prefix=no
17470       ;;
17471     motorola)
17472       need_lib_prefix=no
17473       need_version=no
17474       shlibpath_overrides_runpath=no
17475       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17476       ;;
17477   esac
17478   ;;
17479
17480 sysv4*MP*)
17481   if test -d /usr/nec ;then
17482     version_type=linux
17483     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17484     soname_spec='$libname${shared_ext}.$major'
17485     shlibpath_var=LD_LIBRARY_PATH
17486   fi
17487   ;;
17488
17489 uts4*)
17490   version_type=linux
17491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492   soname_spec='${libname}${release}${shared_ext}$major'
17493   shlibpath_var=LD_LIBRARY_PATH
17494   ;;
17495
17496 *)
17497   dynamic_linker=no
17498   ;;
17499 esac
17500 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17501 echo "${ECHO_T}$dynamic_linker" >&6
17502 test "$dynamic_linker" = no && can_build_shared=no
17503
17504 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17505 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17506 hardcode_action_CXX=
17507 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17508    test -n "$runpath_var_CXX" || \
17509    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17510
17511   # We can hardcode non-existant directories.
17512   if test "$hardcode_direct_CXX" != no &&
17513      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17514      # have to relink, otherwise we might link with an installed library
17515      # when we should be linking with a yet-to-be-installed one
17516      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17517      test "$hardcode_minus_L_CXX" != no; then
17518     # Linking always hardcodes the temporary library directory.
17519     hardcode_action_CXX=relink
17520   else
17521     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17522     hardcode_action_CXX=immediate
17523   fi
17524 else
17525   # We cannot hardcode anything, or else we can only hardcode existing
17526   # directories.
17527   hardcode_action_CXX=unsupported
17528 fi
17529 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17530 echo "${ECHO_T}$hardcode_action_CXX" >&6
17531
17532 if test "$hardcode_action_CXX" = relink; then
17533   # Fast installation is not supported
17534   enable_fast_install=no
17535 elif test "$shlibpath_overrides_runpath" = yes ||
17536      test "$enable_shared" = no; then
17537   # Fast installation is not necessary
17538   enable_fast_install=needless
17539 fi
17540
17541 striplib=
17542 old_striplib=
17543 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17544 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17545 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17546   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17547   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17548   echo "$as_me:$LINENO: result: yes" >&5
17549 echo "${ECHO_T}yes" >&6
17550 else
17551 # FIXME - insert some real tests, host_os isn't really good enough
17552   case $host_os in
17553    darwin*)
17554        if test -n "$STRIP" ; then
17555          striplib="$STRIP -x"
17556          echo "$as_me:$LINENO: result: yes" >&5
17557 echo "${ECHO_T}yes" >&6
17558        else
17559   echo "$as_me:$LINENO: result: no" >&5
17560 echo "${ECHO_T}no" >&6
17561 fi
17562        ;;
17563    *)
17564   echo "$as_me:$LINENO: result: no" >&5
17565 echo "${ECHO_T}no" >&6
17566     ;;
17567   esac
17568 fi
17569
17570 if test "x$enable_dlopen" != xyes; then
17571   enable_dlopen=unknown
17572   enable_dlopen_self=unknown
17573   enable_dlopen_self_static=unknown
17574 else
17575   lt_cv_dlopen=no
17576   lt_cv_dlopen_libs=
17577
17578   case $host_os in
17579   beos*)
17580     lt_cv_dlopen="load_add_on"
17581     lt_cv_dlopen_libs=
17582     lt_cv_dlopen_self=yes
17583     ;;
17584
17585   mingw* | pw32*)
17586     lt_cv_dlopen="LoadLibrary"
17587     lt_cv_dlopen_libs=
17588    ;;
17589
17590   cygwin*)
17591     lt_cv_dlopen="dlopen"
17592     lt_cv_dlopen_libs=
17593    ;;
17594
17595   darwin*)
17596   # if libdl is installed we need to link against it
17597     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17598 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17599 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   ac_check_lib_save_LIBS=$LIBS
17603 LIBS="-ldl  $LIBS"
17604 cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610
17611 /* Override any gcc2 internal prototype to avoid an error.  */
17612 #ifdef __cplusplus
17613 extern "C"
17614 #endif
17615 /* We use char because int might match the return type of a gcc2
17616    builtin and then its argument prototype would still apply.  */
17617 char dlopen ();
17618 int
17619 main ()
17620 {
17621 dlopen ();
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628   (eval $ac_link) 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } &&
17635          { ac_try='test -z "$ac_cxx_werror_flag"
17636                          || test ! -s conftest.err'
17637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638   (eval $ac_try) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; } &&
17642          { ac_try='test -s conftest$ac_exeext'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; }; then
17648   ac_cv_lib_dl_dlopen=yes
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 ac_cv_lib_dl_dlopen=no
17654 fi
17655 rm -f conftest.err conftest.$ac_objext \
17656       conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17661 if test $ac_cv_lib_dl_dlopen = yes; then
17662   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17663 else
17664
17665     lt_cv_dlopen="dyld"
17666     lt_cv_dlopen_libs=
17667     lt_cv_dlopen_self=yes
17668
17669 fi
17670
17671    ;;
17672
17673   *)
17674     echo "$as_me:$LINENO: checking for shl_load" >&5
17675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17676 if test "${ac_cv_func_shl_load+set}" = set; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17687 #define shl_load innocuous_shl_load
17688
17689 /* System header to define __stub macros and hopefully few prototypes,
17690     which can conflict with char shl_load (); below.
17691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692     <limits.h> exists even on freestanding compilers.  */
17693
17694 #ifdef __STDC__
17695 # include <limits.h>
17696 #else
17697 # include <assert.h>
17698 #endif
17699
17700 #undef shl_load
17701
17702 /* Override any gcc2 internal prototype to avoid an error.  */
17703 #ifdef __cplusplus
17704 extern "C"
17705 {
17706 #endif
17707 /* We use char because int might match the return type of a gcc2
17708    builtin and then its argument prototype would still apply.  */
17709 char shl_load ();
17710 /* The GNU C library defines this for functions which it implements
17711     to always fail with ENOSYS.  Some functions are actually named
17712     something starting with __ and the normal name is an alias.  */
17713 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17714 choke me
17715 #else
17716 char (*f) () = shl_load;
17717 #endif
17718 #ifdef __cplusplus
17719 }
17720 #endif
17721
17722 int
17723 main ()
17724 {
17725 return f != shl_load;
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732   (eval $ac_link) 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_cxx_werror_flag"
17740                          || test ! -s conftest.err'
17741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742   (eval $ac_try) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; } &&
17746          { ac_try='test -s conftest$ac_exeext'
17747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748   (eval $ac_try) 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   ac_cv_func_shl_load=yes
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_func_shl_load=no
17758 fi
17759 rm -f conftest.err conftest.$ac_objext \
17760       conftest$ac_exeext conftest.$ac_ext
17761 fi
17762 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17763 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17764 if test $ac_cv_func_shl_load = yes; then
17765   lt_cv_dlopen="shl_load"
17766 else
17767   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17768 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   ac_check_lib_save_LIBS=$LIBS
17773 LIBS="-ldld  $LIBS"
17774 cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780
17781 /* Override any gcc2 internal prototype to avoid an error.  */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 /* We use char because int might match the return type of a gcc2
17786    builtin and then its argument prototype would still apply.  */
17787 char shl_load ();
17788 int
17789 main ()
17790 {
17791 shl_load ();
17792   ;
17793   return 0;
17794 }
17795 _ACEOF
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798   (eval $ac_link) 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } &&
17805          { ac_try='test -z "$ac_cxx_werror_flag"
17806                          || test ! -s conftest.err'
17807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808   (eval $ac_try) 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; } &&
17812          { ac_try='test -s conftest$ac_exeext'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; }; then
17818   ac_cv_lib_dld_shl_load=yes
17819 else
17820   echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 ac_cv_lib_dld_shl_load=no
17824 fi
17825 rm -f conftest.err conftest.$ac_objext \
17826       conftest$ac_exeext conftest.$ac_ext
17827 LIBS=$ac_check_lib_save_LIBS
17828 fi
17829 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17830 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17831 if test $ac_cv_lib_dld_shl_load = yes; then
17832   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17833 else
17834   echo "$as_me:$LINENO: checking for dlopen" >&5
17835 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17836 if test "${ac_cv_func_dlopen+set}" = set; then
17837   echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839   cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h.  */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h.  */
17845 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17847 #define dlopen innocuous_dlopen
17848
17849 /* System header to define __stub macros and hopefully few prototypes,
17850     which can conflict with char dlopen (); below.
17851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17852     <limits.h> exists even on freestanding compilers.  */
17853
17854 #ifdef __STDC__
17855 # include <limits.h>
17856 #else
17857 # include <assert.h>
17858 #endif
17859
17860 #undef dlopen
17861
17862 /* Override any gcc2 internal prototype to avoid an error.  */
17863 #ifdef __cplusplus
17864 extern "C"
17865 {
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 dlopen ();
17870 /* The GNU C library defines this for functions which it implements
17871     to always fail with ENOSYS.  Some functions are actually named
17872     something starting with __ and the normal name is an alias.  */
17873 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17874 choke me
17875 #else
17876 char (*f) () = dlopen;
17877 #endif
17878 #ifdef __cplusplus
17879 }
17880 #endif
17881
17882 int
17883 main ()
17884 {
17885 return f != dlopen;
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892   (eval $ac_link) 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } &&
17899          { ac_try='test -z "$ac_cxx_werror_flag"
17900                          || test ! -s conftest.err'
17901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902   (eval $ac_try) 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; } &&
17906          { ac_try='test -s conftest$ac_exeext'
17907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908   (eval $ac_try) 2>&5
17909   ac_status=$?
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); }; }; then
17912   ac_cv_func_dlopen=yes
17913 else
17914   echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17916
17917 ac_cv_func_dlopen=no
17918 fi
17919 rm -f conftest.err conftest.$ac_objext \
17920       conftest$ac_exeext conftest.$ac_ext
17921 fi
17922 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17923 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17924 if test $ac_cv_func_dlopen = yes; then
17925   lt_cv_dlopen="dlopen"
17926 else
17927   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17928 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17929 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17930   echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932   ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-ldl  $LIBS"
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 /* Override any gcc2 internal prototype to avoid an error.  */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 /* We use char because int might match the return type of a gcc2
17946    builtin and then its argument prototype would still apply.  */
17947 char dlopen ();
17948 int
17949 main ()
17950 {
17951 dlopen ();
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17958   (eval $ac_link) 2>conftest.er1
17959   ac_status=$?
17960   grep -v '^ *+' conftest.er1 >conftest.err
17961   rm -f conftest.er1
17962   cat conftest.err >&5
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } &&
17965          { ac_try='test -z "$ac_cxx_werror_flag"
17966                          || test ! -s conftest.err'
17967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968   (eval $ac_try) 2>&5
17969   ac_status=$?
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); }; } &&
17972          { ac_try='test -s conftest$ac_exeext'
17973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974   (eval $ac_try) 2>&5
17975   ac_status=$?
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }; }; then
17978   ac_cv_lib_dl_dlopen=yes
17979 else
17980   echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17982
17983 ac_cv_lib_dl_dlopen=no
17984 fi
17985 rm -f conftest.err conftest.$ac_objext \
17986       conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17988 fi
17989 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17990 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17991 if test $ac_cv_lib_dl_dlopen = yes; then
17992   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17993 else
17994   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17995 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17996 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17997   echo $ECHO_N "(cached) $ECHO_C" >&6
17998 else
17999   ac_check_lib_save_LIBS=$LIBS
18000 LIBS="-lsvld  $LIBS"
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007
18008 /* Override any gcc2 internal prototype to avoid an error.  */
18009 #ifdef __cplusplus
18010 extern "C"
18011 #endif
18012 /* We use char because int might match the return type of a gcc2
18013    builtin and then its argument prototype would still apply.  */
18014 char dlopen ();
18015 int
18016 main ()
18017 {
18018 dlopen ();
18019   ;
18020   return 0;
18021 }
18022 _ACEOF
18023 rm -f conftest.$ac_objext conftest$ac_exeext
18024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18025   (eval $ac_link) 2>conftest.er1
18026   ac_status=$?
18027   grep -v '^ *+' conftest.er1 >conftest.err
18028   rm -f conftest.er1
18029   cat conftest.err >&5
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); } &&
18032          { ac_try='test -z "$ac_cxx_werror_flag"
18033                          || test ! -s conftest.err'
18034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; } &&
18039          { ac_try='test -s conftest$ac_exeext'
18040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041   (eval $ac_try) 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; }; then
18045   ac_cv_lib_svld_dlopen=yes
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 ac_cv_lib_svld_dlopen=no
18051 fi
18052 rm -f conftest.err conftest.$ac_objext \
18053       conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18055 fi
18056 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18058 if test $ac_cv_lib_svld_dlopen = yes; then
18059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18060 else
18061   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18064   echo $ECHO_N "(cached) $ECHO_C" >&6
18065 else
18066   ac_check_lib_save_LIBS=$LIBS
18067 LIBS="-ldld  $LIBS"
18068 cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074
18075 /* Override any gcc2 internal prototype to avoid an error.  */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 /* We use char because int might match the return type of a gcc2
18080    builtin and then its argument prototype would still apply.  */
18081 char dld_link ();
18082 int
18083 main ()
18084 {
18085 dld_link ();
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092   (eval $ac_link) 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_cxx_werror_flag"
18100                          || test ! -s conftest.err'
18101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102   (eval $ac_try) 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; } &&
18106          { ac_try='test -s conftest$ac_exeext'
18107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108   (eval $ac_try) 2>&5
18109   ac_status=$?
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); }; }; then
18112   ac_cv_lib_dld_dld_link=yes
18113 else
18114   echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18116
18117 ac_cv_lib_dld_dld_link=no
18118 fi
18119 rm -f conftest.err conftest.$ac_objext \
18120       conftest$ac_exeext conftest.$ac_ext
18121 LIBS=$ac_check_lib_save_LIBS
18122 fi
18123 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18125 if test $ac_cv_lib_dld_dld_link = yes; then
18126   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18127 fi
18128
18129
18130 fi
18131
18132
18133 fi
18134
18135
18136 fi
18137
18138
18139 fi
18140
18141
18142 fi
18143
18144     ;;
18145   esac
18146
18147   if test "x$lt_cv_dlopen" != xno; then
18148     enable_dlopen=yes
18149   else
18150     enable_dlopen=no
18151   fi
18152
18153   case $lt_cv_dlopen in
18154   dlopen)
18155     save_CPPFLAGS="$CPPFLAGS"
18156     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18157
18158     save_LDFLAGS="$LDFLAGS"
18159     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18160
18161     save_LIBS="$LIBS"
18162     LIBS="$lt_cv_dlopen_libs $LIBS"
18163
18164     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18166 if test "${lt_cv_dlopen_self+set}" = set; then
18167   echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169           if test "$cross_compiling" = yes; then :
18170   lt_cv_dlopen_self=cross
18171 else
18172   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18173   lt_status=$lt_dlunknown
18174   cat > conftest.$ac_ext <<EOF
18175 #line 18175 "configure"
18176 #include "confdefs.h"
18177
18178 #if HAVE_DLFCN_H
18179 #include <dlfcn.h>
18180 #endif
18181
18182 #include <stdio.h>
18183
18184 #ifdef RTLD_GLOBAL
18185 #  define LT_DLGLOBAL           RTLD_GLOBAL
18186 #else
18187 #  ifdef DL_GLOBAL
18188 #    define LT_DLGLOBAL         DL_GLOBAL
18189 #  else
18190 #    define LT_DLGLOBAL         0
18191 #  endif
18192 #endif
18193
18194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18195    find out it does not work in some platform. */
18196 #ifndef LT_DLLAZY_OR_NOW
18197 #  ifdef RTLD_LAZY
18198 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18199 #  else
18200 #    ifdef DL_LAZY
18201 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18202 #    else
18203 #      ifdef RTLD_NOW
18204 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18205 #      else
18206 #        ifdef DL_NOW
18207 #          define LT_DLLAZY_OR_NOW      DL_NOW
18208 #        else
18209 #          define LT_DLLAZY_OR_NOW      0
18210 #        endif
18211 #      endif
18212 #    endif
18213 #  endif
18214 #endif
18215
18216 #ifdef __cplusplus
18217 extern "C" void exit (int);
18218 #endif
18219
18220 void fnord() { int i=42;}
18221 int main ()
18222 {
18223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18224   int status = $lt_dlunknown;
18225
18226   if (self)
18227     {
18228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18229       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18230       /* dlclose (self); */
18231     }
18232
18233     exit (status);
18234 }
18235 EOF
18236   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237   (eval $ac_link) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18241     (./conftest; exit; ) 2>/dev/null
18242     lt_status=$?
18243     case x$lt_status in
18244       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18245       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18246       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18247     esac
18248   else :
18249     # compilation failed
18250     lt_cv_dlopen_self=no
18251   fi
18252 fi
18253 rm -fr conftest*
18254
18255
18256 fi
18257 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18258 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18259
18260     if test "x$lt_cv_dlopen_self" = xyes; then
18261       LDFLAGS="$LDFLAGS $link_static_flag"
18262       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18263 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18264 if test "${lt_cv_dlopen_self_static+set}" = set; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267           if test "$cross_compiling" = yes; then :
18268   lt_cv_dlopen_self_static=cross
18269 else
18270   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18271   lt_status=$lt_dlunknown
18272   cat > conftest.$ac_ext <<EOF
18273 #line 18273 "configure"
18274 #include "confdefs.h"
18275
18276 #if HAVE_DLFCN_H
18277 #include <dlfcn.h>
18278 #endif
18279
18280 #include <stdio.h>
18281
18282 #ifdef RTLD_GLOBAL
18283 #  define LT_DLGLOBAL           RTLD_GLOBAL
18284 #else
18285 #  ifdef DL_GLOBAL
18286 #    define LT_DLGLOBAL         DL_GLOBAL
18287 #  else
18288 #    define LT_DLGLOBAL         0
18289 #  endif
18290 #endif
18291
18292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18293    find out it does not work in some platform. */
18294 #ifndef LT_DLLAZY_OR_NOW
18295 #  ifdef RTLD_LAZY
18296 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18297 #  else
18298 #    ifdef DL_LAZY
18299 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18300 #    else
18301 #      ifdef RTLD_NOW
18302 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18303 #      else
18304 #        ifdef DL_NOW
18305 #          define LT_DLLAZY_OR_NOW      DL_NOW
18306 #        else
18307 #          define LT_DLLAZY_OR_NOW      0
18308 #        endif
18309 #      endif
18310 #    endif
18311 #  endif
18312 #endif
18313
18314 #ifdef __cplusplus
18315 extern "C" void exit (int);
18316 #endif
18317
18318 void fnord() { int i=42;}
18319 int main ()
18320 {
18321   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18322   int status = $lt_dlunknown;
18323
18324   if (self)
18325     {
18326       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18327       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18328       /* dlclose (self); */
18329     }
18330
18331     exit (status);
18332 }
18333 EOF
18334   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335   (eval $ac_link) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18339     (./conftest; exit; ) 2>/dev/null
18340     lt_status=$?
18341     case x$lt_status in
18342       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18343       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18344       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18345     esac
18346   else :
18347     # compilation failed
18348     lt_cv_dlopen_self_static=no
18349   fi
18350 fi
18351 rm -fr conftest*
18352
18353
18354 fi
18355 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18356 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18357     fi
18358
18359     CPPFLAGS="$save_CPPFLAGS"
18360     LDFLAGS="$save_LDFLAGS"
18361     LIBS="$save_LIBS"
18362     ;;
18363   esac
18364
18365   case $lt_cv_dlopen_self in
18366   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18367   *) enable_dlopen_self=unknown ;;
18368   esac
18369
18370   case $lt_cv_dlopen_self_static in
18371   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18372   *) enable_dlopen_self_static=unknown ;;
18373   esac
18374 fi
18375
18376
18377 # The else clause should only fire when bootstrapping the
18378 # libtool distribution, otherwise you forgot to ship ltmain.sh
18379 # with your package, and you will get complaints that there are
18380 # no rules to generate ltmain.sh.
18381 if test -f "$ltmain"; then
18382   # See if we are running on zsh, and set the options which allow our commands through
18383   # without removal of \ escapes.
18384   if test -n "${ZSH_VERSION+set}" ; then
18385     setopt NO_GLOB_SUBST
18386   fi
18387   # Now quote all the things that may contain metacharacters while being
18388   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18389   # variables and quote the copies for generation of the libtool script.
18390   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18391     SED SHELL STRIP \
18392     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18393     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18394     deplibs_check_method reload_flag reload_cmds need_locks \
18395     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18396     lt_cv_sys_global_symbol_to_c_name_address \
18397     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18398     old_postinstall_cmds old_postuninstall_cmds \
18399     compiler_CXX \
18400     CC_CXX \
18401     LD_CXX \
18402     lt_prog_compiler_wl_CXX \
18403     lt_prog_compiler_pic_CXX \
18404     lt_prog_compiler_static_CXX \
18405     lt_prog_compiler_no_builtin_flag_CXX \
18406     export_dynamic_flag_spec_CXX \
18407     thread_safe_flag_spec_CXX \
18408     whole_archive_flag_spec_CXX \
18409     enable_shared_with_static_runtimes_CXX \
18410     old_archive_cmds_CXX \
18411     old_archive_from_new_cmds_CXX \
18412     predep_objects_CXX \
18413     postdep_objects_CXX \
18414     predeps_CXX \
18415     postdeps_CXX \
18416     compiler_lib_search_path_CXX \
18417     archive_cmds_CXX \
18418     archive_expsym_cmds_CXX \
18419     postinstall_cmds_CXX \
18420     postuninstall_cmds_CXX \
18421     old_archive_from_expsyms_cmds_CXX \
18422     allow_undefined_flag_CXX \
18423     no_undefined_flag_CXX \
18424     export_symbols_cmds_CXX \
18425     hardcode_libdir_flag_spec_CXX \
18426     hardcode_libdir_flag_spec_ld_CXX \
18427     hardcode_libdir_separator_CXX \
18428     hardcode_automatic_CXX \
18429     module_cmds_CXX \
18430     module_expsym_cmds_CXX \
18431     lt_cv_prog_compiler_c_o_CXX \
18432     exclude_expsyms_CXX \
18433     include_expsyms_CXX; do
18434
18435     case $var in
18436     old_archive_cmds_CXX | \
18437     old_archive_from_new_cmds_CXX | \
18438     archive_cmds_CXX | \
18439     archive_expsym_cmds_CXX | \
18440     module_cmds_CXX | \
18441     module_expsym_cmds_CXX | \
18442     old_archive_from_expsyms_cmds_CXX | \
18443     export_symbols_cmds_CXX | \
18444     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18445     postinstall_cmds | postuninstall_cmds | \
18446     old_postinstall_cmds | old_postuninstall_cmds | \
18447     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18448       # Double-quote double-evaled strings.
18449       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18450       ;;
18451     *)
18452       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18453       ;;
18454     esac
18455   done
18456
18457   case $lt_echo in
18458   *'\$0 --fallback-echo"')
18459     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18460     ;;
18461   esac
18462
18463 cfgfile="$ofile"
18464
18465   cat <<__EOF__ >> "$cfgfile"
18466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18467
18468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18469
18470 # Shell to use when invoking shell scripts.
18471 SHELL=$lt_SHELL
18472
18473 # Whether or not to build shared libraries.
18474 build_libtool_libs=$enable_shared
18475
18476 # Whether or not to build static libraries.
18477 build_old_libs=$enable_static
18478
18479 # Whether or not to add -lc for building shared libraries.
18480 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18481
18482 # Whether or not to disallow shared libs when runtime libs are static
18483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18484
18485 # Whether or not to optimize for fast installation.
18486 fast_install=$enable_fast_install
18487
18488 # The host system.
18489 host_alias=$host_alias
18490 host=$host
18491
18492 # An echo program that does not interpret backslashes.
18493 echo=$lt_echo
18494
18495 # The archiver.
18496 AR=$lt_AR
18497 AR_FLAGS=$lt_AR_FLAGS
18498
18499 # A C compiler.
18500 LTCC=$lt_LTCC
18501
18502 # A language-specific compiler.
18503 CC=$lt_compiler_CXX
18504
18505 # Is the compiler the GNU C compiler?
18506 with_gcc=$GCC_CXX
18507
18508 # An ERE matcher.
18509 EGREP=$lt_EGREP
18510
18511 # The linker used to build libraries.
18512 LD=$lt_LD_CXX
18513
18514 # Whether we need hard or soft links.
18515 LN_S=$lt_LN_S
18516
18517 # A BSD-compatible nm program.
18518 NM=$lt_NM
18519
18520 # A symbol stripping program
18521 STRIP=$lt_STRIP
18522
18523 # Used to examine libraries when file_magic_cmd begins "file"
18524 MAGIC_CMD=$MAGIC_CMD
18525
18526 # Used on cygwin: DLL creation program.
18527 DLLTOOL="$DLLTOOL"
18528
18529 # Used on cygwin: object dumper.
18530 OBJDUMP="$OBJDUMP"
18531
18532 # Used on cygwin: assembler.
18533 AS="$AS"
18534
18535 # The name of the directory that contains temporary libtool files.
18536 objdir=$objdir
18537
18538 # How to create reloadable object files.
18539 reload_flag=$lt_reload_flag
18540 reload_cmds=$lt_reload_cmds
18541
18542 # How to pass a linker flag through the compiler.
18543 wl=$lt_lt_prog_compiler_wl_CXX
18544
18545 # Object file suffix (normally "o").
18546 objext="$ac_objext"
18547
18548 # Old archive suffix (normally "a").
18549 libext="$libext"
18550
18551 # Shared library suffix (normally ".so").
18552 shrext_cmds='$shrext_cmds'
18553
18554 # Executable file suffix (normally "").
18555 exeext="$exeext"
18556
18557 # Additional compiler flags for building library objects.
18558 pic_flag=$lt_lt_prog_compiler_pic_CXX
18559 pic_mode=$pic_mode
18560
18561 # What is the maximum length of a command?
18562 max_cmd_len=$lt_cv_sys_max_cmd_len
18563
18564 # Does compiler simultaneously support -c and -o options?
18565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18566
18567 # Must we lock files when doing compilation ?
18568 need_locks=$lt_need_locks
18569
18570 # Do we need the lib prefix for modules?
18571 need_lib_prefix=$need_lib_prefix
18572
18573 # Do we need a version for libraries?
18574 need_version=$need_version
18575
18576 # Whether dlopen is supported.
18577 dlopen_support=$enable_dlopen
18578
18579 # Whether dlopen of programs is supported.
18580 dlopen_self=$enable_dlopen_self
18581
18582 # Whether dlopen of statically linked programs is supported.
18583 dlopen_self_static=$enable_dlopen_self_static
18584
18585 # Compiler flag to prevent dynamic linking.
18586 link_static_flag=$lt_lt_prog_compiler_static_CXX
18587
18588 # Compiler flag to turn off builtin functions.
18589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18590
18591 # Compiler flag to allow reflexive dlopens.
18592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18593
18594 # Compiler flag to generate shared objects directly from archives.
18595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18596
18597 # Compiler flag to generate thread-safe objects.
18598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18599
18600 # Library versioning type.
18601 version_type=$version_type
18602
18603 # Format of library name prefix.
18604 libname_spec=$lt_libname_spec
18605
18606 # List of archive names.  First name is the real one, the rest are links.
18607 # The last name is the one that the linker finds with -lNAME.
18608 library_names_spec=$lt_library_names_spec
18609
18610 # The coded name of the library, if different from the real name.
18611 soname_spec=$lt_soname_spec
18612
18613 # Commands used to build and install an old-style archive.
18614 RANLIB=$lt_RANLIB
18615 old_archive_cmds=$lt_old_archive_cmds_CXX
18616 old_postinstall_cmds=$lt_old_postinstall_cmds
18617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18618
18619 # Create an old-style archive from a shared archive.
18620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18621
18622 # Create a temporary old-style archive to link instead of a shared archive.
18623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18624
18625 # Commands used to build and install a shared archive.
18626 archive_cmds=$lt_archive_cmds_CXX
18627 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18628 postinstall_cmds=$lt_postinstall_cmds
18629 postuninstall_cmds=$lt_postuninstall_cmds
18630
18631 # Commands used to build a loadable module (assumed same as above if empty)
18632 module_cmds=$lt_module_cmds_CXX
18633 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18634
18635 # Commands to strip libraries.
18636 old_striplib=$lt_old_striplib
18637 striplib=$lt_striplib
18638
18639 # Dependencies to place before the objects being linked to create a
18640 # shared library.
18641 predep_objects=$lt_predep_objects_CXX
18642
18643 # Dependencies to place after the objects being linked to create a
18644 # shared library.
18645 postdep_objects=$lt_postdep_objects_CXX
18646
18647 # Dependencies to place before the objects being linked to create a
18648 # shared library.
18649 predeps=$lt_predeps_CXX
18650
18651 # Dependencies to place after the objects being linked to create a
18652 # shared library.
18653 postdeps=$lt_postdeps_CXX
18654
18655 # The library search path used internally by the compiler when linking
18656 # a shared library.
18657 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18658
18659 # Method to check whether dependent libraries are shared objects.
18660 deplibs_check_method=$lt_deplibs_check_method
18661
18662 # Command to use when deplibs_check_method == file_magic.
18663 file_magic_cmd=$lt_file_magic_cmd
18664
18665 # Flag that allows shared libraries with undefined symbols to be built.
18666 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18667
18668 # Flag that forces no undefined symbols.
18669 no_undefined_flag=$lt_no_undefined_flag_CXX
18670
18671 # Commands used to finish a libtool library installation in a directory.
18672 finish_cmds=$lt_finish_cmds
18673
18674 # Same as above, but a single script fragment to be evaled but not shown.
18675 finish_eval=$lt_finish_eval
18676
18677 # Take the output of nm and produce a listing of raw symbols and C names.
18678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18679
18680 # Transform the output of nm in a proper C declaration
18681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18682
18683 # Transform the output of nm in a C name address pair
18684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18685
18686 # This is the shared library runtime path variable.
18687 runpath_var=$runpath_var
18688
18689 # This is the shared library path variable.
18690 shlibpath_var=$shlibpath_var
18691
18692 # Is shlibpath searched before the hard-coded library search path?
18693 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18694
18695 # How to hardcode a shared library path into an executable.
18696 hardcode_action=$hardcode_action_CXX
18697
18698 # Whether we should hardcode library paths into libraries.
18699 hardcode_into_libs=$hardcode_into_libs
18700
18701 # Flag to hardcode \$libdir into a binary during linking.
18702 # This must work even if \$libdir does not exist.
18703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18704
18705 # If ld is used when linking, flag to hardcode \$libdir into
18706 # a binary during linking. This must work even if \$libdir does
18707 # not exist.
18708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18709
18710 # Whether we need a single -rpath flag with a separated argument.
18711 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18712
18713 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18714 # resulting binary.
18715 hardcode_direct=$hardcode_direct_CXX
18716
18717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18718 # resulting binary.
18719 hardcode_minus_L=$hardcode_minus_L_CXX
18720
18721 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18722 # the resulting binary.
18723 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18724
18725 # Set to yes if building a shared library automatically hardcodes DIR into the library
18726 # and all subsequent libraries and executables linked against it.
18727 hardcode_automatic=$hardcode_automatic_CXX
18728
18729 # Variables whose values should be saved in libtool wrapper scripts and
18730 # restored at relink time.
18731 variables_saved_for_relink="$variables_saved_for_relink"
18732
18733 # Whether libtool must link a program against all its dependency libraries.
18734 link_all_deplibs=$link_all_deplibs_CXX
18735
18736 # Compile-time system search path for libraries
18737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18738
18739 # Run-time system search path for libraries
18740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18741
18742 # Fix the shell variable \$srcfile for the compiler.
18743 fix_srcfile_path="$fix_srcfile_path_CXX"
18744
18745 # Set to yes if exported symbols are required.
18746 always_export_symbols=$always_export_symbols_CXX
18747
18748 # The commands to list exported symbols.
18749 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18750
18751 # The commands to extract the exported symbol list from a shared archive.
18752 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18753
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms_CXX
18756
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms_CXX
18759
18760 # ### END LIBTOOL TAG CONFIG: $tagname
18761
18762 __EOF__
18763
18764
18765 else
18766   # If there is no Makefile yet, we rely on a make rule to execute
18767   # `config.status --recheck' to rerun these tests and create the
18768   # libtool script then.
18769   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18770   if test -f "$ltmain_in"; then
18771     test -f Makefile && make "$ltmain"
18772   fi
18773 fi
18774
18775
18776 ac_ext=c
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18781
18782 CC=$lt_save_CC
18783 LDCXX=$LD
18784 LD=$lt_save_LD
18785 GCC=$lt_save_GCC
18786 with_gnu_ldcxx=$with_gnu_ld
18787 with_gnu_ld=$lt_save_with_gnu_ld
18788 lt_cv_path_LDCXX=$lt_cv_path_LD
18789 lt_cv_path_LD=$lt_save_path_LD
18790 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18791 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18792
18793         else
18794           tagname=""
18795         fi
18796         ;;
18797
18798       F77)
18799         if test -n "$F77" && test "X$F77" != "Xno"; then
18800
18801 ac_ext=f
18802 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18803 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18804 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18805
18806
18807 archive_cmds_need_lc_F77=no
18808 allow_undefined_flag_F77=
18809 always_export_symbols_F77=no
18810 archive_expsym_cmds_F77=
18811 export_dynamic_flag_spec_F77=
18812 hardcode_direct_F77=no
18813 hardcode_libdir_flag_spec_F77=
18814 hardcode_libdir_flag_spec_ld_F77=
18815 hardcode_libdir_separator_F77=
18816 hardcode_minus_L_F77=no
18817 hardcode_automatic_F77=no
18818 module_cmds_F77=
18819 module_expsym_cmds_F77=
18820 link_all_deplibs_F77=unknown
18821 old_archive_cmds_F77=$old_archive_cmds
18822 no_undefined_flag_F77=
18823 whole_archive_flag_spec_F77=
18824 enable_shared_with_static_runtimes_F77=no
18825
18826 # Source file extension for f77 test sources.
18827 ac_ext=f
18828
18829 # Object file extension for compiled f77 test sources.
18830 objext=o
18831 objext_F77=$objext
18832
18833 # Code to be used in simple compile tests
18834 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18835
18836 # Code to be used in simple link tests
18837 lt_simple_link_test_code="      program t\n      end\n"
18838
18839 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18840
18841 # If no C compiler was specified, use CC.
18842 LTCC=${LTCC-"$CC"}
18843
18844 # Allow CC to be a program name with arguments.
18845 compiler=$CC
18846
18847
18848 # Allow CC to be a program name with arguments.
18849 lt_save_CC="$CC"
18850 CC=${F77-"f77"}
18851 compiler=$CC
18852 compiler_F77=$CC
18853 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18854
18855 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18856 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18857 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18858 echo "${ECHO_T}$can_build_shared" >&6
18859
18860 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18861 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18862 test "$can_build_shared" = "no" && enable_shared=no
18863
18864 # On AIX, shared libraries and static libraries use the same namespace, and
18865 # are all built from PIC.
18866 case "$host_os" in
18867 aix3*)
18868   test "$enable_shared" = yes && enable_static=no
18869   if test -n "$RANLIB"; then
18870     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18871     postinstall_cmds='$RANLIB $lib'
18872   fi
18873   ;;
18874 aix4* | aix5*)
18875   test "$enable_shared" = yes && enable_static=no
18876   ;;
18877 esac
18878 echo "$as_me:$LINENO: result: $enable_shared" >&5
18879 echo "${ECHO_T}$enable_shared" >&6
18880
18881 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18882 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18883 # Make sure either enable_shared or enable_static is yes.
18884 test "$enable_shared" = yes || enable_static=yes
18885 echo "$as_me:$LINENO: result: $enable_static" >&5
18886 echo "${ECHO_T}$enable_static" >&6
18887
18888 test "$ld_shlibs_F77" = no && can_build_shared=no
18889
18890 GCC_F77="$G77"
18891 LD_F77="$LD"
18892
18893 lt_prog_compiler_wl_F77=
18894 lt_prog_compiler_pic_F77=
18895 lt_prog_compiler_static_F77=
18896
18897 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18899
18900   if test "$GCC" = yes; then
18901     lt_prog_compiler_wl_F77='-Wl,'
18902     lt_prog_compiler_static_F77='-static'
18903
18904     case $host_os in
18905       aix*)
18906       # All AIX code is PIC.
18907       if test "$host_cpu" = ia64; then
18908         # AIX 5 now supports IA64 processor
18909         lt_prog_compiler_static_F77='-Bstatic'
18910       fi
18911       ;;
18912
18913     amigaos*)
18914       # FIXME: we need at least 68020 code to build shared libraries, but
18915       # adding the `-m68020' flag to GCC prevents building anything better,
18916       # like `-m68040'.
18917       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18918       ;;
18919
18920     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18921       # PIC is the default for these OSes.
18922       ;;
18923
18924     mingw* | pw32* | os2*)
18925       # This hack is so that the source file can tell whether it is being
18926       # built for inclusion in a dll (and should export symbols for example).
18927       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18928       ;;
18929
18930     darwin* | rhapsody*)
18931       # PIC is the default on this platform
18932       # Common symbols not allowed in MH_DYLIB files
18933       lt_prog_compiler_pic_F77='-fno-common'
18934       ;;
18935
18936     msdosdjgpp*)
18937       # Just because we use GCC doesn't mean we suddenly get shared libraries
18938       # on systems that don't support them.
18939       lt_prog_compiler_can_build_shared_F77=no
18940       enable_shared=no
18941       ;;
18942
18943     sysv4*MP*)
18944       if test -d /usr/nec; then
18945         lt_prog_compiler_pic_F77=-Kconform_pic
18946       fi
18947       ;;
18948
18949     hpux*)
18950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18951       # not for PA HP-UX.
18952       case "$host_cpu" in
18953       hppa*64*|ia64*)
18954         # +Z the default
18955         ;;
18956       *)
18957         lt_prog_compiler_pic_F77='-fPIC'
18958         ;;
18959       esac
18960       ;;
18961
18962     *)
18963       lt_prog_compiler_pic_F77='-fPIC'
18964       ;;
18965     esac
18966   else
18967     # PORTME Check for flag to pass linker flags through the system compiler.
18968     case $host_os in
18969     aix*)
18970       lt_prog_compiler_wl_F77='-Wl,'
18971       if test "$host_cpu" = ia64; then
18972         # AIX 5 now supports IA64 processor
18973         lt_prog_compiler_static_F77='-Bstatic'
18974       else
18975         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18976       fi
18977       ;;
18978       darwin*)
18979         # PIC is the default on this platform
18980         # Common symbols not allowed in MH_DYLIB files
18981        case "$cc_basename" in
18982          xlc*)
18983          lt_prog_compiler_pic_F77='-qnocommon'
18984          lt_prog_compiler_wl_F77='-Wl,'
18985          ;;
18986        esac
18987        ;;
18988
18989     mingw* | pw32* | os2*)
18990       # This hack is so that the source file can tell whether it is being
18991       # built for inclusion in a dll (and should export symbols for example).
18992       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18993       ;;
18994
18995     hpux9* | hpux10* | hpux11*)
18996       lt_prog_compiler_wl_F77='-Wl,'
18997       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18998       # not for PA HP-UX.
18999       case "$host_cpu" in
19000       hppa*64*|ia64*)
19001         # +Z the default
19002         ;;
19003       *)
19004         lt_prog_compiler_pic_F77='+Z'
19005         ;;
19006       esac
19007       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19008       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19009       ;;
19010
19011     irix5* | irix6* | nonstopux*)
19012       lt_prog_compiler_wl_F77='-Wl,'
19013       # PIC (with -KPIC) is the default.
19014       lt_prog_compiler_static_F77='-non_shared'
19015       ;;
19016
19017     newsos6)
19018       lt_prog_compiler_pic_F77='-KPIC'
19019       lt_prog_compiler_static_F77='-Bstatic'
19020       ;;
19021
19022     linux*)
19023       case $CC in
19024       icc* | ecc*)
19025         lt_prog_compiler_wl_F77='-Wl,'
19026         lt_prog_compiler_pic_F77='-KPIC'
19027         lt_prog_compiler_static_F77='-static'
19028         ;;
19029       ccc*)
19030         lt_prog_compiler_wl_F77='-Wl,'
19031         # All Alpha code is PIC.
19032         lt_prog_compiler_static_F77='-non_shared'
19033         ;;
19034       esac
19035       ;;
19036
19037     osf3* | osf4* | osf5*)
19038       lt_prog_compiler_wl_F77='-Wl,'
19039       # All OSF/1 code is PIC.
19040       lt_prog_compiler_static_F77='-non_shared'
19041       ;;
19042
19043     sco3.2v5*)
19044       lt_prog_compiler_pic_F77='-Kpic'
19045       lt_prog_compiler_static_F77='-dn'
19046       ;;
19047
19048     solaris*)
19049       lt_prog_compiler_wl_F77='-Wl,'
19050       lt_prog_compiler_pic_F77='-KPIC'
19051       lt_prog_compiler_static_F77='-Bstatic'
19052       ;;
19053
19054     sunos4*)
19055       lt_prog_compiler_wl_F77='-Qoption ld '
19056       lt_prog_compiler_pic_F77='-PIC'
19057       lt_prog_compiler_static_F77='-Bstatic'
19058       ;;
19059
19060     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19061       lt_prog_compiler_wl_F77='-Wl,'
19062       lt_prog_compiler_pic_F77='-KPIC'
19063       lt_prog_compiler_static_F77='-Bstatic'
19064       ;;
19065
19066     sysv4*MP*)
19067       if test -d /usr/nec ;then
19068         lt_prog_compiler_pic_F77='-Kconform_pic'
19069         lt_prog_compiler_static_F77='-Bstatic'
19070       fi
19071       ;;
19072
19073     uts4*)
19074       lt_prog_compiler_pic_F77='-pic'
19075       lt_prog_compiler_static_F77='-Bstatic'
19076       ;;
19077
19078     *)
19079       lt_prog_compiler_can_build_shared_F77=no
19080       ;;
19081     esac
19082   fi
19083
19084 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19085 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19086
19087 #
19088 # Check to make sure the PIC flag actually works.
19089 #
19090 if test -n "$lt_prog_compiler_pic_F77"; then
19091
19092 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19093 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19094 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097   lt_prog_compiler_pic_works_F77=no
19098   ac_outfile=conftest.$ac_objext
19099    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19100    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19101    # Insert the option either (1) after the last *FLAGS variable, or
19102    # (2) before a word containing "conftest.", or (3) at the end.
19103    # Note that $ac_compile itself does not contain backslashes and begins
19104    # with a dollar sign (not a hyphen), so the echo should work correctly.
19105    # The option is referenced via a variable to avoid confusing sed.
19106    lt_compile=`echo "$ac_compile" | $SED \
19107    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19109    -e 's:$: $lt_compiler_flag:'`
19110    (eval echo "\"\$as_me:19110: $lt_compile\"" >&5)
19111    (eval "$lt_compile" 2>conftest.err)
19112    ac_status=$?
19113    cat conftest.err >&5
19114    echo "$as_me:19114: \$? = $ac_status" >&5
19115    if (exit $ac_status) && test -s "$ac_outfile"; then
19116      # The compiler can only warn and ignore the option if not recognized
19117      # So say no if there are warnings
19118      if test ! -s conftest.err; then
19119        lt_prog_compiler_pic_works_F77=yes
19120      fi
19121    fi
19122    $rm conftest*
19123
19124 fi
19125 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19126 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19127
19128 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19129     case $lt_prog_compiler_pic_F77 in
19130      "" | " "*) ;;
19131      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19132      esac
19133 else
19134     lt_prog_compiler_pic_F77=
19135      lt_prog_compiler_can_build_shared_F77=no
19136 fi
19137
19138 fi
19139 case "$host_os" in
19140   # For platforms which do not support PIC, -DPIC is meaningless:
19141   *djgpp*)
19142     lt_prog_compiler_pic_F77=
19143     ;;
19144   *)
19145     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19146     ;;
19147 esac
19148
19149 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19151 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   lt_cv_prog_compiler_c_o_F77=no
19155    $rm -r conftest 2>/dev/null
19156    mkdir conftest
19157    cd conftest
19158    mkdir out
19159    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19160
19161    lt_compiler_flag="-o out/conftest2.$ac_objext"
19162    # Insert the option either (1) after the last *FLAGS variable, or
19163    # (2) before a word containing "conftest.", or (3) at the end.
19164    # Note that $ac_compile itself does not contain backslashes and begins
19165    # with a dollar sign (not a hyphen), so the echo should work correctly.
19166    lt_compile=`echo "$ac_compile" | $SED \
19167    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19169    -e 's:$: $lt_compiler_flag:'`
19170    (eval echo "\"\$as_me:19170: $lt_compile\"" >&5)
19171    (eval "$lt_compile" 2>out/conftest.err)
19172    ac_status=$?
19173    cat out/conftest.err >&5
19174    echo "$as_me:19174: \$? = $ac_status" >&5
19175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19176    then
19177      # The compiler can only warn and ignore the option if not recognized
19178      # So say no if there are warnings
19179      if test ! -s out/conftest.err; then
19180        lt_cv_prog_compiler_c_o_F77=yes
19181      fi
19182    fi
19183    chmod u+w .
19184    $rm conftest*
19185    # SGI C++ compiler will create directory out/ii_files/ for
19186    # template instantiation
19187    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19188    $rm out/* && rmdir out
19189    cd ..
19190    rmdir conftest
19191    $rm conftest*
19192
19193 fi
19194 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19196
19197
19198 hard_links="nottested"
19199 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19200   # do not overwrite the value of need_locks provided by the user
19201   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19203   hard_links=yes
19204   $rm conftest*
19205   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19206   touch conftest.a
19207   ln conftest.a conftest.b 2>&5 || hard_links=no
19208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19209   echo "$as_me:$LINENO: result: $hard_links" >&5
19210 echo "${ECHO_T}$hard_links" >&6
19211   if test "$hard_links" = no; then
19212     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19214     need_locks=warn
19215   fi
19216 else
19217   need_locks=no
19218 fi
19219
19220 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19222
19223   runpath_var=
19224   allow_undefined_flag_F77=
19225   enable_shared_with_static_runtimes_F77=no
19226   archive_cmds_F77=
19227   archive_expsym_cmds_F77=
19228   old_archive_From_new_cmds_F77=
19229   old_archive_from_expsyms_cmds_F77=
19230   export_dynamic_flag_spec_F77=
19231   whole_archive_flag_spec_F77=
19232   thread_safe_flag_spec_F77=
19233   hardcode_libdir_flag_spec_F77=
19234   hardcode_libdir_flag_spec_ld_F77=
19235   hardcode_libdir_separator_F77=
19236   hardcode_direct_F77=no
19237   hardcode_minus_L_F77=no
19238   hardcode_shlibpath_var_F77=unsupported
19239   link_all_deplibs_F77=unknown
19240   hardcode_automatic_F77=no
19241   module_cmds_F77=
19242   module_expsym_cmds_F77=
19243   always_export_symbols_F77=no
19244   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19245   # include_expsyms should be a list of space-separated symbols to be *always*
19246   # included in the symbol list
19247   include_expsyms_F77=
19248   # exclude_expsyms can be an extended regexp of symbols to exclude
19249   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19250   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19251   # as well as any symbol that contains `d'.
19252   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19253   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19254   # platforms (ab)use it in PIC code, but their linkers get confused if
19255   # the symbol is explicitly referenced.  Since portable code cannot
19256   # rely on this symbol name, it's probably fine to never include it in
19257   # preloaded symbol tables.
19258   extract_expsyms_cmds=
19259
19260   case $host_os in
19261   cygwin* | mingw* | pw32*)
19262     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19263     # When not using gcc, we currently assume that we are using
19264     # Microsoft Visual C++.
19265     if test "$GCC" != yes; then
19266       with_gnu_ld=no
19267     fi
19268     ;;
19269   openbsd*)
19270     with_gnu_ld=no
19271     ;;
19272   esac
19273
19274   ld_shlibs_F77=yes
19275   if test "$with_gnu_ld" = yes; then
19276     # If archive_cmds runs LD, not CC, wlarc should be empty
19277     wlarc='${wl}'
19278
19279     # See if GNU ld supports shared libraries.
19280     case $host_os in
19281     aix3* | aix4* | aix5*)
19282       # On AIX/PPC, the GNU linker is very broken
19283       if test "$host_cpu" != ia64; then
19284         ld_shlibs_F77=no
19285         cat <<EOF 1>&2
19286
19287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19288 *** to be unable to reliably create shared libraries on AIX.
19289 *** Therefore, libtool is disabling shared libraries support.  If you
19290 *** really care for shared libraries, you may want to modify your PATH
19291 *** so that a non-GNU linker is found, and then restart.
19292
19293 EOF
19294       fi
19295       ;;
19296
19297     amigaos*)
19298       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)'
19299       hardcode_libdir_flag_spec_F77='-L$libdir'
19300       hardcode_minus_L_F77=yes
19301
19302       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19303       # that the semantics of dynamic libraries on AmigaOS, at least up
19304       # to version 4, is to share data among multiple programs linked
19305       # with the same dynamic library.  Since this doesn't match the
19306       # behavior of shared libraries on other platforms, we can't use
19307       # them.
19308       ld_shlibs_F77=no
19309       ;;
19310
19311     beos*)
19312       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19313         allow_undefined_flag_F77=unsupported
19314         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19315         # support --undefined.  This deserves some investigation.  FIXME
19316         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317       else
19318         ld_shlibs_F77=no
19319       fi
19320       ;;
19321
19322     cygwin* | mingw* | pw32*)
19323       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19324       # as there is no search path for DLLs.
19325       hardcode_libdir_flag_spec_F77='-L$libdir'
19326       allow_undefined_flag_F77=unsupported
19327       always_export_symbols_F77=no
19328       enable_shared_with_static_runtimes_F77=yes
19329       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19330
19331       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19332         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19333         # If the export-symbols file already is a .def file (1st line
19334         # is EXPORTS), use it as is; otherwise, prepend...
19335         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19336           cp $export_symbols $output_objdir/$soname.def;
19337         else
19338           echo EXPORTS > $output_objdir/$soname.def;
19339           cat $export_symbols >> $output_objdir/$soname.def;
19340         fi~
19341         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19342       else
19343         ld_shlibs=no
19344       fi
19345       ;;
19346
19347     netbsd*)
19348       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19349         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19350         wlarc=
19351       else
19352         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19354       fi
19355       ;;
19356
19357     solaris* | sysv5*)
19358       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19359         ld_shlibs_F77=no
19360         cat <<EOF 1>&2
19361
19362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19363 *** create shared libraries on Solaris systems.  Therefore, libtool
19364 *** is disabling shared libraries support.  We urge you to upgrade GNU
19365 *** binutils to release 2.9.1 or newer.  Another option is to modify
19366 *** your PATH or compiler configuration so that the native linker is
19367 *** used, and then restart.
19368
19369 EOF
19370       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19371         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19373       else
19374         ld_shlibs_F77=no
19375       fi
19376       ;;
19377
19378     sunos4*)
19379       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19380       wlarc=
19381       hardcode_direct_F77=yes
19382       hardcode_shlibpath_var_F77=no
19383       ;;
19384
19385   linux*)
19386     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19387         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19388         archive_cmds_F77="$tmp_archive_cmds"
19389       supports_anon_versioning=no
19390       case `$LD -v 2>/dev/null` in
19391         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19392         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19393         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19394         *\ 2.11.*) ;; # other 2.11 versions
19395         *) supports_anon_versioning=yes ;;
19396       esac
19397       if test $supports_anon_versioning = yes; then
19398         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19400 $echo "local: *; };" >> $output_objdir/$libname.ver~
19401         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19402       else
19403         archive_expsym_cmds_F77="$tmp_archive_cmds"
19404       fi
19405     else
19406       ld_shlibs_F77=no
19407     fi
19408     ;;
19409
19410     *)
19411       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19412         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19414       else
19415         ld_shlibs_F77=no
19416       fi
19417       ;;
19418     esac
19419
19420     if test "$ld_shlibs_F77" = yes; then
19421       runpath_var=LD_RUN_PATH
19422       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19423       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19424       # ancient GNU ld didn't support --whole-archive et. al.
19425       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19426         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19427       else
19428         whole_archive_flag_spec_F77=
19429       fi
19430     fi
19431   else
19432     # PORTME fill in a description of your system's linker (not GNU ld)
19433     case $host_os in
19434     aix3*)
19435       allow_undefined_flag_F77=unsupported
19436       always_export_symbols_F77=yes
19437       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'
19438       # Note: this linker hardcodes the directories in LIBPATH if there
19439       # are no directories specified by -L.
19440       hardcode_minus_L_F77=yes
19441       if test "$GCC" = yes && test -z "$link_static_flag"; then
19442         # Neither direct hardcoding nor static linking is supported with a
19443         # broken collect2.
19444         hardcode_direct_F77=unsupported
19445       fi
19446       ;;
19447
19448     aix4* | aix5*)
19449       if test "$host_cpu" = ia64; then
19450         # On IA64, the linker does run time linking by default, so we don't
19451         # have to do anything special.
19452         aix_use_runtimelinking=no
19453         exp_sym_flag='-Bexport'
19454         no_entry_flag=""
19455       else
19456         # If we're using GNU nm, then we don't want the "-C" option.
19457         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19458         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19459           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'
19460         else
19461           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'
19462         fi
19463         aix_use_runtimelinking=no
19464
19465         # Test if we are trying to use run time linking or normal
19466         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19467         # need to do runtime linking.
19468         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19469           for ld_flag in $LDFLAGS; do
19470           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19471             aix_use_runtimelinking=yes
19472             break
19473           fi
19474           done
19475         esac
19476
19477         exp_sym_flag='-bexport'
19478         no_entry_flag='-bnoentry'
19479       fi
19480
19481       # When large executables or shared objects are built, AIX ld can
19482       # have problems creating the table of contents.  If linking a library
19483       # or program results in "error TOC overflow" add -mminimal-toc to
19484       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19485       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19486
19487       archive_cmds_F77=''
19488       hardcode_direct_F77=yes
19489       hardcode_libdir_separator_F77=':'
19490       link_all_deplibs_F77=yes
19491
19492       if test "$GCC" = yes; then
19493         case $host_os in aix4.012|aix4.012.*)
19494         # We only want to do this on AIX 4.2 and lower, the check
19495         # below for broken collect2 doesn't work under 4.3+
19496           collect2name=`${CC} -print-prog-name=collect2`
19497           if test -f "$collect2name" && \
19498            strings "$collect2name" | grep resolve_lib_name >/dev/null
19499           then
19500           # We have reworked collect2
19501           hardcode_direct_F77=yes
19502           else
19503           # We have old collect2
19504           hardcode_direct_F77=unsupported
19505           # It fails to find uninstalled libraries when the uninstalled
19506           # path is not listed in the libpath.  Setting hardcode_minus_L
19507           # to unsupported forces relinking
19508           hardcode_minus_L_F77=yes
19509           hardcode_libdir_flag_spec_F77='-L$libdir'
19510           hardcode_libdir_separator_F77=
19511           fi
19512         esac
19513         shared_flag='-shared'
19514       else
19515         # not using gcc
19516         if test "$host_cpu" = ia64; then
19517         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19518         # chokes on -Wl,-G. The following line is correct:
19519           shared_flag='-G'
19520         else
19521         if test "$aix_use_runtimelinking" = yes; then
19522             shared_flag='${wl}-G'
19523           else
19524             shared_flag='${wl}-bM:SRE'
19525         fi
19526         fi
19527       fi
19528
19529       # It seems that -bexpall does not export symbols beginning with
19530       # underscore (_), so it is better to generate a list of symbols to export.
19531       always_export_symbols_F77=yes
19532       if test "$aix_use_runtimelinking" = yes; then
19533         # Warning - without using the other runtime loading flags (-brtl),
19534         # -berok will link without error, but may produce a broken library.
19535         allow_undefined_flag_F77='-berok'
19536        # Determine the default libpath from the value encoded in an empty executable.
19537        cat >conftest.$ac_ext <<_ACEOF
19538       program main
19539
19540       end
19541 _ACEOF
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19544   (eval $ac_link) 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } &&
19551          { ac_try='test -z "$ac_f77_werror_flag"
19552                          || test ! -s conftest.err'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; } &&
19558          { ac_try='test -s conftest$ac_exeext'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; }; then
19564
19565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19566 }'`
19567 # Check for a 64-bit object if we didn't find anything.
19568 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; }
19569 }'`; fi
19570 else
19571   echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 fi
19575 rm -f conftest.err conftest.$ac_objext \
19576       conftest$ac_exeext conftest.$ac_ext
19577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19578
19579        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19580         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"
19581        else
19582         if test "$host_cpu" = ia64; then
19583           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19584           allow_undefined_flag_F77="-z nodefs"
19585           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"
19586         else
19587          # Determine the default libpath from the value encoded in an empty executable.
19588          cat >conftest.$ac_ext <<_ACEOF
19589       program main
19590
19591       end
19592 _ACEOF
19593 rm -f conftest.$ac_objext conftest$ac_exeext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19595   (eval $ac_link) 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_f77_werror_flag"
19603                          || test ! -s conftest.err'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; } &&
19609          { ac_try='test -s conftest$ac_exeext'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; }; then
19615
19616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19617 }'`
19618 # Check for a 64-bit object if we didn't find anything.
19619 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; }
19620 }'`; fi
19621 else
19622   echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625 fi
19626 rm -f conftest.err conftest.$ac_objext \
19627       conftest$ac_exeext conftest.$ac_ext
19628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19629
19630          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19631           # Warning - without using the other run time loading flags,
19632           # -berok will link without error, but may produce a broken library.
19633           no_undefined_flag_F77=' ${wl}-bernotok'
19634           allow_undefined_flag_F77=' ${wl}-berok'
19635           # -bexpall does not export symbols beginning with underscore (_)
19636           always_export_symbols_F77=yes
19637           # Exported symbols can be pulled into shared objects from archives
19638           whole_archive_flag_spec_F77=' '
19639           archive_cmds_need_lc_F77=yes
19640           # This is similar to how AIX traditionally builds it's shared libraries.
19641           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'
19642         fi
19643       fi
19644       ;;
19645
19646     amigaos*)
19647       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)'
19648       hardcode_libdir_flag_spec_F77='-L$libdir'
19649       hardcode_minus_L_F77=yes
19650       # see comment about different semantics on the GNU ld section
19651       ld_shlibs_F77=no
19652       ;;
19653
19654     bsdi[45]*)
19655       export_dynamic_flag_spec_F77=-rdynamic
19656       ;;
19657
19658     cygwin* | mingw* | pw32*)
19659       # When not using gcc, we currently assume that we are using
19660       # Microsoft Visual C++.
19661       # hardcode_libdir_flag_spec is actually meaningless, as there is
19662       # no search path for DLLs.
19663       hardcode_libdir_flag_spec_F77=' '
19664       allow_undefined_flag_F77=unsupported
19665       # Tell ltmain to make .lib files, not .a files.
19666       libext=lib
19667       # Tell ltmain to make .dll files, not .so files.
19668       shrext_cmds=".dll"
19669       # FIXME: Setting linknames here is a bad hack.
19670       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19671       # The linker will automatically build a .lib file if we build a DLL.
19672       old_archive_From_new_cmds_F77='true'
19673       # FIXME: Should let the user specify the lib program.
19674       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19675       fix_srcfile_path='`cygpath -w "$srcfile"`'
19676       enable_shared_with_static_runtimes_F77=yes
19677       ;;
19678
19679     darwin* | rhapsody*)
19680       case "$host_os" in
19681         rhapsody* | darwin1.[012])
19682          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19683          ;;
19684        *) # Darwin 1.3 on
19685          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19686            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19687          else
19688            case ${MACOSX_DEPLOYMENT_TARGET} in
19689              10.[012])
19690                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19691                ;;
19692              10.*)
19693                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19694                ;;
19695            esac
19696          fi
19697          ;;
19698       esac
19699       archive_cmds_need_lc_F77=no
19700       hardcode_direct_F77=no
19701       hardcode_automatic_F77=yes
19702       hardcode_shlibpath_var_F77=unsupported
19703       whole_archive_flag_spec_F77=''
19704       link_all_deplibs_F77=yes
19705     if test "$GCC" = yes ; then
19706         output_verbose_link_cmd='echo'
19707         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19708       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19709       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19710       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}'
19711       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}'
19712     else
19713       case "$cc_basename" in
19714         xlc*)
19715          output_verbose_link_cmd='echo'
19716          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19717          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19718           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19719          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}'
19720           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}'
19721           ;;
19722        *)
19723          ld_shlibs_F77=no
19724           ;;
19725       esac
19726     fi
19727       ;;
19728
19729     dgux*)
19730       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19731       hardcode_libdir_flag_spec_F77='-L$libdir'
19732       hardcode_shlibpath_var_F77=no
19733       ;;
19734
19735     freebsd1*)
19736       ld_shlibs_F77=no
19737       ;;
19738
19739     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19740     # support.  Future versions do this automatically, but an explicit c++rt0.o
19741     # does not break anything, and helps significantly (at the cost of a little
19742     # extra space).
19743     freebsd2.2*)
19744       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19745       hardcode_libdir_flag_spec_F77='-R$libdir'
19746       hardcode_direct_F77=yes
19747       hardcode_shlibpath_var_F77=no
19748       ;;
19749
19750     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19751     freebsd2*)
19752       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19753       hardcode_direct_F77=yes
19754       hardcode_minus_L_F77=yes
19755       hardcode_shlibpath_var_F77=no
19756       ;;
19757
19758     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19759     freebsd* | kfreebsd*-gnu)
19760       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19761       hardcode_libdir_flag_spec_F77='-R$libdir'
19762       hardcode_direct_F77=yes
19763       hardcode_shlibpath_var_F77=no
19764       ;;
19765
19766     hpux9*)
19767       if test "$GCC" = yes; then
19768         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'
19769       else
19770         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'
19771       fi
19772       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19773       hardcode_libdir_separator_F77=:
19774       hardcode_direct_F77=yes
19775
19776       # hardcode_minus_L: Not really in the search PATH,
19777       # but as the default location of the library.
19778       hardcode_minus_L_F77=yes
19779       export_dynamic_flag_spec_F77='${wl}-E'
19780       ;;
19781
19782     hpux10* | hpux11*)
19783       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19784         case "$host_cpu" in
19785         hppa*64*|ia64*)
19786           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19787           ;;
19788         *)
19789           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19790           ;;
19791         esac
19792       else
19793         case "$host_cpu" in
19794         hppa*64*|ia64*)
19795           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19796           ;;
19797         *)
19798           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19799           ;;
19800         esac
19801       fi
19802       if test "$with_gnu_ld" = no; then
19803         case "$host_cpu" in
19804         hppa*64*)
19805           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19806           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19807           hardcode_libdir_separator_F77=:
19808           hardcode_direct_F77=no
19809           hardcode_shlibpath_var_F77=no
19810           ;;
19811         ia64*)
19812           hardcode_libdir_flag_spec_F77='-L$libdir'
19813           hardcode_direct_F77=no
19814           hardcode_shlibpath_var_F77=no
19815
19816           # hardcode_minus_L: Not really in the search PATH,
19817           # but as the default location of the library.
19818           hardcode_minus_L_F77=yes
19819           ;;
19820         *)
19821           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19822           hardcode_libdir_separator_F77=:
19823           hardcode_direct_F77=yes
19824           export_dynamic_flag_spec_F77='${wl}-E'
19825
19826           # hardcode_minus_L: Not really in the search PATH,
19827           # but as the default location of the library.
19828           hardcode_minus_L_F77=yes
19829           ;;
19830         esac
19831       fi
19832       ;;
19833
19834     irix5* | irix6* | nonstopux*)
19835       if test "$GCC" = yes; then
19836         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'
19837       else
19838         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'
19839         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19840       fi
19841       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842       hardcode_libdir_separator_F77=:
19843       link_all_deplibs_F77=yes
19844       ;;
19845
19846     netbsd*)
19847       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19848         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19849       else
19850         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19851       fi
19852       hardcode_libdir_flag_spec_F77='-R$libdir'
19853       hardcode_direct_F77=yes
19854       hardcode_shlibpath_var_F77=no
19855       ;;
19856
19857     newsos6)
19858       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19859       hardcode_direct_F77=yes
19860       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19861       hardcode_libdir_separator_F77=:
19862       hardcode_shlibpath_var_F77=no
19863       ;;
19864
19865     openbsd*)
19866       hardcode_direct_F77=yes
19867       hardcode_shlibpath_var_F77=no
19868       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19869         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19870         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19871         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19872         export_dynamic_flag_spec_F77='${wl}-E'
19873       else
19874        case $host_os in
19875          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19876            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19877            hardcode_libdir_flag_spec_F77='-R$libdir'
19878            ;;
19879          *)
19880            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19881            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19882            ;;
19883        esac
19884       fi
19885       ;;
19886
19887     os2*)
19888       hardcode_libdir_flag_spec_F77='-L$libdir'
19889       hardcode_minus_L_F77=yes
19890       allow_undefined_flag_F77=unsupported
19891       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'
19892       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19893       ;;
19894
19895     osf3*)
19896       if test "$GCC" = yes; then
19897         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19898         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'
19899       else
19900         allow_undefined_flag_F77=' -expect_unresolved \*'
19901         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'
19902       fi
19903       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19904       hardcode_libdir_separator_F77=:
19905       ;;
19906
19907     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19908       if test "$GCC" = yes; then
19909         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19910         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'
19911         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19912       else
19913         allow_undefined_flag_F77=' -expect_unresolved \*'
19914         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'
19915         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~
19916         $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'
19917
19918         # Both c and cxx compiler support -rpath directly
19919         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19920       fi
19921       hardcode_libdir_separator_F77=:
19922       ;;
19923
19924     sco3.2v5*)
19925       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19926       hardcode_shlibpath_var_F77=no
19927       export_dynamic_flag_spec_F77='${wl}-Bexport'
19928       runpath_var=LD_RUN_PATH
19929       hardcode_runpath_var=yes
19930       ;;
19931
19932     solaris*)
19933       no_undefined_flag_F77=' -z text'
19934       if test "$GCC" = yes; then
19935         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19936         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19937           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19938       else
19939         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19940         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19941         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19942       fi
19943       hardcode_libdir_flag_spec_F77='-R$libdir'
19944       hardcode_shlibpath_var_F77=no
19945       case $host_os in
19946       solaris2.[0-5] | solaris2.[0-5].*) ;;
19947       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19948         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19949       esac
19950       link_all_deplibs_F77=yes
19951       ;;
19952
19953     sunos4*)
19954       if test "x$host_vendor" = xsequent; then
19955         # Use $CC to link under sequent, because it throws in some extra .o
19956         # files that make .init and .fini sections work.
19957         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19958       else
19959         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19960       fi
19961       hardcode_libdir_flag_spec_F77='-L$libdir'
19962       hardcode_direct_F77=yes
19963       hardcode_minus_L_F77=yes
19964       hardcode_shlibpath_var_F77=no
19965       ;;
19966
19967     sysv4)
19968       case $host_vendor in
19969         sni)
19970           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971           hardcode_direct_F77=yes # is this really true???
19972         ;;
19973         siemens)
19974           ## LD is ld it makes a PLAMLIB
19975           ## CC just makes a GrossModule.
19976           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19977           reload_cmds_F77='$CC -r -o $output$reload_objs'
19978           hardcode_direct_F77=no
19979         ;;
19980         motorola)
19981           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19982           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19983         ;;
19984       esac
19985       runpath_var='LD_RUN_PATH'
19986       hardcode_shlibpath_var_F77=no
19987       ;;
19988
19989     sysv4.3*)
19990       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991       hardcode_shlibpath_var_F77=no
19992       export_dynamic_flag_spec_F77='-Bexport'
19993       ;;
19994
19995     sysv4*MP*)
19996       if test -d /usr/nec; then
19997         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19998         hardcode_shlibpath_var_F77=no
19999         runpath_var=LD_RUN_PATH
20000         hardcode_runpath_var=yes
20001         ld_shlibs_F77=yes
20002       fi
20003       ;;
20004
20005     sysv4.2uw2*)
20006       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20007       hardcode_direct_F77=yes
20008       hardcode_minus_L_F77=no
20009       hardcode_shlibpath_var_F77=no
20010       hardcode_runpath_var=yes
20011       runpath_var=LD_RUN_PATH
20012       ;;
20013
20014    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20015       no_undefined_flag_F77='${wl}-z ${wl}text'
20016       if test "$GCC" = yes; then
20017         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20018       else
20019         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20020       fi
20021       runpath_var='LD_RUN_PATH'
20022       hardcode_shlibpath_var_F77=no
20023       ;;
20024
20025     sysv5*)
20026       no_undefined_flag_F77=' -z text'
20027       # $CC -shared without GNU ld will not create a library from C++
20028       # object files and a static libstdc++, better avoid it by now
20029       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20030       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20031                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20032       hardcode_libdir_flag_spec_F77=
20033       hardcode_shlibpath_var_F77=no
20034       runpath_var='LD_RUN_PATH'
20035       ;;
20036
20037     uts4*)
20038       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20039       hardcode_libdir_flag_spec_F77='-L$libdir'
20040       hardcode_shlibpath_var_F77=no
20041       ;;
20042
20043     *)
20044       ld_shlibs_F77=no
20045       ;;
20046     esac
20047   fi
20048
20049 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20050 echo "${ECHO_T}$ld_shlibs_F77" >&6
20051 test "$ld_shlibs_F77" = no && can_build_shared=no
20052
20053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20054 if test "$GCC" = yes; then
20055   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20056 fi
20057
20058 #
20059 # Do we need to explicitly link libc?
20060 #
20061 case "x$archive_cmds_need_lc_F77" in
20062 x|xyes)
20063   # Assume -lc should be added
20064   archive_cmds_need_lc_F77=yes
20065
20066   if test "$enable_shared" = yes && test "$GCC" = yes; then
20067     case $archive_cmds_F77 in
20068     *'~'*)
20069       # FIXME: we may have to deal with multi-command sequences.
20070       ;;
20071     '$CC '*)
20072       # Test whether the compiler implicitly links with -lc since on some
20073       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20074       # to ld, don't add -lc before -lgcc.
20075       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20077       $rm conftest*
20078       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20079
20080       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081   (eval $ac_compile) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); } 2>conftest.err; then
20085         soname=conftest
20086         lib=conftest
20087         libobjs=conftest.$ac_objext
20088         deplibs=
20089         wl=$lt_prog_compiler_wl_F77
20090         compiler_flags=-v
20091         linker_flags=-v
20092         verstring=
20093         output_objdir=.
20094         libname=conftest
20095         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20096         allow_undefined_flag_F77=
20097         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20098   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }
20102         then
20103           archive_cmds_need_lc_F77=no
20104         else
20105           archive_cmds_need_lc_F77=yes
20106         fi
20107         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20108       else
20109         cat conftest.err 1>&5
20110       fi
20111       $rm conftest*
20112       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20113 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20114       ;;
20115     esac
20116   fi
20117   ;;
20118 esac
20119
20120 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20121 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20122 library_names_spec=
20123 libname_spec='lib$name'
20124 soname_spec=
20125 shrext_cmds=".so"
20126 postinstall_cmds=
20127 postuninstall_cmds=
20128 finish_cmds=
20129 finish_eval=
20130 shlibpath_var=
20131 shlibpath_overrides_runpath=unknown
20132 version_type=none
20133 dynamic_linker="$host_os ld.so"
20134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20135 if test "$GCC" = yes; then
20136   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20137   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20138     # if the path contains ";" then we assume it to be the separator
20139     # otherwise default to the standard path separator (i.e. ":") - it is
20140     # assumed that no part of a normal pathname contains ";" but that should
20141     # okay in the real world where ";" in dirpaths is itself problematic.
20142     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20143   else
20144     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20145   fi
20146 else
20147   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20148 fi
20149 need_lib_prefix=unknown
20150 hardcode_into_libs=no
20151
20152 # when you set need_version to no, make sure it does not cause -set_version
20153 # flags to be left without arguments
20154 need_version=unknown
20155
20156 case $host_os in
20157 aix3*)
20158   version_type=linux
20159   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20160   shlibpath_var=LIBPATH
20161
20162   # AIX 3 has no versioning support, so we append a major version to the name.
20163   soname_spec='${libname}${release}${shared_ext}$major'
20164   ;;
20165
20166 aix4* | aix5*)
20167   version_type=linux
20168   need_lib_prefix=no
20169   need_version=no
20170   hardcode_into_libs=yes
20171   if test "$host_cpu" = ia64; then
20172     # AIX 5 supports IA64
20173     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20174     shlibpath_var=LD_LIBRARY_PATH
20175   else
20176     # With GCC up to 2.95.x, collect2 would create an import file
20177     # for dependence libraries.  The import file would start with
20178     # the line `#! .'.  This would cause the generated library to
20179     # depend on `.', always an invalid library.  This was fixed in
20180     # development snapshots of GCC prior to 3.0.
20181     case $host_os in
20182       aix4 | aix4.[01] | aix4.[01].*)
20183       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20184            echo ' yes '
20185            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20186         :
20187       else
20188         can_build_shared=no
20189       fi
20190       ;;
20191     esac
20192     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20193     # soname into executable. Probably we can add versioning support to
20194     # collect2, so additional links can be useful in future.
20195     if test "$aix_use_runtimelinking" = yes; then
20196       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20197       # instead of lib<name>.a to let people know that these are not
20198       # typical AIX shared libraries.
20199       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200     else
20201       # We preserve .a as extension for shared libraries through AIX4.2
20202       # and later when we are not doing run time linking.
20203       library_names_spec='${libname}${release}.a $libname.a'
20204       soname_spec='${libname}${release}${shared_ext}$major'
20205     fi
20206     shlibpath_var=LIBPATH
20207   fi
20208   ;;
20209
20210 amigaos*)
20211   library_names_spec='$libname.ixlibrary $libname.a'
20212   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20213   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'
20214   ;;
20215
20216 beos*)
20217   library_names_spec='${libname}${shared_ext}'
20218   dynamic_linker="$host_os ld.so"
20219   shlibpath_var=LIBRARY_PATH
20220   ;;
20221
20222 bsdi[45]*)
20223   version_type=linux
20224   need_version=no
20225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226   soname_spec='${libname}${release}${shared_ext}$major'
20227   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20228   shlibpath_var=LD_LIBRARY_PATH
20229   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20230   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20231   # the default ld.so.conf also contains /usr/contrib/lib and
20232   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20233   # libtool to hard-code these into programs
20234   ;;
20235
20236 cygwin* | mingw* | pw32*)
20237   version_type=windows
20238   shrext_cmds=".dll"
20239   need_version=no
20240   need_lib_prefix=no
20241
20242   case $GCC,$host_os in
20243   yes,cygwin* | yes,mingw* | yes,pw32*)
20244     library_names_spec='$libname.dll.a'
20245     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20246     postinstall_cmds='base_file=`basename \${file}`~
20247       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20248       dldir=$destdir/`dirname \$dlpath`~
20249       test -d \$dldir || mkdir -p \$dldir~
20250       $install_prog $dir/$dlname \$dldir/$dlname'
20251     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20252       dlpath=$dir/\$dldll~
20253        $rm \$dlpath'
20254     shlibpath_overrides_runpath=yes
20255
20256     case $host_os in
20257     cygwin*)
20258       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20259       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20260       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20261       ;;
20262     mingw*)
20263       # MinGW DLLs use traditional 'lib' prefix
20264       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20265       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20266       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20267         # It is most probably a Windows format PATH printed by
20268         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20269         # path with ; separators, and with drive letters. We can handle the
20270         # drive letters (cygwin fileutils understands them), so leave them,
20271         # especially as we might pass files found there to a mingw objdump,
20272         # which wouldn't understand a cygwinified path. Ahh.
20273         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20274       else
20275         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20276       fi
20277       ;;
20278     pw32*)
20279       # pw32 DLLs use 'pw' prefix rather than 'lib'
20280       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20281       ;;
20282     esac
20283     ;;
20284
20285   *)
20286     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20287     ;;
20288   esac
20289   dynamic_linker='Win32 ld.exe'
20290   # FIXME: first we should search . and the directory the executable is in
20291   shlibpath_var=PATH
20292   ;;
20293
20294 darwin* | rhapsody*)
20295   dynamic_linker="$host_os dyld"
20296   version_type=darwin
20297   need_lib_prefix=no
20298   need_version=no
20299   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20300   soname_spec='${libname}${release}${major}$shared_ext'
20301   shlibpath_overrides_runpath=yes
20302   shlibpath_var=DYLD_LIBRARY_PATH
20303   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20304   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20305   if test "$GCC" = yes; then
20306     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"`
20307   else
20308     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20309   fi
20310   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20311   ;;
20312
20313 dgux*)
20314   version_type=linux
20315   need_lib_prefix=no
20316   need_version=no
20317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20318   soname_spec='${libname}${release}${shared_ext}$major'
20319   shlibpath_var=LD_LIBRARY_PATH
20320   ;;
20321
20322 freebsd1*)
20323   dynamic_linker=no
20324   ;;
20325
20326 kfreebsd*-gnu)
20327   version_type=linux
20328   need_lib_prefix=no
20329   need_version=no
20330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20331   soname_spec='${libname}${release}${shared_ext}$major'
20332   shlibpath_var=LD_LIBRARY_PATH
20333   shlibpath_overrides_runpath=no
20334   hardcode_into_libs=yes
20335   dynamic_linker='GNU ld.so'
20336   ;;
20337
20338 freebsd*)
20339   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20340   version_type=freebsd-$objformat
20341   case $version_type in
20342     freebsd-elf*)
20343       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20344       need_version=no
20345       need_lib_prefix=no
20346       ;;
20347     freebsd-*)
20348       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20349       need_version=yes
20350       ;;
20351   esac
20352   shlibpath_var=LD_LIBRARY_PATH
20353   case $host_os in
20354   freebsd2*)
20355     shlibpath_overrides_runpath=yes
20356     ;;
20357   freebsd3.01* | freebsdelf3.01*)
20358     shlibpath_overrides_runpath=yes
20359     hardcode_into_libs=yes
20360     ;;
20361   *) # from 3.2 on
20362     shlibpath_overrides_runpath=no
20363     hardcode_into_libs=yes
20364     ;;
20365   esac
20366   ;;
20367
20368 gnu*)
20369   version_type=linux
20370   need_lib_prefix=no
20371   need_version=no
20372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20373   soname_spec='${libname}${release}${shared_ext}$major'
20374   shlibpath_var=LD_LIBRARY_PATH
20375   hardcode_into_libs=yes
20376   ;;
20377
20378 hpux9* | hpux10* | hpux11*)
20379   # Give a soname corresponding to the major version so that dld.sl refuses to
20380   # link against other versions.
20381   version_type=sunos
20382   need_lib_prefix=no
20383   need_version=no
20384   case "$host_cpu" in
20385   ia64*)
20386     shrext_cmds='.so'
20387     hardcode_into_libs=yes
20388     dynamic_linker="$host_os dld.so"
20389     shlibpath_var=LD_LIBRARY_PATH
20390     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392     soname_spec='${libname}${release}${shared_ext}$major'
20393     if test "X$HPUX_IA64_MODE" = X32; then
20394       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20395     else
20396       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20397     fi
20398     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20399     ;;
20400    hppa*64*)
20401      shrext_cmds='.sl'
20402      hardcode_into_libs=yes
20403      dynamic_linker="$host_os dld.sl"
20404      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20405      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20406      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407      soname_spec='${libname}${release}${shared_ext}$major'
20408      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20409      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20410      ;;
20411    *)
20412     shrext_cmds='.sl'
20413     dynamic_linker="$host_os dld.sl"
20414     shlibpath_var=SHLIB_PATH
20415     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417     soname_spec='${libname}${release}${shared_ext}$major'
20418     ;;
20419   esac
20420   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20421   postinstall_cmds='chmod 555 $lib'
20422   ;;
20423
20424 irix5* | irix6* | nonstopux*)
20425   case $host_os in
20426     nonstopux*) version_type=nonstopux ;;
20427     *)
20428         if test "$lt_cv_prog_gnu_ld" = yes; then
20429                 version_type=linux
20430         else
20431                 version_type=irix
20432         fi ;;
20433   esac
20434   need_lib_prefix=no
20435   need_version=no
20436   soname_spec='${libname}${release}${shared_ext}$major'
20437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20438   case $host_os in
20439   irix5* | nonstopux*)
20440     libsuff= shlibsuff=
20441     ;;
20442   *)
20443     case $LD in # libtool.m4 will add one of these switches to LD
20444     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20445       libsuff= shlibsuff= libmagic=32-bit;;
20446     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20447       libsuff=32 shlibsuff=N32 libmagic=N32;;
20448     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20449       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20450     *) libsuff= shlibsuff= libmagic=never-match;;
20451     esac
20452     ;;
20453   esac
20454   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20455   shlibpath_overrides_runpath=no
20456   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20457   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20458   hardcode_into_libs=yes
20459   ;;
20460
20461 # No shared lib support for Linux oldld, aout, or coff.
20462 linux*oldld* | linux*aout* | linux*coff*)
20463   dynamic_linker=no
20464   ;;
20465
20466 # This must be Linux ELF.
20467 linux*)
20468   version_type=linux
20469   need_lib_prefix=no
20470   need_version=no
20471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472   soname_spec='${libname}${release}${shared_ext}$major'
20473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20474   shlibpath_var=LD_LIBRARY_PATH
20475   shlibpath_overrides_runpath=no
20476   # This implies no fast_install, which is unacceptable.
20477   # Some rework will be needed to allow for fast_install
20478   # before this can be enabled.
20479   hardcode_into_libs=yes
20480
20481   # Append ld.so.conf contents to the search path
20482   if test -f /etc/ld.so.conf; then
20483     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20484     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20485   fi
20486
20487   # We used to test for /lib/ld.so.1 and disable shared libraries on
20488   # powerpc, because MkLinux only supported shared libraries with the
20489   # GNU dynamic linker.  Since this was broken with cross compilers,
20490   # most powerpc-linux boxes support dynamic linking these days and
20491   # people can always --disable-shared, the test was removed, and we
20492   # assume the GNU/Linux dynamic linker is in use.
20493   dynamic_linker='GNU/Linux ld.so'
20494   ;;
20495
20496 knetbsd*-gnu)
20497   version_type=linux
20498   need_lib_prefix=no
20499   need_version=no
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501   soname_spec='${libname}${release}${shared_ext}$major'
20502   shlibpath_var=LD_LIBRARY_PATH
20503   shlibpath_overrides_runpath=no
20504   hardcode_into_libs=yes
20505   dynamic_linker='GNU ld.so'
20506   ;;
20507
20508 netbsd*)
20509   version_type=sunos
20510   need_lib_prefix=no
20511   need_version=no
20512   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20514     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20515     dynamic_linker='NetBSD (a.out) ld.so'
20516   else
20517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20518     soname_spec='${libname}${release}${shared_ext}$major'
20519     dynamic_linker='NetBSD ld.elf_so'
20520   fi
20521   shlibpath_var=LD_LIBRARY_PATH
20522   shlibpath_overrides_runpath=yes
20523   hardcode_into_libs=yes
20524   ;;
20525
20526 newsos6)
20527   version_type=linux
20528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529   shlibpath_var=LD_LIBRARY_PATH
20530   shlibpath_overrides_runpath=yes
20531   ;;
20532
20533 nto-qnx*)
20534   version_type=linux
20535   need_lib_prefix=no
20536   need_version=no
20537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538   soname_spec='${libname}${release}${shared_ext}$major'
20539   shlibpath_var=LD_LIBRARY_PATH
20540   shlibpath_overrides_runpath=yes
20541   ;;
20542
20543 openbsd*)
20544   version_type=sunos
20545   need_lib_prefix=no
20546   need_version=no
20547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20549   shlibpath_var=LD_LIBRARY_PATH
20550   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20551     case $host_os in
20552       openbsd2.[89] | openbsd2.[89].*)
20553         shlibpath_overrides_runpath=no
20554         ;;
20555       *)
20556         shlibpath_overrides_runpath=yes
20557         ;;
20558       esac
20559   else
20560     shlibpath_overrides_runpath=yes
20561   fi
20562   ;;
20563
20564 os2*)
20565   libname_spec='$name'
20566   shrext_cmds=".dll"
20567   need_lib_prefix=no
20568   library_names_spec='$libname${shared_ext} $libname.a'
20569   dynamic_linker='OS/2 ld.exe'
20570   shlibpath_var=LIBPATH
20571   ;;
20572
20573 osf3* | osf4* | osf5*)
20574   version_type=osf
20575   need_lib_prefix=no
20576   need_version=no
20577   soname_spec='${libname}${release}${shared_ext}$major'
20578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579   shlibpath_var=LD_LIBRARY_PATH
20580   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20581   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20582   ;;
20583
20584 sco3.2v5*)
20585   version_type=osf
20586   soname_spec='${libname}${release}${shared_ext}$major'
20587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588   shlibpath_var=LD_LIBRARY_PATH
20589   ;;
20590
20591 solaris*)
20592   version_type=linux
20593   need_lib_prefix=no
20594   need_version=no
20595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20596   soname_spec='${libname}${release}${shared_ext}$major'
20597   shlibpath_var=LD_LIBRARY_PATH
20598   shlibpath_overrides_runpath=yes
20599   hardcode_into_libs=yes
20600   # ldd complains unless libraries are executable
20601   postinstall_cmds='chmod +x $lib'
20602   ;;
20603
20604 sunos4*)
20605   version_type=sunos
20606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20607   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20608   shlibpath_var=LD_LIBRARY_PATH
20609   shlibpath_overrides_runpath=yes
20610   if test "$with_gnu_ld" = yes; then
20611     need_lib_prefix=no
20612   fi
20613   need_version=yes
20614   ;;
20615
20616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20617   version_type=linux
20618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619   soname_spec='${libname}${release}${shared_ext}$major'
20620   shlibpath_var=LD_LIBRARY_PATH
20621   case $host_vendor in
20622     sni)
20623       shlibpath_overrides_runpath=no
20624       need_lib_prefix=no
20625       export_dynamic_flag_spec='${wl}-Blargedynsym'
20626       runpath_var=LD_RUN_PATH
20627       ;;
20628     siemens)
20629       need_lib_prefix=no
20630       ;;
20631     motorola)
20632       need_lib_prefix=no
20633       need_version=no
20634       shlibpath_overrides_runpath=no
20635       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20636       ;;
20637   esac
20638   ;;
20639
20640 sysv4*MP*)
20641   if test -d /usr/nec ;then
20642     version_type=linux
20643     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20644     soname_spec='$libname${shared_ext}.$major'
20645     shlibpath_var=LD_LIBRARY_PATH
20646   fi
20647   ;;
20648
20649 uts4*)
20650   version_type=linux
20651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20652   soname_spec='${libname}${release}${shared_ext}$major'
20653   shlibpath_var=LD_LIBRARY_PATH
20654   ;;
20655
20656 *)
20657   dynamic_linker=no
20658   ;;
20659 esac
20660 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20661 echo "${ECHO_T}$dynamic_linker" >&6
20662 test "$dynamic_linker" = no && can_build_shared=no
20663
20664 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20665 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20666 hardcode_action_F77=
20667 if test -n "$hardcode_libdir_flag_spec_F77" || \
20668    test -n "$runpath_var_F77" || \
20669    test "X$hardcode_automatic_F77" = "Xyes" ; then
20670
20671   # We can hardcode non-existant directories.
20672   if test "$hardcode_direct_F77" != no &&
20673      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20674      # have to relink, otherwise we might link with an installed library
20675      # when we should be linking with a yet-to-be-installed one
20676      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20677      test "$hardcode_minus_L_F77" != no; then
20678     # Linking always hardcodes the temporary library directory.
20679     hardcode_action_F77=relink
20680   else
20681     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20682     hardcode_action_F77=immediate
20683   fi
20684 else
20685   # We cannot hardcode anything, or else we can only hardcode existing
20686   # directories.
20687   hardcode_action_F77=unsupported
20688 fi
20689 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20690 echo "${ECHO_T}$hardcode_action_F77" >&6
20691
20692 if test "$hardcode_action_F77" = relink; then
20693   # Fast installation is not supported
20694   enable_fast_install=no
20695 elif test "$shlibpath_overrides_runpath" = yes ||
20696      test "$enable_shared" = no; then
20697   # Fast installation is not necessary
20698   enable_fast_install=needless
20699 fi
20700
20701 striplib=
20702 old_striplib=
20703 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20704 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20705 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20706   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20707   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20708   echo "$as_me:$LINENO: result: yes" >&5
20709 echo "${ECHO_T}yes" >&6
20710 else
20711 # FIXME - insert some real tests, host_os isn't really good enough
20712   case $host_os in
20713    darwin*)
20714        if test -n "$STRIP" ; then
20715          striplib="$STRIP -x"
20716          echo "$as_me:$LINENO: result: yes" >&5
20717 echo "${ECHO_T}yes" >&6
20718        else
20719   echo "$as_me:$LINENO: result: no" >&5
20720 echo "${ECHO_T}no" >&6
20721 fi
20722        ;;
20723    *)
20724   echo "$as_me:$LINENO: result: no" >&5
20725 echo "${ECHO_T}no" >&6
20726     ;;
20727   esac
20728 fi
20729
20730
20731
20732 # The else clause should only fire when bootstrapping the
20733 # libtool distribution, otherwise you forgot to ship ltmain.sh
20734 # with your package, and you will get complaints that there are
20735 # no rules to generate ltmain.sh.
20736 if test -f "$ltmain"; then
20737   # See if we are running on zsh, and set the options which allow our commands through
20738   # without removal of \ escapes.
20739   if test -n "${ZSH_VERSION+set}" ; then
20740     setopt NO_GLOB_SUBST
20741   fi
20742   # Now quote all the things that may contain metacharacters while being
20743   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20744   # variables and quote the copies for generation of the libtool script.
20745   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20746     SED SHELL STRIP \
20747     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20748     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20749     deplibs_check_method reload_flag reload_cmds need_locks \
20750     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20751     lt_cv_sys_global_symbol_to_c_name_address \
20752     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20753     old_postinstall_cmds old_postuninstall_cmds \
20754     compiler_F77 \
20755     CC_F77 \
20756     LD_F77 \
20757     lt_prog_compiler_wl_F77 \
20758     lt_prog_compiler_pic_F77 \
20759     lt_prog_compiler_static_F77 \
20760     lt_prog_compiler_no_builtin_flag_F77 \
20761     export_dynamic_flag_spec_F77 \
20762     thread_safe_flag_spec_F77 \
20763     whole_archive_flag_spec_F77 \
20764     enable_shared_with_static_runtimes_F77 \
20765     old_archive_cmds_F77 \
20766     old_archive_from_new_cmds_F77 \
20767     predep_objects_F77 \
20768     postdep_objects_F77 \
20769     predeps_F77 \
20770     postdeps_F77 \
20771     compiler_lib_search_path_F77 \
20772     archive_cmds_F77 \
20773     archive_expsym_cmds_F77 \
20774     postinstall_cmds_F77 \
20775     postuninstall_cmds_F77 \
20776     old_archive_from_expsyms_cmds_F77 \
20777     allow_undefined_flag_F77 \
20778     no_undefined_flag_F77 \
20779     export_symbols_cmds_F77 \
20780     hardcode_libdir_flag_spec_F77 \
20781     hardcode_libdir_flag_spec_ld_F77 \
20782     hardcode_libdir_separator_F77 \
20783     hardcode_automatic_F77 \
20784     module_cmds_F77 \
20785     module_expsym_cmds_F77 \
20786     lt_cv_prog_compiler_c_o_F77 \
20787     exclude_expsyms_F77 \
20788     include_expsyms_F77; do
20789
20790     case $var in
20791     old_archive_cmds_F77 | \
20792     old_archive_from_new_cmds_F77 | \
20793     archive_cmds_F77 | \
20794     archive_expsym_cmds_F77 | \
20795     module_cmds_F77 | \
20796     module_expsym_cmds_F77 | \
20797     old_archive_from_expsyms_cmds_F77 | \
20798     export_symbols_cmds_F77 | \
20799     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20800     postinstall_cmds | postuninstall_cmds | \
20801     old_postinstall_cmds | old_postuninstall_cmds | \
20802     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20803       # Double-quote double-evaled strings.
20804       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20805       ;;
20806     *)
20807       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20808       ;;
20809     esac
20810   done
20811
20812   case $lt_echo in
20813   *'\$0 --fallback-echo"')
20814     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20815     ;;
20816   esac
20817
20818 cfgfile="$ofile"
20819
20820   cat <<__EOF__ >> "$cfgfile"
20821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20822
20823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20824
20825 # Shell to use when invoking shell scripts.
20826 SHELL=$lt_SHELL
20827
20828 # Whether or not to build shared libraries.
20829 build_libtool_libs=$enable_shared
20830
20831 # Whether or not to build static libraries.
20832 build_old_libs=$enable_static
20833
20834 # Whether or not to add -lc for building shared libraries.
20835 build_libtool_need_lc=$archive_cmds_need_lc_F77
20836
20837 # Whether or not to disallow shared libs when runtime libs are static
20838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20839
20840 # Whether or not to optimize for fast installation.
20841 fast_install=$enable_fast_install
20842
20843 # The host system.
20844 host_alias=$host_alias
20845 host=$host
20846
20847 # An echo program that does not interpret backslashes.
20848 echo=$lt_echo
20849
20850 # The archiver.
20851 AR=$lt_AR
20852 AR_FLAGS=$lt_AR_FLAGS
20853
20854 # A C compiler.
20855 LTCC=$lt_LTCC
20856
20857 # A language-specific compiler.
20858 CC=$lt_compiler_F77
20859
20860 # Is the compiler the GNU C compiler?
20861 with_gcc=$GCC_F77
20862
20863 # An ERE matcher.
20864 EGREP=$lt_EGREP
20865
20866 # The linker used to build libraries.
20867 LD=$lt_LD_F77
20868
20869 # Whether we need hard or soft links.
20870 LN_S=$lt_LN_S
20871
20872 # A BSD-compatible nm program.
20873 NM=$lt_NM
20874
20875 # A symbol stripping program
20876 STRIP=$lt_STRIP
20877
20878 # Used to examine libraries when file_magic_cmd begins "file"
20879 MAGIC_CMD=$MAGIC_CMD
20880
20881 # Used on cygwin: DLL creation program.
20882 DLLTOOL="$DLLTOOL"
20883
20884 # Used on cygwin: object dumper.
20885 OBJDUMP="$OBJDUMP"
20886
20887 # Used on cygwin: assembler.
20888 AS="$AS"
20889
20890 # The name of the directory that contains temporary libtool files.
20891 objdir=$objdir
20892
20893 # How to create reloadable object files.
20894 reload_flag=$lt_reload_flag
20895 reload_cmds=$lt_reload_cmds
20896
20897 # How to pass a linker flag through the compiler.
20898 wl=$lt_lt_prog_compiler_wl_F77
20899
20900 # Object file suffix (normally "o").
20901 objext="$ac_objext"
20902
20903 # Old archive suffix (normally "a").
20904 libext="$libext"
20905
20906 # Shared library suffix (normally ".so").
20907 shrext_cmds='$shrext_cmds'
20908
20909 # Executable file suffix (normally "").
20910 exeext="$exeext"
20911
20912 # Additional compiler flags for building library objects.
20913 pic_flag=$lt_lt_prog_compiler_pic_F77
20914 pic_mode=$pic_mode
20915
20916 # What is the maximum length of a command?
20917 max_cmd_len=$lt_cv_sys_max_cmd_len
20918
20919 # Does compiler simultaneously support -c and -o options?
20920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20921
20922 # Must we lock files when doing compilation ?
20923 need_locks=$lt_need_locks
20924
20925 # Do we need the lib prefix for modules?
20926 need_lib_prefix=$need_lib_prefix
20927
20928 # Do we need a version for libraries?
20929 need_version=$need_version
20930
20931 # Whether dlopen is supported.
20932 dlopen_support=$enable_dlopen
20933
20934 # Whether dlopen of programs is supported.
20935 dlopen_self=$enable_dlopen_self
20936
20937 # Whether dlopen of statically linked programs is supported.
20938 dlopen_self_static=$enable_dlopen_self_static
20939
20940 # Compiler flag to prevent dynamic linking.
20941 link_static_flag=$lt_lt_prog_compiler_static_F77
20942
20943 # Compiler flag to turn off builtin functions.
20944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20945
20946 # Compiler flag to allow reflexive dlopens.
20947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20948
20949 # Compiler flag to generate shared objects directly from archives.
20950 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20951
20952 # Compiler flag to generate thread-safe objects.
20953 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20954
20955 # Library versioning type.
20956 version_type=$version_type
20957
20958 # Format of library name prefix.
20959 libname_spec=$lt_libname_spec
20960
20961 # List of archive names.  First name is the real one, the rest are links.
20962 # The last name is the one that the linker finds with -lNAME.
20963 library_names_spec=$lt_library_names_spec
20964
20965 # The coded name of the library, if different from the real name.
20966 soname_spec=$lt_soname_spec
20967
20968 # Commands used to build and install an old-style archive.
20969 RANLIB=$lt_RANLIB
20970 old_archive_cmds=$lt_old_archive_cmds_F77
20971 old_postinstall_cmds=$lt_old_postinstall_cmds
20972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20973
20974 # Create an old-style archive from a shared archive.
20975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20976
20977 # Create a temporary old-style archive to link instead of a shared archive.
20978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20979
20980 # Commands used to build and install a shared archive.
20981 archive_cmds=$lt_archive_cmds_F77
20982 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20983 postinstall_cmds=$lt_postinstall_cmds
20984 postuninstall_cmds=$lt_postuninstall_cmds
20985
20986 # Commands used to build a loadable module (assumed same as above if empty)
20987 module_cmds=$lt_module_cmds_F77
20988 module_expsym_cmds=$lt_module_expsym_cmds_F77
20989
20990 # Commands to strip libraries.
20991 old_striplib=$lt_old_striplib
20992 striplib=$lt_striplib
20993
20994 # Dependencies to place before the objects being linked to create a
20995 # shared library.
20996 predep_objects=$lt_predep_objects_F77
20997
20998 # Dependencies to place after the objects being linked to create a
20999 # shared library.
21000 postdep_objects=$lt_postdep_objects_F77
21001
21002 # Dependencies to place before the objects being linked to create a
21003 # shared library.
21004 predeps=$lt_predeps_F77
21005
21006 # Dependencies to place after the objects being linked to create a
21007 # shared library.
21008 postdeps=$lt_postdeps_F77
21009
21010 # The library search path used internally by the compiler when linking
21011 # a shared library.
21012 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21013
21014 # Method to check whether dependent libraries are shared objects.
21015 deplibs_check_method=$lt_deplibs_check_method
21016
21017 # Command to use when deplibs_check_method == file_magic.
21018 file_magic_cmd=$lt_file_magic_cmd
21019
21020 # Flag that allows shared libraries with undefined symbols to be built.
21021 allow_undefined_flag=$lt_allow_undefined_flag_F77
21022
21023 # Flag that forces no undefined symbols.
21024 no_undefined_flag=$lt_no_undefined_flag_F77
21025
21026 # Commands used to finish a libtool library installation in a directory.
21027 finish_cmds=$lt_finish_cmds
21028
21029 # Same as above, but a single script fragment to be evaled but not shown.
21030 finish_eval=$lt_finish_eval
21031
21032 # Take the output of nm and produce a listing of raw symbols and C names.
21033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21034
21035 # Transform the output of nm in a proper C declaration
21036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21037
21038 # Transform the output of nm in a C name address pair
21039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21040
21041 # This is the shared library runtime path variable.
21042 runpath_var=$runpath_var
21043
21044 # This is the shared library path variable.
21045 shlibpath_var=$shlibpath_var
21046
21047 # Is shlibpath searched before the hard-coded library search path?
21048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21049
21050 # How to hardcode a shared library path into an executable.
21051 hardcode_action=$hardcode_action_F77
21052
21053 # Whether we should hardcode library paths into libraries.
21054 hardcode_into_libs=$hardcode_into_libs
21055
21056 # Flag to hardcode \$libdir into a binary during linking.
21057 # This must work even if \$libdir does not exist.
21058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21059
21060 # If ld is used when linking, flag to hardcode \$libdir into
21061 # a binary during linking. This must work even if \$libdir does
21062 # not exist.
21063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21064
21065 # Whether we need a single -rpath flag with a separated argument.
21066 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21067
21068 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21069 # resulting binary.
21070 hardcode_direct=$hardcode_direct_F77
21071
21072 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21073 # resulting binary.
21074 hardcode_minus_L=$hardcode_minus_L_F77
21075
21076 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21077 # the resulting binary.
21078 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21079
21080 # Set to yes if building a shared library automatically hardcodes DIR into the library
21081 # and all subsequent libraries and executables linked against it.
21082 hardcode_automatic=$hardcode_automatic_F77
21083
21084 # Variables whose values should be saved in libtool wrapper scripts and
21085 # restored at relink time.
21086 variables_saved_for_relink="$variables_saved_for_relink"
21087
21088 # Whether libtool must link a program against all its dependency libraries.
21089 link_all_deplibs=$link_all_deplibs_F77
21090
21091 # Compile-time system search path for libraries
21092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21093
21094 # Run-time system search path for libraries
21095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21096
21097 # Fix the shell variable \$srcfile for the compiler.
21098 fix_srcfile_path="$fix_srcfile_path_F77"
21099
21100 # Set to yes if exported symbols are required.
21101 always_export_symbols=$always_export_symbols_F77
21102
21103 # The commands to list exported symbols.
21104 export_symbols_cmds=$lt_export_symbols_cmds_F77
21105
21106 # The commands to extract the exported symbol list from a shared archive.
21107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21108
21109 # Symbols that should not be listed in the preloaded symbols.
21110 exclude_expsyms=$lt_exclude_expsyms_F77
21111
21112 # Symbols that must always be exported.
21113 include_expsyms=$lt_include_expsyms_F77
21114
21115 # ### END LIBTOOL TAG CONFIG: $tagname
21116
21117 __EOF__
21118
21119
21120 else
21121   # If there is no Makefile yet, we rely on a make rule to execute
21122   # `config.status --recheck' to rerun these tests and create the
21123   # libtool script then.
21124   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21125   if test -f "$ltmain_in"; then
21126     test -f Makefile && make "$ltmain"
21127   fi
21128 fi
21129
21130
21131 ac_ext=c
21132 ac_cpp='$CPP $CPPFLAGS'
21133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137 CC="$lt_save_CC"
21138
21139         else
21140           tagname=""
21141         fi
21142         ;;
21143
21144       GCJ)
21145         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21146           ac_ext=c
21147 ac_cpp='$CPP $CPPFLAGS'
21148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21151
21152
21153 # Source file extension for Java test sources.
21154 ac_ext=java
21155
21156 # Object file extension for compiled Java test sources.
21157 objext=o
21158 objext_GCJ=$objext
21159
21160 # Code to be used in simple compile tests
21161 lt_simple_compile_test_code="class foo {}\n"
21162
21163 # Code to be used in simple link tests
21164 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21165
21166 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21167
21168 # If no C compiler was specified, use CC.
21169 LTCC=${LTCC-"$CC"}
21170
21171 # Allow CC to be a program name with arguments.
21172 compiler=$CC
21173
21174
21175 # Allow CC to be a program name with arguments.
21176 lt_save_CC="$CC"
21177 CC=${GCJ-"gcj"}
21178 compiler=$CC
21179 compiler_GCJ=$CC
21180
21181 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21182 archive_cmds_need_lc_GCJ=no
21183
21184
21185 lt_prog_compiler_no_builtin_flag_GCJ=
21186
21187 if test "$GCC" = yes; then
21188   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21189
21190
21191 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21192 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21193 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196   lt_cv_prog_compiler_rtti_exceptions=no
21197   ac_outfile=conftest.$ac_objext
21198    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21199    lt_compiler_flag="-fno-rtti -fno-exceptions"
21200    # Insert the option either (1) after the last *FLAGS variable, or
21201    # (2) before a word containing "conftest.", or (3) at the end.
21202    # Note that $ac_compile itself does not contain backslashes and begins
21203    # with a dollar sign (not a hyphen), so the echo should work correctly.
21204    # The option is referenced via a variable to avoid confusing sed.
21205    lt_compile=`echo "$ac_compile" | $SED \
21206    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21208    -e 's:$: $lt_compiler_flag:'`
21209    (eval echo "\"\$as_me:21209: $lt_compile\"" >&5)
21210    (eval "$lt_compile" 2>conftest.err)
21211    ac_status=$?
21212    cat conftest.err >&5
21213    echo "$as_me:21213: \$? = $ac_status" >&5
21214    if (exit $ac_status) && test -s "$ac_outfile"; then
21215      # The compiler can only warn and ignore the option if not recognized
21216      # So say no if there are warnings
21217      if test ! -s conftest.err; then
21218        lt_cv_prog_compiler_rtti_exceptions=yes
21219      fi
21220    fi
21221    $rm conftest*
21222
21223 fi
21224 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21225 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21226
21227 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21228     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21229 else
21230     :
21231 fi
21232
21233 fi
21234
21235 lt_prog_compiler_wl_GCJ=
21236 lt_prog_compiler_pic_GCJ=
21237 lt_prog_compiler_static_GCJ=
21238
21239 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21240 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21241
21242   if test "$GCC" = yes; then
21243     lt_prog_compiler_wl_GCJ='-Wl,'
21244     lt_prog_compiler_static_GCJ='-static'
21245
21246     case $host_os in
21247       aix*)
21248       # All AIX code is PIC.
21249       if test "$host_cpu" = ia64; then
21250         # AIX 5 now supports IA64 processor
21251         lt_prog_compiler_static_GCJ='-Bstatic'
21252       fi
21253       ;;
21254
21255     amigaos*)
21256       # FIXME: we need at least 68020 code to build shared libraries, but
21257       # adding the `-m68020' flag to GCC prevents building anything better,
21258       # like `-m68040'.
21259       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21260       ;;
21261
21262     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21263       # PIC is the default for these OSes.
21264       ;;
21265
21266     mingw* | pw32* | os2*)
21267       # This hack is so that the source file can tell whether it is being
21268       # built for inclusion in a dll (and should export symbols for example).
21269       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21270       ;;
21271
21272     darwin* | rhapsody*)
21273       # PIC is the default on this platform
21274       # Common symbols not allowed in MH_DYLIB files
21275       lt_prog_compiler_pic_GCJ='-fno-common'
21276       ;;
21277
21278     msdosdjgpp*)
21279       # Just because we use GCC doesn't mean we suddenly get shared libraries
21280       # on systems that don't support them.
21281       lt_prog_compiler_can_build_shared_GCJ=no
21282       enable_shared=no
21283       ;;
21284
21285     sysv4*MP*)
21286       if test -d /usr/nec; then
21287         lt_prog_compiler_pic_GCJ=-Kconform_pic
21288       fi
21289       ;;
21290
21291     hpux*)
21292       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21293       # not for PA HP-UX.
21294       case "$host_cpu" in
21295       hppa*64*|ia64*)
21296         # +Z the default
21297         ;;
21298       *)
21299         lt_prog_compiler_pic_GCJ='-fPIC'
21300         ;;
21301       esac
21302       ;;
21303
21304     *)
21305       lt_prog_compiler_pic_GCJ='-fPIC'
21306       ;;
21307     esac
21308   else
21309     # PORTME Check for flag to pass linker flags through the system compiler.
21310     case $host_os in
21311     aix*)
21312       lt_prog_compiler_wl_GCJ='-Wl,'
21313       if test "$host_cpu" = ia64; then
21314         # AIX 5 now supports IA64 processor
21315         lt_prog_compiler_static_GCJ='-Bstatic'
21316       else
21317         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21318       fi
21319       ;;
21320       darwin*)
21321         # PIC is the default on this platform
21322         # Common symbols not allowed in MH_DYLIB files
21323        case "$cc_basename" in
21324          xlc*)
21325          lt_prog_compiler_pic_GCJ='-qnocommon'
21326          lt_prog_compiler_wl_GCJ='-Wl,'
21327          ;;
21328        esac
21329        ;;
21330
21331     mingw* | pw32* | os2*)
21332       # This hack is so that the source file can tell whether it is being
21333       # built for inclusion in a dll (and should export symbols for example).
21334       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21335       ;;
21336
21337     hpux9* | hpux10* | hpux11*)
21338       lt_prog_compiler_wl_GCJ='-Wl,'
21339       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21340       # not for PA HP-UX.
21341       case "$host_cpu" in
21342       hppa*64*|ia64*)
21343         # +Z the default
21344         ;;
21345       *)
21346         lt_prog_compiler_pic_GCJ='+Z'
21347         ;;
21348       esac
21349       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21350       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21351       ;;
21352
21353     irix5* | irix6* | nonstopux*)
21354       lt_prog_compiler_wl_GCJ='-Wl,'
21355       # PIC (with -KPIC) is the default.
21356       lt_prog_compiler_static_GCJ='-non_shared'
21357       ;;
21358
21359     newsos6)
21360       lt_prog_compiler_pic_GCJ='-KPIC'
21361       lt_prog_compiler_static_GCJ='-Bstatic'
21362       ;;
21363
21364     linux*)
21365       case $CC in
21366       icc* | ecc*)
21367         lt_prog_compiler_wl_GCJ='-Wl,'
21368         lt_prog_compiler_pic_GCJ='-KPIC'
21369         lt_prog_compiler_static_GCJ='-static'
21370         ;;
21371       ccc*)
21372         lt_prog_compiler_wl_GCJ='-Wl,'
21373         # All Alpha code is PIC.
21374         lt_prog_compiler_static_GCJ='-non_shared'
21375         ;;
21376       esac
21377       ;;
21378
21379     osf3* | osf4* | osf5*)
21380       lt_prog_compiler_wl_GCJ='-Wl,'
21381       # All OSF/1 code is PIC.
21382       lt_prog_compiler_static_GCJ='-non_shared'
21383       ;;
21384
21385     sco3.2v5*)
21386       lt_prog_compiler_pic_GCJ='-Kpic'
21387       lt_prog_compiler_static_GCJ='-dn'
21388       ;;
21389
21390     solaris*)
21391       lt_prog_compiler_wl_GCJ='-Wl,'
21392       lt_prog_compiler_pic_GCJ='-KPIC'
21393       lt_prog_compiler_static_GCJ='-Bstatic'
21394       ;;
21395
21396     sunos4*)
21397       lt_prog_compiler_wl_GCJ='-Qoption ld '
21398       lt_prog_compiler_pic_GCJ='-PIC'
21399       lt_prog_compiler_static_GCJ='-Bstatic'
21400       ;;
21401
21402     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21403       lt_prog_compiler_wl_GCJ='-Wl,'
21404       lt_prog_compiler_pic_GCJ='-KPIC'
21405       lt_prog_compiler_static_GCJ='-Bstatic'
21406       ;;
21407
21408     sysv4*MP*)
21409       if test -d /usr/nec ;then
21410         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21411         lt_prog_compiler_static_GCJ='-Bstatic'
21412       fi
21413       ;;
21414
21415     uts4*)
21416       lt_prog_compiler_pic_GCJ='-pic'
21417       lt_prog_compiler_static_GCJ='-Bstatic'
21418       ;;
21419
21420     *)
21421       lt_prog_compiler_can_build_shared_GCJ=no
21422       ;;
21423     esac
21424   fi
21425
21426 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21427 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21428
21429 #
21430 # Check to make sure the PIC flag actually works.
21431 #
21432 if test -n "$lt_prog_compiler_pic_GCJ"; then
21433
21434 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21435 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21436 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21437   echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439   lt_prog_compiler_pic_works_GCJ=no
21440   ac_outfile=conftest.$ac_objext
21441    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21442    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21443    # Insert the option either (1) after the last *FLAGS variable, or
21444    # (2) before a word containing "conftest.", or (3) at the end.
21445    # Note that $ac_compile itself does not contain backslashes and begins
21446    # with a dollar sign (not a hyphen), so the echo should work correctly.
21447    # The option is referenced via a variable to avoid confusing sed.
21448    lt_compile=`echo "$ac_compile" | $SED \
21449    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21451    -e 's:$: $lt_compiler_flag:'`
21452    (eval echo "\"\$as_me:21452: $lt_compile\"" >&5)
21453    (eval "$lt_compile" 2>conftest.err)
21454    ac_status=$?
21455    cat conftest.err >&5
21456    echo "$as_me:21456: \$? = $ac_status" >&5
21457    if (exit $ac_status) && test -s "$ac_outfile"; then
21458      # The compiler can only warn and ignore the option if not recognized
21459      # So say no if there are warnings
21460      if test ! -s conftest.err; then
21461        lt_prog_compiler_pic_works_GCJ=yes
21462      fi
21463    fi
21464    $rm conftest*
21465
21466 fi
21467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21468 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21469
21470 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21471     case $lt_prog_compiler_pic_GCJ in
21472      "" | " "*) ;;
21473      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21474      esac
21475 else
21476     lt_prog_compiler_pic_GCJ=
21477      lt_prog_compiler_can_build_shared_GCJ=no
21478 fi
21479
21480 fi
21481 case "$host_os" in
21482   # For platforms which do not support PIC, -DPIC is meaningless:
21483   *djgpp*)
21484     lt_prog_compiler_pic_GCJ=
21485     ;;
21486   *)
21487     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21488     ;;
21489 esac
21490
21491 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21493 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21494   echo $ECHO_N "(cached) $ECHO_C" >&6
21495 else
21496   lt_cv_prog_compiler_c_o_GCJ=no
21497    $rm -r conftest 2>/dev/null
21498    mkdir conftest
21499    cd conftest
21500    mkdir out
21501    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21502
21503    lt_compiler_flag="-o out/conftest2.$ac_objext"
21504    # Insert the option either (1) after the last *FLAGS variable, or
21505    # (2) before a word containing "conftest.", or (3) at the end.
21506    # Note that $ac_compile itself does not contain backslashes and begins
21507    # with a dollar sign (not a hyphen), so the echo should work correctly.
21508    lt_compile=`echo "$ac_compile" | $SED \
21509    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21511    -e 's:$: $lt_compiler_flag:'`
21512    (eval echo "\"\$as_me:21512: $lt_compile\"" >&5)
21513    (eval "$lt_compile" 2>out/conftest.err)
21514    ac_status=$?
21515    cat out/conftest.err >&5
21516    echo "$as_me:21516: \$? = $ac_status" >&5
21517    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21518    then
21519      # The compiler can only warn and ignore the option if not recognized
21520      # So say no if there are warnings
21521      if test ! -s out/conftest.err; then
21522        lt_cv_prog_compiler_c_o_GCJ=yes
21523      fi
21524    fi
21525    chmod u+w .
21526    $rm conftest*
21527    # SGI C++ compiler will create directory out/ii_files/ for
21528    # template instantiation
21529    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21530    $rm out/* && rmdir out
21531    cd ..
21532    rmdir conftest
21533    $rm conftest*
21534
21535 fi
21536 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21538
21539
21540 hard_links="nottested"
21541 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21542   # do not overwrite the value of need_locks provided by the user
21543   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21545   hard_links=yes
21546   $rm conftest*
21547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21548   touch conftest.a
21549   ln conftest.a conftest.b 2>&5 || hard_links=no
21550   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21551   echo "$as_me:$LINENO: result: $hard_links" >&5
21552 echo "${ECHO_T}$hard_links" >&6
21553   if test "$hard_links" = no; then
21554     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21556     need_locks=warn
21557   fi
21558 else
21559   need_locks=no
21560 fi
21561
21562 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21564
21565   runpath_var=
21566   allow_undefined_flag_GCJ=
21567   enable_shared_with_static_runtimes_GCJ=no
21568   archive_cmds_GCJ=
21569   archive_expsym_cmds_GCJ=
21570   old_archive_From_new_cmds_GCJ=
21571   old_archive_from_expsyms_cmds_GCJ=
21572   export_dynamic_flag_spec_GCJ=
21573   whole_archive_flag_spec_GCJ=
21574   thread_safe_flag_spec_GCJ=
21575   hardcode_libdir_flag_spec_GCJ=
21576   hardcode_libdir_flag_spec_ld_GCJ=
21577   hardcode_libdir_separator_GCJ=
21578   hardcode_direct_GCJ=no
21579   hardcode_minus_L_GCJ=no
21580   hardcode_shlibpath_var_GCJ=unsupported
21581   link_all_deplibs_GCJ=unknown
21582   hardcode_automatic_GCJ=no
21583   module_cmds_GCJ=
21584   module_expsym_cmds_GCJ=
21585   always_export_symbols_GCJ=no
21586   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21587   # include_expsyms should be a list of space-separated symbols to be *always*
21588   # included in the symbol list
21589   include_expsyms_GCJ=
21590   # exclude_expsyms can be an extended regexp of symbols to exclude
21591   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21592   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21593   # as well as any symbol that contains `d'.
21594   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21595   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21596   # platforms (ab)use it in PIC code, but their linkers get confused if
21597   # the symbol is explicitly referenced.  Since portable code cannot
21598   # rely on this symbol name, it's probably fine to never include it in
21599   # preloaded symbol tables.
21600   extract_expsyms_cmds=
21601
21602   case $host_os in
21603   cygwin* | mingw* | pw32*)
21604     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21605     # When not using gcc, we currently assume that we are using
21606     # Microsoft Visual C++.
21607     if test "$GCC" != yes; then
21608       with_gnu_ld=no
21609     fi
21610     ;;
21611   openbsd*)
21612     with_gnu_ld=no
21613     ;;
21614   esac
21615
21616   ld_shlibs_GCJ=yes
21617   if test "$with_gnu_ld" = yes; then
21618     # If archive_cmds runs LD, not CC, wlarc should be empty
21619     wlarc='${wl}'
21620
21621     # See if GNU ld supports shared libraries.
21622     case $host_os in
21623     aix3* | aix4* | aix5*)
21624       # On AIX/PPC, the GNU linker is very broken
21625       if test "$host_cpu" != ia64; then
21626         ld_shlibs_GCJ=no
21627         cat <<EOF 1>&2
21628
21629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21630 *** to be unable to reliably create shared libraries on AIX.
21631 *** Therefore, libtool is disabling shared libraries support.  If you
21632 *** really care for shared libraries, you may want to modify your PATH
21633 *** so that a non-GNU linker is found, and then restart.
21634
21635 EOF
21636       fi
21637       ;;
21638
21639     amigaos*)
21640       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)'
21641       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21642       hardcode_minus_L_GCJ=yes
21643
21644       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21645       # that the semantics of dynamic libraries on AmigaOS, at least up
21646       # to version 4, is to share data among multiple programs linked
21647       # with the same dynamic library.  Since this doesn't match the
21648       # behavior of shared libraries on other platforms, we can't use
21649       # them.
21650       ld_shlibs_GCJ=no
21651       ;;
21652
21653     beos*)
21654       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21655         allow_undefined_flag_GCJ=unsupported
21656         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21657         # support --undefined.  This deserves some investigation.  FIXME
21658         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21659       else
21660         ld_shlibs_GCJ=no
21661       fi
21662       ;;
21663
21664     cygwin* | mingw* | pw32*)
21665       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21666       # as there is no search path for DLLs.
21667       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21668       allow_undefined_flag_GCJ=unsupported
21669       always_export_symbols_GCJ=no
21670       enable_shared_with_static_runtimes_GCJ=yes
21671       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21672
21673       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21674         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21675         # If the export-symbols file already is a .def file (1st line
21676         # is EXPORTS), use it as is; otherwise, prepend...
21677         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21678           cp $export_symbols $output_objdir/$soname.def;
21679         else
21680           echo EXPORTS > $output_objdir/$soname.def;
21681           cat $export_symbols >> $output_objdir/$soname.def;
21682         fi~
21683         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21684       else
21685         ld_shlibs=no
21686       fi
21687       ;;
21688
21689     netbsd*)
21690       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21691         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21692         wlarc=
21693       else
21694         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21695         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21696       fi
21697       ;;
21698
21699     solaris* | sysv5*)
21700       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21701         ld_shlibs_GCJ=no
21702         cat <<EOF 1>&2
21703
21704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21705 *** create shared libraries on Solaris systems.  Therefore, libtool
21706 *** is disabling shared libraries support.  We urge you to upgrade GNU
21707 *** binutils to release 2.9.1 or newer.  Another option is to modify
21708 *** your PATH or compiler configuration so that the native linker is
21709 *** used, and then restart.
21710
21711 EOF
21712       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21713         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21714         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21715       else
21716         ld_shlibs_GCJ=no
21717       fi
21718       ;;
21719
21720     sunos4*)
21721       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21722       wlarc=
21723       hardcode_direct_GCJ=yes
21724       hardcode_shlibpath_var_GCJ=no
21725       ;;
21726
21727   linux*)
21728     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21729         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21730         archive_cmds_GCJ="$tmp_archive_cmds"
21731       supports_anon_versioning=no
21732       case `$LD -v 2>/dev/null` in
21733         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21734         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21735         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21736         *\ 2.11.*) ;; # other 2.11 versions
21737         *) supports_anon_versioning=yes ;;
21738       esac
21739       if test $supports_anon_versioning = yes; then
21740         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21742 $echo "local: *; };" >> $output_objdir/$libname.ver~
21743         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21744       else
21745         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21746       fi
21747     else
21748       ld_shlibs_GCJ=no
21749     fi
21750     ;;
21751
21752     *)
21753       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21755         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21756       else
21757         ld_shlibs_GCJ=no
21758       fi
21759       ;;
21760     esac
21761
21762     if test "$ld_shlibs_GCJ" = yes; then
21763       runpath_var=LD_RUN_PATH
21764       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21765       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21766       # ancient GNU ld didn't support --whole-archive et. al.
21767       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21768         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21769       else
21770         whole_archive_flag_spec_GCJ=
21771       fi
21772     fi
21773   else
21774     # PORTME fill in a description of your system's linker (not GNU ld)
21775     case $host_os in
21776     aix3*)
21777       allow_undefined_flag_GCJ=unsupported
21778       always_export_symbols_GCJ=yes
21779       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'
21780       # Note: this linker hardcodes the directories in LIBPATH if there
21781       # are no directories specified by -L.
21782       hardcode_minus_L_GCJ=yes
21783       if test "$GCC" = yes && test -z "$link_static_flag"; then
21784         # Neither direct hardcoding nor static linking is supported with a
21785         # broken collect2.
21786         hardcode_direct_GCJ=unsupported
21787       fi
21788       ;;
21789
21790     aix4* | aix5*)
21791       if test "$host_cpu" = ia64; then
21792         # On IA64, the linker does run time linking by default, so we don't
21793         # have to do anything special.
21794         aix_use_runtimelinking=no
21795         exp_sym_flag='-Bexport'
21796         no_entry_flag=""
21797       else
21798         # If we're using GNU nm, then we don't want the "-C" option.
21799         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21800         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21801           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'
21802         else
21803           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'
21804         fi
21805         aix_use_runtimelinking=no
21806
21807         # Test if we are trying to use run time linking or normal
21808         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21809         # need to do runtime linking.
21810         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21811           for ld_flag in $LDFLAGS; do
21812           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21813             aix_use_runtimelinking=yes
21814             break
21815           fi
21816           done
21817         esac
21818
21819         exp_sym_flag='-bexport'
21820         no_entry_flag='-bnoentry'
21821       fi
21822
21823       # When large executables or shared objects are built, AIX ld can
21824       # have problems creating the table of contents.  If linking a library
21825       # or program results in "error TOC overflow" add -mminimal-toc to
21826       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21827       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21828
21829       archive_cmds_GCJ=''
21830       hardcode_direct_GCJ=yes
21831       hardcode_libdir_separator_GCJ=':'
21832       link_all_deplibs_GCJ=yes
21833
21834       if test "$GCC" = yes; then
21835         case $host_os in aix4.012|aix4.012.*)
21836         # We only want to do this on AIX 4.2 and lower, the check
21837         # below for broken collect2 doesn't work under 4.3+
21838           collect2name=`${CC} -print-prog-name=collect2`
21839           if test -f "$collect2name" && \
21840            strings "$collect2name" | grep resolve_lib_name >/dev/null
21841           then
21842           # We have reworked collect2
21843           hardcode_direct_GCJ=yes
21844           else
21845           # We have old collect2
21846           hardcode_direct_GCJ=unsupported
21847           # It fails to find uninstalled libraries when the uninstalled
21848           # path is not listed in the libpath.  Setting hardcode_minus_L
21849           # to unsupported forces relinking
21850           hardcode_minus_L_GCJ=yes
21851           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21852           hardcode_libdir_separator_GCJ=
21853           fi
21854         esac
21855         shared_flag='-shared'
21856       else
21857         # not using gcc
21858         if test "$host_cpu" = ia64; then
21859         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21860         # chokes on -Wl,-G. The following line is correct:
21861           shared_flag='-G'
21862         else
21863         if test "$aix_use_runtimelinking" = yes; then
21864             shared_flag='${wl}-G'
21865           else
21866             shared_flag='${wl}-bM:SRE'
21867         fi
21868         fi
21869       fi
21870
21871       # It seems that -bexpall does not export symbols beginning with
21872       # underscore (_), so it is better to generate a list of symbols to export.
21873       always_export_symbols_GCJ=yes
21874       if test "$aix_use_runtimelinking" = yes; then
21875         # Warning - without using the other runtime loading flags (-brtl),
21876         # -berok will link without error, but may produce a broken library.
21877         allow_undefined_flag_GCJ='-berok'
21878        # Determine the default libpath from the value encoded in an empty executable.
21879        cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885
21886 int
21887 main ()
21888 {
21889
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21896   (eval $ac_link) 2>conftest.er1
21897   ac_status=$?
21898   grep -v '^ *+' conftest.er1 >conftest.err
21899   rm -f conftest.er1
21900   cat conftest.err >&5
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } &&
21903          { ac_try='test -z "$ac_c_werror_flag"
21904                          || test ! -s conftest.err'
21905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906   (eval $ac_try) 2>&5
21907   ac_status=$?
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); }; } &&
21910          { ac_try='test -s conftest$ac_exeext'
21911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912   (eval $ac_try) 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); }; }; then
21916
21917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21918 }'`
21919 # Check for a 64-bit object if we didn't find anything.
21920 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; }
21921 }'`; fi
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926 fi
21927 rm -f conftest.err conftest.$ac_objext \
21928       conftest$ac_exeext conftest.$ac_ext
21929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21930
21931        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21932         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"
21933        else
21934         if test "$host_cpu" = ia64; then
21935           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21936           allow_undefined_flag_GCJ="-z nodefs"
21937           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"
21938         else
21939          # Determine the default libpath from the value encoded in an empty executable.
21940          cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946
21947 int
21948 main ()
21949 {
21950
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957   (eval $ac_link) 2>conftest.er1
21958   ac_status=$?
21959   grep -v '^ *+' conftest.er1 >conftest.err
21960   rm -f conftest.er1
21961   cat conftest.err >&5
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); } &&
21964          { ac_try='test -z "$ac_c_werror_flag"
21965                          || test ! -s conftest.err'
21966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967   (eval $ac_try) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; } &&
21971          { ac_try='test -s conftest$ac_exeext'
21972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973   (eval $ac_try) 2>&5
21974   ac_status=$?
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); }; }; then
21977
21978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21979 }'`
21980 # Check for a 64-bit object if we didn't find anything.
21981 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; }
21982 }'`; fi
21983 else
21984   echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21986
21987 fi
21988 rm -f conftest.err conftest.$ac_objext \
21989       conftest$ac_exeext conftest.$ac_ext
21990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21991
21992          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21993           # Warning - without using the other run time loading flags,
21994           # -berok will link without error, but may produce a broken library.
21995           no_undefined_flag_GCJ=' ${wl}-bernotok'
21996           allow_undefined_flag_GCJ=' ${wl}-berok'
21997           # -bexpall does not export symbols beginning with underscore (_)
21998           always_export_symbols_GCJ=yes
21999           # Exported symbols can be pulled into shared objects from archives
22000           whole_archive_flag_spec_GCJ=' '
22001           archive_cmds_need_lc_GCJ=yes
22002           # This is similar to how AIX traditionally builds it's shared libraries.
22003           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'
22004         fi
22005       fi
22006       ;;
22007
22008     amigaos*)
22009       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)'
22010       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22011       hardcode_minus_L_GCJ=yes
22012       # see comment about different semantics on the GNU ld section
22013       ld_shlibs_GCJ=no
22014       ;;
22015
22016     bsdi[45]*)
22017       export_dynamic_flag_spec_GCJ=-rdynamic
22018       ;;
22019
22020     cygwin* | mingw* | pw32*)
22021       # When not using gcc, we currently assume that we are using
22022       # Microsoft Visual C++.
22023       # hardcode_libdir_flag_spec is actually meaningless, as there is
22024       # no search path for DLLs.
22025       hardcode_libdir_flag_spec_GCJ=' '
22026       allow_undefined_flag_GCJ=unsupported
22027       # Tell ltmain to make .lib files, not .a files.
22028       libext=lib
22029       # Tell ltmain to make .dll files, not .so files.
22030       shrext_cmds=".dll"
22031       # FIXME: Setting linknames here is a bad hack.
22032       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22033       # The linker will automatically build a .lib file if we build a DLL.
22034       old_archive_From_new_cmds_GCJ='true'
22035       # FIXME: Should let the user specify the lib program.
22036       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22037       fix_srcfile_path='`cygpath -w "$srcfile"`'
22038       enable_shared_with_static_runtimes_GCJ=yes
22039       ;;
22040
22041     darwin* | rhapsody*)
22042       case "$host_os" in
22043         rhapsody* | darwin1.[012])
22044          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22045          ;;
22046        *) # Darwin 1.3 on
22047          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22048            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22049          else
22050            case ${MACOSX_DEPLOYMENT_TARGET} in
22051              10.[012])
22052                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22053                ;;
22054              10.*)
22055                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22056                ;;
22057            esac
22058          fi
22059          ;;
22060       esac
22061       archive_cmds_need_lc_GCJ=no
22062       hardcode_direct_GCJ=no
22063       hardcode_automatic_GCJ=yes
22064       hardcode_shlibpath_var_GCJ=unsupported
22065       whole_archive_flag_spec_GCJ=''
22066       link_all_deplibs_GCJ=yes
22067     if test "$GCC" = yes ; then
22068         output_verbose_link_cmd='echo'
22069         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22070       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22071       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22072       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}'
22073       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}'
22074     else
22075       case "$cc_basename" in
22076         xlc*)
22077          output_verbose_link_cmd='echo'
22078          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22079          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22080           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22081          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}'
22082           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}'
22083           ;;
22084        *)
22085          ld_shlibs_GCJ=no
22086           ;;
22087       esac
22088     fi
22089       ;;
22090
22091     dgux*)
22092       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22094       hardcode_shlibpath_var_GCJ=no
22095       ;;
22096
22097     freebsd1*)
22098       ld_shlibs_GCJ=no
22099       ;;
22100
22101     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22102     # support.  Future versions do this automatically, but an explicit c++rt0.o
22103     # does not break anything, and helps significantly (at the cost of a little
22104     # extra space).
22105     freebsd2.2*)
22106       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22107       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22108       hardcode_direct_GCJ=yes
22109       hardcode_shlibpath_var_GCJ=no
22110       ;;
22111
22112     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22113     freebsd2*)
22114       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22115       hardcode_direct_GCJ=yes
22116       hardcode_minus_L_GCJ=yes
22117       hardcode_shlibpath_var_GCJ=no
22118       ;;
22119
22120     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22121     freebsd* | kfreebsd*-gnu)
22122       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22123       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22124       hardcode_direct_GCJ=yes
22125       hardcode_shlibpath_var_GCJ=no
22126       ;;
22127
22128     hpux9*)
22129       if test "$GCC" = yes; then
22130         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'
22131       else
22132         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'
22133       fi
22134       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22135       hardcode_libdir_separator_GCJ=:
22136       hardcode_direct_GCJ=yes
22137
22138       # hardcode_minus_L: Not really in the search PATH,
22139       # but as the default location of the library.
22140       hardcode_minus_L_GCJ=yes
22141       export_dynamic_flag_spec_GCJ='${wl}-E'
22142       ;;
22143
22144     hpux10* | hpux11*)
22145       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22146         case "$host_cpu" in
22147         hppa*64*|ia64*)
22148           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22149           ;;
22150         *)
22151           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22152           ;;
22153         esac
22154       else
22155         case "$host_cpu" in
22156         hppa*64*|ia64*)
22157           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22158           ;;
22159         *)
22160           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22161           ;;
22162         esac
22163       fi
22164       if test "$with_gnu_ld" = no; then
22165         case "$host_cpu" in
22166         hppa*64*)
22167           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22168           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22169           hardcode_libdir_separator_GCJ=:
22170           hardcode_direct_GCJ=no
22171           hardcode_shlibpath_var_GCJ=no
22172           ;;
22173         ia64*)
22174           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22175           hardcode_direct_GCJ=no
22176           hardcode_shlibpath_var_GCJ=no
22177
22178           # hardcode_minus_L: Not really in the search PATH,
22179           # but as the default location of the library.
22180           hardcode_minus_L_GCJ=yes
22181           ;;
22182         *)
22183           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22184           hardcode_libdir_separator_GCJ=:
22185           hardcode_direct_GCJ=yes
22186           export_dynamic_flag_spec_GCJ='${wl}-E'
22187
22188           # hardcode_minus_L: Not really in the search PATH,
22189           # but as the default location of the library.
22190           hardcode_minus_L_GCJ=yes
22191           ;;
22192         esac
22193       fi
22194       ;;
22195
22196     irix5* | irix6* | nonstopux*)
22197       if test "$GCC" = yes; then
22198         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'
22199       else
22200         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'
22201         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22202       fi
22203       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204       hardcode_libdir_separator_GCJ=:
22205       link_all_deplibs_GCJ=yes
22206       ;;
22207
22208     netbsd*)
22209       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22210         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22211       else
22212         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22213       fi
22214       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22215       hardcode_direct_GCJ=yes
22216       hardcode_shlibpath_var_GCJ=no
22217       ;;
22218
22219     newsos6)
22220       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22221       hardcode_direct_GCJ=yes
22222       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22223       hardcode_libdir_separator_GCJ=:
22224       hardcode_shlibpath_var_GCJ=no
22225       ;;
22226
22227     openbsd*)
22228       hardcode_direct_GCJ=yes
22229       hardcode_shlibpath_var_GCJ=no
22230       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22231         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22232         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22233         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22234         export_dynamic_flag_spec_GCJ='${wl}-E'
22235       else
22236        case $host_os in
22237          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22238            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22239            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240            ;;
22241          *)
22242            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22243            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22244            ;;
22245        esac
22246       fi
22247       ;;
22248
22249     os2*)
22250       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22251       hardcode_minus_L_GCJ=yes
22252       allow_undefined_flag_GCJ=unsupported
22253       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'
22254       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22255       ;;
22256
22257     osf3*)
22258       if test "$GCC" = yes; then
22259         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22260         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'
22261       else
22262         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22263         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'
22264       fi
22265       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22266       hardcode_libdir_separator_GCJ=:
22267       ;;
22268
22269     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22270       if test "$GCC" = yes; then
22271         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22272         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'
22273         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22274       else
22275         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22276         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'
22277         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~
22278         $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'
22279
22280         # Both c and cxx compiler support -rpath directly
22281         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22282       fi
22283       hardcode_libdir_separator_GCJ=:
22284       ;;
22285
22286     sco3.2v5*)
22287       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22288       hardcode_shlibpath_var_GCJ=no
22289       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22290       runpath_var=LD_RUN_PATH
22291       hardcode_runpath_var=yes
22292       ;;
22293
22294     solaris*)
22295       no_undefined_flag_GCJ=' -z text'
22296       if test "$GCC" = yes; then
22297         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22298         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22299           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22300       else
22301         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22302         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22303         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22304       fi
22305       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22306       hardcode_shlibpath_var_GCJ=no
22307       case $host_os in
22308       solaris2.[0-5] | solaris2.[0-5].*) ;;
22309       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22310         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22311       esac
22312       link_all_deplibs_GCJ=yes
22313       ;;
22314
22315     sunos4*)
22316       if test "x$host_vendor" = xsequent; then
22317         # Use $CC to link under sequent, because it throws in some extra .o
22318         # files that make .init and .fini sections work.
22319         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22320       else
22321         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22322       fi
22323       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22324       hardcode_direct_GCJ=yes
22325       hardcode_minus_L_GCJ=yes
22326       hardcode_shlibpath_var_GCJ=no
22327       ;;
22328
22329     sysv4)
22330       case $host_vendor in
22331         sni)
22332           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22333           hardcode_direct_GCJ=yes # is this really true???
22334         ;;
22335         siemens)
22336           ## LD is ld it makes a PLAMLIB
22337           ## CC just makes a GrossModule.
22338           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22339           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22340           hardcode_direct_GCJ=no
22341         ;;
22342         motorola)
22343           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22345         ;;
22346       esac
22347       runpath_var='LD_RUN_PATH'
22348       hardcode_shlibpath_var_GCJ=no
22349       ;;
22350
22351     sysv4.3*)
22352       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22353       hardcode_shlibpath_var_GCJ=no
22354       export_dynamic_flag_spec_GCJ='-Bexport'
22355       ;;
22356
22357     sysv4*MP*)
22358       if test -d /usr/nec; then
22359         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22360         hardcode_shlibpath_var_GCJ=no
22361         runpath_var=LD_RUN_PATH
22362         hardcode_runpath_var=yes
22363         ld_shlibs_GCJ=yes
22364       fi
22365       ;;
22366
22367     sysv4.2uw2*)
22368       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22369       hardcode_direct_GCJ=yes
22370       hardcode_minus_L_GCJ=no
22371       hardcode_shlibpath_var_GCJ=no
22372       hardcode_runpath_var=yes
22373       runpath_var=LD_RUN_PATH
22374       ;;
22375
22376    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22377       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22378       if test "$GCC" = yes; then
22379         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22380       else
22381         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22382       fi
22383       runpath_var='LD_RUN_PATH'
22384       hardcode_shlibpath_var_GCJ=no
22385       ;;
22386
22387     sysv5*)
22388       no_undefined_flag_GCJ=' -z text'
22389       # $CC -shared without GNU ld will not create a library from C++
22390       # object files and a static libstdc++, better avoid it by now
22391       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22393                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22394       hardcode_libdir_flag_spec_GCJ=
22395       hardcode_shlibpath_var_GCJ=no
22396       runpath_var='LD_RUN_PATH'
22397       ;;
22398
22399     uts4*)
22400       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22401       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22402       hardcode_shlibpath_var_GCJ=no
22403       ;;
22404
22405     *)
22406       ld_shlibs_GCJ=no
22407       ;;
22408     esac
22409   fi
22410
22411 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22412 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22413 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22414
22415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22416 if test "$GCC" = yes; then
22417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22418 fi
22419
22420 #
22421 # Do we need to explicitly link libc?
22422 #
22423 case "x$archive_cmds_need_lc_GCJ" in
22424 x|xyes)
22425   # Assume -lc should be added
22426   archive_cmds_need_lc_GCJ=yes
22427
22428   if test "$enable_shared" = yes && test "$GCC" = yes; then
22429     case $archive_cmds_GCJ in
22430     *'~'*)
22431       # FIXME: we may have to deal with multi-command sequences.
22432       ;;
22433     '$CC '*)
22434       # Test whether the compiler implicitly links with -lc since on some
22435       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22436       # to ld, don't add -lc before -lgcc.
22437       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22438 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22439       $rm conftest*
22440       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22441
22442       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443   (eval $ac_compile) 2>&5
22444   ac_status=$?
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } 2>conftest.err; then
22447         soname=conftest
22448         lib=conftest
22449         libobjs=conftest.$ac_objext
22450         deplibs=
22451         wl=$lt_prog_compiler_wl_GCJ
22452         compiler_flags=-v
22453         linker_flags=-v
22454         verstring=
22455         output_objdir=.
22456         libname=conftest
22457         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22458         allow_undefined_flag_GCJ=
22459         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22460   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }
22464         then
22465           archive_cmds_need_lc_GCJ=no
22466         else
22467           archive_cmds_need_lc_GCJ=yes
22468         fi
22469         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22470       else
22471         cat conftest.err 1>&5
22472       fi
22473       $rm conftest*
22474       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22475 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22476       ;;
22477     esac
22478   fi
22479   ;;
22480 esac
22481
22482 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22483 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22484 library_names_spec=
22485 libname_spec='lib$name'
22486 soname_spec=
22487 shrext_cmds=".so"
22488 postinstall_cmds=
22489 postuninstall_cmds=
22490 finish_cmds=
22491 finish_eval=
22492 shlibpath_var=
22493 shlibpath_overrides_runpath=unknown
22494 version_type=none
22495 dynamic_linker="$host_os ld.so"
22496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22497 if test "$GCC" = yes; then
22498   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22499   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22500     # if the path contains ";" then we assume it to be the separator
22501     # otherwise default to the standard path separator (i.e. ":") - it is
22502     # assumed that no part of a normal pathname contains ";" but that should
22503     # okay in the real world where ";" in dirpaths is itself problematic.
22504     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22505   else
22506     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22507   fi
22508 else
22509   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22510 fi
22511 need_lib_prefix=unknown
22512 hardcode_into_libs=no
22513
22514 # when you set need_version to no, make sure it does not cause -set_version
22515 # flags to be left without arguments
22516 need_version=unknown
22517
22518 case $host_os in
22519 aix3*)
22520   version_type=linux
22521   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22522   shlibpath_var=LIBPATH
22523
22524   # AIX 3 has no versioning support, so we append a major version to the name.
22525   soname_spec='${libname}${release}${shared_ext}$major'
22526   ;;
22527
22528 aix4* | aix5*)
22529   version_type=linux
22530   need_lib_prefix=no
22531   need_version=no
22532   hardcode_into_libs=yes
22533   if test "$host_cpu" = ia64; then
22534     # AIX 5 supports IA64
22535     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22536     shlibpath_var=LD_LIBRARY_PATH
22537   else
22538     # With GCC up to 2.95.x, collect2 would create an import file
22539     # for dependence libraries.  The import file would start with
22540     # the line `#! .'.  This would cause the generated library to
22541     # depend on `.', always an invalid library.  This was fixed in
22542     # development snapshots of GCC prior to 3.0.
22543     case $host_os in
22544       aix4 | aix4.[01] | aix4.[01].*)
22545       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22546            echo ' yes '
22547            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22548         :
22549       else
22550         can_build_shared=no
22551       fi
22552       ;;
22553     esac
22554     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22555     # soname into executable. Probably we can add versioning support to
22556     # collect2, so additional links can be useful in future.
22557     if test "$aix_use_runtimelinking" = yes; then
22558       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22559       # instead of lib<name>.a to let people know that these are not
22560       # typical AIX shared libraries.
22561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562     else
22563       # We preserve .a as extension for shared libraries through AIX4.2
22564       # and later when we are not doing run time linking.
22565       library_names_spec='${libname}${release}.a $libname.a'
22566       soname_spec='${libname}${release}${shared_ext}$major'
22567     fi
22568     shlibpath_var=LIBPATH
22569   fi
22570   ;;
22571
22572 amigaos*)
22573   library_names_spec='$libname.ixlibrary $libname.a'
22574   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22575   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'
22576   ;;
22577
22578 beos*)
22579   library_names_spec='${libname}${shared_ext}'
22580   dynamic_linker="$host_os ld.so"
22581   shlibpath_var=LIBRARY_PATH
22582   ;;
22583
22584 bsdi[45]*)
22585   version_type=linux
22586   need_version=no
22587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588   soname_spec='${libname}${release}${shared_ext}$major'
22589   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22590   shlibpath_var=LD_LIBRARY_PATH
22591   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22592   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22593   # the default ld.so.conf also contains /usr/contrib/lib and
22594   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22595   # libtool to hard-code these into programs
22596   ;;
22597
22598 cygwin* | mingw* | pw32*)
22599   version_type=windows
22600   shrext_cmds=".dll"
22601   need_version=no
22602   need_lib_prefix=no
22603
22604   case $GCC,$host_os in
22605   yes,cygwin* | yes,mingw* | yes,pw32*)
22606     library_names_spec='$libname.dll.a'
22607     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22608     postinstall_cmds='base_file=`basename \${file}`~
22609       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22610       dldir=$destdir/`dirname \$dlpath`~
22611       test -d \$dldir || mkdir -p \$dldir~
22612       $install_prog $dir/$dlname \$dldir/$dlname'
22613     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22614       dlpath=$dir/\$dldll~
22615        $rm \$dlpath'
22616     shlibpath_overrides_runpath=yes
22617
22618     case $host_os in
22619     cygwin*)
22620       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22621       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22622       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22623       ;;
22624     mingw*)
22625       # MinGW DLLs use traditional 'lib' prefix
22626       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22627       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22628       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22629         # It is most probably a Windows format PATH printed by
22630         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22631         # path with ; separators, and with drive letters. We can handle the
22632         # drive letters (cygwin fileutils understands them), so leave them,
22633         # especially as we might pass files found there to a mingw objdump,
22634         # which wouldn't understand a cygwinified path. Ahh.
22635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22636       else
22637         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22638       fi
22639       ;;
22640     pw32*)
22641       # pw32 DLLs use 'pw' prefix rather than 'lib'
22642       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22643       ;;
22644     esac
22645     ;;
22646
22647   *)
22648     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22649     ;;
22650   esac
22651   dynamic_linker='Win32 ld.exe'
22652   # FIXME: first we should search . and the directory the executable is in
22653   shlibpath_var=PATH
22654   ;;
22655
22656 darwin* | rhapsody*)
22657   dynamic_linker="$host_os dyld"
22658   version_type=darwin
22659   need_lib_prefix=no
22660   need_version=no
22661   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22662   soname_spec='${libname}${release}${major}$shared_ext'
22663   shlibpath_overrides_runpath=yes
22664   shlibpath_var=DYLD_LIBRARY_PATH
22665   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22666   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22667   if test "$GCC" = yes; then
22668     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"`
22669   else
22670     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22671   fi
22672   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22673   ;;
22674
22675 dgux*)
22676   version_type=linux
22677   need_lib_prefix=no
22678   need_version=no
22679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22680   soname_spec='${libname}${release}${shared_ext}$major'
22681   shlibpath_var=LD_LIBRARY_PATH
22682   ;;
22683
22684 freebsd1*)
22685   dynamic_linker=no
22686   ;;
22687
22688 kfreebsd*-gnu)
22689   version_type=linux
22690   need_lib_prefix=no
22691   need_version=no
22692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22693   soname_spec='${libname}${release}${shared_ext}$major'
22694   shlibpath_var=LD_LIBRARY_PATH
22695   shlibpath_overrides_runpath=no
22696   hardcode_into_libs=yes
22697   dynamic_linker='GNU ld.so'
22698   ;;
22699
22700 freebsd*)
22701   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22702   version_type=freebsd-$objformat
22703   case $version_type in
22704     freebsd-elf*)
22705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22706       need_version=no
22707       need_lib_prefix=no
22708       ;;
22709     freebsd-*)
22710       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22711       need_version=yes
22712       ;;
22713   esac
22714   shlibpath_var=LD_LIBRARY_PATH
22715   case $host_os in
22716   freebsd2*)
22717     shlibpath_overrides_runpath=yes
22718     ;;
22719   freebsd3.01* | freebsdelf3.01*)
22720     shlibpath_overrides_runpath=yes
22721     hardcode_into_libs=yes
22722     ;;
22723   *) # from 3.2 on
22724     shlibpath_overrides_runpath=no
22725     hardcode_into_libs=yes
22726     ;;
22727   esac
22728   ;;
22729
22730 gnu*)
22731   version_type=linux
22732   need_lib_prefix=no
22733   need_version=no
22734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22735   soname_spec='${libname}${release}${shared_ext}$major'
22736   shlibpath_var=LD_LIBRARY_PATH
22737   hardcode_into_libs=yes
22738   ;;
22739
22740 hpux9* | hpux10* | hpux11*)
22741   # Give a soname corresponding to the major version so that dld.sl refuses to
22742   # link against other versions.
22743   version_type=sunos
22744   need_lib_prefix=no
22745   need_version=no
22746   case "$host_cpu" in
22747   ia64*)
22748     shrext_cmds='.so'
22749     hardcode_into_libs=yes
22750     dynamic_linker="$host_os dld.so"
22751     shlibpath_var=LD_LIBRARY_PATH
22752     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754     soname_spec='${libname}${release}${shared_ext}$major'
22755     if test "X$HPUX_IA64_MODE" = X32; then
22756       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22757     else
22758       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22759     fi
22760     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22761     ;;
22762    hppa*64*)
22763      shrext_cmds='.sl'
22764      hardcode_into_libs=yes
22765      dynamic_linker="$host_os dld.sl"
22766      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22767      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22768      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22769      soname_spec='${libname}${release}${shared_ext}$major'
22770      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22771      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22772      ;;
22773    *)
22774     shrext_cmds='.sl'
22775     dynamic_linker="$host_os dld.sl"
22776     shlibpath_var=SHLIB_PATH
22777     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779     soname_spec='${libname}${release}${shared_ext}$major'
22780     ;;
22781   esac
22782   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22783   postinstall_cmds='chmod 555 $lib'
22784   ;;
22785
22786 irix5* | irix6* | nonstopux*)
22787   case $host_os in
22788     nonstopux*) version_type=nonstopux ;;
22789     *)
22790         if test "$lt_cv_prog_gnu_ld" = yes; then
22791                 version_type=linux
22792         else
22793                 version_type=irix
22794         fi ;;
22795   esac
22796   need_lib_prefix=no
22797   need_version=no
22798   soname_spec='${libname}${release}${shared_ext}$major'
22799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22800   case $host_os in
22801   irix5* | nonstopux*)
22802     libsuff= shlibsuff=
22803     ;;
22804   *)
22805     case $LD in # libtool.m4 will add one of these switches to LD
22806     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22807       libsuff= shlibsuff= libmagic=32-bit;;
22808     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22809       libsuff=32 shlibsuff=N32 libmagic=N32;;
22810     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22811       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22812     *) libsuff= shlibsuff= libmagic=never-match;;
22813     esac
22814     ;;
22815   esac
22816   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22817   shlibpath_overrides_runpath=no
22818   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22819   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22820   hardcode_into_libs=yes
22821   ;;
22822
22823 # No shared lib support for Linux oldld, aout, or coff.
22824 linux*oldld* | linux*aout* | linux*coff*)
22825   dynamic_linker=no
22826   ;;
22827
22828 # This must be Linux ELF.
22829 linux*)
22830   version_type=linux
22831   need_lib_prefix=no
22832   need_version=no
22833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834   soname_spec='${libname}${release}${shared_ext}$major'
22835   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22836   shlibpath_var=LD_LIBRARY_PATH
22837   shlibpath_overrides_runpath=no
22838   # This implies no fast_install, which is unacceptable.
22839   # Some rework will be needed to allow for fast_install
22840   # before this can be enabled.
22841   hardcode_into_libs=yes
22842
22843   # Append ld.so.conf contents to the search path
22844   if test -f /etc/ld.so.conf; then
22845     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22846     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22847   fi
22848
22849   # We used to test for /lib/ld.so.1 and disable shared libraries on
22850   # powerpc, because MkLinux only supported shared libraries with the
22851   # GNU dynamic linker.  Since this was broken with cross compilers,
22852   # most powerpc-linux boxes support dynamic linking these days and
22853   # people can always --disable-shared, the test was removed, and we
22854   # assume the GNU/Linux dynamic linker is in use.
22855   dynamic_linker='GNU/Linux ld.so'
22856   ;;
22857
22858 knetbsd*-gnu)
22859   version_type=linux
22860   need_lib_prefix=no
22861   need_version=no
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22863   soname_spec='${libname}${release}${shared_ext}$major'
22864   shlibpath_var=LD_LIBRARY_PATH
22865   shlibpath_overrides_runpath=no
22866   hardcode_into_libs=yes
22867   dynamic_linker='GNU ld.so'
22868   ;;
22869
22870 netbsd*)
22871   version_type=sunos
22872   need_lib_prefix=no
22873   need_version=no
22874   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22877     dynamic_linker='NetBSD (a.out) ld.so'
22878   else
22879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22880     soname_spec='${libname}${release}${shared_ext}$major'
22881     dynamic_linker='NetBSD ld.elf_so'
22882   fi
22883   shlibpath_var=LD_LIBRARY_PATH
22884   shlibpath_overrides_runpath=yes
22885   hardcode_into_libs=yes
22886   ;;
22887
22888 newsos6)
22889   version_type=linux
22890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891   shlibpath_var=LD_LIBRARY_PATH
22892   shlibpath_overrides_runpath=yes
22893   ;;
22894
22895 nto-qnx*)
22896   version_type=linux
22897   need_lib_prefix=no
22898   need_version=no
22899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22900   soname_spec='${libname}${release}${shared_ext}$major'
22901   shlibpath_var=LD_LIBRARY_PATH
22902   shlibpath_overrides_runpath=yes
22903   ;;
22904
22905 openbsd*)
22906   version_type=sunos
22907   need_lib_prefix=no
22908   need_version=no
22909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22910   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22911   shlibpath_var=LD_LIBRARY_PATH
22912   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22913     case $host_os in
22914       openbsd2.[89] | openbsd2.[89].*)
22915         shlibpath_overrides_runpath=no
22916         ;;
22917       *)
22918         shlibpath_overrides_runpath=yes
22919         ;;
22920       esac
22921   else
22922     shlibpath_overrides_runpath=yes
22923   fi
22924   ;;
22925
22926 os2*)
22927   libname_spec='$name'
22928   shrext_cmds=".dll"
22929   need_lib_prefix=no
22930   library_names_spec='$libname${shared_ext} $libname.a'
22931   dynamic_linker='OS/2 ld.exe'
22932   shlibpath_var=LIBPATH
22933   ;;
22934
22935 osf3* | osf4* | osf5*)
22936   version_type=osf
22937   need_lib_prefix=no
22938   need_version=no
22939   soname_spec='${libname}${release}${shared_ext}$major'
22940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941   shlibpath_var=LD_LIBRARY_PATH
22942   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22943   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22944   ;;
22945
22946 sco3.2v5*)
22947   version_type=osf
22948   soname_spec='${libname}${release}${shared_ext}$major'
22949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950   shlibpath_var=LD_LIBRARY_PATH
22951   ;;
22952
22953 solaris*)
22954   version_type=linux
22955   need_lib_prefix=no
22956   need_version=no
22957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958   soname_spec='${libname}${release}${shared_ext}$major'
22959   shlibpath_var=LD_LIBRARY_PATH
22960   shlibpath_overrides_runpath=yes
22961   hardcode_into_libs=yes
22962   # ldd complains unless libraries are executable
22963   postinstall_cmds='chmod +x $lib'
22964   ;;
22965
22966 sunos4*)
22967   version_type=sunos
22968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22969   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22970   shlibpath_var=LD_LIBRARY_PATH
22971   shlibpath_overrides_runpath=yes
22972   if test "$with_gnu_ld" = yes; then
22973     need_lib_prefix=no
22974   fi
22975   need_version=yes
22976   ;;
22977
22978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22979   version_type=linux
22980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22981   soname_spec='${libname}${release}${shared_ext}$major'
22982   shlibpath_var=LD_LIBRARY_PATH
22983   case $host_vendor in
22984     sni)
22985       shlibpath_overrides_runpath=no
22986       need_lib_prefix=no
22987       export_dynamic_flag_spec='${wl}-Blargedynsym'
22988       runpath_var=LD_RUN_PATH
22989       ;;
22990     siemens)
22991       need_lib_prefix=no
22992       ;;
22993     motorola)
22994       need_lib_prefix=no
22995       need_version=no
22996       shlibpath_overrides_runpath=no
22997       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22998       ;;
22999   esac
23000   ;;
23001
23002 sysv4*MP*)
23003   if test -d /usr/nec ;then
23004     version_type=linux
23005     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23006     soname_spec='$libname${shared_ext}.$major'
23007     shlibpath_var=LD_LIBRARY_PATH
23008   fi
23009   ;;
23010
23011 uts4*)
23012   version_type=linux
23013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23014   soname_spec='${libname}${release}${shared_ext}$major'
23015   shlibpath_var=LD_LIBRARY_PATH
23016   ;;
23017
23018 *)
23019   dynamic_linker=no
23020   ;;
23021 esac
23022 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23023 echo "${ECHO_T}$dynamic_linker" >&6
23024 test "$dynamic_linker" = no && can_build_shared=no
23025
23026 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23028 hardcode_action_GCJ=
23029 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23030    test -n "$runpath_var_GCJ" || \
23031    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23032
23033   # We can hardcode non-existant directories.
23034   if test "$hardcode_direct_GCJ" != no &&
23035      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23036      # have to relink, otherwise we might link with an installed library
23037      # when we should be linking with a yet-to-be-installed one
23038      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23039      test "$hardcode_minus_L_GCJ" != no; then
23040     # Linking always hardcodes the temporary library directory.
23041     hardcode_action_GCJ=relink
23042   else
23043     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23044     hardcode_action_GCJ=immediate
23045   fi
23046 else
23047   # We cannot hardcode anything, or else we can only hardcode existing
23048   # directories.
23049   hardcode_action_GCJ=unsupported
23050 fi
23051 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23052 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23053
23054 if test "$hardcode_action_GCJ" = relink; then
23055   # Fast installation is not supported
23056   enable_fast_install=no
23057 elif test "$shlibpath_overrides_runpath" = yes ||
23058      test "$enable_shared" = no; then
23059   # Fast installation is not necessary
23060   enable_fast_install=needless
23061 fi
23062
23063 striplib=
23064 old_striplib=
23065 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23068   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23069   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23070   echo "$as_me:$LINENO: result: yes" >&5
23071 echo "${ECHO_T}yes" >&6
23072 else
23073 # FIXME - insert some real tests, host_os isn't really good enough
23074   case $host_os in
23075    darwin*)
23076        if test -n "$STRIP" ; then
23077          striplib="$STRIP -x"
23078          echo "$as_me:$LINENO: result: yes" >&5
23079 echo "${ECHO_T}yes" >&6
23080        else
23081   echo "$as_me:$LINENO: result: no" >&5
23082 echo "${ECHO_T}no" >&6
23083 fi
23084        ;;
23085    *)
23086   echo "$as_me:$LINENO: result: no" >&5
23087 echo "${ECHO_T}no" >&6
23088     ;;
23089   esac
23090 fi
23091
23092 if test "x$enable_dlopen" != xyes; then
23093   enable_dlopen=unknown
23094   enable_dlopen_self=unknown
23095   enable_dlopen_self_static=unknown
23096 else
23097   lt_cv_dlopen=no
23098   lt_cv_dlopen_libs=
23099
23100   case $host_os in
23101   beos*)
23102     lt_cv_dlopen="load_add_on"
23103     lt_cv_dlopen_libs=
23104     lt_cv_dlopen_self=yes
23105     ;;
23106
23107   mingw* | pw32*)
23108     lt_cv_dlopen="LoadLibrary"
23109     lt_cv_dlopen_libs=
23110    ;;
23111
23112   cygwin*)
23113     lt_cv_dlopen="dlopen"
23114     lt_cv_dlopen_libs=
23115    ;;
23116
23117   darwin*)
23118   # if libdl is installed we need to link against it
23119     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124   ac_check_lib_save_LIBS=$LIBS
23125 LIBS="-ldl  $LIBS"
23126 cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h.  */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h.  */
23132
23133 /* Override any gcc2 internal prototype to avoid an error.  */
23134 #ifdef __cplusplus
23135 extern "C"
23136 #endif
23137 /* We use char because int might match the return type of a gcc2
23138    builtin and then its argument prototype would still apply.  */
23139 char dlopen ();
23140 int
23141 main ()
23142 {
23143 dlopen ();
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150   (eval $ac_link) 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } &&
23157          { ac_try='test -z "$ac_c_werror_flag"
23158                          || test ! -s conftest.err'
23159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160   (eval $ac_try) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); }; } &&
23164          { ac_try='test -s conftest$ac_exeext'
23165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166   (eval $ac_try) 2>&5
23167   ac_status=$?
23168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169   (exit $ac_status); }; }; then
23170   ac_cv_lib_dl_dlopen=yes
23171 else
23172   echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175 ac_cv_lib_dl_dlopen=no
23176 fi
23177 rm -f conftest.err conftest.$ac_objext \
23178       conftest$ac_exeext conftest.$ac_ext
23179 LIBS=$ac_check_lib_save_LIBS
23180 fi
23181 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23183 if test $ac_cv_lib_dl_dlopen = yes; then
23184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23185 else
23186
23187     lt_cv_dlopen="dyld"
23188     lt_cv_dlopen_libs=
23189     lt_cv_dlopen_self=yes
23190
23191 fi
23192
23193    ;;
23194
23195   *)
23196     echo "$as_me:$LINENO: checking for shl_load" >&5
23197 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23198 if test "${ac_cv_func_shl_load+set}" = set; then
23199   echo $ECHO_N "(cached) $ECHO_C" >&6
23200 else
23201   cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23209 #define shl_load innocuous_shl_load
23210
23211 /* System header to define __stub macros and hopefully few prototypes,
23212     which can conflict with char shl_load (); below.
23213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23214     <limits.h> exists even on freestanding compilers.  */
23215
23216 #ifdef __STDC__
23217 # include <limits.h>
23218 #else
23219 # include <assert.h>
23220 #endif
23221
23222 #undef shl_load
23223
23224 /* Override any gcc2 internal prototype to avoid an error.  */
23225 #ifdef __cplusplus
23226 extern "C"
23227 {
23228 #endif
23229 /* We use char because int might match the return type of a gcc2
23230    builtin and then its argument prototype would still apply.  */
23231 char shl_load ();
23232 /* The GNU C library defines this for functions which it implements
23233     to always fail with ENOSYS.  Some functions are actually named
23234     something starting with __ and the normal name is an alias.  */
23235 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23236 choke me
23237 #else
23238 char (*f) () = shl_load;
23239 #endif
23240 #ifdef __cplusplus
23241 }
23242 #endif
23243
23244 int
23245 main ()
23246 {
23247 return f != shl_load;
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23254   (eval $ac_link) 2>conftest.er1
23255   ac_status=$?
23256   grep -v '^ *+' conftest.er1 >conftest.err
23257   rm -f conftest.er1
23258   cat conftest.err >&5
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); } &&
23261          { ac_try='test -z "$ac_c_werror_flag"
23262                          || test ! -s conftest.err'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; } &&
23268          { ac_try='test -s conftest$ac_exeext'
23269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270   (eval $ac_try) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; }; then
23274   ac_cv_func_shl_load=yes
23275 else
23276   echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 ac_cv_func_shl_load=no
23280 fi
23281 rm -f conftest.err conftest.$ac_objext \
23282       conftest$ac_exeext conftest.$ac_ext
23283 fi
23284 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23285 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23286 if test $ac_cv_func_shl_load = yes; then
23287   lt_cv_dlopen="shl_load"
23288 else
23289   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23290 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23291 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23292   echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294   ac_check_lib_save_LIBS=$LIBS
23295 LIBS="-ldld  $LIBS"
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302
23303 /* Override any gcc2 internal prototype to avoid an error.  */
23304 #ifdef __cplusplus
23305 extern "C"
23306 #endif
23307 /* We use char because int might match the return type of a gcc2
23308    builtin and then its argument prototype would still apply.  */
23309 char shl_load ();
23310 int
23311 main ()
23312 {
23313 shl_load ();
23314   ;
23315   return 0;
23316 }
23317 _ACEOF
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23320   (eval $ac_link) 2>conftest.er1
23321   ac_status=$?
23322   grep -v '^ *+' conftest.er1 >conftest.err
23323   rm -f conftest.er1
23324   cat conftest.err >&5
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); } &&
23327          { ac_try='test -z "$ac_c_werror_flag"
23328                          || test ! -s conftest.err'
23329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330   (eval $ac_try) 2>&5
23331   ac_status=$?
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); }; } &&
23334          { ac_try='test -s conftest$ac_exeext'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; }; then
23340   ac_cv_lib_dld_shl_load=yes
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345 ac_cv_lib_dld_shl_load=no
23346 fi
23347 rm -f conftest.err conftest.$ac_objext \
23348       conftest$ac_exeext conftest.$ac_ext
23349 LIBS=$ac_check_lib_save_LIBS
23350 fi
23351 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23352 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23353 if test $ac_cv_lib_dld_shl_load = yes; then
23354   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23355 else
23356   echo "$as_me:$LINENO: checking for dlopen" >&5
23357 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23358 if test "${ac_cv_func_dlopen+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23369 #define dlopen innocuous_dlopen
23370
23371 /* System header to define __stub macros and hopefully few prototypes,
23372     which can conflict with char dlopen (); below.
23373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23374     <limits.h> exists even on freestanding compilers.  */
23375
23376 #ifdef __STDC__
23377 # include <limits.h>
23378 #else
23379 # include <assert.h>
23380 #endif
23381
23382 #undef dlopen
23383
23384 /* Override any gcc2 internal prototype to avoid an error.  */
23385 #ifdef __cplusplus
23386 extern "C"
23387 {
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 dlopen ();
23392 /* The GNU C library defines this for functions which it implements
23393     to always fail with ENOSYS.  Some functions are actually named
23394     something starting with __ and the normal name is an alias.  */
23395 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23396 choke me
23397 #else
23398 char (*f) () = dlopen;
23399 #endif
23400 #ifdef __cplusplus
23401 }
23402 #endif
23403
23404 int
23405 main ()
23406 {
23407 return f != dlopen;
23408   ;
23409   return 0;
23410 }
23411 _ACEOF
23412 rm -f conftest.$ac_objext conftest$ac_exeext
23413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23414   (eval $ac_link) 2>conftest.er1
23415   ac_status=$?
23416   grep -v '^ *+' conftest.er1 >conftest.err
23417   rm -f conftest.er1
23418   cat conftest.err >&5
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); } &&
23421          { ac_try='test -z "$ac_c_werror_flag"
23422                          || test ! -s conftest.err'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; } &&
23428          { ac_try='test -s conftest$ac_exeext'
23429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430   (eval $ac_try) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; }; then
23434   ac_cv_func_dlopen=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439 ac_cv_func_dlopen=no
23440 fi
23441 rm -f conftest.err conftest.$ac_objext \
23442       conftest$ac_exeext conftest.$ac_ext
23443 fi
23444 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23446 if test $ac_cv_func_dlopen = yes; then
23447   lt_cv_dlopen="dlopen"
23448 else
23449   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23452   echo $ECHO_N "(cached) $ECHO_C" >&6
23453 else
23454   ac_check_lib_save_LIBS=$LIBS
23455 LIBS="-ldl  $LIBS"
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h.  */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h.  */
23462
23463 /* Override any gcc2 internal prototype to avoid an error.  */
23464 #ifdef __cplusplus
23465 extern "C"
23466 #endif
23467 /* We use char because int might match the return type of a gcc2
23468    builtin and then its argument prototype would still apply.  */
23469 char dlopen ();
23470 int
23471 main ()
23472 {
23473 dlopen ();
23474   ;
23475   return 0;
23476 }
23477 _ACEOF
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480   (eval $ac_link) 2>conftest.er1
23481   ac_status=$?
23482   grep -v '^ *+' conftest.er1 >conftest.err
23483   rm -f conftest.er1
23484   cat conftest.err >&5
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } &&
23487          { ac_try='test -z "$ac_c_werror_flag"
23488                          || test ! -s conftest.err'
23489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); }; } &&
23494          { ac_try='test -s conftest$ac_exeext'
23495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496   (eval $ac_try) 2>&5
23497   ac_status=$?
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); }; }; then
23500   ac_cv_lib_dl_dlopen=yes
23501 else
23502   echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ac_cv_lib_dl_dlopen=no
23506 fi
23507 rm -f conftest.err conftest.$ac_objext \
23508       conftest$ac_exeext conftest.$ac_ext
23509 LIBS=$ac_check_lib_save_LIBS
23510 fi
23511 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23513 if test $ac_cv_lib_dl_dlopen = yes; then
23514   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23515 else
23516   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23517 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23518 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23519   echo $ECHO_N "(cached) $ECHO_C" >&6
23520 else
23521   ac_check_lib_save_LIBS=$LIBS
23522 LIBS="-lsvld  $LIBS"
23523 cat >conftest.$ac_ext <<_ACEOF
23524 /* confdefs.h.  */
23525 _ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h.  */
23529
23530 /* Override any gcc2 internal prototype to avoid an error.  */
23531 #ifdef __cplusplus
23532 extern "C"
23533 #endif
23534 /* We use char because int might match the return type of a gcc2
23535    builtin and then its argument prototype would still apply.  */
23536 char dlopen ();
23537 int
23538 main ()
23539 {
23540 dlopen ();
23541   ;
23542   return 0;
23543 }
23544 _ACEOF
23545 rm -f conftest.$ac_objext conftest$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547   (eval $ac_link) 2>conftest.er1
23548   ac_status=$?
23549   grep -v '^ *+' conftest.er1 >conftest.err
23550   rm -f conftest.er1
23551   cat conftest.err >&5
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); } &&
23554          { ac_try='test -z "$ac_c_werror_flag"
23555                          || test ! -s conftest.err'
23556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557   (eval $ac_try) 2>&5
23558   ac_status=$?
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); }; } &&
23561          { ac_try='test -s conftest$ac_exeext'
23562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563   (eval $ac_try) 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); }; }; then
23567   ac_cv_lib_svld_dlopen=yes
23568 else
23569   echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572 ac_cv_lib_svld_dlopen=no
23573 fi
23574 rm -f conftest.err conftest.$ac_objext \
23575       conftest$ac_exeext conftest.$ac_ext
23576 LIBS=$ac_check_lib_save_LIBS
23577 fi
23578 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23580 if test $ac_cv_lib_svld_dlopen = yes; then
23581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23582 else
23583   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23586   echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23588   ac_check_lib_save_LIBS=$LIBS
23589 LIBS="-ldld  $LIBS"
23590 cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h.  */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h.  */
23596
23597 /* Override any gcc2 internal prototype to avoid an error.  */
23598 #ifdef __cplusplus
23599 extern "C"
23600 #endif
23601 /* We use char because int might match the return type of a gcc2
23602    builtin and then its argument prototype would still apply.  */
23603 char dld_link ();
23604 int
23605 main ()
23606 {
23607 dld_link ();
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext conftest$ac_exeext
23613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614   (eval $ac_link) 2>conftest.er1
23615   ac_status=$?
23616   grep -v '^ *+' conftest.er1 >conftest.err
23617   rm -f conftest.er1
23618   cat conftest.err >&5
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); } &&
23621          { ac_try='test -z "$ac_c_werror_flag"
23622                          || test ! -s conftest.err'
23623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624   (eval $ac_try) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); }; } &&
23628          { ac_try='test -s conftest$ac_exeext'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; }; then
23634   ac_cv_lib_dld_dld_link=yes
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 ac_cv_lib_dld_dld_link=no
23640 fi
23641 rm -f conftest.err conftest.$ac_objext \
23642       conftest$ac_exeext conftest.$ac_ext
23643 LIBS=$ac_check_lib_save_LIBS
23644 fi
23645 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23646 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23647 if test $ac_cv_lib_dld_dld_link = yes; then
23648   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23649 fi
23650
23651
23652 fi
23653
23654
23655 fi
23656
23657
23658 fi
23659
23660
23661 fi
23662
23663
23664 fi
23665
23666     ;;
23667   esac
23668
23669   if test "x$lt_cv_dlopen" != xno; then
23670     enable_dlopen=yes
23671   else
23672     enable_dlopen=no
23673   fi
23674
23675   case $lt_cv_dlopen in
23676   dlopen)
23677     save_CPPFLAGS="$CPPFLAGS"
23678     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23679
23680     save_LDFLAGS="$LDFLAGS"
23681     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23682
23683     save_LIBS="$LIBS"
23684     LIBS="$lt_cv_dlopen_libs $LIBS"
23685
23686     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23687 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23688 if test "${lt_cv_dlopen_self+set}" = set; then
23689   echo $ECHO_N "(cached) $ECHO_C" >&6
23690 else
23691           if test "$cross_compiling" = yes; then :
23692   lt_cv_dlopen_self=cross
23693 else
23694   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23695   lt_status=$lt_dlunknown
23696   cat > conftest.$ac_ext <<EOF
23697 #line 23697 "configure"
23698 #include "confdefs.h"
23699
23700 #if HAVE_DLFCN_H
23701 #include <dlfcn.h>
23702 #endif
23703
23704 #include <stdio.h>
23705
23706 #ifdef RTLD_GLOBAL
23707 #  define LT_DLGLOBAL           RTLD_GLOBAL
23708 #else
23709 #  ifdef DL_GLOBAL
23710 #    define LT_DLGLOBAL         DL_GLOBAL
23711 #  else
23712 #    define LT_DLGLOBAL         0
23713 #  endif
23714 #endif
23715
23716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23717    find out it does not work in some platform. */
23718 #ifndef LT_DLLAZY_OR_NOW
23719 #  ifdef RTLD_LAZY
23720 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23721 #  else
23722 #    ifdef DL_LAZY
23723 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23724 #    else
23725 #      ifdef RTLD_NOW
23726 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23727 #      else
23728 #        ifdef DL_NOW
23729 #          define LT_DLLAZY_OR_NOW      DL_NOW
23730 #        else
23731 #          define LT_DLLAZY_OR_NOW      0
23732 #        endif
23733 #      endif
23734 #    endif
23735 #  endif
23736 #endif
23737
23738 #ifdef __cplusplus
23739 extern "C" void exit (int);
23740 #endif
23741
23742 void fnord() { int i=42;}
23743 int main ()
23744 {
23745   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23746   int status = $lt_dlunknown;
23747
23748   if (self)
23749     {
23750       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23751       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23752       /* dlclose (self); */
23753     }
23754
23755     exit (status);
23756 }
23757 EOF
23758   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23759   (eval $ac_link) 2>&5
23760   ac_status=$?
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23763     (./conftest; exit; ) 2>/dev/null
23764     lt_status=$?
23765     case x$lt_status in
23766       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23767       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23768       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23769     esac
23770   else :
23771     # compilation failed
23772     lt_cv_dlopen_self=no
23773   fi
23774 fi
23775 rm -fr conftest*
23776
23777
23778 fi
23779 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23780 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23781
23782     if test "x$lt_cv_dlopen_self" = xyes; then
23783       LDFLAGS="$LDFLAGS $link_static_flag"
23784       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23785 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23786 if test "${lt_cv_dlopen_self_static+set}" = set; then
23787   echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789           if test "$cross_compiling" = yes; then :
23790   lt_cv_dlopen_self_static=cross
23791 else
23792   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23793   lt_status=$lt_dlunknown
23794   cat > conftest.$ac_ext <<EOF
23795 #line 23795 "configure"
23796 #include "confdefs.h"
23797
23798 #if HAVE_DLFCN_H
23799 #include <dlfcn.h>
23800 #endif
23801
23802 #include <stdio.h>
23803
23804 #ifdef RTLD_GLOBAL
23805 #  define LT_DLGLOBAL           RTLD_GLOBAL
23806 #else
23807 #  ifdef DL_GLOBAL
23808 #    define LT_DLGLOBAL         DL_GLOBAL
23809 #  else
23810 #    define LT_DLGLOBAL         0
23811 #  endif
23812 #endif
23813
23814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23815    find out it does not work in some platform. */
23816 #ifndef LT_DLLAZY_OR_NOW
23817 #  ifdef RTLD_LAZY
23818 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23819 #  else
23820 #    ifdef DL_LAZY
23821 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23822 #    else
23823 #      ifdef RTLD_NOW
23824 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23825 #      else
23826 #        ifdef DL_NOW
23827 #          define LT_DLLAZY_OR_NOW      DL_NOW
23828 #        else
23829 #          define LT_DLLAZY_OR_NOW      0
23830 #        endif
23831 #      endif
23832 #    endif
23833 #  endif
23834 #endif
23835
23836 #ifdef __cplusplus
23837 extern "C" void exit (int);
23838 #endif
23839
23840 void fnord() { int i=42;}
23841 int main ()
23842 {
23843   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23844   int status = $lt_dlunknown;
23845
23846   if (self)
23847     {
23848       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23849       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23850       /* dlclose (self); */
23851     }
23852
23853     exit (status);
23854 }
23855 EOF
23856   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857   (eval $ac_link) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23861     (./conftest; exit; ) 2>/dev/null
23862     lt_status=$?
23863     case x$lt_status in
23864       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23865       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23866       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23867     esac
23868   else :
23869     # compilation failed
23870     lt_cv_dlopen_self_static=no
23871   fi
23872 fi
23873 rm -fr conftest*
23874
23875
23876 fi
23877 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23878 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23879     fi
23880
23881     CPPFLAGS="$save_CPPFLAGS"
23882     LDFLAGS="$save_LDFLAGS"
23883     LIBS="$save_LIBS"
23884     ;;
23885   esac
23886
23887   case $lt_cv_dlopen_self in
23888   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23889   *) enable_dlopen_self=unknown ;;
23890   esac
23891
23892   case $lt_cv_dlopen_self_static in
23893   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23894   *) enable_dlopen_self_static=unknown ;;
23895   esac
23896 fi
23897
23898
23899 # The else clause should only fire when bootstrapping the
23900 # libtool distribution, otherwise you forgot to ship ltmain.sh
23901 # with your package, and you will get complaints that there are
23902 # no rules to generate ltmain.sh.
23903 if test -f "$ltmain"; then
23904   # See if we are running on zsh, and set the options which allow our commands through
23905   # without removal of \ escapes.
23906   if test -n "${ZSH_VERSION+set}" ; then
23907     setopt NO_GLOB_SUBST
23908   fi
23909   # Now quote all the things that may contain metacharacters while being
23910   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23911   # variables and quote the copies for generation of the libtool script.
23912   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23913     SED SHELL STRIP \
23914     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23915     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23916     deplibs_check_method reload_flag reload_cmds need_locks \
23917     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23918     lt_cv_sys_global_symbol_to_c_name_address \
23919     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23920     old_postinstall_cmds old_postuninstall_cmds \
23921     compiler_GCJ \
23922     CC_GCJ \
23923     LD_GCJ \
23924     lt_prog_compiler_wl_GCJ \
23925     lt_prog_compiler_pic_GCJ \
23926     lt_prog_compiler_static_GCJ \
23927     lt_prog_compiler_no_builtin_flag_GCJ \
23928     export_dynamic_flag_spec_GCJ \
23929     thread_safe_flag_spec_GCJ \
23930     whole_archive_flag_spec_GCJ \
23931     enable_shared_with_static_runtimes_GCJ \
23932     old_archive_cmds_GCJ \
23933     old_archive_from_new_cmds_GCJ \
23934     predep_objects_GCJ \
23935     postdep_objects_GCJ \
23936     predeps_GCJ \
23937     postdeps_GCJ \
23938     compiler_lib_search_path_GCJ \
23939     archive_cmds_GCJ \
23940     archive_expsym_cmds_GCJ \
23941     postinstall_cmds_GCJ \
23942     postuninstall_cmds_GCJ \
23943     old_archive_from_expsyms_cmds_GCJ \
23944     allow_undefined_flag_GCJ \
23945     no_undefined_flag_GCJ \
23946     export_symbols_cmds_GCJ \
23947     hardcode_libdir_flag_spec_GCJ \
23948     hardcode_libdir_flag_spec_ld_GCJ \
23949     hardcode_libdir_separator_GCJ \
23950     hardcode_automatic_GCJ \
23951     module_cmds_GCJ \
23952     module_expsym_cmds_GCJ \
23953     lt_cv_prog_compiler_c_o_GCJ \
23954     exclude_expsyms_GCJ \
23955     include_expsyms_GCJ; do
23956
23957     case $var in
23958     old_archive_cmds_GCJ | \
23959     old_archive_from_new_cmds_GCJ | \
23960     archive_cmds_GCJ | \
23961     archive_expsym_cmds_GCJ | \
23962     module_cmds_GCJ | \
23963     module_expsym_cmds_GCJ | \
23964     old_archive_from_expsyms_cmds_GCJ | \
23965     export_symbols_cmds_GCJ | \
23966     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23967     postinstall_cmds | postuninstall_cmds | \
23968     old_postinstall_cmds | old_postuninstall_cmds | \
23969     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23970       # Double-quote double-evaled strings.
23971       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23972       ;;
23973     *)
23974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23975       ;;
23976     esac
23977   done
23978
23979   case $lt_echo in
23980   *'\$0 --fallback-echo"')
23981     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23982     ;;
23983   esac
23984
23985 cfgfile="$ofile"
23986
23987   cat <<__EOF__ >> "$cfgfile"
23988 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23989
23990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23991
23992 # Shell to use when invoking shell scripts.
23993 SHELL=$lt_SHELL
23994
23995 # Whether or not to build shared libraries.
23996 build_libtool_libs=$enable_shared
23997
23998 # Whether or not to build static libraries.
23999 build_old_libs=$enable_static
24000
24001 # Whether or not to add -lc for building shared libraries.
24002 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24003
24004 # Whether or not to disallow shared libs when runtime libs are static
24005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24006
24007 # Whether or not to optimize for fast installation.
24008 fast_install=$enable_fast_install
24009
24010 # The host system.
24011 host_alias=$host_alias
24012 host=$host
24013
24014 # An echo program that does not interpret backslashes.
24015 echo=$lt_echo
24016
24017 # The archiver.
24018 AR=$lt_AR
24019 AR_FLAGS=$lt_AR_FLAGS
24020
24021 # A C compiler.
24022 LTCC=$lt_LTCC
24023
24024 # A language-specific compiler.
24025 CC=$lt_compiler_GCJ
24026
24027 # Is the compiler the GNU C compiler?
24028 with_gcc=$GCC_GCJ
24029
24030 # An ERE matcher.
24031 EGREP=$lt_EGREP
24032
24033 # The linker used to build libraries.
24034 LD=$lt_LD_GCJ
24035
24036 # Whether we need hard or soft links.
24037 LN_S=$lt_LN_S
24038
24039 # A BSD-compatible nm program.
24040 NM=$lt_NM
24041
24042 # A symbol stripping program
24043 STRIP=$lt_STRIP
24044
24045 # Used to examine libraries when file_magic_cmd begins "file"
24046 MAGIC_CMD=$MAGIC_CMD
24047
24048 # Used on cygwin: DLL creation program.
24049 DLLTOOL="$DLLTOOL"
24050
24051 # Used on cygwin: object dumper.
24052 OBJDUMP="$OBJDUMP"
24053
24054 # Used on cygwin: assembler.
24055 AS="$AS"
24056
24057 # The name of the directory that contains temporary libtool files.
24058 objdir=$objdir
24059
24060 # How to create reloadable object files.
24061 reload_flag=$lt_reload_flag
24062 reload_cmds=$lt_reload_cmds
24063
24064 # How to pass a linker flag through the compiler.
24065 wl=$lt_lt_prog_compiler_wl_GCJ
24066
24067 # Object file suffix (normally "o").
24068 objext="$ac_objext"
24069
24070 # Old archive suffix (normally "a").
24071 libext="$libext"
24072
24073 # Shared library suffix (normally ".so").
24074 shrext_cmds='$shrext_cmds'
24075
24076 # Executable file suffix (normally "").
24077 exeext="$exeext"
24078
24079 # Additional compiler flags for building library objects.
24080 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24081 pic_mode=$pic_mode
24082
24083 # What is the maximum length of a command?
24084 max_cmd_len=$lt_cv_sys_max_cmd_len
24085
24086 # Does compiler simultaneously support -c and -o options?
24087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24088
24089 # Must we lock files when doing compilation ?
24090 need_locks=$lt_need_locks
24091
24092 # Do we need the lib prefix for modules?
24093 need_lib_prefix=$need_lib_prefix
24094
24095 # Do we need a version for libraries?
24096 need_version=$need_version
24097
24098 # Whether dlopen is supported.
24099 dlopen_support=$enable_dlopen
24100
24101 # Whether dlopen of programs is supported.
24102 dlopen_self=$enable_dlopen_self
24103
24104 # Whether dlopen of statically linked programs is supported.
24105 dlopen_self_static=$enable_dlopen_self_static
24106
24107 # Compiler flag to prevent dynamic linking.
24108 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24109
24110 # Compiler flag to turn off builtin functions.
24111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24112
24113 # Compiler flag to allow reflexive dlopens.
24114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24115
24116 # Compiler flag to generate shared objects directly from archives.
24117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24118
24119 # Compiler flag to generate thread-safe objects.
24120 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24121
24122 # Library versioning type.
24123 version_type=$version_type
24124
24125 # Format of library name prefix.
24126 libname_spec=$lt_libname_spec
24127
24128 # List of archive names.  First name is the real one, the rest are links.
24129 # The last name is the one that the linker finds with -lNAME.
24130 library_names_spec=$lt_library_names_spec
24131
24132 # The coded name of the library, if different from the real name.
24133 soname_spec=$lt_soname_spec
24134
24135 # Commands used to build and install an old-style archive.
24136 RANLIB=$lt_RANLIB
24137 old_archive_cmds=$lt_old_archive_cmds_GCJ
24138 old_postinstall_cmds=$lt_old_postinstall_cmds
24139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24140
24141 # Create an old-style archive from a shared archive.
24142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24143
24144 # Create a temporary old-style archive to link instead of a shared archive.
24145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24146
24147 # Commands used to build and install a shared archive.
24148 archive_cmds=$lt_archive_cmds_GCJ
24149 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24150 postinstall_cmds=$lt_postinstall_cmds
24151 postuninstall_cmds=$lt_postuninstall_cmds
24152
24153 # Commands used to build a loadable module (assumed same as above if empty)
24154 module_cmds=$lt_module_cmds_GCJ
24155 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24156
24157 # Commands to strip libraries.
24158 old_striplib=$lt_old_striplib
24159 striplib=$lt_striplib
24160
24161 # Dependencies to place before the objects being linked to create a
24162 # shared library.
24163 predep_objects=$lt_predep_objects_GCJ
24164
24165 # Dependencies to place after the objects being linked to create a
24166 # shared library.
24167 postdep_objects=$lt_postdep_objects_GCJ
24168
24169 # Dependencies to place before the objects being linked to create a
24170 # shared library.
24171 predeps=$lt_predeps_GCJ
24172
24173 # Dependencies to place after the objects being linked to create a
24174 # shared library.
24175 postdeps=$lt_postdeps_GCJ
24176
24177 # The library search path used internally by the compiler when linking
24178 # a shared library.
24179 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24180
24181 # Method to check whether dependent libraries are shared objects.
24182 deplibs_check_method=$lt_deplibs_check_method
24183
24184 # Command to use when deplibs_check_method == file_magic.
24185 file_magic_cmd=$lt_file_magic_cmd
24186
24187 # Flag that allows shared libraries with undefined symbols to be built.
24188 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24189
24190 # Flag that forces no undefined symbols.
24191 no_undefined_flag=$lt_no_undefined_flag_GCJ
24192
24193 # Commands used to finish a libtool library installation in a directory.
24194 finish_cmds=$lt_finish_cmds
24195
24196 # Same as above, but a single script fragment to be evaled but not shown.
24197 finish_eval=$lt_finish_eval
24198
24199 # Take the output of nm and produce a listing of raw symbols and C names.
24200 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24201
24202 # Transform the output of nm in a proper C declaration
24203 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24204
24205 # Transform the output of nm in a C name address pair
24206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24207
24208 # This is the shared library runtime path variable.
24209 runpath_var=$runpath_var
24210
24211 # This is the shared library path variable.
24212 shlibpath_var=$shlibpath_var
24213
24214 # Is shlibpath searched before the hard-coded library search path?
24215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24216
24217 # How to hardcode a shared library path into an executable.
24218 hardcode_action=$hardcode_action_GCJ
24219
24220 # Whether we should hardcode library paths into libraries.
24221 hardcode_into_libs=$hardcode_into_libs
24222
24223 # Flag to hardcode \$libdir into a binary during linking.
24224 # This must work even if \$libdir does not exist.
24225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24226
24227 # If ld is used when linking, flag to hardcode \$libdir into
24228 # a binary during linking. This must work even if \$libdir does
24229 # not exist.
24230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24231
24232 # Whether we need a single -rpath flag with a separated argument.
24233 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24234
24235 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24236 # resulting binary.
24237 hardcode_direct=$hardcode_direct_GCJ
24238
24239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24240 # resulting binary.
24241 hardcode_minus_L=$hardcode_minus_L_GCJ
24242
24243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24244 # the resulting binary.
24245 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24246
24247 # Set to yes if building a shared library automatically hardcodes DIR into the library
24248 # and all subsequent libraries and executables linked against it.
24249 hardcode_automatic=$hardcode_automatic_GCJ
24250
24251 # Variables whose values should be saved in libtool wrapper scripts and
24252 # restored at relink time.
24253 variables_saved_for_relink="$variables_saved_for_relink"
24254
24255 # Whether libtool must link a program against all its dependency libraries.
24256 link_all_deplibs=$link_all_deplibs_GCJ
24257
24258 # Compile-time system search path for libraries
24259 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24260
24261 # Run-time system search path for libraries
24262 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24263
24264 # Fix the shell variable \$srcfile for the compiler.
24265 fix_srcfile_path="$fix_srcfile_path_GCJ"
24266
24267 # Set to yes if exported symbols are required.
24268 always_export_symbols=$always_export_symbols_GCJ
24269
24270 # The commands to list exported symbols.
24271 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24272
24273 # The commands to extract the exported symbol list from a shared archive.
24274 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24275
24276 # Symbols that should not be listed in the preloaded symbols.
24277 exclude_expsyms=$lt_exclude_expsyms_GCJ
24278
24279 # Symbols that must always be exported.
24280 include_expsyms=$lt_include_expsyms_GCJ
24281
24282 # ### END LIBTOOL TAG CONFIG: $tagname
24283
24284 __EOF__
24285
24286
24287 else
24288   # If there is no Makefile yet, we rely on a make rule to execute
24289   # `config.status --recheck' to rerun these tests and create the
24290   # libtool script then.
24291   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24292   if test -f "$ltmain_in"; then
24293     test -f Makefile && make "$ltmain"
24294   fi
24295 fi
24296
24297
24298 ac_ext=c
24299 ac_cpp='$CPP $CPPFLAGS'
24300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24303
24304 CC="$lt_save_CC"
24305
24306         else
24307           tagname=""
24308         fi
24309         ;;
24310
24311       RC)
24312         ac_ext=c
24313 ac_cpp='$CPP $CPPFLAGS'
24314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24317
24318
24319 # Source file extension for RC test sources.
24320 ac_ext=rc
24321
24322 # Object file extension for compiled RC test sources.
24323 objext=o
24324 objext_RC=$objext
24325
24326 # Code to be used in simple compile tests
24327 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24328
24329 # Code to be used in simple link tests
24330 lt_simple_link_test_code="$lt_simple_compile_test_code"
24331
24332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24333
24334 # If no C compiler was specified, use CC.
24335 LTCC=${LTCC-"$CC"}
24336
24337 # Allow CC to be a program name with arguments.
24338 compiler=$CC
24339
24340
24341 # Allow CC to be a program name with arguments.
24342 lt_save_CC="$CC"
24343 CC=${RC-"windres"}
24344 compiler=$CC
24345 compiler_RC=$CC
24346 lt_cv_prog_compiler_c_o_RC=yes
24347
24348 # The else clause should only fire when bootstrapping the
24349 # libtool distribution, otherwise you forgot to ship ltmain.sh
24350 # with your package, and you will get complaints that there are
24351 # no rules to generate ltmain.sh.
24352 if test -f "$ltmain"; then
24353   # See if we are running on zsh, and set the options which allow our commands through
24354   # without removal of \ escapes.
24355   if test -n "${ZSH_VERSION+set}" ; then
24356     setopt NO_GLOB_SUBST
24357   fi
24358   # Now quote all the things that may contain metacharacters while being
24359   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24360   # variables and quote the copies for generation of the libtool script.
24361   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24362     SED SHELL STRIP \
24363     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24364     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24365     deplibs_check_method reload_flag reload_cmds need_locks \
24366     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24367     lt_cv_sys_global_symbol_to_c_name_address \
24368     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24369     old_postinstall_cmds old_postuninstall_cmds \
24370     compiler_RC \
24371     CC_RC \
24372     LD_RC \
24373     lt_prog_compiler_wl_RC \
24374     lt_prog_compiler_pic_RC \
24375     lt_prog_compiler_static_RC \
24376     lt_prog_compiler_no_builtin_flag_RC \
24377     export_dynamic_flag_spec_RC \
24378     thread_safe_flag_spec_RC \
24379     whole_archive_flag_spec_RC \
24380     enable_shared_with_static_runtimes_RC \
24381     old_archive_cmds_RC \
24382     old_archive_from_new_cmds_RC \
24383     predep_objects_RC \
24384     postdep_objects_RC \
24385     predeps_RC \
24386     postdeps_RC \
24387     compiler_lib_search_path_RC \
24388     archive_cmds_RC \
24389     archive_expsym_cmds_RC \
24390     postinstall_cmds_RC \
24391     postuninstall_cmds_RC \
24392     old_archive_from_expsyms_cmds_RC \
24393     allow_undefined_flag_RC \
24394     no_undefined_flag_RC \
24395     export_symbols_cmds_RC \
24396     hardcode_libdir_flag_spec_RC \
24397     hardcode_libdir_flag_spec_ld_RC \
24398     hardcode_libdir_separator_RC \
24399     hardcode_automatic_RC \
24400     module_cmds_RC \
24401     module_expsym_cmds_RC \
24402     lt_cv_prog_compiler_c_o_RC \
24403     exclude_expsyms_RC \
24404     include_expsyms_RC; do
24405
24406     case $var in
24407     old_archive_cmds_RC | \
24408     old_archive_from_new_cmds_RC | \
24409     archive_cmds_RC | \
24410     archive_expsym_cmds_RC | \
24411     module_cmds_RC | \
24412     module_expsym_cmds_RC | \
24413     old_archive_from_expsyms_cmds_RC | \
24414     export_symbols_cmds_RC | \
24415     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24416     postinstall_cmds | postuninstall_cmds | \
24417     old_postinstall_cmds | old_postuninstall_cmds | \
24418     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24419       # Double-quote double-evaled strings.
24420       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24421       ;;
24422     *)
24423       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24424       ;;
24425     esac
24426   done
24427
24428   case $lt_echo in
24429   *'\$0 --fallback-echo"')
24430     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24431     ;;
24432   esac
24433
24434 cfgfile="$ofile"
24435
24436   cat <<__EOF__ >> "$cfgfile"
24437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24438
24439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24440
24441 # Shell to use when invoking shell scripts.
24442 SHELL=$lt_SHELL
24443
24444 # Whether or not to build shared libraries.
24445 build_libtool_libs=$enable_shared
24446
24447 # Whether or not to build static libraries.
24448 build_old_libs=$enable_static
24449
24450 # Whether or not to add -lc for building shared libraries.
24451 build_libtool_need_lc=$archive_cmds_need_lc_RC
24452
24453 # Whether or not to disallow shared libs when runtime libs are static
24454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24455
24456 # Whether or not to optimize for fast installation.
24457 fast_install=$enable_fast_install
24458
24459 # The host system.
24460 host_alias=$host_alias
24461 host=$host
24462
24463 # An echo program that does not interpret backslashes.
24464 echo=$lt_echo
24465
24466 # The archiver.
24467 AR=$lt_AR
24468 AR_FLAGS=$lt_AR_FLAGS
24469
24470 # A C compiler.
24471 LTCC=$lt_LTCC
24472
24473 # A language-specific compiler.
24474 CC=$lt_compiler_RC
24475
24476 # Is the compiler the GNU C compiler?
24477 with_gcc=$GCC_RC
24478
24479 # An ERE matcher.
24480 EGREP=$lt_EGREP
24481
24482 # The linker used to build libraries.
24483 LD=$lt_LD_RC
24484
24485 # Whether we need hard or soft links.
24486 LN_S=$lt_LN_S
24487
24488 # A BSD-compatible nm program.
24489 NM=$lt_NM
24490
24491 # A symbol stripping program
24492 STRIP=$lt_STRIP
24493
24494 # Used to examine libraries when file_magic_cmd begins "file"
24495 MAGIC_CMD=$MAGIC_CMD
24496
24497 # Used on cygwin: DLL creation program.
24498 DLLTOOL="$DLLTOOL"
24499
24500 # Used on cygwin: object dumper.
24501 OBJDUMP="$OBJDUMP"
24502
24503 # Used on cygwin: assembler.
24504 AS="$AS"
24505
24506 # The name of the directory that contains temporary libtool files.
24507 objdir=$objdir
24508
24509 # How to create reloadable object files.
24510 reload_flag=$lt_reload_flag
24511 reload_cmds=$lt_reload_cmds
24512
24513 # How to pass a linker flag through the compiler.
24514 wl=$lt_lt_prog_compiler_wl_RC
24515
24516 # Object file suffix (normally "o").
24517 objext="$ac_objext"
24518
24519 # Old archive suffix (normally "a").
24520 libext="$libext"
24521
24522 # Shared library suffix (normally ".so").
24523 shrext_cmds='$shrext_cmds'
24524
24525 # Executable file suffix (normally "").
24526 exeext="$exeext"
24527
24528 # Additional compiler flags for building library objects.
24529 pic_flag=$lt_lt_prog_compiler_pic_RC
24530 pic_mode=$pic_mode
24531
24532 # What is the maximum length of a command?
24533 max_cmd_len=$lt_cv_sys_max_cmd_len
24534
24535 # Does compiler simultaneously support -c and -o options?
24536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24537
24538 # Must we lock files when doing compilation ?
24539 need_locks=$lt_need_locks
24540
24541 # Do we need the lib prefix for modules?
24542 need_lib_prefix=$need_lib_prefix
24543
24544 # Do we need a version for libraries?
24545 need_version=$need_version
24546
24547 # Whether dlopen is supported.
24548 dlopen_support=$enable_dlopen
24549
24550 # Whether dlopen of programs is supported.
24551 dlopen_self=$enable_dlopen_self
24552
24553 # Whether dlopen of statically linked programs is supported.
24554 dlopen_self_static=$enable_dlopen_self_static
24555
24556 # Compiler flag to prevent dynamic linking.
24557 link_static_flag=$lt_lt_prog_compiler_static_RC
24558
24559 # Compiler flag to turn off builtin functions.
24560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24561
24562 # Compiler flag to allow reflexive dlopens.
24563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24564
24565 # Compiler flag to generate shared objects directly from archives.
24566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24567
24568 # Compiler flag to generate thread-safe objects.
24569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24570
24571 # Library versioning type.
24572 version_type=$version_type
24573
24574 # Format of library name prefix.
24575 libname_spec=$lt_libname_spec
24576
24577 # List of archive names.  First name is the real one, the rest are links.
24578 # The last name is the one that the linker finds with -lNAME.
24579 library_names_spec=$lt_library_names_spec
24580
24581 # The coded name of the library, if different from the real name.
24582 soname_spec=$lt_soname_spec
24583
24584 # Commands used to build and install an old-style archive.
24585 RANLIB=$lt_RANLIB
24586 old_archive_cmds=$lt_old_archive_cmds_RC
24587 old_postinstall_cmds=$lt_old_postinstall_cmds
24588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24589
24590 # Create an old-style archive from a shared archive.
24591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24592
24593 # Create a temporary old-style archive to link instead of a shared archive.
24594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24595
24596 # Commands used to build and install a shared archive.
24597 archive_cmds=$lt_archive_cmds_RC
24598 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24599 postinstall_cmds=$lt_postinstall_cmds
24600 postuninstall_cmds=$lt_postuninstall_cmds
24601
24602 # Commands used to build a loadable module (assumed same as above if empty)
24603 module_cmds=$lt_module_cmds_RC
24604 module_expsym_cmds=$lt_module_expsym_cmds_RC
24605
24606 # Commands to strip libraries.
24607 old_striplib=$lt_old_striplib
24608 striplib=$lt_striplib
24609
24610 # Dependencies to place before the objects being linked to create a
24611 # shared library.
24612 predep_objects=$lt_predep_objects_RC
24613
24614 # Dependencies to place after the objects being linked to create a
24615 # shared library.
24616 postdep_objects=$lt_postdep_objects_RC
24617
24618 # Dependencies to place before the objects being linked to create a
24619 # shared library.
24620 predeps=$lt_predeps_RC
24621
24622 # Dependencies to place after the objects being linked to create a
24623 # shared library.
24624 postdeps=$lt_postdeps_RC
24625
24626 # The library search path used internally by the compiler when linking
24627 # a shared library.
24628 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24629
24630 # Method to check whether dependent libraries are shared objects.
24631 deplibs_check_method=$lt_deplibs_check_method
24632
24633 # Command to use when deplibs_check_method == file_magic.
24634 file_magic_cmd=$lt_file_magic_cmd
24635
24636 # Flag that allows shared libraries with undefined symbols to be built.
24637 allow_undefined_flag=$lt_allow_undefined_flag_RC
24638
24639 # Flag that forces no undefined symbols.
24640 no_undefined_flag=$lt_no_undefined_flag_RC
24641
24642 # Commands used to finish a libtool library installation in a directory.
24643 finish_cmds=$lt_finish_cmds
24644
24645 # Same as above, but a single script fragment to be evaled but not shown.
24646 finish_eval=$lt_finish_eval
24647
24648 # Take the output of nm and produce a listing of raw symbols and C names.
24649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24650
24651 # Transform the output of nm in a proper C declaration
24652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24653
24654 # Transform the output of nm in a C name address pair
24655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24656
24657 # This is the shared library runtime path variable.
24658 runpath_var=$runpath_var
24659
24660 # This is the shared library path variable.
24661 shlibpath_var=$shlibpath_var
24662
24663 # Is shlibpath searched before the hard-coded library search path?
24664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24665
24666 # How to hardcode a shared library path into an executable.
24667 hardcode_action=$hardcode_action_RC
24668
24669 # Whether we should hardcode library paths into libraries.
24670 hardcode_into_libs=$hardcode_into_libs
24671
24672 # Flag to hardcode \$libdir into a binary during linking.
24673 # This must work even if \$libdir does not exist.
24674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24675
24676 # If ld is used when linking, flag to hardcode \$libdir into
24677 # a binary during linking. This must work even if \$libdir does
24678 # not exist.
24679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24680
24681 # Whether we need a single -rpath flag with a separated argument.
24682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24683
24684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24685 # resulting binary.
24686 hardcode_direct=$hardcode_direct_RC
24687
24688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24689 # resulting binary.
24690 hardcode_minus_L=$hardcode_minus_L_RC
24691
24692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24693 # the resulting binary.
24694 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24695
24696 # Set to yes if building a shared library automatically hardcodes DIR into the library
24697 # and all subsequent libraries and executables linked against it.
24698 hardcode_automatic=$hardcode_automatic_RC
24699
24700 # Variables whose values should be saved in libtool wrapper scripts and
24701 # restored at relink time.
24702 variables_saved_for_relink="$variables_saved_for_relink"
24703
24704 # Whether libtool must link a program against all its dependency libraries.
24705 link_all_deplibs=$link_all_deplibs_RC
24706
24707 # Compile-time system search path for libraries
24708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24709
24710 # Run-time system search path for libraries
24711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24712
24713 # Fix the shell variable \$srcfile for the compiler.
24714 fix_srcfile_path="$fix_srcfile_path_RC"
24715
24716 # Set to yes if exported symbols are required.
24717 always_export_symbols=$always_export_symbols_RC
24718
24719 # The commands to list exported symbols.
24720 export_symbols_cmds=$lt_export_symbols_cmds_RC
24721
24722 # The commands to extract the exported symbol list from a shared archive.
24723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24724
24725 # Symbols that should not be listed in the preloaded symbols.
24726 exclude_expsyms=$lt_exclude_expsyms_RC
24727
24728 # Symbols that must always be exported.
24729 include_expsyms=$lt_include_expsyms_RC
24730
24731 # ### END LIBTOOL TAG CONFIG: $tagname
24732
24733 __EOF__
24734
24735
24736 else
24737   # If there is no Makefile yet, we rely on a make rule to execute
24738   # `config.status --recheck' to rerun these tests and create the
24739   # libtool script then.
24740   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24741   if test -f "$ltmain_in"; then
24742     test -f Makefile && make "$ltmain"
24743   fi
24744 fi
24745
24746
24747 ac_ext=c
24748 ac_cpp='$CPP $CPPFLAGS'
24749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24752
24753 CC="$lt_save_CC"
24754
24755         ;;
24756
24757       *)
24758         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24759 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24760    { (exit 1); exit 1; }; }
24761         ;;
24762       esac
24763
24764       # Append the new tag name to the list of available tags.
24765       if test -n "$tagname" ; then
24766       available_tags="$available_tags $tagname"
24767     fi
24768     fi
24769   done
24770   IFS="$lt_save_ifs"
24771
24772   # Now substitute the updated list of available tags.
24773   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24774     mv "${ofile}T" "$ofile"
24775     chmod +x "$ofile"
24776   else
24777     rm -f "${ofile}T"
24778     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24779 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24780    { (exit 1); exit 1; }; }
24781   fi
24782 fi
24783
24784
24785
24786 # This can be used to rebuild libtool when needed
24787 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24788
24789 # Always use our own libtool.
24790 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24791
24792 # Prevent multiple expansion
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814 if test "$lt_cv_dlopen_self" = "yes" ; then
24815
24816 cat >>confdefs.h <<\_ACEOF
24817 #define CAN_DLOPEN_SELF 1
24818 _ACEOF
24819
24820 fi
24821
24822 etags_version=`$ETAGS --version 2>&1`
24823 case "$etags_version" in
24824         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24825         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24826         *) ETAGSFLAGS="" ;;
24827 esac
24828 ETAGSFLAGS=$ETAGSFLAGS
24829
24830
24831 if test "$WITH_LLVMGCCDIR" = "default" ; then
24832   LLVMGCC="llvm-gcc${EXEEXT}"
24833   LLVMGXX="llvm-g++${EXEEXT}"
24834   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24835 set dummy $LLVMGCC; ac_word=$2
24836 echo "$as_me:$LINENO: checking for $ac_word" >&5
24837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24838 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   case $LLVMGCC in
24842   [\\/]* | ?:[\\/]*)
24843   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24844   ;;
24845   *)
24846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24847 for as_dir in $PATH
24848 do
24849   IFS=$as_save_IFS
24850   test -z "$as_dir" && as_dir=.
24851   for ac_exec_ext in '' $ac_executable_extensions; do
24852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24853     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24855     break 2
24856   fi
24857 done
24858 done
24859
24860   ;;
24861 esac
24862 fi
24863 LLVMGCC=$ac_cv_path_LLVMGCC
24864
24865 if test -n "$LLVMGCC"; then
24866   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24867 echo "${ECHO_T}$LLVMGCC" >&6
24868 else
24869   echo "$as_me:$LINENO: result: no" >&5
24870 echo "${ECHO_T}no" >&6
24871 fi
24872
24873   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24874 set dummy $LLVMGXX; ac_word=$2
24875 echo "$as_me:$LINENO: checking for $ac_word" >&5
24876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24877 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24878   echo $ECHO_N "(cached) $ECHO_C" >&6
24879 else
24880   case $LLVMGXX in
24881   [\\/]* | ?:[\\/]*)
24882   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24883   ;;
24884   *)
24885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24886 for as_dir in $PATH
24887 do
24888   IFS=$as_save_IFS
24889   test -z "$as_dir" && as_dir=.
24890   for ac_exec_ext in '' $ac_executable_extensions; do
24891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24892     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24894     break 2
24895   fi
24896 done
24897 done
24898
24899   ;;
24900 esac
24901 fi
24902 LLVMGXX=$ac_cv_path_LLVMGXX
24903
24904 if test -n "$LLVMGXX"; then
24905   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24906 echo "${ECHO_T}$LLVMGXX" >&6
24907 else
24908   echo "$as_me:$LINENO: result: no" >&5
24909 echo "${ECHO_T}no" >&6
24910 fi
24911
24912 else
24913   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24914   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24915   LLVMGCC=$LLVMGCC
24916
24917   LLVMGXX=$LLVMGXX
24918
24919 fi
24920
24921 echo "$as_me:$LINENO: checking tool compatibility" >&5
24922 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24923
24924 ICC=no
24925 IXX=no
24926 case $CC in
24927   icc*|icpc*)
24928     ICC=yes
24929     IXX=yes
24930     ;;
24931    *)
24932     ;;
24933 esac
24934
24935 if test "$GCC" != "yes" && test "$ICC" != "yes"
24936 then
24937   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24938 echo "$as_me: error: gcc|icc required but not found" >&2;}
24939    { (exit 1); exit 1; }; }
24940 fi
24941
24942 if test "$GXX" != "yes" && test "$IXX" != "yes"
24943 then
24944   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24945 echo "$as_me: error: g++|icc required but not found" >&2;}
24946    { (exit 1); exit 1; }; }
24947 fi
24948
24949 if test "$GCC" = "yes"
24950 then
24951   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24952   if test "$gccmajor" -lt "3"
24953   then
24954     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24955 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24956    { (exit 1); exit 1; }; }
24957   fi
24958 fi
24959
24960 if test -z "$llvm_cv_gnu_make_command"
24961 then
24962   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24963 echo "$as_me: error: GNU Make required but not found" >&2;}
24964    { (exit 1); exit 1; }; }
24965 fi
24966
24967 echo "$as_me:$LINENO: result: ok" >&5
24968 echo "${ECHO_T}ok" >&6
24969
24970
24971
24972 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24973 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24974 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24975   echo $ECHO_N "(cached) $ECHO_C" >&6
24976 else
24977   ac_check_lib_save_LIBS=$LIBS
24978 LIBS="-lelf  $LIBS"
24979 cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985
24986 /* Override any gcc2 internal prototype to avoid an error.  */
24987 #ifdef __cplusplus
24988 extern "C"
24989 #endif
24990 /* We use char because int might match the return type of a gcc2
24991    builtin and then its argument prototype would still apply.  */
24992 char elf_begin ();
24993 int
24994 main ()
24995 {
24996 elf_begin ();
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest.$ac_objext conftest$ac_exeext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25003   (eval $ac_link) 2>conftest.er1
25004   ac_status=$?
25005   grep -v '^ *+' conftest.er1 >conftest.err
25006   rm -f conftest.er1
25007   cat conftest.err >&5
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); } &&
25010          { ac_try='test -z "$ac_c_werror_flag"
25011                          || test ! -s conftest.err'
25012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013   (eval $ac_try) 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; } &&
25017          { ac_try='test -s conftest$ac_exeext'
25018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019   (eval $ac_try) 2>&5
25020   ac_status=$?
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); }; }; then
25023   ac_cv_lib_elf_elf_begin=yes
25024 else
25025   echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25027
25028 ac_cv_lib_elf_elf_begin=no
25029 fi
25030 rm -f conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 LIBS=$ac_check_lib_save_LIBS
25033 fi
25034 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25036 if test $ac_cv_lib_elf_elf_begin = yes; then
25037   cat >>confdefs.h <<_ACEOF
25038 #define HAVE_LIBELF 1
25039 _ACEOF
25040
25041   LIBS="-lelf $LIBS"
25042
25043 fi
25044
25045
25046 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25047 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25048 if test "${ac_cv_lib_m_sin+set}" = set; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051   ac_check_lib_save_LIBS=$LIBS
25052 LIBS="-lm  $LIBS"
25053 cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h.  */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h.  */
25059
25060 /* Override any gcc2 internal prototype to avoid an error.  */
25061 #ifdef __cplusplus
25062 extern "C"
25063 #endif
25064 /* We use char because int might match the return type of a gcc2
25065    builtin and then its argument prototype would still apply.  */
25066 char sin ();
25067 int
25068 main ()
25069 {
25070 sin ();
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 rm -f conftest.$ac_objext conftest$ac_exeext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25077   (eval $ac_link) 2>conftest.er1
25078   ac_status=$?
25079   grep -v '^ *+' conftest.er1 >conftest.err
25080   rm -f conftest.er1
25081   cat conftest.err >&5
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); } &&
25084          { ac_try='test -z "$ac_c_werror_flag"
25085                          || test ! -s conftest.err'
25086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087   (eval $ac_try) 2>&5
25088   ac_status=$?
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); }; } &&
25091          { ac_try='test -s conftest$ac_exeext'
25092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093   (eval $ac_try) 2>&5
25094   ac_status=$?
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); }; }; then
25097   ac_cv_lib_m_sin=yes
25098 else
25099   echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25101
25102 ac_cv_lib_m_sin=no
25103 fi
25104 rm -f conftest.err conftest.$ac_objext \
25105       conftest$ac_exeext conftest.$ac_ext
25106 LIBS=$ac_check_lib_save_LIBS
25107 fi
25108 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25109 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25110 if test $ac_cv_lib_m_sin = yes; then
25111   cat >>confdefs.h <<_ACEOF
25112 #define HAVE_LIBM 1
25113 _ACEOF
25114
25115   LIBS="-lm $LIBS"
25116
25117 fi
25118
25119
25120 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25121 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25122 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25123   echo $ECHO_N "(cached) $ECHO_C" >&6
25124 else
25125   ac_func_search_save_LIBS=$LIBS
25126 ac_cv_search_lt_dlopen=no
25127 cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h.  */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h.  */
25133
25134 /* Override any gcc2 internal prototype to avoid an error.  */
25135 #ifdef __cplusplus
25136 extern "C"
25137 #endif
25138 /* We use char because int might match the return type of a gcc2
25139    builtin and then its argument prototype would still apply.  */
25140 char lt_dlopen ();
25141 int
25142 main ()
25143 {
25144 lt_dlopen ();
25145   ;
25146   return 0;
25147 }
25148 _ACEOF
25149 rm -f conftest.$ac_objext conftest$ac_exeext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151   (eval $ac_link) 2>conftest.er1
25152   ac_status=$?
25153   grep -v '^ *+' conftest.er1 >conftest.err
25154   rm -f conftest.er1
25155   cat conftest.err >&5
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); } &&
25158          { ac_try='test -z "$ac_c_werror_flag"
25159                          || test ! -s conftest.err'
25160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161   (eval $ac_try) 2>&5
25162   ac_status=$?
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); }; } &&
25165          { ac_try='test -s conftest$ac_exeext'
25166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167   (eval $ac_try) 2>&5
25168   ac_status=$?
25169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); }; }; then
25171   ac_cv_search_lt_dlopen="none required"
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176 fi
25177 rm -f conftest.err conftest.$ac_objext \
25178       conftest$ac_exeext conftest.$ac_ext
25179 if test "$ac_cv_search_lt_dlopen" = no; then
25180   for ac_lib in ltdl; do
25181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25182     cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h.  */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h.  */
25188
25189 /* Override any gcc2 internal prototype to avoid an error.  */
25190 #ifdef __cplusplus
25191 extern "C"
25192 #endif
25193 /* We use char because int might match the return type of a gcc2
25194    builtin and then its argument prototype would still apply.  */
25195 char lt_dlopen ();
25196 int
25197 main ()
25198 {
25199 lt_dlopen ();
25200   ;
25201   return 0;
25202 }
25203 _ACEOF
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25206   (eval $ac_link) 2>conftest.er1
25207   ac_status=$?
25208   grep -v '^ *+' conftest.er1 >conftest.err
25209   rm -f conftest.er1
25210   cat conftest.err >&5
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); } &&
25213          { ac_try='test -z "$ac_c_werror_flag"
25214                          || test ! -s conftest.err'
25215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216   (eval $ac_try) 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); }; } &&
25220          { ac_try='test -s conftest$ac_exeext'
25221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222   (eval $ac_try) 2>&5
25223   ac_status=$?
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); }; }; then
25226   ac_cv_search_lt_dlopen="-l$ac_lib"
25227 break
25228 else
25229   echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232 fi
25233 rm -f conftest.err conftest.$ac_objext \
25234       conftest$ac_exeext conftest.$ac_ext
25235   done
25236 fi
25237 LIBS=$ac_func_search_save_LIBS
25238 fi
25239 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25240 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25241 if test "$ac_cv_search_lt_dlopen" != no; then
25242   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25243
25244 cat >>confdefs.h <<\_ACEOF
25245 #define HAVE_LT_DLOPEN 1
25246 _ACEOF
25247
25248 else
25249   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25250                            not be available" >&5
25251 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25252                            not be available" >&2;}
25253 fi
25254
25255
25256 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25257 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25258 if test "${ac_cv_search_dlopen+set}" = set; then
25259   echo $ECHO_N "(cached) $ECHO_C" >&6
25260 else
25261   ac_func_search_save_LIBS=$LIBS
25262 ac_cv_search_dlopen=no
25263 cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h.  */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h.  */
25269
25270 /* Override any gcc2 internal prototype to avoid an error.  */
25271 #ifdef __cplusplus
25272 extern "C"
25273 #endif
25274 /* We use char because int might match the return type of a gcc2
25275    builtin and then its argument prototype would still apply.  */
25276 char dlopen ();
25277 int
25278 main ()
25279 {
25280 dlopen ();
25281   ;
25282   return 0;
25283 }
25284 _ACEOF
25285 rm -f conftest.$ac_objext conftest$ac_exeext
25286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25287   (eval $ac_link) 2>conftest.er1
25288   ac_status=$?
25289   grep -v '^ *+' conftest.er1 >conftest.err
25290   rm -f conftest.er1
25291   cat conftest.err >&5
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); } &&
25294          { ac_try='test -z "$ac_c_werror_flag"
25295                          || test ! -s conftest.err'
25296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297   (eval $ac_try) 2>&5
25298   ac_status=$?
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); }; } &&
25301          { ac_try='test -s conftest$ac_exeext'
25302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303   (eval $ac_try) 2>&5
25304   ac_status=$?
25305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); }; }; then
25307   ac_cv_search_dlopen="none required"
25308 else
25309   echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25311
25312 fi
25313 rm -f conftest.err conftest.$ac_objext \
25314       conftest$ac_exeext conftest.$ac_ext
25315 if test "$ac_cv_search_dlopen" = no; then
25316   for ac_lib in dl; do
25317     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25318     cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h.  */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h.  */
25324
25325 /* Override any gcc2 internal prototype to avoid an error.  */
25326 #ifdef __cplusplus
25327 extern "C"
25328 #endif
25329 /* We use char because int might match the return type of a gcc2
25330    builtin and then its argument prototype would still apply.  */
25331 char dlopen ();
25332 int
25333 main ()
25334 {
25335 dlopen ();
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext conftest$ac_exeext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25342   (eval $ac_link) 2>conftest.er1
25343   ac_status=$?
25344   grep -v '^ *+' conftest.er1 >conftest.err
25345   rm -f conftest.er1
25346   cat conftest.err >&5
25347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); } &&
25349          { ac_try='test -z "$ac_c_werror_flag"
25350                          || test ! -s conftest.err'
25351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352   (eval $ac_try) 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); }; } &&
25356          { ac_try='test -s conftest$ac_exeext'
25357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358   (eval $ac_try) 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; }; then
25362   ac_cv_search_dlopen="-l$ac_lib"
25363 break
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 fi
25369 rm -f conftest.err conftest.$ac_objext \
25370       conftest$ac_exeext conftest.$ac_ext
25371   done
25372 fi
25373 LIBS=$ac_func_search_save_LIBS
25374 fi
25375 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25376 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25377 if test "$ac_cv_search_dlopen" != no; then
25378   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25379
25380 cat >>confdefs.h <<\_ACEOF
25381 #define HAVE_DLOPEN 1
25382 _ACEOF
25383
25384 else
25385   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25386 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25387 fi
25388
25389
25390 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25391 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25392 if test "${ac_cv_search_mallinfo+set}" = set; then
25393   echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395   ac_func_search_save_LIBS=$LIBS
25396 ac_cv_search_mallinfo=no
25397 cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403
25404 /* Override any gcc2 internal prototype to avoid an error.  */
25405 #ifdef __cplusplus
25406 extern "C"
25407 #endif
25408 /* We use char because int might match the return type of a gcc2
25409    builtin and then its argument prototype would still apply.  */
25410 char mallinfo ();
25411 int
25412 main ()
25413 {
25414 mallinfo ();
25415   ;
25416   return 0;
25417 }
25418 _ACEOF
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421   (eval $ac_link) 2>conftest.er1
25422   ac_status=$?
25423   grep -v '^ *+' conftest.er1 >conftest.err
25424   rm -f conftest.er1
25425   cat conftest.err >&5
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); } &&
25428          { ac_try='test -z "$ac_c_werror_flag"
25429                          || test ! -s conftest.err'
25430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431   (eval $ac_try) 2>&5
25432   ac_status=$?
25433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434   (exit $ac_status); }; } &&
25435          { ac_try='test -s conftest$ac_exeext'
25436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); }; }; then
25441   ac_cv_search_mallinfo="none required"
25442 else
25443   echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 fi
25447 rm -f conftest.err conftest.$ac_objext \
25448       conftest$ac_exeext conftest.$ac_ext
25449 if test "$ac_cv_search_mallinfo" = no; then
25450   for ac_lib in malloc; do
25451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25452     cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h.  */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h.  */
25458
25459 /* Override any gcc2 internal prototype to avoid an error.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 /* We use char because int might match the return type of a gcc2
25464    builtin and then its argument prototype would still apply.  */
25465 char mallinfo ();
25466 int
25467 main ()
25468 {
25469 mallinfo ();
25470   ;
25471   return 0;
25472 }
25473 _ACEOF
25474 rm -f conftest.$ac_objext conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476   (eval $ac_link) 2>conftest.er1
25477   ac_status=$?
25478   grep -v '^ *+' conftest.er1 >conftest.err
25479   rm -f conftest.er1
25480   cat conftest.err >&5
25481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); } &&
25483          { ac_try='test -z "$ac_c_werror_flag"
25484                          || test ! -s conftest.err'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; } &&
25490          { ac_try='test -s conftest$ac_exeext'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; }; then
25496   ac_cv_search_mallinfo="-l$ac_lib"
25497 break
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 fi
25503 rm -f conftest.err conftest.$ac_objext \
25504       conftest$ac_exeext conftest.$ac_ext
25505   done
25506 fi
25507 LIBS=$ac_func_search_save_LIBS
25508 fi
25509 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25510 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25511 if test "$ac_cv_search_mallinfo" != no; then
25512   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25513
25514 cat >>confdefs.h <<\_ACEOF
25515 #define HAVE_MALLINFO 1
25516 _ACEOF
25517
25518 fi
25519
25520
25521 if test "$ENABLE_THREADS" -eq 1 ; then
25522
25523 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25524 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25525 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25526   echo $ECHO_N "(cached) $ECHO_C" >&6
25527 else
25528   ac_check_lib_save_LIBS=$LIBS
25529 LIBS="-lpthread  $LIBS"
25530 cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h.  */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h.  */
25536
25537 /* Override any gcc2 internal prototype to avoid an error.  */
25538 #ifdef __cplusplus
25539 extern "C"
25540 #endif
25541 /* We use char because int might match the return type of a gcc2
25542    builtin and then its argument prototype would still apply.  */
25543 char pthread_mutex_init ();
25544 int
25545 main ()
25546 {
25547 pthread_mutex_init ();
25548   ;
25549   return 0;
25550 }
25551 _ACEOF
25552 rm -f conftest.$ac_objext conftest$ac_exeext
25553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25554   (eval $ac_link) 2>conftest.er1
25555   ac_status=$?
25556   grep -v '^ *+' conftest.er1 >conftest.err
25557   rm -f conftest.er1
25558   cat conftest.err >&5
25559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560   (exit $ac_status); } &&
25561          { ac_try='test -z "$ac_c_werror_flag"
25562                          || test ! -s conftest.err'
25563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564   (eval $ac_try) 2>&5
25565   ac_status=$?
25566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567   (exit $ac_status); }; } &&
25568          { ac_try='test -s conftest$ac_exeext'
25569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570   (eval $ac_try) 2>&5
25571   ac_status=$?
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); }; }; then
25574   ac_cv_lib_pthread_pthread_mutex_init=yes
25575 else
25576   echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25578
25579 ac_cv_lib_pthread_pthread_mutex_init=no
25580 fi
25581 rm -f conftest.err conftest.$ac_objext \
25582       conftest$ac_exeext conftest.$ac_ext
25583 LIBS=$ac_check_lib_save_LIBS
25584 fi
25585 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25586 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25587 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25588   cat >>confdefs.h <<_ACEOF
25589 #define HAVE_LIBPTHREAD 1
25590 _ACEOF
25591
25592   LIBS="-lpthread $LIBS"
25593
25594 fi
25595
25596   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25597 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25598 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25599   echo $ECHO_N "(cached) $ECHO_C" >&6
25600 else
25601   ac_func_search_save_LIBS=$LIBS
25602 ac_cv_search_pthread_mutex_lock=no
25603 cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h.  */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h.  */
25609
25610 /* Override any gcc2 internal prototype to avoid an error.  */
25611 #ifdef __cplusplus
25612 extern "C"
25613 #endif
25614 /* We use char because int might match the return type of a gcc2
25615    builtin and then its argument prototype would still apply.  */
25616 char pthread_mutex_lock ();
25617 int
25618 main ()
25619 {
25620 pthread_mutex_lock ();
25621   ;
25622   return 0;
25623 }
25624 _ACEOF
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25627   (eval $ac_link) 2>conftest.er1
25628   ac_status=$?
25629   grep -v '^ *+' conftest.er1 >conftest.err
25630   rm -f conftest.er1
25631   cat conftest.err >&5
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); } &&
25634          { ac_try='test -z "$ac_c_werror_flag"
25635                          || test ! -s conftest.err'
25636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637   (eval $ac_try) 2>&5
25638   ac_status=$?
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); }; } &&
25641          { ac_try='test -s conftest$ac_exeext'
25642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643   (eval $ac_try) 2>&5
25644   ac_status=$?
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); }; }; then
25647   ac_cv_search_pthread_mutex_lock="none required"
25648 else
25649   echo "$as_me: failed program was:" >&5
25650 sed 's/^/| /' conftest.$ac_ext >&5
25651
25652 fi
25653 rm -f conftest.err conftest.$ac_objext \
25654       conftest$ac_exeext conftest.$ac_ext
25655 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25656   for ac_lib in pthread; do
25657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25658     cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664
25665 /* Override any gcc2 internal prototype to avoid an error.  */
25666 #ifdef __cplusplus
25667 extern "C"
25668 #endif
25669 /* We use char because int might match the return type of a gcc2
25670    builtin and then its argument prototype would still apply.  */
25671 char pthread_mutex_lock ();
25672 int
25673 main ()
25674 {
25675 pthread_mutex_lock ();
25676   ;
25677   return 0;
25678 }
25679 _ACEOF
25680 rm -f conftest.$ac_objext conftest$ac_exeext
25681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25682   (eval $ac_link) 2>conftest.er1
25683   ac_status=$?
25684   grep -v '^ *+' conftest.er1 >conftest.err
25685   rm -f conftest.er1
25686   cat conftest.err >&5
25687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688   (exit $ac_status); } &&
25689          { ac_try='test -z "$ac_c_werror_flag"
25690                          || test ! -s conftest.err'
25691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692   (eval $ac_try) 2>&5
25693   ac_status=$?
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); }; } &&
25696          { ac_try='test -s conftest$ac_exeext'
25697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698   (eval $ac_try) 2>&5
25699   ac_status=$?
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); }; }; then
25702   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25703 break
25704 else
25705   echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25707
25708 fi
25709 rm -f conftest.err conftest.$ac_objext \
25710       conftest$ac_exeext conftest.$ac_ext
25711   done
25712 fi
25713 LIBS=$ac_func_search_save_LIBS
25714 fi
25715 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25716 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25717 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25718   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25719
25720 cat >>confdefs.h <<\_ACEOF
25721 #define HAVE_PTHREAD_MUTEX_LOCK 1
25722 _ACEOF
25723
25724 fi
25725
25726 fi
25727
25728
25729
25730
25731
25732
25733
25734 ac_header_dirent=no
25735 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25736   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25737 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25738 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25740   echo $ECHO_N "(cached) $ECHO_C" >&6
25741 else
25742   cat >conftest.$ac_ext <<_ACEOF
25743 /* confdefs.h.  */
25744 _ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h.  */
25748 #include <sys/types.h>
25749 #include <$ac_hdr>
25750
25751 int
25752 main ()
25753 {
25754 if ((DIR *) 0)
25755 return 0;
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762   (eval $ac_compile) 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } &&
25769          { ac_try='test -z "$ac_c_werror_flag"
25770                          || test ! -s conftest.err'
25771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772   (eval $ac_try) 2>&5
25773   ac_status=$?
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); }; } &&
25776          { ac_try='test -s conftest.$ac_objext'
25777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778   (eval $ac_try) 2>&5
25779   ac_status=$?
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); }; }; then
25782   eval "$as_ac_Header=yes"
25783 else
25784   echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25786
25787 eval "$as_ac_Header=no"
25788 fi
25789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25790 fi
25791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25794   cat >>confdefs.h <<_ACEOF
25795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25796 _ACEOF
25797
25798 ac_header_dirent=$ac_hdr; break
25799 fi
25800
25801 done
25802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25803 if test $ac_header_dirent = dirent.h; then
25804   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25806 if test "${ac_cv_search_opendir+set}" = set; then
25807   echo $ECHO_N "(cached) $ECHO_C" >&6
25808 else
25809   ac_func_search_save_LIBS=$LIBS
25810 ac_cv_search_opendir=no
25811 cat >conftest.$ac_ext <<_ACEOF
25812 /* confdefs.h.  */
25813 _ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h.  */
25817
25818 /* Override any gcc2 internal prototype to avoid an error.  */
25819 #ifdef __cplusplus
25820 extern "C"
25821 #endif
25822 /* We use char because int might match the return type of a gcc2
25823    builtin and then its argument prototype would still apply.  */
25824 char opendir ();
25825 int
25826 main ()
25827 {
25828 opendir ();
25829   ;
25830   return 0;
25831 }
25832 _ACEOF
25833 rm -f conftest.$ac_objext conftest$ac_exeext
25834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25835   (eval $ac_link) 2>conftest.er1
25836   ac_status=$?
25837   grep -v '^ *+' conftest.er1 >conftest.err
25838   rm -f conftest.er1
25839   cat conftest.err >&5
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); } &&
25842          { ac_try='test -z "$ac_c_werror_flag"
25843                          || test ! -s conftest.err'
25844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845   (eval $ac_try) 2>&5
25846   ac_status=$?
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); }; } &&
25849          { ac_try='test -s conftest$ac_exeext'
25850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851   (eval $ac_try) 2>&5
25852   ac_status=$?
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); }; }; then
25855   ac_cv_search_opendir="none required"
25856 else
25857   echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25859
25860 fi
25861 rm -f conftest.err conftest.$ac_objext \
25862       conftest$ac_exeext conftest.$ac_ext
25863 if test "$ac_cv_search_opendir" = no; then
25864   for ac_lib in dir; do
25865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25866     cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h.  */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h.  */
25872
25873 /* Override any gcc2 internal prototype to avoid an error.  */
25874 #ifdef __cplusplus
25875 extern "C"
25876 #endif
25877 /* We use char because int might match the return type of a gcc2
25878    builtin and then its argument prototype would still apply.  */
25879 char opendir ();
25880 int
25881 main ()
25882 {
25883 opendir ();
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25890   (eval $ac_link) 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } &&
25897          { ac_try='test -z "$ac_c_werror_flag"
25898                          || test ! -s conftest.err'
25899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900   (eval $ac_try) 2>&5
25901   ac_status=$?
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); }; } &&
25904          { ac_try='test -s conftest$ac_exeext'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; }; then
25910   ac_cv_search_opendir="-l$ac_lib"
25911 break
25912 else
25913   echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25915
25916 fi
25917 rm -f conftest.err conftest.$ac_objext \
25918       conftest$ac_exeext conftest.$ac_ext
25919   done
25920 fi
25921 LIBS=$ac_func_search_save_LIBS
25922 fi
25923 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25924 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25925 if test "$ac_cv_search_opendir" != no; then
25926   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25927
25928 fi
25929
25930 else
25931   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25933 if test "${ac_cv_search_opendir+set}" = set; then
25934   echo $ECHO_N "(cached) $ECHO_C" >&6
25935 else
25936   ac_func_search_save_LIBS=$LIBS
25937 ac_cv_search_opendir=no
25938 cat >conftest.$ac_ext <<_ACEOF
25939 /* confdefs.h.  */
25940 _ACEOF
25941 cat confdefs.h >>conftest.$ac_ext
25942 cat >>conftest.$ac_ext <<_ACEOF
25943 /* end confdefs.h.  */
25944
25945 /* Override any gcc2 internal prototype to avoid an error.  */
25946 #ifdef __cplusplus
25947 extern "C"
25948 #endif
25949 /* We use char because int might match the return type of a gcc2
25950    builtin and then its argument prototype would still apply.  */
25951 char opendir ();
25952 int
25953 main ()
25954 {
25955 opendir ();
25956   ;
25957   return 0;
25958 }
25959 _ACEOF
25960 rm -f conftest.$ac_objext conftest$ac_exeext
25961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25962   (eval $ac_link) 2>conftest.er1
25963   ac_status=$?
25964   grep -v '^ *+' conftest.er1 >conftest.err
25965   rm -f conftest.er1
25966   cat conftest.err >&5
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); } &&
25969          { ac_try='test -z "$ac_c_werror_flag"
25970                          || test ! -s conftest.err'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; } &&
25976          { ac_try='test -s conftest$ac_exeext'
25977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978   (eval $ac_try) 2>&5
25979   ac_status=$?
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); }; }; then
25982   ac_cv_search_opendir="none required"
25983 else
25984   echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25986
25987 fi
25988 rm -f conftest.err conftest.$ac_objext \
25989       conftest$ac_exeext conftest.$ac_ext
25990 if test "$ac_cv_search_opendir" = no; then
25991   for ac_lib in x; do
25992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25993     cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999
26000 /* Override any gcc2 internal prototype to avoid an error.  */
26001 #ifdef __cplusplus
26002 extern "C"
26003 #endif
26004 /* We use char because int might match the return type of a gcc2
26005    builtin and then its argument prototype would still apply.  */
26006 char opendir ();
26007 int
26008 main ()
26009 {
26010 opendir ();
26011   ;
26012   return 0;
26013 }
26014 _ACEOF
26015 rm -f conftest.$ac_objext conftest$ac_exeext
26016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26017   (eval $ac_link) 2>conftest.er1
26018   ac_status=$?
26019   grep -v '^ *+' conftest.er1 >conftest.err
26020   rm -f conftest.er1
26021   cat conftest.err >&5
26022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023   (exit $ac_status); } &&
26024          { ac_try='test -z "$ac_c_werror_flag"
26025                          || test ! -s conftest.err'
26026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027   (eval $ac_try) 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; } &&
26031          { ac_try='test -s conftest$ac_exeext'
26032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033   (eval $ac_try) 2>&5
26034   ac_status=$?
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); }; }; then
26037   ac_cv_search_opendir="-l$ac_lib"
26038 break
26039 else
26040   echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26042
26043 fi
26044 rm -f conftest.err conftest.$ac_objext \
26045       conftest$ac_exeext conftest.$ac_ext
26046   done
26047 fi
26048 LIBS=$ac_func_search_save_LIBS
26049 fi
26050 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26051 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26052 if test "$ac_cv_search_opendir" != no; then
26053   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26054
26055 fi
26056
26057 fi
26058
26059 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26060 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26061 if test "${ac_cv_header_mmap_anon+set}" = set; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064    ac_ext=c
26065 ac_cpp='$CPP $CPPFLAGS'
26066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26069
26070   cat >conftest.$ac_ext <<_ACEOF
26071 /* confdefs.h.  */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h.  */
26076 #include <sys/mman.h>
26077 #include <unistd.h>
26078 #include <fcntl.h>
26079 int
26080 main ()
26081 {
26082 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26083   ;
26084   return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26089   (eval $ac_compile) 2>conftest.er1
26090   ac_status=$?
26091   grep -v '^ *+' conftest.er1 >conftest.err
26092   rm -f conftest.er1
26093   cat conftest.err >&5
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); } &&
26096          { ac_try='test -z "$ac_c_werror_flag"
26097                          || test ! -s conftest.err'
26098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099   (eval $ac_try) 2>&5
26100   ac_status=$?
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); }; } &&
26103          { ac_try='test -s conftest.$ac_objext'
26104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105   (eval $ac_try) 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); }; }; then
26109   ac_cv_header_mmap_anon=yes
26110 else
26111   echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26113
26114 ac_cv_header_mmap_anon=no
26115 fi
26116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26117   ac_ext=c
26118 ac_cpp='$CPP $CPPFLAGS'
26119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26122
26123
26124 fi
26125 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26126 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26127 if test "$ac_cv_header_mmap_anon" = yes; then
26128
26129 cat >>confdefs.h <<\_ACEOF
26130 #define HAVE_MMAP_ANONYMOUS 1
26131 _ACEOF
26132
26133 fi
26134
26135 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26136 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26137 if test "${ac_cv_header_stat_broken+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140   cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h.  */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h.  */
26146 #include <sys/types.h>
26147 #include <sys/stat.h>
26148
26149 #if defined(S_ISBLK) && defined(S_IFDIR)
26150 # if S_ISBLK (S_IFDIR)
26151 You lose.
26152 # endif
26153 #endif
26154
26155 #if defined(S_ISBLK) && defined(S_IFCHR)
26156 # if S_ISBLK (S_IFCHR)
26157 You lose.
26158 # endif
26159 #endif
26160
26161 #if defined(S_ISLNK) && defined(S_IFREG)
26162 # if S_ISLNK (S_IFREG)
26163 You lose.
26164 # endif
26165 #endif
26166
26167 #if defined(S_ISSOCK) && defined(S_IFREG)
26168 # if S_ISSOCK (S_IFREG)
26169 You lose.
26170 # endif
26171 #endif
26172
26173 _ACEOF
26174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26175   $EGREP "You lose" >/dev/null 2>&1; then
26176   ac_cv_header_stat_broken=yes
26177 else
26178   ac_cv_header_stat_broken=no
26179 fi
26180 rm -f conftest*
26181
26182 fi
26183 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26184 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26185 if test $ac_cv_header_stat_broken = yes; then
26186
26187 cat >>confdefs.h <<\_ACEOF
26188 #define STAT_MACROS_BROKEN 1
26189 _ACEOF
26190
26191 fi
26192
26193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26195 if test "${ac_cv_header_stdc+set}" = set; then
26196   echo $ECHO_N "(cached) $ECHO_C" >&6
26197 else
26198   cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h.  */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h.  */
26204 #include <stdlib.h>
26205 #include <stdarg.h>
26206 #include <string.h>
26207 #include <float.h>
26208
26209 int
26210 main ()
26211 {
26212
26213   ;
26214   return 0;
26215 }
26216 _ACEOF
26217 rm -f conftest.$ac_objext
26218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26219   (eval $ac_compile) 2>conftest.er1
26220   ac_status=$?
26221   grep -v '^ *+' conftest.er1 >conftest.err
26222   rm -f conftest.er1
26223   cat conftest.err >&5
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); } &&
26226          { ac_try='test -z "$ac_c_werror_flag"
26227                          || test ! -s conftest.err'
26228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229   (eval $ac_try) 2>&5
26230   ac_status=$?
26231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232   (exit $ac_status); }; } &&
26233          { ac_try='test -s conftest.$ac_objext'
26234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235   (eval $ac_try) 2>&5
26236   ac_status=$?
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); }; }; then
26239   ac_cv_header_stdc=yes
26240 else
26241   echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26243
26244 ac_cv_header_stdc=no
26245 fi
26246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26247
26248 if test $ac_cv_header_stdc = yes; then
26249   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26250   cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h.  */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h.  */
26256 #include <string.h>
26257
26258 _ACEOF
26259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26260   $EGREP "memchr" >/dev/null 2>&1; then
26261   :
26262 else
26263   ac_cv_header_stdc=no
26264 fi
26265 rm -f conftest*
26266
26267 fi
26268
26269 if test $ac_cv_header_stdc = yes; then
26270   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26271   cat >conftest.$ac_ext <<_ACEOF
26272 /* confdefs.h.  */
26273 _ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h.  */
26277 #include <stdlib.h>
26278
26279 _ACEOF
26280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26281   $EGREP "free" >/dev/null 2>&1; then
26282   :
26283 else
26284   ac_cv_header_stdc=no
26285 fi
26286 rm -f conftest*
26287
26288 fi
26289
26290 if test $ac_cv_header_stdc = yes; then
26291   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26292   if test "$cross_compiling" = yes; then
26293   :
26294 else
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 #include <ctype.h>
26302 #if ((' ' & 0x0FF) == 0x020)
26303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26305 #else
26306 # define ISLOWER(c) \
26307                    (('a' <= (c) && (c) <= 'i') \
26308                      || ('j' <= (c) && (c) <= 'r') \
26309                      || ('s' <= (c) && (c) <= 'z'))
26310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26311 #endif
26312
26313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26314 int
26315 main ()
26316 {
26317   int i;
26318   for (i = 0; i < 256; i++)
26319     if (XOR (islower (i), ISLOWER (i))
26320         || toupper (i) != TOUPPER (i))
26321       exit(2);
26322   exit (0);
26323 }
26324 _ACEOF
26325 rm -f conftest$ac_exeext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26327   (eval $ac_link) 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332   (eval $ac_try) 2>&5
26333   ac_status=$?
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); }; }; then
26336   :
26337 else
26338   echo "$as_me: program exited with status $ac_status" >&5
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342 ( exit $ac_status )
26343 ac_cv_header_stdc=no
26344 fi
26345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26346 fi
26347 fi
26348 fi
26349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26351 if test $ac_cv_header_stdc = yes; then
26352
26353 cat >>confdefs.h <<\_ACEOF
26354 #define STDC_HEADERS 1
26355 _ACEOF
26356
26357 fi
26358
26359 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26360 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26361 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364   cat >conftest.$ac_ext <<_ACEOF
26365 /* confdefs.h.  */
26366 _ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h.  */
26370 #include <sys/types.h>
26371 #include <sys/wait.h>
26372 #ifndef WEXITSTATUS
26373 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26374 #endif
26375 #ifndef WIFEXITED
26376 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26377 #endif
26378
26379 int
26380 main ()
26381 {
26382   int s;
26383   wait (&s);
26384   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26385   ;
26386   return 0;
26387 }
26388 _ACEOF
26389 rm -f conftest.$ac_objext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26391   (eval $ac_compile) 2>conftest.er1
26392   ac_status=$?
26393   grep -v '^ *+' conftest.er1 >conftest.err
26394   rm -f conftest.er1
26395   cat conftest.err >&5
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); } &&
26398          { ac_try='test -z "$ac_c_werror_flag"
26399                          || test ! -s conftest.err'
26400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401   (eval $ac_try) 2>&5
26402   ac_status=$?
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); }; } &&
26405          { ac_try='test -s conftest.$ac_objext'
26406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407   (eval $ac_try) 2>&5
26408   ac_status=$?
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); }; }; then
26411   ac_cv_header_sys_wait_h=yes
26412 else
26413   echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26415
26416 ac_cv_header_sys_wait_h=no
26417 fi
26418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26419 fi
26420 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26421 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26422 if test $ac_cv_header_sys_wait_h = yes; then
26423
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_SYS_WAIT_H 1
26426 _ACEOF
26427
26428 fi
26429
26430 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26431 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26432 if test "${ac_cv_header_time+set}" = set; then
26433   echo $ECHO_N "(cached) $ECHO_C" >&6
26434 else
26435   cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h.  */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h.  */
26441 #include <sys/types.h>
26442 #include <sys/time.h>
26443 #include <time.h>
26444
26445 int
26446 main ()
26447 {
26448 if ((struct tm *) 0)
26449 return 0;
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest.$ac_objext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26456   (eval $ac_compile) 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } &&
26463          { ac_try='test -z "$ac_c_werror_flag"
26464                          || test ! -s conftest.err'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; } &&
26470          { ac_try='test -s conftest.$ac_objext'
26471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472   (eval $ac_try) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); }; }; then
26476   ac_cv_header_time=yes
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ac_cv_header_time=no
26482 fi
26483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26484 fi
26485 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26486 echo "${ECHO_T}$ac_cv_header_time" >&6
26487 if test $ac_cv_header_time = yes; then
26488
26489 cat >>confdefs.h <<\_ACEOF
26490 #define TIME_WITH_SYS_TIME 1
26491 _ACEOF
26492
26493 fi
26494
26495
26496
26497
26498
26499
26500
26501
26502 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26503 do
26504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26506   echo "$as_me:$LINENO: checking for $ac_header" >&5
26507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509   echo $ECHO_N "(cached) $ECHO_C" >&6
26510 fi
26511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26513 else
26514   # Is the header compilable?
26515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26517 cat >conftest.$ac_ext <<_ACEOF
26518 /* confdefs.h.  */
26519 _ACEOF
26520 cat confdefs.h >>conftest.$ac_ext
26521 cat >>conftest.$ac_ext <<_ACEOF
26522 /* end confdefs.h.  */
26523 $ac_includes_default
26524 #include <$ac_header>
26525 _ACEOF
26526 rm -f conftest.$ac_objext
26527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26528   (eval $ac_compile) 2>conftest.er1
26529   ac_status=$?
26530   grep -v '^ *+' conftest.er1 >conftest.err
26531   rm -f conftest.er1
26532   cat conftest.err >&5
26533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534   (exit $ac_status); } &&
26535          { ac_try='test -z "$ac_c_werror_flag"
26536                          || test ! -s conftest.err'
26537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538   (eval $ac_try) 2>&5
26539   ac_status=$?
26540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); }; } &&
26542          { ac_try='test -s conftest.$ac_objext'
26543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544   (eval $ac_try) 2>&5
26545   ac_status=$?
26546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547   (exit $ac_status); }; }; then
26548   ac_header_compiler=yes
26549 else
26550   echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553 ac_header_compiler=no
26554 fi
26555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26557 echo "${ECHO_T}$ac_header_compiler" >&6
26558
26559 # Is the header present?
26560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26562 cat >conftest.$ac_ext <<_ACEOF
26563 /* confdefs.h.  */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h.  */
26568 #include <$ac_header>
26569 _ACEOF
26570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26572   ac_status=$?
26573   grep -v '^ *+' conftest.er1 >conftest.err
26574   rm -f conftest.er1
26575   cat conftest.err >&5
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); } >/dev/null; then
26578   if test -s conftest.err; then
26579     ac_cpp_err=$ac_c_preproc_warn_flag
26580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26581   else
26582     ac_cpp_err=
26583   fi
26584 else
26585   ac_cpp_err=yes
26586 fi
26587 if test -z "$ac_cpp_err"; then
26588   ac_header_preproc=yes
26589 else
26590   echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26592
26593   ac_header_preproc=no
26594 fi
26595 rm -f conftest.err conftest.$ac_ext
26596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26597 echo "${ECHO_T}$ac_header_preproc" >&6
26598
26599 # So?  What about this header?
26600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26601   yes:no: )
26602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26606     ac_header_preproc=yes
26607     ;;
26608   no:yes:* )
26609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26621     (
26622       cat <<\_ASBOX
26623 ## ----------------------------------- ##
26624 ## Report this to llvmbugs@cs.uiuc.edu ##
26625 ## ----------------------------------- ##
26626 _ASBOX
26627     ) |
26628       sed "s/^/$as_me: WARNING:     /" >&2
26629     ;;
26630 esac
26631 echo "$as_me:$LINENO: checking for $ac_header" >&5
26632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636   eval "$as_ac_Header=\$ac_header_preproc"
26637 fi
26638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26640
26641 fi
26642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26643   cat >>confdefs.h <<_ACEOF
26644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26645 _ACEOF
26646
26647 fi
26648
26649 done
26650
26651
26652
26653
26654
26655
26656
26657 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26658 do
26659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26661   echo "$as_me:$LINENO: checking for $ac_header" >&5
26662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664   echo $ECHO_N "(cached) $ECHO_C" >&6
26665 fi
26666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26668 else
26669   # Is the header compilable?
26670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26672 cat >conftest.$ac_ext <<_ACEOF
26673 /* confdefs.h.  */
26674 _ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h.  */
26678 $ac_includes_default
26679 #include <$ac_header>
26680 _ACEOF
26681 rm -f conftest.$ac_objext
26682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26683   (eval $ac_compile) 2>conftest.er1
26684   ac_status=$?
26685   grep -v '^ *+' conftest.er1 >conftest.err
26686   rm -f conftest.er1
26687   cat conftest.err >&5
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); } &&
26690          { ac_try='test -z "$ac_c_werror_flag"
26691                          || test ! -s conftest.err'
26692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693   (eval $ac_try) 2>&5
26694   ac_status=$?
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); }; } &&
26697          { ac_try='test -s conftest.$ac_objext'
26698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699   (eval $ac_try) 2>&5
26700   ac_status=$?
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); }; }; then
26703   ac_header_compiler=yes
26704 else
26705   echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26707
26708 ac_header_compiler=no
26709 fi
26710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26712 echo "${ECHO_T}$ac_header_compiler" >&6
26713
26714 # Is the header present?
26715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26717 cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 #include <$ac_header>
26724 _ACEOF
26725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26727   ac_status=$?
26728   grep -v '^ *+' conftest.er1 >conftest.err
26729   rm -f conftest.er1
26730   cat conftest.err >&5
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } >/dev/null; then
26733   if test -s conftest.err; then
26734     ac_cpp_err=$ac_c_preproc_warn_flag
26735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26736   else
26737     ac_cpp_err=
26738   fi
26739 else
26740   ac_cpp_err=yes
26741 fi
26742 if test -z "$ac_cpp_err"; then
26743   ac_header_preproc=yes
26744 else
26745   echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748   ac_header_preproc=no
26749 fi
26750 rm -f conftest.err conftest.$ac_ext
26751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26752 echo "${ECHO_T}$ac_header_preproc" >&6
26753
26754 # So?  What about this header?
26755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26756   yes:no: )
26757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26761     ac_header_preproc=yes
26762     ;;
26763   no:yes:* )
26764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26776     (
26777       cat <<\_ASBOX
26778 ## ----------------------------------- ##
26779 ## Report this to llvmbugs@cs.uiuc.edu ##
26780 ## ----------------------------------- ##
26781 _ASBOX
26782     ) |
26783       sed "s/^/$as_me: WARNING:     /" >&2
26784     ;;
26785 esac
26786 echo "$as_me:$LINENO: checking for $ac_header" >&5
26787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26789   echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791   eval "$as_ac_Header=\$ac_header_preproc"
26792 fi
26793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26795
26796 fi
26797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26798   cat >>confdefs.h <<_ACEOF
26799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26800 _ACEOF
26801
26802 fi
26803
26804 done
26805
26806
26807
26808
26809
26810
26811 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26812 do
26813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815   echo "$as_me:$LINENO: checking for $ac_header" >&5
26816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 fi
26820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26822 else
26823   # Is the header compilable?
26824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26826 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h.  */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h.  */
26832 $ac_includes_default
26833 #include <$ac_header>
26834 _ACEOF
26835 rm -f conftest.$ac_objext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837   (eval $ac_compile) 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } &&
26844          { ac_try='test -z "$ac_c_werror_flag"
26845                          || test ! -s conftest.err'
26846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847   (eval $ac_try) 2>&5
26848   ac_status=$?
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); }; } &&
26851          { ac_try='test -s conftest.$ac_objext'
26852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853   (eval $ac_try) 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; }; then
26857   ac_header_compiler=yes
26858 else
26859   echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26861
26862 ac_header_compiler=no
26863 fi
26864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26866 echo "${ECHO_T}$ac_header_compiler" >&6
26867
26868 # Is the header present?
26869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26871 cat >conftest.$ac_ext <<_ACEOF
26872 /* confdefs.h.  */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h.  */
26877 #include <$ac_header>
26878 _ACEOF
26879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26881   ac_status=$?
26882   grep -v '^ *+' conftest.er1 >conftest.err
26883   rm -f conftest.er1
26884   cat conftest.err >&5
26885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); } >/dev/null; then
26887   if test -s conftest.err; then
26888     ac_cpp_err=$ac_c_preproc_warn_flag
26889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26890   else
26891     ac_cpp_err=
26892   fi
26893 else
26894   ac_cpp_err=yes
26895 fi
26896 if test -z "$ac_cpp_err"; then
26897   ac_header_preproc=yes
26898 else
26899   echo "$as_me: failed program was:" >&5
26900 sed 's/^/| /' conftest.$ac_ext >&5
26901
26902   ac_header_preproc=no
26903 fi
26904 rm -f conftest.err conftest.$ac_ext
26905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26906 echo "${ECHO_T}$ac_header_preproc" >&6
26907
26908 # So?  What about this header?
26909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26910   yes:no: )
26911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26915     ac_header_preproc=yes
26916     ;;
26917   no:yes:* )
26918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26930     (
26931       cat <<\_ASBOX
26932 ## ----------------------------------- ##
26933 ## Report this to llvmbugs@cs.uiuc.edu ##
26934 ## ----------------------------------- ##
26935 _ASBOX
26936     ) |
26937       sed "s/^/$as_me: WARNING:     /" >&2
26938     ;;
26939 esac
26940 echo "$as_me:$LINENO: checking for $ac_header" >&5
26941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26943   echo $ECHO_N "(cached) $ECHO_C" >&6
26944 else
26945   eval "$as_ac_Header=\$ac_header_preproc"
26946 fi
26947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26949
26950 fi
26951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26952   cat >>confdefs.h <<_ACEOF
26953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26954 _ACEOF
26955
26956 fi
26957
26958 done
26959
26960
26961 for ac_header in malloc/malloc.h
26962 do
26963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26965   echo "$as_me:$LINENO: checking for $ac_header" >&5
26966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26968   echo $ECHO_N "(cached) $ECHO_C" >&6
26969 fi
26970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26972 else
26973   # Is the header compilable?
26974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26976 cat >conftest.$ac_ext <<_ACEOF
26977 /* confdefs.h.  */
26978 _ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h.  */
26982 $ac_includes_default
26983 #include <$ac_header>
26984 _ACEOF
26985 rm -f conftest.$ac_objext
26986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26987   (eval $ac_compile) 2>conftest.er1
26988   ac_status=$?
26989   grep -v '^ *+' conftest.er1 >conftest.err
26990   rm -f conftest.er1
26991   cat conftest.err >&5
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); } &&
26994          { ac_try='test -z "$ac_c_werror_flag"
26995                          || test ! -s conftest.err'
26996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997   (eval $ac_try) 2>&5
26998   ac_status=$?
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); }; } &&
27001          { ac_try='test -s conftest.$ac_objext'
27002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003   (eval $ac_try) 2>&5
27004   ac_status=$?
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); }; }; then
27007   ac_header_compiler=yes
27008 else
27009   echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27011
27012 ac_header_compiler=no
27013 fi
27014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27016 echo "${ECHO_T}$ac_header_compiler" >&6
27017
27018 # Is the header present?
27019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27021 cat >conftest.$ac_ext <<_ACEOF
27022 /* confdefs.h.  */
27023 _ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h.  */
27027 #include <$ac_header>
27028 _ACEOF
27029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27031   ac_status=$?
27032   grep -v '^ *+' conftest.er1 >conftest.err
27033   rm -f conftest.er1
27034   cat conftest.err >&5
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } >/dev/null; then
27037   if test -s conftest.err; then
27038     ac_cpp_err=$ac_c_preproc_warn_flag
27039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27040   else
27041     ac_cpp_err=
27042   fi
27043 else
27044   ac_cpp_err=yes
27045 fi
27046 if test -z "$ac_cpp_err"; then
27047   ac_header_preproc=yes
27048 else
27049   echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052   ac_header_preproc=no
27053 fi
27054 rm -f conftest.err conftest.$ac_ext
27055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27056 echo "${ECHO_T}$ac_header_preproc" >&6
27057
27058 # So?  What about this header?
27059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27060   yes:no: )
27061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27065     ac_header_preproc=yes
27066     ;;
27067   no:yes:* )
27068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27080     (
27081       cat <<\_ASBOX
27082 ## ----------------------------------- ##
27083 ## Report this to llvmbugs@cs.uiuc.edu ##
27084 ## ----------------------------------- ##
27085 _ASBOX
27086     ) |
27087       sed "s/^/$as_me: WARNING:     /" >&2
27088     ;;
27089 esac
27090 echo "$as_me:$LINENO: checking for $ac_header" >&5
27091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27093   echo $ECHO_N "(cached) $ECHO_C" >&6
27094 else
27095   eval "$as_ac_Header=\$ac_header_preproc"
27096 fi
27097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27099
27100 fi
27101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27102   cat >>confdefs.h <<_ACEOF
27103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27104 _ACEOF
27105
27106 fi
27107
27108 done
27109
27110 if test "$ENABLE_THREADS" -eq 1 ; then
27111
27112 for ac_header in pthread.h
27113 do
27114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27116   echo "$as_me:$LINENO: checking for $ac_header" >&5
27117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119   echo $ECHO_N "(cached) $ECHO_C" >&6
27120 fi
27121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27123 else
27124   # Is the header compilable?
27125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27127 cat >conftest.$ac_ext <<_ACEOF
27128 /* confdefs.h.  */
27129 _ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h.  */
27133 $ac_includes_default
27134 #include <$ac_header>
27135 _ACEOF
27136 rm -f conftest.$ac_objext
27137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27138   (eval $ac_compile) 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } &&
27145          { ac_try='test -z "$ac_c_werror_flag"
27146                          || test ! -s conftest.err'
27147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148   (eval $ac_try) 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; } &&
27152          { ac_try='test -s conftest.$ac_objext'
27153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154   (eval $ac_try) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); }; }; then
27158   ac_header_compiler=yes
27159 else
27160   echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27162
27163 ac_header_compiler=no
27164 fi
27165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27167 echo "${ECHO_T}$ac_header_compiler" >&6
27168
27169 # Is the header present?
27170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27172 cat >conftest.$ac_ext <<_ACEOF
27173 /* confdefs.h.  */
27174 _ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h.  */
27178 #include <$ac_header>
27179 _ACEOF
27180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27182   ac_status=$?
27183   grep -v '^ *+' conftest.er1 >conftest.err
27184   rm -f conftest.er1
27185   cat conftest.err >&5
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); } >/dev/null; then
27188   if test -s conftest.err; then
27189     ac_cpp_err=$ac_c_preproc_warn_flag
27190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27191   else
27192     ac_cpp_err=
27193   fi
27194 else
27195   ac_cpp_err=yes
27196 fi
27197 if test -z "$ac_cpp_err"; then
27198   ac_header_preproc=yes
27199 else
27200   echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27202
27203   ac_header_preproc=no
27204 fi
27205 rm -f conftest.err conftest.$ac_ext
27206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27207 echo "${ECHO_T}$ac_header_preproc" >&6
27208
27209 # So?  What about this header?
27210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27211   yes:no: )
27212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27216     ac_header_preproc=yes
27217     ;;
27218   no:yes:* )
27219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27231     (
27232       cat <<\_ASBOX
27233 ## ----------------------------------- ##
27234 ## Report this to llvmbugs@cs.uiuc.edu ##
27235 ## ----------------------------------- ##
27236 _ASBOX
27237     ) |
27238       sed "s/^/$as_me: WARNING:     /" >&2
27239     ;;
27240 esac
27241 echo "$as_me:$LINENO: checking for $ac_header" >&5
27242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244   echo $ECHO_N "(cached) $ECHO_C" >&6
27245 else
27246   eval "$as_ac_Header=\$ac_header_preproc"
27247 fi
27248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27250
27251 fi
27252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27253   cat >>confdefs.h <<_ACEOF
27254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27255 _ACEOF
27256
27257 fi
27258
27259 done
27260
27261 fi
27262
27263
27264 echo "$as_me:$LINENO: checking for pid_t" >&5
27265 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27266 if test "${ac_cv_type_pid_t+set}" = set; then
27267   echo $ECHO_N "(cached) $ECHO_C" >&6
27268 else
27269   cat >conftest.$ac_ext <<_ACEOF
27270 /* confdefs.h.  */
27271 _ACEOF
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h.  */
27275 $ac_includes_default
27276 int
27277 main ()
27278 {
27279 if ((pid_t *) 0)
27280   return 0;
27281 if (sizeof (pid_t))
27282   return 0;
27283   ;
27284   return 0;
27285 }
27286 _ACEOF
27287 rm -f conftest.$ac_objext
27288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27289   (eval $ac_compile) 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } &&
27296          { ac_try='test -z "$ac_c_werror_flag"
27297                          || test ! -s conftest.err'
27298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299   (eval $ac_try) 2>&5
27300   ac_status=$?
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); }; } &&
27303          { ac_try='test -s conftest.$ac_objext'
27304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305   (eval $ac_try) 2>&5
27306   ac_status=$?
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); }; }; then
27309   ac_cv_type_pid_t=yes
27310 else
27311   echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27313
27314 ac_cv_type_pid_t=no
27315 fi
27316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27317 fi
27318 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27319 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27320 if test $ac_cv_type_pid_t = yes; then
27321   :
27322 else
27323
27324 cat >>confdefs.h <<_ACEOF
27325 #define pid_t int
27326 _ACEOF
27327
27328 fi
27329
27330 echo "$as_me:$LINENO: checking for size_t" >&5
27331 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27332 if test "${ac_cv_type_size_t+set}" = set; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335   cat >conftest.$ac_ext <<_ACEOF
27336 /* confdefs.h.  */
27337 _ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h.  */
27341 $ac_includes_default
27342 int
27343 main ()
27344 {
27345 if ((size_t *) 0)
27346   return 0;
27347 if (sizeof (size_t))
27348   return 0;
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 rm -f conftest.$ac_objext
27354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27355   (eval $ac_compile) 2>conftest.er1
27356   ac_status=$?
27357   grep -v '^ *+' conftest.er1 >conftest.err
27358   rm -f conftest.er1
27359   cat conftest.err >&5
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); } &&
27362          { ac_try='test -z "$ac_c_werror_flag"
27363                          || test ! -s conftest.err'
27364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365   (eval $ac_try) 2>&5
27366   ac_status=$?
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); }; } &&
27369          { ac_try='test -s conftest.$ac_objext'
27370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371   (eval $ac_try) 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); }; }; then
27375   ac_cv_type_size_t=yes
27376 else
27377   echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380 ac_cv_type_size_t=no
27381 fi
27382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27383 fi
27384 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27385 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27386 if test $ac_cv_type_size_t = yes; then
27387   :
27388 else
27389
27390 cat >>confdefs.h <<_ACEOF
27391 #define size_t unsigned
27392 _ACEOF
27393
27394 fi
27395
27396 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27397 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27398 if test "${ac_cv_type_signal+set}" = set; then
27399   echo $ECHO_N "(cached) $ECHO_C" >&6
27400 else
27401   cat >conftest.$ac_ext <<_ACEOF
27402 /* confdefs.h.  */
27403 _ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h.  */
27407 #include <sys/types.h>
27408 #include <signal.h>
27409 #ifdef signal
27410 # undef signal
27411 #endif
27412 #ifdef __cplusplus
27413 extern "C" void (*signal (int, void (*)(int)))(int);
27414 #else
27415 void (*signal ()) ();
27416 #endif
27417
27418 int
27419 main ()
27420 {
27421 int i;
27422   ;
27423   return 0;
27424 }
27425 _ACEOF
27426 rm -f conftest.$ac_objext
27427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27428   (eval $ac_compile) 2>conftest.er1
27429   ac_status=$?
27430   grep -v '^ *+' conftest.er1 >conftest.err
27431   rm -f conftest.er1
27432   cat conftest.err >&5
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); } &&
27435          { ac_try='test -z "$ac_c_werror_flag"
27436                          || test ! -s conftest.err'
27437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438   (eval $ac_try) 2>&5
27439   ac_status=$?
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); }; } &&
27442          { ac_try='test -s conftest.$ac_objext'
27443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444   (eval $ac_try) 2>&5
27445   ac_status=$?
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); }; }; then
27448   ac_cv_type_signal=void
27449 else
27450   echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453 ac_cv_type_signal=int
27454 fi
27455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27456 fi
27457 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27458 echo "${ECHO_T}$ac_cv_type_signal" >&6
27459
27460 cat >>confdefs.h <<_ACEOF
27461 #define RETSIGTYPE $ac_cv_type_signal
27462 _ACEOF
27463
27464
27465 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27466 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27467 if test "${ac_cv_struct_tm+set}" = set; then
27468   echo $ECHO_N "(cached) $ECHO_C" >&6
27469 else
27470   cat >conftest.$ac_ext <<_ACEOF
27471 /* confdefs.h.  */
27472 _ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h.  */
27476 #include <sys/types.h>
27477 #include <time.h>
27478
27479 int
27480 main ()
27481 {
27482 struct tm *tp; tp->tm_sec;
27483   ;
27484   return 0;
27485 }
27486 _ACEOF
27487 rm -f conftest.$ac_objext
27488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27489   (eval $ac_compile) 2>conftest.er1
27490   ac_status=$?
27491   grep -v '^ *+' conftest.er1 >conftest.err
27492   rm -f conftest.er1
27493   cat conftest.err >&5
27494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); } &&
27496          { ac_try='test -z "$ac_c_werror_flag"
27497                          || test ! -s conftest.err'
27498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499   (eval $ac_try) 2>&5
27500   ac_status=$?
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); }; } &&
27503          { ac_try='test -s conftest.$ac_objext'
27504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27505   (eval $ac_try) 2>&5
27506   ac_status=$?
27507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508   (exit $ac_status); }; }; then
27509   ac_cv_struct_tm=time.h
27510 else
27511   echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27513
27514 ac_cv_struct_tm=sys/time.h
27515 fi
27516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27517 fi
27518 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27519 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27520 if test $ac_cv_struct_tm = sys/time.h; then
27521
27522 cat >>confdefs.h <<\_ACEOF
27523 #define TM_IN_SYS_TIME 1
27524 _ACEOF
27525
27526 fi
27527
27528 echo "$as_me:$LINENO: checking for int64_t" >&5
27529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27530 if test "${ac_cv_type_int64_t+set}" = set; then
27531   echo $ECHO_N "(cached) $ECHO_C" >&6
27532 else
27533   cat >conftest.$ac_ext <<_ACEOF
27534 /* confdefs.h.  */
27535 _ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h.  */
27539 $ac_includes_default
27540 int
27541 main ()
27542 {
27543 if ((int64_t *) 0)
27544   return 0;
27545 if (sizeof (int64_t))
27546   return 0;
27547   ;
27548   return 0;
27549 }
27550 _ACEOF
27551 rm -f conftest.$ac_objext
27552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27553   (eval $ac_compile) 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } &&
27560          { ac_try='test -z "$ac_c_werror_flag"
27561                          || test ! -s conftest.err'
27562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563   (eval $ac_try) 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; } &&
27567          { ac_try='test -s conftest.$ac_objext'
27568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569   (eval $ac_try) 2>&5
27570   ac_status=$?
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); }; }; then
27573   ac_cv_type_int64_t=yes
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578 ac_cv_type_int64_t=no
27579 fi
27580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27581 fi
27582 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27583 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27584 if test $ac_cv_type_int64_t = yes; then
27585
27586 cat >>confdefs.h <<_ACEOF
27587 #define HAVE_INT64_T 1
27588 _ACEOF
27589
27590
27591 else
27592   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27593 echo "$as_me: error: Type int64_t required but not found" >&2;}
27594    { (exit 1); exit 1; }; }
27595 fi
27596
27597 echo "$as_me:$LINENO: checking for uint64_t" >&5
27598 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27599 if test "${ac_cv_type_uint64_t+set}" = set; then
27600   echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602   cat >conftest.$ac_ext <<_ACEOF
27603 /* confdefs.h.  */
27604 _ACEOF
27605 cat confdefs.h >>conftest.$ac_ext
27606 cat >>conftest.$ac_ext <<_ACEOF
27607 /* end confdefs.h.  */
27608 $ac_includes_default
27609 int
27610 main ()
27611 {
27612 if ((uint64_t *) 0)
27613   return 0;
27614 if (sizeof (uint64_t))
27615   return 0;
27616   ;
27617   return 0;
27618 }
27619 _ACEOF
27620 rm -f conftest.$ac_objext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27622   (eval $ac_compile) 2>conftest.er1
27623   ac_status=$?
27624   grep -v '^ *+' conftest.er1 >conftest.err
27625   rm -f conftest.er1
27626   cat conftest.err >&5
27627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628   (exit $ac_status); } &&
27629          { ac_try='test -z "$ac_c_werror_flag"
27630                          || test ! -s conftest.err'
27631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632   (eval $ac_try) 2>&5
27633   ac_status=$?
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); }; } &&
27636          { ac_try='test -s conftest.$ac_objext'
27637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638   (eval $ac_try) 2>&5
27639   ac_status=$?
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); }; }; then
27642   ac_cv_type_uint64_t=yes
27643 else
27644   echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27646
27647 ac_cv_type_uint64_t=no
27648 fi
27649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27650 fi
27651 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27652 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27653 if test $ac_cv_type_uint64_t = yes; then
27654
27655 cat >>confdefs.h <<_ACEOF
27656 #define HAVE_UINT64_T 1
27657 _ACEOF
27658
27659
27660 else
27661   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27662 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27663 if test "${ac_cv_type_u_int64_t+set}" = set; then
27664   echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666   cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672 $ac_includes_default
27673 int
27674 main ()
27675 {
27676 if ((u_int64_t *) 0)
27677   return 0;
27678 if (sizeof (u_int64_t))
27679   return 0;
27680   ;
27681   return 0;
27682 }
27683 _ACEOF
27684 rm -f conftest.$ac_objext
27685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27686   (eval $ac_compile) 2>conftest.er1
27687   ac_status=$?
27688   grep -v '^ *+' conftest.er1 >conftest.err
27689   rm -f conftest.er1
27690   cat conftest.err >&5
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); } &&
27693          { ac_try='test -z "$ac_c_werror_flag"
27694                          || test ! -s conftest.err'
27695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696   (eval $ac_try) 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; } &&
27700          { ac_try='test -s conftest.$ac_objext'
27701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702   (eval $ac_try) 2>&5
27703   ac_status=$?
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); }; }; then
27706   ac_cv_type_u_int64_t=yes
27707 else
27708   echo "$as_me: failed program was:" >&5
27709 sed 's/^/| /' conftest.$ac_ext >&5
27710
27711 ac_cv_type_u_int64_t=no
27712 fi
27713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27714 fi
27715 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27716 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27717 if test $ac_cv_type_u_int64_t = yes; then
27718
27719 cat >>confdefs.h <<_ACEOF
27720 #define HAVE_U_INT64_T 1
27721 _ACEOF
27722
27723
27724 else
27725   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27726 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27727    { (exit 1); exit 1; }; }
27728 fi
27729
27730 fi
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27742 do
27743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27744 echo "$as_me:$LINENO: checking for $ac_func" >&5
27745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27746 if eval "test \"\${$as_ac_var+set}\" = set"; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749   cat >conftest.$ac_ext <<_ACEOF
27750 /* confdefs.h.  */
27751 _ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h.  */
27755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27757 #define $ac_func innocuous_$ac_func
27758
27759 /* System header to define __stub macros and hopefully few prototypes,
27760     which can conflict with char $ac_func (); below.
27761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27762     <limits.h> exists even on freestanding compilers.  */
27763
27764 #ifdef __STDC__
27765 # include <limits.h>
27766 #else
27767 # include <assert.h>
27768 #endif
27769
27770 #undef $ac_func
27771
27772 /* Override any gcc2 internal prototype to avoid an error.  */
27773 #ifdef __cplusplus
27774 extern "C"
27775 {
27776 #endif
27777 /* We use char because int might match the return type of a gcc2
27778    builtin and then its argument prototype would still apply.  */
27779 char $ac_func ();
27780 /* The GNU C library defines this for functions which it implements
27781     to always fail with ENOSYS.  Some functions are actually named
27782     something starting with __ and the normal name is an alias.  */
27783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27784 choke me
27785 #else
27786 char (*f) () = $ac_func;
27787 #endif
27788 #ifdef __cplusplus
27789 }
27790 #endif
27791
27792 int
27793 main ()
27794 {
27795 return f != $ac_func;
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest.$ac_objext conftest$ac_exeext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802   (eval $ac_link) 2>conftest.er1
27803   ac_status=$?
27804   grep -v '^ *+' conftest.er1 >conftest.err
27805   rm -f conftest.er1
27806   cat conftest.err >&5
27807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808   (exit $ac_status); } &&
27809          { ac_try='test -z "$ac_c_werror_flag"
27810                          || test ! -s conftest.err'
27811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812   (eval $ac_try) 2>&5
27813   ac_status=$?
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); }; } &&
27816          { ac_try='test -s conftest$ac_exeext'
27817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818   (eval $ac_try) 2>&5
27819   ac_status=$?
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); }; }; then
27822   eval "$as_ac_var=yes"
27823 else
27824   echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27826
27827 eval "$as_ac_var=no"
27828 fi
27829 rm -f conftest.err conftest.$ac_objext \
27830       conftest$ac_exeext conftest.$ac_ext
27831 fi
27832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27834 if test `eval echo '${'$as_ac_var'}'` = yes; then
27835   cat >>confdefs.h <<_ACEOF
27836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27837 _ACEOF
27838
27839 fi
27840 done
27841
27842
27843
27844
27845
27846
27847
27848 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27849 do
27850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27851 echo "$as_me:$LINENO: checking for $ac_func" >&5
27852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27853 if eval "test \"\${$as_ac_var+set}\" = set"; then
27854   echo $ECHO_N "(cached) $ECHO_C" >&6
27855 else
27856   cat >conftest.$ac_ext <<_ACEOF
27857 /* confdefs.h.  */
27858 _ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h.  */
27862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27864 #define $ac_func innocuous_$ac_func
27865
27866 /* System header to define __stub macros and hopefully few prototypes,
27867     which can conflict with char $ac_func (); below.
27868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27869     <limits.h> exists even on freestanding compilers.  */
27870
27871 #ifdef __STDC__
27872 # include <limits.h>
27873 #else
27874 # include <assert.h>
27875 #endif
27876
27877 #undef $ac_func
27878
27879 /* Override any gcc2 internal prototype to avoid an error.  */
27880 #ifdef __cplusplus
27881 extern "C"
27882 {
27883 #endif
27884 /* We use char because int might match the return type of a gcc2
27885    builtin and then its argument prototype would still apply.  */
27886 char $ac_func ();
27887 /* The GNU C library defines this for functions which it implements
27888     to always fail with ENOSYS.  Some functions are actually named
27889     something starting with __ and the normal name is an alias.  */
27890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27891 choke me
27892 #else
27893 char (*f) () = $ac_func;
27894 #endif
27895 #ifdef __cplusplus
27896 }
27897 #endif
27898
27899 int
27900 main ()
27901 {
27902 return f != $ac_func;
27903   ;
27904   return 0;
27905 }
27906 _ACEOF
27907 rm -f conftest.$ac_objext conftest$ac_exeext
27908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27909   (eval $ac_link) 2>conftest.er1
27910   ac_status=$?
27911   grep -v '^ *+' conftest.er1 >conftest.err
27912   rm -f conftest.er1
27913   cat conftest.err >&5
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); } &&
27916          { ac_try='test -z "$ac_c_werror_flag"
27917                          || test ! -s conftest.err'
27918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919   (eval $ac_try) 2>&5
27920   ac_status=$?
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); }; } &&
27923          { ac_try='test -s conftest$ac_exeext'
27924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925   (eval $ac_try) 2>&5
27926   ac_status=$?
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); }; }; then
27929   eval "$as_ac_var=yes"
27930 else
27931   echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934 eval "$as_ac_var=no"
27935 fi
27936 rm -f conftest.err conftest.$ac_objext \
27937       conftest$ac_exeext conftest.$ac_ext
27938 fi
27939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27941 if test `eval echo '${'$as_ac_var'}'` = yes; then
27942   cat >>confdefs.h <<_ACEOF
27943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27944 _ACEOF
27945
27946 fi
27947 done
27948
27949
27950
27951
27952
27953
27954
27955
27956 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27957 do
27958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27959 echo "$as_me:$LINENO: checking for $ac_func" >&5
27960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27961 if eval "test \"\${$as_ac_var+set}\" = set"; then
27962   echo $ECHO_N "(cached) $ECHO_C" >&6
27963 else
27964   cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27972 #define $ac_func innocuous_$ac_func
27973
27974 /* System header to define __stub macros and hopefully few prototypes,
27975     which can conflict with char $ac_func (); below.
27976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27977     <limits.h> exists even on freestanding compilers.  */
27978
27979 #ifdef __STDC__
27980 # include <limits.h>
27981 #else
27982 # include <assert.h>
27983 #endif
27984
27985 #undef $ac_func
27986
27987 /* Override any gcc2 internal prototype to avoid an error.  */
27988 #ifdef __cplusplus
27989 extern "C"
27990 {
27991 #endif
27992 /* We use char because int might match the return type of a gcc2
27993    builtin and then its argument prototype would still apply.  */
27994 char $ac_func ();
27995 /* The GNU C library defines this for functions which it implements
27996     to always fail with ENOSYS.  Some functions are actually named
27997     something starting with __ and the normal name is an alias.  */
27998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27999 choke me
28000 #else
28001 char (*f) () = $ac_func;
28002 #endif
28003 #ifdef __cplusplus
28004 }
28005 #endif
28006
28007 int
28008 main ()
28009 {
28010 return f != $ac_func;
28011   ;
28012   return 0;
28013 }
28014 _ACEOF
28015 rm -f conftest.$ac_objext conftest$ac_exeext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28017   (eval $ac_link) 2>conftest.er1
28018   ac_status=$?
28019   grep -v '^ *+' conftest.er1 >conftest.err
28020   rm -f conftest.er1
28021   cat conftest.err >&5
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); } &&
28024          { ac_try='test -z "$ac_c_werror_flag"
28025                          || test ! -s conftest.err'
28026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027   (eval $ac_try) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; } &&
28031          { ac_try='test -s conftest$ac_exeext'
28032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033   (eval $ac_try) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; }; then
28037   eval "$as_ac_var=yes"
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 eval "$as_ac_var=no"
28043 fi
28044 rm -f conftest.err conftest.$ac_objext \
28045       conftest$ac_exeext conftest.$ac_ext
28046 fi
28047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28049 if test `eval echo '${'$as_ac_var'}'` = yes; then
28050   cat >>confdefs.h <<_ACEOF
28051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28052 _ACEOF
28053
28054 fi
28055 done
28056
28057
28058
28059
28060
28061 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28062 do
28063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28064 echo "$as_me:$LINENO: checking for $ac_func" >&5
28065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28066 if eval "test \"\${$as_ac_var+set}\" = set"; then
28067   echo $ECHO_N "(cached) $ECHO_C" >&6
28068 else
28069   cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h.  */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h.  */
28075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28077 #define $ac_func innocuous_$ac_func
28078
28079 /* System header to define __stub macros and hopefully few prototypes,
28080     which can conflict with char $ac_func (); below.
28081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28082     <limits.h> exists even on freestanding compilers.  */
28083
28084 #ifdef __STDC__
28085 # include <limits.h>
28086 #else
28087 # include <assert.h>
28088 #endif
28089
28090 #undef $ac_func
28091
28092 /* Override any gcc2 internal prototype to avoid an error.  */
28093 #ifdef __cplusplus
28094 extern "C"
28095 {
28096 #endif
28097 /* We use char because int might match the return type of a gcc2
28098    builtin and then its argument prototype would still apply.  */
28099 char $ac_func ();
28100 /* The GNU C library defines this for functions which it implements
28101     to always fail with ENOSYS.  Some functions are actually named
28102     something starting with __ and the normal name is an alias.  */
28103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28104 choke me
28105 #else
28106 char (*f) () = $ac_func;
28107 #endif
28108 #ifdef __cplusplus
28109 }
28110 #endif
28111
28112 int
28113 main ()
28114 {
28115 return f != $ac_func;
28116   ;
28117   return 0;
28118 }
28119 _ACEOF
28120 rm -f conftest.$ac_objext conftest$ac_exeext
28121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28122   (eval $ac_link) 2>conftest.er1
28123   ac_status=$?
28124   grep -v '^ *+' conftest.er1 >conftest.err
28125   rm -f conftest.er1
28126   cat conftest.err >&5
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } &&
28129          { ac_try='test -z "$ac_c_werror_flag"
28130                          || test ! -s conftest.err'
28131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132   (eval $ac_try) 2>&5
28133   ac_status=$?
28134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135   (exit $ac_status); }; } &&
28136          { ac_try='test -s conftest$ac_exeext'
28137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138   (eval $ac_try) 2>&5
28139   ac_status=$?
28140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141   (exit $ac_status); }; }; then
28142   eval "$as_ac_var=yes"
28143 else
28144   echo "$as_me: failed program was:" >&5
28145 sed 's/^/| /' conftest.$ac_ext >&5
28146
28147 eval "$as_ac_var=no"
28148 fi
28149 rm -f conftest.err conftest.$ac_objext \
28150       conftest$ac_exeext conftest.$ac_ext
28151 fi
28152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28154 if test `eval echo '${'$as_ac_var'}'` = yes; then
28155   cat >>confdefs.h <<_ACEOF
28156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28157 _ACEOF
28158
28159 fi
28160 done
28161
28162 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28163 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28164 if test "${llvm_cv_c_printf_a+set}" = set; then
28165   echo $ECHO_N "(cached) $ECHO_C" >&6
28166 else
28167   ac_ext=c
28168 ac_cpp='$CPP $CPPFLAGS'
28169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28172
28173  if test "$cross_compiling" = yes; then
28174   llvmac_cv_c_printf_a=no
28175 else
28176   cat >conftest.$ac_ext <<_ACEOF
28177
28178   /* confdefs.h.  */
28179 _ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h.  */
28183
28184 #include <stdio.h>
28185 #include <stdlib.h>
28186
28187 int
28188 main ()
28189 {
28190
28191 volatile double A, B;
28192 char Buffer[100];
28193 A = 1;
28194 A /= 10.0;
28195 sprintf(Buffer, "%a", A);
28196 B = atof(Buffer);
28197 if (A != B)
28198   return (1);
28199 if (A != 0x1.999999999999ap-4)
28200   return (1);
28201 return (0);
28202   ;
28203   return 0;
28204 }
28205 _ACEOF
28206 rm -f conftest$ac_exeext
28207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28208   (eval $ac_link) 2>&5
28209   ac_status=$?
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213   (eval $ac_try) 2>&5
28214   ac_status=$?
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); }; }; then
28217   llvm_cv_c_printf_a=yes
28218 else
28219   echo "$as_me: program exited with status $ac_status" >&5
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 ( exit $ac_status )
28224 llvmac_cv_c_printf_a=no
28225 fi
28226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28227 fi
28228  ac_ext=c
28229 ac_cpp='$CPP $CPPFLAGS'
28230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28233
28234 fi
28235 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28236 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28237  if test "$llvm_cv_c_printf_a" = "yes"; then
28238
28239 cat >>confdefs.h <<\_ACEOF
28240 #define HAVE_PRINTF_A 1
28241 _ACEOF
28242
28243  fi
28244
28245 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28246 # for constant arguments.  Useless!
28247 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28248 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28249 if test "${ac_cv_working_alloca_h+set}" = set; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   cat >conftest.$ac_ext <<_ACEOF
28253 /* confdefs.h.  */
28254 _ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h.  */
28258 #include <alloca.h>
28259 int
28260 main ()
28261 {
28262 char *p = (char *) alloca (2 * sizeof (int));
28263   ;
28264   return 0;
28265 }
28266 _ACEOF
28267 rm -f conftest.$ac_objext conftest$ac_exeext
28268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28269   (eval $ac_link) 2>conftest.er1
28270   ac_status=$?
28271   grep -v '^ *+' conftest.er1 >conftest.err
28272   rm -f conftest.er1
28273   cat conftest.err >&5
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); } &&
28276          { ac_try='test -z "$ac_c_werror_flag"
28277                          || test ! -s conftest.err'
28278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279   (eval $ac_try) 2>&5
28280   ac_status=$?
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; } &&
28283          { ac_try='test -s conftest$ac_exeext'
28284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285   (eval $ac_try) 2>&5
28286   ac_status=$?
28287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); }; }; then
28289   ac_cv_working_alloca_h=yes
28290 else
28291   echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28293
28294 ac_cv_working_alloca_h=no
28295 fi
28296 rm -f conftest.err conftest.$ac_objext \
28297       conftest$ac_exeext conftest.$ac_ext
28298 fi
28299 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28300 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28301 if test $ac_cv_working_alloca_h = yes; then
28302
28303 cat >>confdefs.h <<\_ACEOF
28304 #define HAVE_ALLOCA_H 1
28305 _ACEOF
28306
28307 fi
28308
28309 echo "$as_me:$LINENO: checking for alloca" >&5
28310 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28311 if test "${ac_cv_func_alloca_works+set}" = set; then
28312   echo $ECHO_N "(cached) $ECHO_C" >&6
28313 else
28314   cat >conftest.$ac_ext <<_ACEOF
28315 /* confdefs.h.  */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h.  */
28320 #ifdef __GNUC__
28321 # define alloca __builtin_alloca
28322 #else
28323 # ifdef _MSC_VER
28324 #  include <malloc.h>
28325 #  define alloca _alloca
28326 # else
28327 #  if HAVE_ALLOCA_H
28328 #   include <alloca.h>
28329 #  else
28330 #   ifdef _AIX
28331  #pragma alloca
28332 #   else
28333 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28334 char *alloca ();
28335 #    endif
28336 #   endif
28337 #  endif
28338 # endif
28339 #endif
28340
28341 int
28342 main ()
28343 {
28344 char *p = (char *) alloca (1);
28345   ;
28346   return 0;
28347 }
28348 _ACEOF
28349 rm -f conftest.$ac_objext conftest$ac_exeext
28350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351   (eval $ac_link) 2>conftest.er1
28352   ac_status=$?
28353   grep -v '^ *+' conftest.er1 >conftest.err
28354   rm -f conftest.er1
28355   cat conftest.err >&5
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); } &&
28358          { ac_try='test -z "$ac_c_werror_flag"
28359                          || test ! -s conftest.err'
28360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361   (eval $ac_try) 2>&5
28362   ac_status=$?
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); }; } &&
28365          { ac_try='test -s conftest$ac_exeext'
28366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367   (eval $ac_try) 2>&5
28368   ac_status=$?
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); }; }; then
28371   ac_cv_func_alloca_works=yes
28372 else
28373   echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28375
28376 ac_cv_func_alloca_works=no
28377 fi
28378 rm -f conftest.err conftest.$ac_objext \
28379       conftest$ac_exeext conftest.$ac_ext
28380 fi
28381 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28382 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28383
28384 if test $ac_cv_func_alloca_works = yes; then
28385
28386 cat >>confdefs.h <<\_ACEOF
28387 #define HAVE_ALLOCA 1
28388 _ACEOF
28389
28390 else
28391   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28392 # that cause trouble.  Some versions do not even contain alloca or
28393 # contain a buggy version.  If you still want to use their alloca,
28394 # use ar to extract alloca.o from them instead of compiling alloca.c.
28395
28396 ALLOCA=alloca.$ac_objext
28397
28398 cat >>confdefs.h <<\_ACEOF
28399 #define C_ALLOCA 1
28400 _ACEOF
28401
28402
28403 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28404 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28405 if test "${ac_cv_os_cray+set}" = set; then
28406   echo $ECHO_N "(cached) $ECHO_C" >&6
28407 else
28408   cat >conftest.$ac_ext <<_ACEOF
28409 /* confdefs.h.  */
28410 _ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h.  */
28414 #if defined(CRAY) && ! defined(CRAY2)
28415 webecray
28416 #else
28417 wenotbecray
28418 #endif
28419
28420 _ACEOF
28421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28422   $EGREP "webecray" >/dev/null 2>&1; then
28423   ac_cv_os_cray=yes
28424 else
28425   ac_cv_os_cray=no
28426 fi
28427 rm -f conftest*
28428
28429 fi
28430 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28431 echo "${ECHO_T}$ac_cv_os_cray" >&6
28432 if test $ac_cv_os_cray = yes; then
28433   for ac_func in _getb67 GETB67 getb67; do
28434     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435 echo "$as_me:$LINENO: checking for $ac_func" >&5
28436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28437 if eval "test \"\${$as_ac_var+set}\" = set"; then
28438   echo $ECHO_N "(cached) $ECHO_C" >&6
28439 else
28440   cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28448 #define $ac_func innocuous_$ac_func
28449
28450 /* System header to define __stub macros and hopefully few prototypes,
28451     which can conflict with char $ac_func (); below.
28452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28453     <limits.h> exists even on freestanding compilers.  */
28454
28455 #ifdef __STDC__
28456 # include <limits.h>
28457 #else
28458 # include <assert.h>
28459 #endif
28460
28461 #undef $ac_func
28462
28463 /* Override any gcc2 internal prototype to avoid an error.  */
28464 #ifdef __cplusplus
28465 extern "C"
28466 {
28467 #endif
28468 /* We use char because int might match the return type of a gcc2
28469    builtin and then its argument prototype would still apply.  */
28470 char $ac_func ();
28471 /* The GNU C library defines this for functions which it implements
28472     to always fail with ENOSYS.  Some functions are actually named
28473     something starting with __ and the normal name is an alias.  */
28474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28475 choke me
28476 #else
28477 char (*f) () = $ac_func;
28478 #endif
28479 #ifdef __cplusplus
28480 }
28481 #endif
28482
28483 int
28484 main ()
28485 {
28486 return f != $ac_func;
28487   ;
28488   return 0;
28489 }
28490 _ACEOF
28491 rm -f conftest.$ac_objext conftest$ac_exeext
28492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28493   (eval $ac_link) 2>conftest.er1
28494   ac_status=$?
28495   grep -v '^ *+' conftest.er1 >conftest.err
28496   rm -f conftest.er1
28497   cat conftest.err >&5
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); } &&
28500          { ac_try='test -z "$ac_c_werror_flag"
28501                          || test ! -s conftest.err'
28502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503   (eval $ac_try) 2>&5
28504   ac_status=$?
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); }; } &&
28507          { ac_try='test -s conftest$ac_exeext'
28508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509   (eval $ac_try) 2>&5
28510   ac_status=$?
28511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512   (exit $ac_status); }; }; then
28513   eval "$as_ac_var=yes"
28514 else
28515   echo "$as_me: failed program was:" >&5
28516 sed 's/^/| /' conftest.$ac_ext >&5
28517
28518 eval "$as_ac_var=no"
28519 fi
28520 rm -f conftest.err conftest.$ac_objext \
28521       conftest$ac_exeext conftest.$ac_ext
28522 fi
28523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28525 if test `eval echo '${'$as_ac_var'}'` = yes; then
28526
28527 cat >>confdefs.h <<_ACEOF
28528 #define CRAY_STACKSEG_END $ac_func
28529 _ACEOF
28530
28531     break
28532 fi
28533
28534   done
28535 fi
28536
28537 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28538 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28539 if test "${ac_cv_c_stack_direction+set}" = set; then
28540   echo $ECHO_N "(cached) $ECHO_C" >&6
28541 else
28542   if test "$cross_compiling" = yes; then
28543   ac_cv_c_stack_direction=0
28544 else
28545   cat >conftest.$ac_ext <<_ACEOF
28546 /* confdefs.h.  */
28547 _ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h.  */
28551 int
28552 find_stack_direction ()
28553 {
28554   static char *addr = 0;
28555   auto char dummy;
28556   if (addr == 0)
28557     {
28558       addr = &dummy;
28559       return find_stack_direction ();
28560     }
28561   else
28562     return (&dummy > addr) ? 1 : -1;
28563 }
28564
28565 int
28566 main ()
28567 {
28568   exit (find_stack_direction () < 0);
28569 }
28570 _ACEOF
28571 rm -f conftest$ac_exeext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573   (eval $ac_link) 2>&5
28574   ac_status=$?
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578   (eval $ac_try) 2>&5
28579   ac_status=$?
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); }; }; then
28582   ac_cv_c_stack_direction=1
28583 else
28584   echo "$as_me: program exited with status $ac_status" >&5
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588 ( exit $ac_status )
28589 ac_cv_c_stack_direction=-1
28590 fi
28591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28592 fi
28593 fi
28594 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28595 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28596
28597 cat >>confdefs.h <<_ACEOF
28598 #define STACK_DIRECTION $ac_cv_c_stack_direction
28599 _ACEOF
28600
28601
28602 fi
28603
28604
28605 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28606 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28607 if test "${ac_cv_func_rand48+set}" = set; then
28608   echo $ECHO_N "(cached) $ECHO_C" >&6
28609 else
28610   ac_ext=cc
28611 ac_cpp='$CXXCPP $CPPFLAGS'
28612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28615
28616    cat >conftest.$ac_ext <<_ACEOF
28617 /* confdefs.h.  */
28618 _ACEOF
28619 cat confdefs.h >>conftest.$ac_ext
28620 cat >>conftest.$ac_ext <<_ACEOF
28621 /* end confdefs.h.  */
28622 #include <stdlib.h>
28623 int
28624 main ()
28625 {
28626 srand48(0);lrand48();drand48();
28627   ;
28628   return 0;
28629 }
28630 _ACEOF
28631 rm -f conftest.$ac_objext
28632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28633   (eval $ac_compile) 2>conftest.er1
28634   ac_status=$?
28635   grep -v '^ *+' conftest.er1 >conftest.err
28636   rm -f conftest.er1
28637   cat conftest.err >&5
28638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639   (exit $ac_status); } &&
28640          { ac_try='test -z "$ac_cxx_werror_flag"
28641                          || test ! -s conftest.err'
28642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643   (eval $ac_try) 2>&5
28644   ac_status=$?
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); }; } &&
28647          { ac_try='test -s conftest.$ac_objext'
28648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649   (eval $ac_try) 2>&5
28650   ac_status=$?
28651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652   (exit $ac_status); }; }; then
28653   ac_cv_func_rand48=yes
28654 else
28655   echo "$as_me: failed program was:" >&5
28656 sed 's/^/| /' conftest.$ac_ext >&5
28657
28658 ac_cv_func_rand48=no
28659 fi
28660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28661   ac_ext=c
28662 ac_cpp='$CPP $CPPFLAGS'
28663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28666
28667 fi
28668 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28669 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28670
28671 if test "$ac_cv_func_rand48" = "yes" ; then
28672
28673 cat >>confdefs.h <<\_ACEOF
28674 #define HAVE_RAND48 1
28675 _ACEOF
28676
28677 fi
28678
28679
28680 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28681 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28682 if test "${ac_cv_cxx_namespaces+set}" = set; then
28683   echo $ECHO_N "(cached) $ECHO_C" >&6
28684 else
28685   ac_ext=cc
28686 ac_cpp='$CXXCPP $CPPFLAGS'
28687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28690
28691  cat >conftest.$ac_ext <<_ACEOF
28692 /* confdefs.h.  */
28693 _ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h.  */
28697 namespace Outer { namespace Inner { int i = 0; }}
28698 int
28699 main ()
28700 {
28701 using namespace Outer::Inner; return i;
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28708   (eval $ac_compile) 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } &&
28715          { ac_try='test -z "$ac_cxx_werror_flag"
28716                          || test ! -s conftest.err'
28717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718   (eval $ac_try) 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; } &&
28722          { ac_try='test -s conftest.$ac_objext'
28723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724   (eval $ac_try) 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; }; then
28728   ac_cv_cxx_namespaces=yes
28729 else
28730   echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28732
28733 ac_cv_cxx_namespaces=no
28734 fi
28735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28736  ac_ext=c
28737 ac_cpp='$CPP $CPPFLAGS'
28738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28741
28742
28743 fi
28744 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28745 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28746 if test "$ac_cv_cxx_namespaces" = yes; then
28747
28748 cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_NAMESPACES
28750 _ACEOF
28751
28752 fi
28753
28754 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28755 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28756 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28757   echo $ECHO_N "(cached) $ECHO_C" >&6
28758 else
28759
28760   ac_ext=cc
28761 ac_cpp='$CXXCPP $CPPFLAGS'
28762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28765
28766   cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772 #include <ext/hash_map>
28773 #ifdef HAVE_NAMESPACES
28774 using namespace std;
28775 #endif
28776 int
28777 main ()
28778 {
28779 hash_map<int, int> t;
28780   ;
28781   return 0;
28782 }
28783 _ACEOF
28784 rm -f conftest.$ac_objext
28785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28786   (eval $ac_compile) 2>conftest.er1
28787   ac_status=$?
28788   grep -v '^ *+' conftest.er1 >conftest.err
28789   rm -f conftest.er1
28790   cat conftest.err >&5
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); } &&
28793          { ac_try='test -z "$ac_cxx_werror_flag"
28794                          || test ! -s conftest.err'
28795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796   (eval $ac_try) 2>&5
28797   ac_status=$?
28798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799   (exit $ac_status); }; } &&
28800          { ac_try='test -s conftest.$ac_objext'
28801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802   (eval $ac_try) 2>&5
28803   ac_status=$?
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); }; }; then
28806   ac_cv_cxx_have_std_ext_hash_map=yes
28807 else
28808   echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28810
28811 ac_cv_cxx_have_std_ext_hash_map=no
28812 fi
28813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28814   ac_ext=c
28815 ac_cpp='$CPP $CPPFLAGS'
28816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28819
28820 fi
28821 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28822 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28823  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28824  then
28825
28826 cat >>confdefs.h <<\_ACEOF
28827 #define HAVE_STD_EXT_HASH_MAP 1
28828 _ACEOF
28829
28830  else
28831
28832 cat >>confdefs.h <<\_ACEOF
28833 #define HAVE_STD_EXT_HASH_MAP 0
28834 _ACEOF
28835
28836  fi
28837
28838  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28839 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28840 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28841   echo $ECHO_N "(cached) $ECHO_C" >&6
28842 else
28843
28844   ac_ext=cc
28845 ac_cpp='$CXXCPP $CPPFLAGS'
28846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28849
28850   cat >conftest.$ac_ext <<_ACEOF
28851 /* confdefs.h.  */
28852 _ACEOF
28853 cat confdefs.h >>conftest.$ac_ext
28854 cat >>conftest.$ac_ext <<_ACEOF
28855 /* end confdefs.h.  */
28856 #include <ext/hash_map>
28857 #ifdef HAVE_NAMESPACES
28858 using namespace __gnu_cxx;
28859 #endif
28860 int
28861 main ()
28862 {
28863 hash_map<int,int> t;
28864   ;
28865   return 0;
28866 }
28867 _ACEOF
28868 rm -f conftest.$ac_objext
28869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28870   (eval $ac_compile) 2>conftest.er1
28871   ac_status=$?
28872   grep -v '^ *+' conftest.er1 >conftest.err
28873   rm -f conftest.er1
28874   cat conftest.err >&5
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); } &&
28877          { ac_try='test -z "$ac_cxx_werror_flag"
28878                          || test ! -s conftest.err'
28879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880   (eval $ac_try) 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; } &&
28884          { ac_try='test -s conftest.$ac_objext'
28885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886   (eval $ac_try) 2>&5
28887   ac_status=$?
28888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889   (exit $ac_status); }; }; then
28890   ac_cv_cxx_have_gnu_ext_hash_map=yes
28891 else
28892   echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28894
28895 ac_cv_cxx_have_gnu_ext_hash_map=no
28896 fi
28897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28898   ac_ext=c
28899 ac_cpp='$CPP $CPPFLAGS'
28900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28903
28904 fi
28905 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28906 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28907  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28908  then
28909
28910 cat >>confdefs.h <<\_ACEOF
28911 #define HAVE_GNU_EXT_HASH_MAP 1
28912 _ACEOF
28913
28914  else
28915
28916 cat >>confdefs.h <<\_ACEOF
28917 #define HAVE_GNU_EXT_HASH_MAP 0
28918 _ACEOF
28919
28920  fi
28921
28922  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28923 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28924 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28925   echo $ECHO_N "(cached) $ECHO_C" >&6
28926 else
28927
28928   ac_ext=cc
28929 ac_cpp='$CXXCPP $CPPFLAGS'
28930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28933
28934   cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940 #include <hash_map>
28941 int
28942 main ()
28943 {
28944 hash_map<int,int> t;
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest.$ac_objext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28951   (eval $ac_compile) 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } &&
28958          { ac_try='test -z "$ac_cxx_werror_flag"
28959                          || test ! -s conftest.err'
28960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961   (eval $ac_try) 2>&5
28962   ac_status=$?
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); }; } &&
28965          { ac_try='test -s conftest.$ac_objext'
28966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967   (eval $ac_try) 2>&5
28968   ac_status=$?
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); }; }; then
28971   ac_cv_cxx_have_global_hash_map=yes
28972 else
28973   echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28975
28976 ac_cv_cxx_have_global_hash_map=no
28977 fi
28978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28979   ac_ext=c
28980 ac_cpp='$CPP $CPPFLAGS'
28981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28984
28985 fi
28986 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28987 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28988  if test "$ac_cv_cxx_have_global_hash_map" = yes
28989  then
28990
28991 cat >>confdefs.h <<\_ACEOF
28992 #define HAVE_GLOBAL_HASH_MAP 1
28993 _ACEOF
28994
28995  else
28996
28997 cat >>confdefs.h <<\_ACEOF
28998 #define HAVE_GLOBAL_HASH_MAP 0
28999 _ACEOF
29000
29001  fi
29002
29003 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29004 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29005 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29006   echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008
29009   ac_ext=cc
29010 ac_cpp='$CXXCPP $CPPFLAGS'
29011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29014
29015   cat >conftest.$ac_ext <<_ACEOF
29016 /* confdefs.h.  */
29017 _ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h.  */
29021 #include <ext/hash_set>
29022 #ifdef HAVE_NAMESPACES
29023 using namespace std;
29024 #endif
29025 int
29026 main ()
29027 {
29028 hash_set<int> t;
29029   ;
29030   return 0;
29031 }
29032 _ACEOF
29033 rm -f conftest.$ac_objext
29034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29035   (eval $ac_compile) 2>conftest.er1
29036   ac_status=$?
29037   grep -v '^ *+' conftest.er1 >conftest.err
29038   rm -f conftest.er1
29039   cat conftest.err >&5
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); } &&
29042          { ac_try='test -z "$ac_cxx_werror_flag"
29043                          || test ! -s conftest.err'
29044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045   (eval $ac_try) 2>&5
29046   ac_status=$?
29047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048   (exit $ac_status); }; } &&
29049          { ac_try='test -s conftest.$ac_objext'
29050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051   (eval $ac_try) 2>&5
29052   ac_status=$?
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); }; }; then
29055   ac_cv_cxx_have_std_ext_hash_set=yes
29056 else
29057   echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29059
29060 ac_cv_cxx_have_std_ext_hash_set=no
29061 fi
29062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29063   ac_ext=c
29064 ac_cpp='$CPP $CPPFLAGS'
29065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29068
29069 fi
29070 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29071 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29072  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29073  then
29074
29075 cat >>confdefs.h <<\_ACEOF
29076 #define HAVE_STD_EXT_HASH_SET 1
29077 _ACEOF
29078
29079  else
29080
29081 cat >>confdefs.h <<\_ACEOF
29082 #define HAVE_STD_EXT_HASH_SET 0
29083 _ACEOF
29084
29085  fi
29086
29087  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29088 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29089 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29090   echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092
29093   ac_ext=cc
29094 ac_cpp='$CXXCPP $CPPFLAGS'
29095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29098
29099   cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h.  */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h.  */
29105 #include <ext/hash_set>
29106 #ifdef HAVE_NAMESPACES
29107 using namespace __gnu_cxx;
29108 #endif
29109 int
29110 main ()
29111 {
29112 hash_set<int> t;
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29119   (eval $ac_compile) 2>conftest.er1
29120   ac_status=$?
29121   grep -v '^ *+' conftest.er1 >conftest.err
29122   rm -f conftest.er1
29123   cat conftest.err >&5
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); } &&
29126          { ac_try='test -z "$ac_cxx_werror_flag"
29127                          || test ! -s conftest.err'
29128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129   (eval $ac_try) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; } &&
29133          { ac_try='test -s conftest.$ac_objext'
29134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135   (eval $ac_try) 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; }; then
29139   ac_cv_cxx_have_gnu_ext_hash_set=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ac_cv_cxx_have_gnu_ext_hash_set=no
29145 fi
29146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29147   ac_ext=c
29148 ac_cpp='$CPP $CPPFLAGS'
29149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29152
29153 fi
29154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29155 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29156  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29157  then
29158
29159 cat >>confdefs.h <<\_ACEOF
29160 #define HAVE_GNU_EXT_HASH_SET 1
29161 _ACEOF
29162
29163  else
29164
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_GNU_EXT_HASH_SET 0
29167 _ACEOF
29168
29169  fi
29170
29171  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29172 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29173 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29174   echo $ECHO_N "(cached) $ECHO_C" >&6
29175 else
29176
29177   ac_ext=cc
29178 ac_cpp='$CXXCPP $CPPFLAGS'
29179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29182
29183   cat >conftest.$ac_ext <<_ACEOF
29184 /* confdefs.h.  */
29185 _ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h.  */
29189 #include <hash_set>
29190 int
29191 main ()
29192 {
29193 hash_set<int> t; return 0;
29194   ;
29195   return 0;
29196 }
29197 _ACEOF
29198 rm -f conftest.$ac_objext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29200   (eval $ac_compile) 2>conftest.er1
29201   ac_status=$?
29202   grep -v '^ *+' conftest.er1 >conftest.err
29203   rm -f conftest.er1
29204   cat conftest.err >&5
29205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206   (exit $ac_status); } &&
29207          { ac_try='test -z "$ac_cxx_werror_flag"
29208                          || test ! -s conftest.err'
29209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210   (eval $ac_try) 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; } &&
29214          { ac_try='test -s conftest.$ac_objext'
29215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216   (eval $ac_try) 2>&5
29217   ac_status=$?
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); }; }; then
29220   ac_cv_cxx_have_global_hash_set=yes
29221 else
29222   echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29224
29225 ac_cv_cxx_have_global_hash_set=no
29226 fi
29227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29228   ac_ext=c
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29233
29234 fi
29235 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29236 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29237  if test "$ac_cv_cxx_have_global_hash_set" = yes
29238  then
29239
29240 cat >>confdefs.h <<\_ACEOF
29241 #define HAVE_GLOBAL_HASH_SET 1
29242 _ACEOF
29243
29244  else
29245
29246 cat >>confdefs.h <<\_ACEOF
29247 #define HAVE_GLOBAL_HASH_SET 0
29248 _ACEOF
29249
29250  fi
29251
29252 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29253 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29254 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257
29258   ac_ext=cc
29259 ac_cpp='$CXXCPP $CPPFLAGS'
29260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29263
29264   cat >conftest.$ac_ext <<_ACEOF
29265 /* confdefs.h.  */
29266 _ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h.  */
29270 #include <iterator>
29271 #ifdef HAVE_NAMESPACES
29272 using namespace std;
29273 #endif
29274 int
29275 main ()
29276 {
29277 iterator<int,int,int> t; return 0;
29278   ;
29279   return 0;
29280 }
29281 _ACEOF
29282 rm -f conftest.$ac_objext
29283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29284   (eval $ac_compile) 2>conftest.er1
29285   ac_status=$?
29286   grep -v '^ *+' conftest.er1 >conftest.err
29287   rm -f conftest.er1
29288   cat conftest.err >&5
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); } &&
29291          { ac_try='test -z "$ac_cxx_werror_flag"
29292                          || test ! -s conftest.err'
29293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294   (eval $ac_try) 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); }; } &&
29298          { ac_try='test -s conftest.$ac_objext'
29299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300   (eval $ac_try) 2>&5
29301   ac_status=$?
29302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303   (exit $ac_status); }; }; then
29304   ac_cv_cxx_have_std_iterator=yes
29305 else
29306   echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29308
29309 ac_cv_cxx_have_std_iterator=no
29310 fi
29311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29312   ac_ext=c
29313 ac_cpp='$CPP $CPPFLAGS'
29314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29317
29318
29319 fi
29320 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29321 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29322 if test "$ac_cv_cxx_have_std_iterator" = yes
29323 then
29324
29325 cat >>confdefs.h <<\_ACEOF
29326 #define HAVE_STD_ITERATOR 1
29327 _ACEOF
29328
29329 else
29330
29331 cat >>confdefs.h <<\_ACEOF
29332 #define HAVE_STD_ITERATOR 0
29333 _ACEOF
29334
29335 fi
29336
29337 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29338 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29339 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29340   echo $ECHO_N "(cached) $ECHO_C" >&6
29341 else
29342
29343   ac_ext=cc
29344 ac_cpp='$CXXCPP $CPPFLAGS'
29345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29348
29349   cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355 #include <iterator>
29356 #ifdef HAVE_NAMESPACES
29357 using namespace std;
29358 #endif
29359 int
29360 main ()
29361 {
29362 bidirectional_iterator<int,int> t; return 0;
29363   ;
29364   return 0;
29365 }
29366 _ACEOF
29367 rm -f conftest.$ac_objext
29368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29369   (eval $ac_compile) 2>conftest.er1
29370   ac_status=$?
29371   grep -v '^ *+' conftest.er1 >conftest.err
29372   rm -f conftest.er1
29373   cat conftest.err >&5
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); } &&
29376          { ac_try='test -z "$ac_cxx_werror_flag"
29377                          || test ! -s conftest.err'
29378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379   (eval $ac_try) 2>&5
29380   ac_status=$?
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); }; } &&
29383          { ac_try='test -s conftest.$ac_objext'
29384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385   (eval $ac_try) 2>&5
29386   ac_status=$?
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); }; }; then
29389   ac_cv_cxx_have_bi_iterator=yes
29390 else
29391   echo "$as_me: failed program was:" >&5
29392 sed 's/^/| /' conftest.$ac_ext >&5
29393
29394 ac_cv_cxx_have_bi_iterator=no
29395 fi
29396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29397   ac_ext=c
29398 ac_cpp='$CPP $CPPFLAGS'
29399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29402
29403
29404 fi
29405 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29406 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29407 if test "$ac_cv_cxx_have_bi_iterator" = yes
29408 then
29409
29410 cat >>confdefs.h <<\_ACEOF
29411 #define HAVE_BI_ITERATOR 1
29412 _ACEOF
29413
29414 else
29415
29416 cat >>confdefs.h <<\_ACEOF
29417 #define HAVE_BI_ITERATOR 0
29418 _ACEOF
29419
29420 fi
29421
29422 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29423 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29424 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29425   echo $ECHO_N "(cached) $ECHO_C" >&6
29426 else
29427
29428   ac_ext=cc
29429 ac_cpp='$CXXCPP $CPPFLAGS'
29430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29433
29434   cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440 #include <iterator>
29441 #ifdef HAVE_NAMESPACES
29442 using namespace std;
29443 #endif
29444 int
29445 main ()
29446 {
29447 forward_iterator<int,int> t; return 0;
29448   ;
29449   return 0;
29450 }
29451 _ACEOF
29452 rm -f conftest.$ac_objext
29453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29454   (eval $ac_compile) 2>conftest.er1
29455   ac_status=$?
29456   grep -v '^ *+' conftest.er1 >conftest.err
29457   rm -f conftest.er1
29458   cat conftest.err >&5
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); } &&
29461          { ac_try='test -z "$ac_cxx_werror_flag"
29462                          || test ! -s conftest.err'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; } &&
29468          { ac_try='test -s conftest.$ac_objext'
29469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470   (eval $ac_try) 2>&5
29471   ac_status=$?
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); }; }; then
29474   ac_cv_cxx_have_fwd_iterator=yes
29475 else
29476   echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29478
29479 ac_cv_cxx_have_fwd_iterator=no
29480 fi
29481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29482   ac_ext=c
29483 ac_cpp='$CPP $CPPFLAGS'
29484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29487
29488
29489 fi
29490 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29491 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29492 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29493 then
29494
29495 cat >>confdefs.h <<\_ACEOF
29496 #define HAVE_FWD_ITERATOR 1
29497 _ACEOF
29498
29499 else
29500
29501 cat >>confdefs.h <<\_ACEOF
29502 #define HAVE_FWD_ITERATOR 0
29503 _ACEOF
29504
29505 fi
29506
29507
29508 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29509 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29510 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29511   echo $ECHO_N "(cached) $ECHO_C" >&6
29512 else
29513   ac_ext=cc
29514 ac_cpp='$CXXCPP $CPPFLAGS'
29515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29518
29519    cat >conftest.$ac_ext <<_ACEOF
29520 /* confdefs.h.  */
29521 _ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h.  */
29525 #include <math.h>
29526 int
29527 main ()
29528 {
29529 float f; isnan(f);
29530   ;
29531   return 0;
29532 }
29533 _ACEOF
29534 rm -f conftest.$ac_objext
29535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29536   (eval $ac_compile) 2>conftest.er1
29537   ac_status=$?
29538   grep -v '^ *+' conftest.er1 >conftest.err
29539   rm -f conftest.er1
29540   cat conftest.err >&5
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); } &&
29543          { ac_try='test -z "$ac_cxx_werror_flag"
29544                          || test ! -s conftest.err'
29545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546   (eval $ac_try) 2>&5
29547   ac_status=$?
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); }; } &&
29550          { ac_try='test -s conftest.$ac_objext'
29551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552   (eval $ac_try) 2>&5
29553   ac_status=$?
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); }; }; then
29556   ac_cv_func_isnan_in_math_h=yes
29557 else
29558   echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561 ac_cv_func_isnan_in_math_h=no
29562 fi
29563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29564   ac_ext=c
29565 ac_cpp='$CPP $CPPFLAGS'
29566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29569
29570 fi
29571 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29572 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29573
29574
29575 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29576
29577 cat >>confdefs.h <<\_ACEOF
29578 #define HAVE_ISNAN_IN_MATH_H 1
29579 _ACEOF
29580
29581 fi
29582
29583 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29584 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29585 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 else
29588   ac_ext=cc
29589 ac_cpp='$CXXCPP $CPPFLAGS'
29590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29593
29594    cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 #include <cmath>
29601 int
29602 main ()
29603 {
29604 float f; isnan(f);
29605   ;
29606   return 0;
29607 }
29608 _ACEOF
29609 rm -f conftest.$ac_objext
29610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29611   (eval $ac_compile) 2>conftest.er1
29612   ac_status=$?
29613   grep -v '^ *+' conftest.er1 >conftest.err
29614   rm -f conftest.er1
29615   cat conftest.err >&5
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } &&
29618          { ac_try='test -z "$ac_cxx_werror_flag"
29619                          || test ! -s conftest.err'
29620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621   (eval $ac_try) 2>&5
29622   ac_status=$?
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); }; } &&
29625          { ac_try='test -s conftest.$ac_objext'
29626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627   (eval $ac_try) 2>&5
29628   ac_status=$?
29629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); }; }; then
29631   ac_cv_func_isnan_in_cmath=yes
29632 else
29633   echo "$as_me: failed program was:" >&5
29634 sed 's/^/| /' conftest.$ac_ext >&5
29635
29636 ac_cv_func_isnan_in_cmath=no
29637 fi
29638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29639   ac_ext=c
29640 ac_cpp='$CPP $CPPFLAGS'
29641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29644
29645 fi
29646 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29647 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29648
29649 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29650
29651 cat >>confdefs.h <<\_ACEOF
29652 #define HAVE_ISNAN_IN_CMATH 1
29653 _ACEOF
29654
29655 fi
29656
29657 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29658 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29659 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29660   echo $ECHO_N "(cached) $ECHO_C" >&6
29661 else
29662   ac_ext=cc
29663 ac_cpp='$CXXCPP $CPPFLAGS'
29664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29667
29668    cat >conftest.$ac_ext <<_ACEOF
29669 /* confdefs.h.  */
29670 _ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h.  */
29674 #include <cmath>
29675 int
29676 main ()
29677 {
29678 float f; std::isnan(f);
29679   ;
29680   return 0;
29681 }
29682 _ACEOF
29683 rm -f conftest.$ac_objext
29684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29685   (eval $ac_compile) 2>conftest.er1
29686   ac_status=$?
29687   grep -v '^ *+' conftest.er1 >conftest.err
29688   rm -f conftest.er1
29689   cat conftest.err >&5
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); } &&
29692          { ac_try='test -z "$ac_cxx_werror_flag"
29693                          || test ! -s conftest.err'
29694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695   (eval $ac_try) 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; } &&
29699          { ac_try='test -s conftest.$ac_objext'
29700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29701   (eval $ac_try) 2>&5
29702   ac_status=$?
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); }; }; then
29705   ac_cv_func_std_isnan_in_cmath=yes
29706 else
29707   echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29709
29710 ac_cv_func_std_isnan_in_cmath=no
29711 fi
29712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29713   ac_ext=c
29714 ac_cpp='$CPP $CPPFLAGS'
29715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29718
29719 fi
29720 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29721 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29722
29723 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29724
29725 cat >>confdefs.h <<\_ACEOF
29726 #define HAVE_STD_ISNAN_IN_CMATH 1
29727 _ACEOF
29728
29729 fi
29730
29731
29732 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29733 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29734 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29735   echo $ECHO_N "(cached) $ECHO_C" >&6
29736 else
29737   ac_ext=cc
29738 ac_cpp='$CXXCPP $CPPFLAGS'
29739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29742
29743    cat >conftest.$ac_ext <<_ACEOF
29744 /* confdefs.h.  */
29745 _ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h.  */
29749 #include <math.h>
29750 int
29751 main ()
29752 {
29753 float f; isinf(f);
29754   ;
29755   return 0;
29756 }
29757 _ACEOF
29758 rm -f conftest.$ac_objext
29759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29760   (eval $ac_compile) 2>conftest.er1
29761   ac_status=$?
29762   grep -v '^ *+' conftest.er1 >conftest.err
29763   rm -f conftest.er1
29764   cat conftest.err >&5
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); } &&
29767          { ac_try='test -z "$ac_cxx_werror_flag"
29768                          || test ! -s conftest.err'
29769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770   (eval $ac_try) 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; } &&
29774          { ac_try='test -s conftest.$ac_objext'
29775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776   (eval $ac_try) 2>&5
29777   ac_status=$?
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); }; }; then
29780   ac_cv_func_isinf_in_math_h=yes
29781 else
29782   echo "$as_me: failed program was:" >&5
29783 sed 's/^/| /' conftest.$ac_ext >&5
29784
29785 ac_cv_func_isinf_in_math_h=no
29786 fi
29787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29788   ac_ext=c
29789 ac_cpp='$CPP $CPPFLAGS'
29790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29793
29794 fi
29795 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29796 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29797
29798 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29799
29800 cat >>confdefs.h <<\_ACEOF
29801 #define HAVE_ISINF_IN_MATH_H 1
29802 _ACEOF
29803
29804 fi
29805
29806 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29807 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29808 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29809   echo $ECHO_N "(cached) $ECHO_C" >&6
29810 else
29811   ac_ext=cc
29812 ac_cpp='$CXXCPP $CPPFLAGS'
29813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29816
29817    cat >conftest.$ac_ext <<_ACEOF
29818 /* confdefs.h.  */
29819 _ACEOF
29820 cat confdefs.h >>conftest.$ac_ext
29821 cat >>conftest.$ac_ext <<_ACEOF
29822 /* end confdefs.h.  */
29823 #include <cmath>
29824 int
29825 main ()
29826 {
29827 float f; isinf(f);
29828   ;
29829   return 0;
29830 }
29831 _ACEOF
29832 rm -f conftest.$ac_objext
29833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29834   (eval $ac_compile) 2>conftest.er1
29835   ac_status=$?
29836   grep -v '^ *+' conftest.er1 >conftest.err
29837   rm -f conftest.er1
29838   cat conftest.err >&5
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); } &&
29841          { ac_try='test -z "$ac_cxx_werror_flag"
29842                          || test ! -s conftest.err'
29843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844   (eval $ac_try) 2>&5
29845   ac_status=$?
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); }; } &&
29848          { ac_try='test -s conftest.$ac_objext'
29849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850   (eval $ac_try) 2>&5
29851   ac_status=$?
29852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853   (exit $ac_status); }; }; then
29854   ac_cv_func_isinf_in_cmath=yes
29855 else
29856   echo "$as_me: failed program was:" >&5
29857 sed 's/^/| /' conftest.$ac_ext >&5
29858
29859 ac_cv_func_isinf_in_cmath=no
29860 fi
29861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29862   ac_ext=c
29863 ac_cpp='$CPP $CPPFLAGS'
29864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29867
29868 fi
29869 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29870 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29871
29872 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29873
29874 cat >>confdefs.h <<\_ACEOF
29875 #define HAVE_ISINF_IN_CMATH 1
29876 _ACEOF
29877
29878 fi
29879
29880 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29881 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29882 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29883   echo $ECHO_N "(cached) $ECHO_C" >&6
29884 else
29885   ac_ext=cc
29886 ac_cpp='$CXXCPP $CPPFLAGS'
29887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29890
29891    cat >conftest.$ac_ext <<_ACEOF
29892 /* confdefs.h.  */
29893 _ACEOF
29894 cat confdefs.h >>conftest.$ac_ext
29895 cat >>conftest.$ac_ext <<_ACEOF
29896 /* end confdefs.h.  */
29897 #include <cmath>
29898 int
29899 main ()
29900 {
29901 float f; std::isinf(f)}
29902   ;
29903   return 0;
29904 }
29905 _ACEOF
29906 rm -f conftest.$ac_objext
29907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29908   (eval $ac_compile) 2>conftest.er1
29909   ac_status=$?
29910   grep -v '^ *+' conftest.er1 >conftest.err
29911   rm -f conftest.er1
29912   cat conftest.err >&5
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); } &&
29915          { ac_try='test -z "$ac_cxx_werror_flag"
29916                          || test ! -s conftest.err'
29917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918   (eval $ac_try) 2>&5
29919   ac_status=$?
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); }; } &&
29922          { ac_try='test -s conftest.$ac_objext'
29923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924   (eval $ac_try) 2>&5
29925   ac_status=$?
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); }; }; then
29928   ac_cv_func_std_isinf_in_cmath=yes
29929 else
29930   echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29932
29933 ac_cv_func_std_isinf_in_cmath=no
29934 fi
29935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29936   ac_ext=c
29937 ac_cpp='$CPP $CPPFLAGS'
29938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29941
29942 fi
29943 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29944 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29945
29946 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29947
29948 cat >>confdefs.h <<\_ACEOF
29949 #define HAVE_STD_ISINF_IN_CMATH 1
29950 _ACEOF
29951
29952 fi
29953
29954 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29955 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29956 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29957   echo $ECHO_N "(cached) $ECHO_C" >&6
29958 else
29959   ac_ext=cc
29960 ac_cpp='$CXXCPP $CPPFLAGS'
29961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29964
29965    cat >conftest.$ac_ext <<_ACEOF
29966 /* confdefs.h.  */
29967 _ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h.  */
29971 #include <ieeefp.h>
29972 int
29973 main ()
29974 {
29975 float f; finite(f);
29976   ;
29977   return 0;
29978 }
29979 _ACEOF
29980 rm -f conftest.$ac_objext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29982   (eval $ac_compile) 2>conftest.er1
29983   ac_status=$?
29984   grep -v '^ *+' conftest.er1 >conftest.err
29985   rm -f conftest.er1
29986   cat conftest.err >&5
29987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988   (exit $ac_status); } &&
29989          { ac_try='test -z "$ac_cxx_werror_flag"
29990                          || test ! -s conftest.err'
29991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992   (eval $ac_try) 2>&5
29993   ac_status=$?
29994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995   (exit $ac_status); }; } &&
29996          { ac_try='test -s conftest.$ac_objext'
29997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998   (eval $ac_try) 2>&5
29999   ac_status=$?
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); }; }; then
30002   ac_cv_func_finite_in_ieeefp_h=yes
30003 else
30004   echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30006
30007 ac_cv_func_finite_in_ieeefp_h=no
30008 fi
30009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30010   ac_ext=c
30011 ac_cpp='$CPP $CPPFLAGS'
30012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30015
30016 fi
30017 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30018 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30019
30020 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30021
30022 cat >>confdefs.h <<\_ACEOF
30023 #define HAVE_FINITE_IN_IEEEFP_H 1
30024 _ACEOF
30025
30026 fi
30027
30028
30029
30030
30031
30032 for ac_header in stdlib.h unistd.h
30033 do
30034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30036   echo "$as_me:$LINENO: checking for $ac_header" >&5
30037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30039   echo $ECHO_N "(cached) $ECHO_C" >&6
30040 fi
30041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30043 else
30044   # Is the header compilable?
30045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30047 cat >conftest.$ac_ext <<_ACEOF
30048 /* confdefs.h.  */
30049 _ACEOF
30050 cat confdefs.h >>conftest.$ac_ext
30051 cat >>conftest.$ac_ext <<_ACEOF
30052 /* end confdefs.h.  */
30053 $ac_includes_default
30054 #include <$ac_header>
30055 _ACEOF
30056 rm -f conftest.$ac_objext
30057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30058   (eval $ac_compile) 2>conftest.er1
30059   ac_status=$?
30060   grep -v '^ *+' conftest.er1 >conftest.err
30061   rm -f conftest.er1
30062   cat conftest.err >&5
30063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064   (exit $ac_status); } &&
30065          { ac_try='test -z "$ac_c_werror_flag"
30066                          || test ! -s conftest.err'
30067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068   (eval $ac_try) 2>&5
30069   ac_status=$?
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); }; } &&
30072          { ac_try='test -s conftest.$ac_objext'
30073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074   (eval $ac_try) 2>&5
30075   ac_status=$?
30076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077   (exit $ac_status); }; }; then
30078   ac_header_compiler=yes
30079 else
30080   echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30082
30083 ac_header_compiler=no
30084 fi
30085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30087 echo "${ECHO_T}$ac_header_compiler" >&6
30088
30089 # Is the header present?
30090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30092 cat >conftest.$ac_ext <<_ACEOF
30093 /* confdefs.h.  */
30094 _ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h.  */
30098 #include <$ac_header>
30099 _ACEOF
30100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30102   ac_status=$?
30103   grep -v '^ *+' conftest.er1 >conftest.err
30104   rm -f conftest.er1
30105   cat conftest.err >&5
30106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107   (exit $ac_status); } >/dev/null; then
30108   if test -s conftest.err; then
30109     ac_cpp_err=$ac_c_preproc_warn_flag
30110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30111   else
30112     ac_cpp_err=
30113   fi
30114 else
30115   ac_cpp_err=yes
30116 fi
30117 if test -z "$ac_cpp_err"; then
30118   ac_header_preproc=yes
30119 else
30120   echo "$as_me: failed program was:" >&5
30121 sed 's/^/| /' conftest.$ac_ext >&5
30122
30123   ac_header_preproc=no
30124 fi
30125 rm -f conftest.err conftest.$ac_ext
30126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30127 echo "${ECHO_T}$ac_header_preproc" >&6
30128
30129 # So?  What about this header?
30130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30131   yes:no: )
30132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30136     ac_header_preproc=yes
30137     ;;
30138   no:yes:* )
30139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30151     (
30152       cat <<\_ASBOX
30153 ## ----------------------------------- ##
30154 ## Report this to llvmbugs@cs.uiuc.edu ##
30155 ## ----------------------------------- ##
30156 _ASBOX
30157     ) |
30158       sed "s/^/$as_me: WARNING:     /" >&2
30159     ;;
30160 esac
30161 echo "$as_me:$LINENO: checking for $ac_header" >&5
30162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30164   echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166   eval "$as_ac_Header=\$ac_header_preproc"
30167 fi
30168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30170
30171 fi
30172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30173   cat >>confdefs.h <<_ACEOF
30174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30175 _ACEOF
30176
30177 fi
30178
30179 done
30180
30181
30182 for ac_func in getpagesize
30183 do
30184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30185 echo "$as_me:$LINENO: checking for $ac_func" >&5
30186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30187 if eval "test \"\${$as_ac_var+set}\" = set"; then
30188   echo $ECHO_N "(cached) $ECHO_C" >&6
30189 else
30190   cat >conftest.$ac_ext <<_ACEOF
30191 /* confdefs.h.  */
30192 _ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h.  */
30196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30198 #define $ac_func innocuous_$ac_func
30199
30200 /* System header to define __stub macros and hopefully few prototypes,
30201     which can conflict with char $ac_func (); below.
30202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30203     <limits.h> exists even on freestanding compilers.  */
30204
30205 #ifdef __STDC__
30206 # include <limits.h>
30207 #else
30208 # include <assert.h>
30209 #endif
30210
30211 #undef $ac_func
30212
30213 /* Override any gcc2 internal prototype to avoid an error.  */
30214 #ifdef __cplusplus
30215 extern "C"
30216 {
30217 #endif
30218 /* We use char because int might match the return type of a gcc2
30219    builtin and then its argument prototype would still apply.  */
30220 char $ac_func ();
30221 /* The GNU C library defines this for functions which it implements
30222     to always fail with ENOSYS.  Some functions are actually named
30223     something starting with __ and the normal name is an alias.  */
30224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30225 choke me
30226 #else
30227 char (*f) () = $ac_func;
30228 #endif
30229 #ifdef __cplusplus
30230 }
30231 #endif
30232
30233 int
30234 main ()
30235 {
30236 return f != $ac_func;
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30243   (eval $ac_link) 2>conftest.er1
30244   ac_status=$?
30245   grep -v '^ *+' conftest.er1 >conftest.err
30246   rm -f conftest.er1
30247   cat conftest.err >&5
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); } &&
30250          { ac_try='test -z "$ac_c_werror_flag"
30251                          || test ! -s conftest.err'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; } &&
30257          { ac_try='test -s conftest$ac_exeext'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; }; then
30263   eval "$as_ac_var=yes"
30264 else
30265   echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 eval "$as_ac_var=no"
30269 fi
30270 rm -f conftest.err conftest.$ac_objext \
30271       conftest$ac_exeext conftest.$ac_ext
30272 fi
30273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30275 if test `eval echo '${'$as_ac_var'}'` = yes; then
30276   cat >>confdefs.h <<_ACEOF
30277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30278 _ACEOF
30279
30280 fi
30281 done
30282
30283 echo "$as_me:$LINENO: checking for working mmap" >&5
30284 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30285 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30286   echo $ECHO_N "(cached) $ECHO_C" >&6
30287 else
30288   if test "$cross_compiling" = yes; then
30289   ac_cv_func_mmap_fixed_mapped=no
30290 else
30291   cat >conftest.$ac_ext <<_ACEOF
30292 /* confdefs.h.  */
30293 _ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h.  */
30297 $ac_includes_default
30298 /* malloc might have been renamed as rpl_malloc. */
30299 #undef malloc
30300
30301 /* Thanks to Mike Haertel and Jim Avera for this test.
30302    Here is a matrix of mmap possibilities:
30303         mmap private not fixed
30304         mmap private fixed at somewhere currently unmapped
30305         mmap private fixed at somewhere already mapped
30306         mmap shared not fixed
30307         mmap shared fixed at somewhere currently unmapped
30308         mmap shared fixed at somewhere already mapped
30309    For private mappings, we should verify that changes cannot be read()
30310    back from the file, nor mmap's back from the file at a different
30311    address.  (There have been systems where private was not correctly
30312    implemented like the infamous i386 svr4.0, and systems where the
30313    VM page cache was not coherent with the file system buffer cache
30314    like early versions of FreeBSD and possibly contemporary NetBSD.)
30315    For shared mappings, we should conversely verify that changes get
30316    propagated back to all the places they're supposed to be.
30317
30318    Grep wants private fixed already mapped.
30319    The main things grep needs to know about mmap are:
30320    * does it exist and is it safe to write into the mmap'd area
30321    * how to use it (BSD variants)  */
30322
30323 #include <fcntl.h>
30324 #include <sys/mman.h>
30325
30326 #if !STDC_HEADERS && !HAVE_STDLIB_H
30327 char *malloc ();
30328 #endif
30329
30330 /* This mess was copied from the GNU getpagesize.h.  */
30331 #if !HAVE_GETPAGESIZE
30332 /* Assume that all systems that can run configure have sys/param.h.  */
30333 # if !HAVE_SYS_PARAM_H
30334 #  define HAVE_SYS_PARAM_H 1
30335 # endif
30336
30337 # ifdef _SC_PAGESIZE
30338 #  define getpagesize() sysconf(_SC_PAGESIZE)
30339 # else /* no _SC_PAGESIZE */
30340 #  if HAVE_SYS_PARAM_H
30341 #   include <sys/param.h>
30342 #   ifdef EXEC_PAGESIZE
30343 #    define getpagesize() EXEC_PAGESIZE
30344 #   else /* no EXEC_PAGESIZE */
30345 #    ifdef NBPG
30346 #     define getpagesize() NBPG * CLSIZE
30347 #     ifndef CLSIZE
30348 #      define CLSIZE 1
30349 #     endif /* no CLSIZE */
30350 #    else /* no NBPG */
30351 #     ifdef NBPC
30352 #      define getpagesize() NBPC
30353 #     else /* no NBPC */
30354 #      ifdef PAGESIZE
30355 #       define getpagesize() PAGESIZE
30356 #      endif /* PAGESIZE */
30357 #     endif /* no NBPC */
30358 #    endif /* no NBPG */
30359 #   endif /* no EXEC_PAGESIZE */
30360 #  else /* no HAVE_SYS_PARAM_H */
30361 #   define getpagesize() 8192   /* punt totally */
30362 #  endif /* no HAVE_SYS_PARAM_H */
30363 # endif /* no _SC_PAGESIZE */
30364
30365 #endif /* no HAVE_GETPAGESIZE */
30366
30367 int
30368 main ()
30369 {
30370   char *data, *data2, *data3;
30371   int i, pagesize;
30372   int fd;
30373
30374   pagesize = getpagesize ();
30375
30376   /* First, make a file with some known garbage in it. */
30377   data = (char *) malloc (pagesize);
30378   if (!data)
30379     exit (1);
30380   for (i = 0; i < pagesize; ++i)
30381     *(data + i) = rand ();
30382   umask (0);
30383   fd = creat ("conftest.mmap", 0600);
30384   if (fd < 0)
30385     exit (1);
30386   if (write (fd, data, pagesize) != pagesize)
30387     exit (1);
30388   close (fd);
30389
30390   /* Next, try to mmap the file at a fixed address which already has
30391      something else allocated at it.  If we can, also make sure that
30392      we see the same garbage.  */
30393   fd = open ("conftest.mmap", O_RDWR);
30394   if (fd < 0)
30395     exit (1);
30396   data2 = (char *) malloc (2 * pagesize);
30397   if (!data2)
30398     exit (1);
30399   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30400   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30401                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30402     exit (1);
30403   for (i = 0; i < pagesize; ++i)
30404     if (*(data + i) != *(data2 + i))
30405       exit (1);
30406
30407   /* Finally, make sure that changes to the mapped area do not
30408      percolate back to the file as seen by read().  (This is a bug on
30409      some variants of i386 svr4.0.)  */
30410   for (i = 0; i < pagesize; ++i)
30411     *(data2 + i) = *(data2 + i) + 1;
30412   data3 = (char *) malloc (pagesize);
30413   if (!data3)
30414     exit (1);
30415   if (read (fd, data3, pagesize) != pagesize)
30416     exit (1);
30417   for (i = 0; i < pagesize; ++i)
30418     if (*(data + i) != *(data3 + i))
30419       exit (1);
30420   close (fd);
30421   exit (0);
30422 }
30423 _ACEOF
30424 rm -f conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426   (eval $ac_link) 2>&5
30427   ac_status=$?
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431   (eval $ac_try) 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); }; }; then
30435   ac_cv_func_mmap_fixed_mapped=yes
30436 else
30437   echo "$as_me: program exited with status $ac_status" >&5
30438 echo "$as_me: failed program was:" >&5
30439 sed 's/^/| /' conftest.$ac_ext >&5
30440
30441 ( exit $ac_status )
30442 ac_cv_func_mmap_fixed_mapped=no
30443 fi
30444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30445 fi
30446 fi
30447 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30448 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30449 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30450
30451 cat >>confdefs.h <<\_ACEOF
30452 #define HAVE_MMAP 1
30453 _ACEOF
30454
30455 fi
30456 rm -f conftest.mmap
30457
30458 echo "$as_me:$LINENO: checking for mmap of files" >&5
30459 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30460 if test "${ac_cv_func_mmap_file+set}" = set; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463    ac_ext=c
30464 ac_cpp='$CPP $CPPFLAGS'
30465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30468
30469   if test "$cross_compiling" = yes; then
30470   ac_cv_func_mmap_file=no
30471 else
30472   cat >conftest.$ac_ext <<_ACEOF
30473
30474     /* confdefs.h.  */
30475 _ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h.  */
30479
30480 #include <sys/types.h>
30481 #include <sys/mman.h>
30482 #include <fcntl.h>
30483
30484 int
30485 main ()
30486 {
30487
30488   int fd;
30489   fd = creat ("foo",0777);
30490   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30491   unlink ("foo");
30492   return (fd != (int) MAP_FAILED);
30493   ;
30494   return 0;
30495 }
30496 _ACEOF
30497 rm -f conftest$ac_exeext
30498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30499   (eval $ac_link) 2>&5
30500   ac_status=$?
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504   (eval $ac_try) 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; }; then
30508   ac_cv_func_mmap_file=yes
30509 else
30510   echo "$as_me: program exited with status $ac_status" >&5
30511 echo "$as_me: failed program was:" >&5
30512 sed 's/^/| /' conftest.$ac_ext >&5
30513
30514 ( exit $ac_status )
30515 ac_cv_func_mmap_file=no
30516 fi
30517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30518 fi
30519   ac_ext=c
30520 ac_cpp='$CPP $CPPFLAGS'
30521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30524
30525
30526 fi
30527 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30528 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30529 if test "$ac_cv_func_mmap_file" = yes; then
30530
30531 cat >>confdefs.h <<\_ACEOF
30532 #define HAVE_MMAP_FILE
30533 _ACEOF
30534
30535    MMAP_FILE=yes
30536
30537 fi
30538
30539 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30540 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30541 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30542   echo $ECHO_N "(cached) $ECHO_C" >&6
30543 else
30544   if test "$llvm_cv_os_type" = "Interix" ; then
30545    ac_cv_need_dev_zero_for_mmap=yes
30546  else
30547    ac_cv_need_dev_zero_for_mmap=no
30548  fi
30549
30550 fi
30551 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30552 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30553 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30554
30555 cat >>confdefs.h <<\_ACEOF
30556 #define NEED_DEV_ZERO_FOR_MMAP 1
30557 _ACEOF
30558
30559 fi
30560 echo "$as_me:$LINENO: checking for mprotect" >&5
30561 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30562 if test "${ac_cv_func_mprotect+set}" = set; then
30563   echo $ECHO_N "(cached) $ECHO_C" >&6
30564 else
30565   cat >conftest.$ac_ext <<_ACEOF
30566 /* confdefs.h.  */
30567 _ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h.  */
30571 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30573 #define mprotect innocuous_mprotect
30574
30575 /* System header to define __stub macros and hopefully few prototypes,
30576     which can conflict with char mprotect (); below.
30577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30578     <limits.h> exists even on freestanding compilers.  */
30579
30580 #ifdef __STDC__
30581 # include <limits.h>
30582 #else
30583 # include <assert.h>
30584 #endif
30585
30586 #undef mprotect
30587
30588 /* Override any gcc2 internal prototype to avoid an error.  */
30589 #ifdef __cplusplus
30590 extern "C"
30591 {
30592 #endif
30593 /* We use char because int might match the return type of a gcc2
30594    builtin and then its argument prototype would still apply.  */
30595 char mprotect ();
30596 /* The GNU C library defines this for functions which it implements
30597     to always fail with ENOSYS.  Some functions are actually named
30598     something starting with __ and the normal name is an alias.  */
30599 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30600 choke me
30601 #else
30602 char (*f) () = mprotect;
30603 #endif
30604 #ifdef __cplusplus
30605 }
30606 #endif
30607
30608 int
30609 main ()
30610 {
30611 return f != mprotect;
30612   ;
30613   return 0;
30614 }
30615 _ACEOF
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30618   (eval $ac_link) 2>conftest.er1
30619   ac_status=$?
30620   grep -v '^ *+' conftest.er1 >conftest.err
30621   rm -f conftest.er1
30622   cat conftest.err >&5
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); } &&
30625          { ac_try='test -z "$ac_c_werror_flag"
30626                          || test ! -s conftest.err'
30627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628   (eval $ac_try) 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); }; } &&
30632          { ac_try='test -s conftest$ac_exeext'
30633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634   (eval $ac_try) 2>&5
30635   ac_status=$?
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); }; }; then
30638   ac_cv_func_mprotect=yes
30639 else
30640   echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30642
30643 ac_cv_func_mprotect=no
30644 fi
30645 rm -f conftest.err conftest.$ac_objext \
30646       conftest$ac_exeext conftest.$ac_ext
30647 fi
30648 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30649 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30650 if test $ac_cv_func_mprotect = yes; then
30651   :
30652 else
30653   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30654 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30655    { (exit 1); exit 1; }; }
30656 fi
30657
30658
30659 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30660 then
30661   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30662 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30663 fi
30664 if test "$ac_cv_func_mmap_file" = "no"
30665 then
30666   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30667 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30668 fi
30669
30670
30671 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30672 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30673 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30674   echo $ECHO_N "(cached) $ECHO_C" >&6
30675 else
30676   llvm_cv_llvmgcc_sanity="no"
30677 if test -x "$LLVMGCC" ; then
30678   cp /dev/null conftest.c
30679   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30680   if test $? -eq 0 ; then
30681     llvm_cv_llvmgcc_sanity="yes"
30682   fi
30683   rm conftest.c
30684 fi
30685 fi
30686 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30687 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30688
30689 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30690   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30691   LLVMCC1=$llvmcc1path
30692
30693   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30694   LLVMCC1PLUS=$llvmcc1pluspath
30695
30696   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30697   LLVMGCCDIR=$llvmgccdir
30698
30699 fi
30700
30701 SHLIBEXT=$libltdl_cv_shlibext
30702
30703
30704 # Translate the various configuration directories and other basic
30705 # information into substitutions that will end up in Makefile.config.in
30706 # that these configured values can be used by the makefiles
30707 eval LLVM_PREFIX="${prefix}";
30708 eval LLVM_BINDIR="${prefix}/bin";
30709 eval LLVM_LIBDIR="${prefix}/lib";
30710 eval LLVM_DATADIR="${prefix}/share/llvm";
30711 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30712 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30713 eval LLVM_INCLUDEDIR="${prefix}/include";
30714 eval LLVM_INFODIR="${prefix}/info";
30715 eval LLVM_MANDIR="${prefix}/man";
30716 LLVM_CONFIGTIME=`date`
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728 # Place the various directores into the config.h file as #defines so that we
30729 # can know about the installation paths within LLVM.
30730
30731 cat >>confdefs.h <<_ACEOF
30732 #define LLVM_PREFIX "$LLVM_PREFIX"
30733 _ACEOF
30734
30735
30736 cat >>confdefs.h <<_ACEOF
30737 #define LLVM_BINDIR "$LLVM_BINDIR"
30738 _ACEOF
30739
30740
30741 cat >>confdefs.h <<_ACEOF
30742 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30743 _ACEOF
30744
30745
30746 cat >>confdefs.h <<_ACEOF
30747 #define LLVM_DATADIR "$LLVM_DATADIR"
30748 _ACEOF
30749
30750
30751 cat >>confdefs.h <<_ACEOF
30752 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30753 _ACEOF
30754
30755
30756 cat >>confdefs.h <<_ACEOF
30757 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30758 _ACEOF
30759
30760
30761 cat >>confdefs.h <<_ACEOF
30762 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30763 _ACEOF
30764
30765
30766 cat >>confdefs.h <<_ACEOF
30767 #define LLVM_INFODIR "$LLVM_INFODIR"
30768 _ACEOF
30769
30770
30771 cat >>confdefs.h <<_ACEOF
30772 #define LLVM_MANDIR "$LLVM_MANDIR"
30773 _ACEOF
30774
30775
30776 cat >>confdefs.h <<_ACEOF
30777 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30778 _ACEOF
30779
30780
30781
30782           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30783
30784           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30785
30786           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30787
30788           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30789
30790           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30791
30792
30793           ac_config_files="$ac_config_files Makefile.config"
30794
30795
30796           ac_config_files="$ac_config_files docs/doxygen.cfg"
30797
30798
30799           ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30800
30801
30802           ac_config_commands="$ac_config_commands setup"
30803
30804           ac_config_commands="$ac_config_commands Makefile"
30805
30806
30807           ac_config_commands="$ac_config_commands Makefile.common"
30808
30809
30810           ac_config_commands="$ac_config_commands examples/Makefile"
30811
30812
30813           ac_config_commands="$ac_config_commands lib/Makefile"
30814
30815
30816           ac_config_commands="$ac_config_commands runtime/Makefile"
30817
30818
30819           ac_config_commands="$ac_config_commands test/Makefile"
30820
30821
30822           ac_config_commands="$ac_config_commands test/Makefile.tests"
30823
30824
30825           ac_config_commands="$ac_config_commands tools/Makefile"
30826
30827
30828           ac_config_commands="$ac_config_commands utils/Makefile"
30829
30830
30831           ac_config_commands="$ac_config_commands projects/Makefile"
30832
30833
30834
30835 cat >confcache <<\_ACEOF
30836 # This file is a shell script that caches the results of configure
30837 # tests run on this system so they can be shared between configure
30838 # scripts and configure runs, see configure's option --config-cache.
30839 # It is not useful on other systems.  If it contains results you don't
30840 # want to keep, you may remove or edit it.
30841 #
30842 # config.status only pays attention to the cache file if you give it
30843 # the --recheck option to rerun configure.
30844 #
30845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30847 # following values.
30848
30849 _ACEOF
30850
30851 # The following way of writing the cache mishandles newlines in values,
30852 # but we know of no workaround that is simple, portable, and efficient.
30853 # So, don't put newlines in cache variables' values.
30854 # Ultrix sh set writes to stderr and can't be redirected directly,
30855 # and sets the high bit in the cache file unless we assign to the vars.
30856 {
30857   (set) 2>&1 |
30858     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30859     *ac_space=\ *)
30860       # `set' does not quote correctly, so add quotes (double-quote
30861       # substitution turns \\\\ into \\, and sed turns \\ into \).
30862       sed -n \
30863         "s/'/'\\\\''/g;
30864           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30865       ;;
30866     *)
30867       # `set' quotes correctly as required by POSIX, so do not add quotes.
30868       sed -n \
30869         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30870       ;;
30871     esac;
30872 } |
30873   sed '
30874      t clear
30875      : clear
30876      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30877      t end
30878      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30879      : end' >>confcache
30880 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30881   if test -w $cache_file; then
30882     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30883     cat confcache >$cache_file
30884   else
30885     echo "not updating unwritable cache $cache_file"
30886   fi
30887 fi
30888 rm -f confcache
30889
30890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30891 # Let make expand exec_prefix.
30892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30893
30894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30896 # trailing colons and then remove the whole line if VPATH becomes empty
30897 # (actually we leave an empty line to preserve line numbers).
30898 if test "x$srcdir" = x.; then
30899   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30900 s/:*\$(srcdir):*/:/;
30901 s/:*\${srcdir}:*/:/;
30902 s/:*@srcdir@:*/:/;
30903 s/^\([^=]*=[     ]*\):*/\1/;
30904 s/:*$//;
30905 s/^[^=]*=[       ]*$//;
30906 }'
30907 fi
30908
30909 DEFS=-DHAVE_CONFIG_H
30910
30911 ac_libobjs=
30912 ac_ltlibobjs=
30913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30914   # 1. Remove the extension, and $U if already installed.
30915   ac_i=`echo "$ac_i" |
30916          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30917   # 2. Add them.
30918   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30919   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30920 done
30921 LIBOBJS=$ac_libobjs
30922
30923 LTLIBOBJS=$ac_ltlibobjs
30924
30925
30926 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30927   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30928 Usually this means the macro was only invoked conditionally." >&5
30929 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30930 Usually this means the macro was only invoked conditionally." >&2;}
30931    { (exit 1); exit 1; }; }
30932 fi
30933 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30934   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30935 Usually this means the macro was only invoked conditionally." >&5
30936 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30937 Usually this means the macro was only invoked conditionally." >&2;}
30938    { (exit 1); exit 1; }; }
30939 fi
30940
30941 : ${CONFIG_STATUS=./config.status}
30942 ac_clean_files_save=$ac_clean_files
30943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30944 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30945 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30946 cat >$CONFIG_STATUS <<_ACEOF
30947 #! $SHELL
30948 # Generated by $as_me.
30949 # Run this file to recreate the current configuration.
30950 # Compiler output produced by configure, useful for debugging
30951 # configure, is in config.log if it exists.
30952
30953 debug=false
30954 ac_cs_recheck=false
30955 ac_cs_silent=false
30956 SHELL=\${CONFIG_SHELL-$SHELL}
30957 _ACEOF
30958
30959 cat >>$CONFIG_STATUS <<\_ACEOF
30960 ## --------------------- ##
30961 ## M4sh Initialization.  ##
30962 ## --------------------- ##
30963
30964 # Be Bourne compatible
30965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30966   emulate sh
30967   NULLCMD=:
30968   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30969   # is contrary to our usage.  Disable this feature.
30970   alias -g '${1+"$@"}'='"$@"'
30971 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30972   set -o posix
30973 fi
30974 DUALCASE=1; export DUALCASE # for MKS sh
30975
30976 # Support unset when possible.
30977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30978   as_unset=unset
30979 else
30980   as_unset=false
30981 fi
30982
30983
30984 # Work around bugs in pre-3.0 UWIN ksh.
30985 $as_unset ENV MAIL MAILPATH
30986 PS1='$ '
30987 PS2='> '
30988 PS4='+ '
30989
30990 # NLS nuisances.
30991 for as_var in \
30992   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30993   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30994   LC_TELEPHONE LC_TIME
30995 do
30996   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30997     eval $as_var=C; export $as_var
30998   else
30999     $as_unset $as_var
31000   fi
31001 done
31002
31003 # Required to use basename.
31004 if expr a : '\(a\)' >/dev/null 2>&1; then
31005   as_expr=expr
31006 else
31007   as_expr=false
31008 fi
31009
31010 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31011   as_basename=basename
31012 else
31013   as_basename=false
31014 fi
31015
31016
31017 # Name of the executable.
31018 as_me=`$as_basename "$0" ||
31019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31020          X"$0" : 'X\(//\)$' \| \
31021          X"$0" : 'X\(/\)$' \| \
31022          .     : '\(.\)' 2>/dev/null ||
31023 echo X/"$0" |
31024     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31025           /^X\/\(\/\/\)$/{ s//\1/; q; }
31026           /^X\/\(\/\).*/{ s//\1/; q; }
31027           s/.*/./; q'`
31028
31029
31030 # PATH needs CR, and LINENO needs CR and PATH.
31031 # Avoid depending upon Character Ranges.
31032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31035 as_cr_digits='0123456789'
31036 as_cr_alnum=$as_cr_Letters$as_cr_digits
31037
31038 # The user is always right.
31039 if test "${PATH_SEPARATOR+set}" != set; then
31040   echo "#! /bin/sh" >conf$$.sh
31041   echo  "exit 0"   >>conf$$.sh
31042   chmod +x conf$$.sh
31043   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31044     PATH_SEPARATOR=';'
31045   else
31046     PATH_SEPARATOR=:
31047   fi
31048   rm -f conf$$.sh
31049 fi
31050
31051
31052   as_lineno_1=$LINENO
31053   as_lineno_2=$LINENO
31054   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31055   test "x$as_lineno_1" != "x$as_lineno_2" &&
31056   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31057   # Find who we are.  Look in the path if we contain no path at all
31058   # relative or not.
31059   case $0 in
31060     *[\\/]* ) as_myself=$0 ;;
31061     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31062 for as_dir in $PATH
31063 do
31064   IFS=$as_save_IFS
31065   test -z "$as_dir" && as_dir=.
31066   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31067 done
31068
31069        ;;
31070   esac
31071   # We did not find ourselves, most probably we were run as `sh COMMAND'
31072   # in which case we are not to be found in the path.
31073   if test "x$as_myself" = x; then
31074     as_myself=$0
31075   fi
31076   if test ! -f "$as_myself"; then
31077     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31078 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31079    { (exit 1); exit 1; }; }
31080   fi
31081   case $CONFIG_SHELL in
31082   '')
31083     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31084 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31085 do
31086   IFS=$as_save_IFS
31087   test -z "$as_dir" && as_dir=.
31088   for as_base in sh bash ksh sh5; do
31089          case $as_dir in
31090          /*)
31091            if ("$as_dir/$as_base" -c '
31092   as_lineno_1=$LINENO
31093   as_lineno_2=$LINENO
31094   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31095   test "x$as_lineno_1" != "x$as_lineno_2" &&
31096   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31097              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31098              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31099              CONFIG_SHELL=$as_dir/$as_base
31100              export CONFIG_SHELL
31101              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31102            fi;;
31103          esac
31104        done
31105 done
31106 ;;
31107   esac
31108
31109   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31110   # uniformly replaced by the line number.  The first 'sed' inserts a
31111   # line-number line before each line; the second 'sed' does the real
31112   # work.  The second script uses 'N' to pair each line-number line
31113   # with the numbered line, and appends trailing '-' during
31114   # substitution so that $LINENO is not a special case at line end.
31115   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31116   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31117   sed '=' <$as_myself |
31118     sed '
31119       N
31120       s,$,-,
31121       : loop
31122       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31123       t loop
31124       s,-$,,
31125       s,^['$as_cr_digits']*\n,,
31126     ' >$as_me.lineno &&
31127   chmod +x $as_me.lineno ||
31128     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31129 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31130    { (exit 1); exit 1; }; }
31131
31132   # Don't try to exec as it changes $[0], causing all sort of problems
31133   # (the dirname of $[0] is not the place where we might find the
31134   # original and so on.  Autoconf is especially sensible to this).
31135   . ./$as_me.lineno
31136   # Exit status is that of the last command.
31137   exit
31138 }
31139
31140
31141 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31142   *c*,-n*) ECHO_N= ECHO_C='
31143 ' ECHO_T='      ' ;;
31144   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31145   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31146 esac
31147
31148 if expr a : '\(a\)' >/dev/null 2>&1; then
31149   as_expr=expr
31150 else
31151   as_expr=false
31152 fi
31153
31154 rm -f conf$$ conf$$.exe conf$$.file
31155 echo >conf$$.file
31156 if ln -s conf$$.file conf$$ 2>/dev/null; then
31157   # We could just check for DJGPP; but this test a) works b) is more generic
31158   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31159   if test -f conf$$.exe; then
31160     # Don't use ln at all; we don't have any links
31161     as_ln_s='cp -p'
31162   else
31163     as_ln_s='ln -s'
31164   fi
31165 elif ln conf$$.file conf$$ 2>/dev/null; then
31166   as_ln_s=ln
31167 else
31168   as_ln_s='cp -p'
31169 fi
31170 rm -f conf$$ conf$$.exe conf$$.file
31171
31172 if mkdir -p . 2>/dev/null; then
31173   as_mkdir_p=:
31174 else
31175   test -d ./-p && rmdir ./-p
31176   as_mkdir_p=false
31177 fi
31178
31179 as_executable_p="test -f"
31180
31181 # Sed expression to map a string onto a valid CPP name.
31182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31183
31184 # Sed expression to map a string onto a valid variable name.
31185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31186
31187
31188 # IFS
31189 # We need space, tab and new line, in precisely that order.
31190 as_nl='
31191 '
31192 IFS="   $as_nl"
31193
31194 # CDPATH.
31195 $as_unset CDPATH
31196
31197 exec 6>&1
31198
31199 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31200 # report actual input values of CONFIG_FILES etc. instead of their
31201 # values after options handling.  Logging --version etc. is OK.
31202 exec 5>>config.log
31203 {
31204   echo
31205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31206 ## Running $as_me. ##
31207 _ASBOX
31208 } >&5
31209 cat >&5 <<_CSEOF
31210
31211 This file was extended by llvm $as_me 1.7cvs, which was
31212 generated by GNU Autoconf 2.59.  Invocation command line was
31213
31214   CONFIG_FILES    = $CONFIG_FILES
31215   CONFIG_HEADERS  = $CONFIG_HEADERS
31216   CONFIG_LINKS    = $CONFIG_LINKS
31217   CONFIG_COMMANDS = $CONFIG_COMMANDS
31218   $ $0 $@
31219
31220 _CSEOF
31221 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31222 echo >&5
31223 _ACEOF
31224
31225 # Files that config.status was made for.
31226 if test -n "$ac_config_files"; then
31227   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31228 fi
31229
31230 if test -n "$ac_config_headers"; then
31231   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31232 fi
31233
31234 if test -n "$ac_config_links"; then
31235   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31236 fi
31237
31238 if test -n "$ac_config_commands"; then
31239   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31240 fi
31241
31242 cat >>$CONFIG_STATUS <<\_ACEOF
31243
31244 ac_cs_usage="\
31245 \`$as_me' instantiates files from templates according to the
31246 current configuration.
31247
31248 Usage: $0 [OPTIONS] [FILE]...
31249
31250   -h, --help       print this help, then exit
31251   -V, --version    print version number, then exit
31252   -q, --quiet      do not print progress messages
31253   -d, --debug      don't remove temporary files
31254       --recheck    update $as_me by reconfiguring in the same conditions
31255   --file=FILE[:TEMPLATE]
31256                    instantiate the configuration file FILE
31257   --header=FILE[:TEMPLATE]
31258                    instantiate the configuration header FILE
31259
31260 Configuration files:
31261 $config_files
31262
31263 Configuration headers:
31264 $config_headers
31265
31266 Configuration commands:
31267 $config_commands
31268
31269 Report bugs to <bug-autoconf@gnu.org>."
31270 _ACEOF
31271
31272 cat >>$CONFIG_STATUS <<_ACEOF
31273 ac_cs_version="\\
31274 llvm config.status 1.7cvs
31275 configured by $0, generated by GNU Autoconf 2.59,
31276   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31277
31278 Copyright (C) 2003 Free Software Foundation, Inc.
31279 This config.status script is free software; the Free Software Foundation
31280 gives unlimited permission to copy, distribute and modify it."
31281 srcdir=$srcdir
31282 INSTALL="$INSTALL"
31283 _ACEOF
31284
31285 cat >>$CONFIG_STATUS <<\_ACEOF
31286 # If no file are specified by the user, then we need to provide default
31287 # value.  By we need to know if files were specified by the user.
31288 ac_need_defaults=:
31289 while test $# != 0
31290 do
31291   case $1 in
31292   --*=*)
31293     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31294     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31295     ac_shift=:
31296     ;;
31297   -*)
31298     ac_option=$1
31299     ac_optarg=$2
31300     ac_shift=shift
31301     ;;
31302   *) # This is not an option, so the user has probably given explicit
31303      # arguments.
31304      ac_option=$1
31305      ac_need_defaults=false;;
31306   esac
31307
31308   case $ac_option in
31309   # Handling of the options.
31310 _ACEOF
31311 cat >>$CONFIG_STATUS <<\_ACEOF
31312   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31313     ac_cs_recheck=: ;;
31314   --version | --vers* | -V )
31315     echo "$ac_cs_version"; exit 0 ;;
31316   --he | --h)
31317     # Conflict between --help and --header
31318     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31319 Try \`$0 --help' for more information." >&5
31320 echo "$as_me: error: ambiguous option: $1
31321 Try \`$0 --help' for more information." >&2;}
31322    { (exit 1); exit 1; }; };;
31323   --help | --hel | -h )
31324     echo "$ac_cs_usage"; exit 0 ;;
31325   --debug | --d* | -d )
31326     debug=: ;;
31327   --file | --fil | --fi | --f )
31328     $ac_shift
31329     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31330     ac_need_defaults=false;;
31331   --header | --heade | --head | --hea )
31332     $ac_shift
31333     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31334     ac_need_defaults=false;;
31335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31336   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31337     ac_cs_silent=: ;;
31338
31339   # This is an error.
31340   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31341 Try \`$0 --help' for more information." >&5
31342 echo "$as_me: error: unrecognized option: $1
31343 Try \`$0 --help' for more information." >&2;}
31344    { (exit 1); exit 1; }; } ;;
31345
31346   *) ac_config_targets="$ac_config_targets $1" ;;
31347
31348   esac
31349   shift
31350 done
31351
31352 ac_configure_extra_args=
31353
31354 if $ac_cs_silent; then
31355   exec 6>/dev/null
31356   ac_configure_extra_args="$ac_configure_extra_args --silent"
31357 fi
31358
31359 _ACEOF
31360 cat >>$CONFIG_STATUS <<_ACEOF
31361 if \$ac_cs_recheck; then
31362   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31363   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31364 fi
31365
31366 _ACEOF
31367
31368 cat >>$CONFIG_STATUS <<_ACEOF
31369 #
31370 # INIT-COMMANDS section.
31371 #
31372
31373 llvm_src="${srcdir}"
31374
31375 _ACEOF
31376
31377
31378
31379 cat >>$CONFIG_STATUS <<\_ACEOF
31380 for ac_config_target in $ac_config_targets
31381 do
31382   case "$ac_config_target" in
31383   # Handling of arguments.
31384   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31385   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31386   "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
31387   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31388   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31389   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31390   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31391   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31392   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31393   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31394   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31395   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31396   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31397   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31398   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31399   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31400   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31401   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31402   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31403   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31405    { (exit 1); exit 1; }; };;
31406   esac
31407 done
31408
31409 # If the user did not use the arguments to specify the items to instantiate,
31410 # then the envvar interface is used.  Set only those that are not.
31411 # We use the long form for the default assignment because of an extremely
31412 # bizarre bug on SunOS 4.1.3.
31413 if $ac_need_defaults; then
31414   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31415   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31416   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31417 fi
31418
31419 # Have a temporary directory for convenience.  Make it in the build tree
31420 # simply because there is no reason to put it here, and in addition,
31421 # creating and moving files from /tmp can sometimes cause problems.
31422 # Create a temporary directory, and hook for its removal unless debugging.
31423 $debug ||
31424 {
31425   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31426   trap '{ (exit 1); exit 1; }' 1 2 13 15
31427 }
31428
31429 # Create a (secure) tmp directory for tmp files.
31430
31431 {
31432   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31433   test -n "$tmp" && test -d "$tmp"
31434 }  ||
31435 {
31436   tmp=./confstat$$-$RANDOM
31437   (umask 077 && mkdir $tmp)
31438 } ||
31439 {
31440    echo "$me: cannot create a temporary directory in ." >&2
31441    { (exit 1); exit 1; }
31442 }
31443
31444 _ACEOF
31445
31446 cat >>$CONFIG_STATUS <<_ACEOF
31447
31448 #
31449 # CONFIG_FILES section.
31450 #
31451
31452 # No need to generate the scripts if there are no CONFIG_FILES.
31453 # This happens for instance when ./config.status config.h
31454 if test -n "\$CONFIG_FILES"; then
31455   # Protect against being on the right side of a sed subst in config.status.
31456   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31457    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31458 s,@SHELL@,$SHELL,;t t
31459 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31460 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31461 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31462 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31463 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31464 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31465 s,@exec_prefix@,$exec_prefix,;t t
31466 s,@prefix@,$prefix,;t t
31467 s,@program_transform_name@,$program_transform_name,;t t
31468 s,@bindir@,$bindir,;t t
31469 s,@sbindir@,$sbindir,;t t
31470 s,@libexecdir@,$libexecdir,;t t
31471 s,@datadir@,$datadir,;t t
31472 s,@sysconfdir@,$sysconfdir,;t t
31473 s,@sharedstatedir@,$sharedstatedir,;t t
31474 s,@localstatedir@,$localstatedir,;t t
31475 s,@libdir@,$libdir,;t t
31476 s,@includedir@,$includedir,;t t
31477 s,@oldincludedir@,$oldincludedir,;t t
31478 s,@infodir@,$infodir,;t t
31479 s,@mandir@,$mandir,;t t
31480 s,@build_alias@,$build_alias,;t t
31481 s,@host_alias@,$host_alias,;t t
31482 s,@target_alias@,$target_alias,;t t
31483 s,@DEFS@,$DEFS,;t t
31484 s,@ECHO_C@,$ECHO_C,;t t
31485 s,@ECHO_N@,$ECHO_N,;t t
31486 s,@ECHO_T@,$ECHO_T,;t t
31487 s,@LIBS@,$LIBS,;t t
31488 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31489 s,@subdirs@,$subdirs,;t t
31490 s,@build@,$build,;t t
31491 s,@build_cpu@,$build_cpu,;t t
31492 s,@build_vendor@,$build_vendor,;t t
31493 s,@build_os@,$build_os,;t t
31494 s,@host@,$host,;t t
31495 s,@host_cpu@,$host_cpu,;t t
31496 s,@host_vendor@,$host_vendor,;t t
31497 s,@host_os@,$host_os,;t t
31498 s,@target@,$target,;t t
31499 s,@target_cpu@,$target_cpu,;t t
31500 s,@target_vendor@,$target_vendor,;t t
31501 s,@target_os@,$target_os,;t t
31502 s,@OS@,$OS,;t t
31503 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31504 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31505 s,@ARCH@,$ARCH,;t t
31506 s,@ENDIAN@,$ENDIAN,;t t
31507 s,@CC@,$CC,;t t
31508 s,@CFLAGS@,$CFLAGS,;t t
31509 s,@LDFLAGS@,$LDFLAGS,;t t
31510 s,@CPPFLAGS@,$CPPFLAGS,;t t
31511 s,@ac_ct_CC@,$ac_ct_CC,;t t
31512 s,@EXEEXT@,$EXEEXT,;t t
31513 s,@OBJEXT@,$OBJEXT,;t t
31514 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31515 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31516 s,@JIT@,$JIT,;t t
31517 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31518 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31519 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31520 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31521 s,@CPP@,$CPP,;t t
31522 s,@CXX@,$CXX,;t t
31523 s,@CXXFLAGS@,$CXXFLAGS,;t t
31524 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31525 s,@LEX@,$LEX,;t t
31526 s,@LEXLIB@,$LEXLIB,;t t
31527 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31528 s,@FLEX@,$FLEX,;t t
31529 s,@YACC@,$YACC,;t t
31530 s,@BISON@,$BISON,;t t
31531 s,@ifGNUmake@,$ifGNUmake,;t t
31532 s,@LN_S@,$LN_S,;t t
31533 s,@CMP@,$CMP,;t t
31534 s,@CP@,$CP,;t t
31535 s,@DATE@,$DATE,;t t
31536 s,@FIND@,$FIND,;t t
31537 s,@GREP@,$GREP,;t t
31538 s,@MKDIR@,$MKDIR,;t t
31539 s,@MV@,$MV,;t t
31540 s,@RANLIB@,$RANLIB,;t t
31541 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31542 s,@RM@,$RM,;t t
31543 s,@SED@,$SED,;t t
31544 s,@TAR@,$TAR,;t t
31545 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31546 s,@GV@,$GV,;t t
31547 s,@PERL@,$PERL,;t t
31548 s,@HAVE_PERL@,$HAVE_PERL,;t t
31549 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31550 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31551 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31552 s,@BZIP2@,$BZIP2,;t t
31553 s,@DOT@,$DOT,;t t
31554 s,@DOXYGEN@,$DOXYGEN,;t t
31555 s,@ETAGS@,$ETAGS,;t t
31556 s,@GROFF@,$GROFF,;t t
31557 s,@GZIP@,$GZIP,;t t
31558 s,@POD2HTML@,$POD2HTML,;t t
31559 s,@POD2MAN@,$POD2MAN,;t t
31560 s,@RUNTEST@,$RUNTEST,;t t
31561 s,@TCLSH@,$TCLSH,;t t
31562 s,@ZIP@,$ZIP,;t t
31563 s,@EGREP@,$EGREP,;t t
31564 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31565 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31566 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31567 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31568 s,@LIBADD_DL@,$LIBADD_DL,;t t
31569 s,@ECHO@,$ECHO,;t t
31570 s,@AR@,$AR,;t t
31571 s,@ac_ct_AR@,$ac_ct_AR,;t t
31572 s,@STRIP@,$STRIP,;t t
31573 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31574 s,@CXXCPP@,$CXXCPP,;t t
31575 s,@F77@,$F77,;t t
31576 s,@FFLAGS@,$FFLAGS,;t t
31577 s,@ac_ct_F77@,$ac_ct_F77,;t t
31578 s,@LIBTOOL@,$LIBTOOL,;t t
31579 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31580 s,@LLVMGCC@,$LLVMGCC,;t t
31581 s,@LLVMGXX@,$LLVMGXX,;t t
31582 s,@ALLOCA@,$ALLOCA,;t t
31583 s,@MMAP_FILE@,$MMAP_FILE,;t t
31584 s,@LLVMCC1@,$LLVMCC1,;t t
31585 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31586 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31587 s,@SHLIBEXT@,$SHLIBEXT,;t t
31588 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31589 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31590 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31591 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31592 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31593 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31594 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31595 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31596 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31597 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31598 s,@LIBOBJS@,$LIBOBJS,;t t
31599 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31600 CEOF
31601
31602 _ACEOF
31603
31604   cat >>$CONFIG_STATUS <<\_ACEOF
31605   # Split the substitutions into bite-sized pieces for seds with
31606   # small command number limits, like on Digital OSF/1 and HP-UX.
31607   ac_max_sed_lines=48
31608   ac_sed_frag=1 # Number of current file.
31609   ac_beg=1 # First line for current file.
31610   ac_end=$ac_max_sed_lines # Line after last line for current file.
31611   ac_more_lines=:
31612   ac_sed_cmds=
31613   while $ac_more_lines; do
31614     if test $ac_beg -gt 1; then
31615       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31616     else
31617       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31618     fi
31619     if test ! -s $tmp/subs.frag; then
31620       ac_more_lines=false
31621     else
31622       # The purpose of the label and of the branching condition is to
31623       # speed up the sed processing (if there are no `@' at all, there
31624       # is no need to browse any of the substitutions).
31625       # These are the two extra sed commands mentioned above.
31626       (echo ':t
31627   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31628       if test -z "$ac_sed_cmds"; then
31629         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31630       else
31631         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31632       fi
31633       ac_sed_frag=`expr $ac_sed_frag + 1`
31634       ac_beg=$ac_end
31635       ac_end=`expr $ac_end + $ac_max_sed_lines`
31636     fi
31637   done
31638   if test -z "$ac_sed_cmds"; then
31639     ac_sed_cmds=cat
31640   fi
31641 fi # test -n "$CONFIG_FILES"
31642
31643 _ACEOF
31644 cat >>$CONFIG_STATUS <<\_ACEOF
31645 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31646   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31647   case $ac_file in
31648   - | *:- | *:-:* ) # input from stdin
31649         cat >$tmp/stdin
31650         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31651         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31652   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31653         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31654   * )   ac_file_in=$ac_file.in ;;
31655   esac
31656
31657   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31658   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31660          X"$ac_file" : 'X\(//\)[^/]' \| \
31661          X"$ac_file" : 'X\(//\)$' \| \
31662          X"$ac_file" : 'X\(/\)' \| \
31663          .     : '\(.\)' 2>/dev/null ||
31664 echo X"$ac_file" |
31665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31666           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31667           /^X\(\/\/\)$/{ s//\1/; q; }
31668           /^X\(\/\).*/{ s//\1/; q; }
31669           s/.*/./; q'`
31670   { if $as_mkdir_p; then
31671     mkdir -p "$ac_dir"
31672   else
31673     as_dir="$ac_dir"
31674     as_dirs=
31675     while test ! -d "$as_dir"; do
31676       as_dirs="$as_dir $as_dirs"
31677       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31679          X"$as_dir" : 'X\(//\)[^/]' \| \
31680          X"$as_dir" : 'X\(//\)$' \| \
31681          X"$as_dir" : 'X\(/\)' \| \
31682          .     : '\(.\)' 2>/dev/null ||
31683 echo X"$as_dir" |
31684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31685           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31686           /^X\(\/\/\)$/{ s//\1/; q; }
31687           /^X\(\/\).*/{ s//\1/; q; }
31688           s/.*/./; q'`
31689     done
31690     test ! -n "$as_dirs" || mkdir $as_dirs
31691   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31693    { (exit 1); exit 1; }; }; }
31694
31695   ac_builddir=.
31696
31697 if test "$ac_dir" != .; then
31698   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31699   # A "../" for each directory in $ac_dir_suffix.
31700   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31701 else
31702   ac_dir_suffix= ac_top_builddir=
31703 fi
31704
31705 case $srcdir in
31706   .)  # No --srcdir option.  We are building in place.
31707     ac_srcdir=.
31708     if test -z "$ac_top_builddir"; then
31709        ac_top_srcdir=.
31710     else
31711        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31712     fi ;;
31713   [\\/]* | ?:[\\/]* )  # Absolute path.
31714     ac_srcdir=$srcdir$ac_dir_suffix;
31715     ac_top_srcdir=$srcdir ;;
31716   *) # Relative path.
31717     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31718     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31719 esac
31720
31721 # Do not use `cd foo && pwd` to compute absolute paths, because
31722 # the directories may not exist.
31723 case `pwd` in
31724 .) ac_abs_builddir="$ac_dir";;
31725 *)
31726   case "$ac_dir" in
31727   .) ac_abs_builddir=`pwd`;;
31728   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31729   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31730   esac;;
31731 esac
31732 case $ac_abs_builddir in
31733 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31734 *)
31735   case ${ac_top_builddir}. in
31736   .) ac_abs_top_builddir=$ac_abs_builddir;;
31737   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31738   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31739   esac;;
31740 esac
31741 case $ac_abs_builddir in
31742 .) ac_abs_srcdir=$ac_srcdir;;
31743 *)
31744   case $ac_srcdir in
31745   .) ac_abs_srcdir=$ac_abs_builddir;;
31746   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31747   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31748   esac;;
31749 esac
31750 case $ac_abs_builddir in
31751 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31752 *)
31753   case $ac_top_srcdir in
31754   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31755   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31756   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31757   esac;;
31758 esac
31759
31760
31761   case $INSTALL in
31762   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31763   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31764   esac
31765
31766   if test x"$ac_file" != x-; then
31767     { echo "$as_me:$LINENO: creating $ac_file" >&5
31768 echo "$as_me: creating $ac_file" >&6;}
31769     rm -f "$ac_file"
31770   fi
31771   # Let's still pretend it is `configure' which instantiates (i.e., don't
31772   # use $as_me), people would be surprised to read:
31773   #    /* config.h.  Generated by config.status.  */
31774   if test x"$ac_file" = x-; then
31775     configure_input=
31776   else
31777     configure_input="$ac_file.  "
31778   fi
31779   configure_input=$configure_input"Generated from `echo $ac_file_in |
31780                                      sed 's,.*/,,'` by configure."
31781
31782   # First look for the input files in the build tree, otherwise in the
31783   # src tree.
31784   ac_file_inputs=`IFS=:
31785     for f in $ac_file_in; do
31786       case $f in
31787       -) echo $tmp/stdin ;;
31788       [\\/$]*)
31789          # Absolute (can't be DOS-style, as IFS=:)
31790          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31791 echo "$as_me: error: cannot find input file: $f" >&2;}
31792    { (exit 1); exit 1; }; }
31793          echo "$f";;
31794       *) # Relative
31795          if test -f "$f"; then
31796            # Build tree
31797            echo "$f"
31798          elif test -f "$srcdir/$f"; then
31799            # Source tree
31800            echo "$srcdir/$f"
31801          else
31802            # /dev/null tree
31803            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31804 echo "$as_me: error: cannot find input file: $f" >&2;}
31805    { (exit 1); exit 1; }; }
31806          fi;;
31807       esac
31808     done` || { (exit 1); exit 1; }
31809 _ACEOF
31810 cat >>$CONFIG_STATUS <<_ACEOF
31811   sed "$ac_vpsub
31812 $extrasub
31813 _ACEOF
31814 cat >>$CONFIG_STATUS <<\_ACEOF
31815 :t
31816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31817 s,@configure_input@,$configure_input,;t t
31818 s,@srcdir@,$ac_srcdir,;t t
31819 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31820 s,@top_srcdir@,$ac_top_srcdir,;t t
31821 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31822 s,@builddir@,$ac_builddir,;t t
31823 s,@abs_builddir@,$ac_abs_builddir,;t t
31824 s,@top_builddir@,$ac_top_builddir,;t t
31825 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31826 s,@INSTALL@,$ac_INSTALL,;t t
31827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31828   rm -f $tmp/stdin
31829   if test x"$ac_file" != x-; then
31830     mv $tmp/out $ac_file
31831   else
31832     cat $tmp/out
31833     rm -f $tmp/out
31834   fi
31835
31836 done
31837 _ACEOF
31838 cat >>$CONFIG_STATUS <<\_ACEOF
31839
31840 #
31841 # CONFIG_HEADER section.
31842 #
31843
31844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31846 #
31847 # ac_d sets the value in "#define NAME VALUE" lines.
31848 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31849 ac_dB='[         ].*$,\1#\2'
31850 ac_dC=' '
31851 ac_dD=',;t'
31852 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31853 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31854 ac_uB='$,\1#\2define\3'
31855 ac_uC=' '
31856 ac_uD=',;t'
31857
31858 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31859   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31860   case $ac_file in
31861   - | *:- | *:-:* ) # input from stdin
31862         cat >$tmp/stdin
31863         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31864         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31865   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31866         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31867   * )   ac_file_in=$ac_file.in ;;
31868   esac
31869
31870   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31871 echo "$as_me: creating $ac_file" >&6;}
31872
31873   # First look for the input files in the build tree, otherwise in the
31874   # src tree.
31875   ac_file_inputs=`IFS=:
31876     for f in $ac_file_in; do
31877       case $f in
31878       -) echo $tmp/stdin ;;
31879       [\\/$]*)
31880          # Absolute (can't be DOS-style, as IFS=:)
31881          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31882 echo "$as_me: error: cannot find input file: $f" >&2;}
31883    { (exit 1); exit 1; }; }
31884          # Do quote $f, to prevent DOS paths from being IFS'd.
31885          echo "$f";;
31886       *) # Relative
31887          if test -f "$f"; then
31888            # Build tree
31889            echo "$f"
31890          elif test -f "$srcdir/$f"; then
31891            # Source tree
31892            echo "$srcdir/$f"
31893          else
31894            # /dev/null tree
31895            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31896 echo "$as_me: error: cannot find input file: $f" >&2;}
31897    { (exit 1); exit 1; }; }
31898          fi;;
31899       esac
31900     done` || { (exit 1); exit 1; }
31901   # Remove the trailing spaces.
31902   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31903
31904 _ACEOF
31905
31906 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31907 # `conftest.undefs', that substitutes the proper values into
31908 # config.h.in to produce config.h.  The first handles `#define'
31909 # templates, and the second `#undef' templates.
31910 # And first: Protect against being on the right side of a sed subst in
31911 # config.status.  Protect against being in an unquoted here document
31912 # in config.status.
31913 rm -f conftest.defines conftest.undefs
31914 # Using a here document instead of a string reduces the quoting nightmare.
31915 # Putting comments in sed scripts is not portable.
31916 #
31917 # `end' is used to avoid that the second main sed command (meant for
31918 # 0-ary CPP macros) applies to n-ary macro definitions.
31919 # See the Autoconf documentation for `clear'.
31920 cat >confdef2sed.sed <<\_ACEOF
31921 s/[\\&,]/\\&/g
31922 s,[\\$`],\\&,g
31923 t clear
31924 : clear
31925 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31926 t end
31927 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31928 : end
31929 _ACEOF
31930 # If some macros were called several times there might be several times
31931 # the same #defines, which is useless.  Nevertheless, we may not want to
31932 # sort them, since we want the *last* AC-DEFINE to be honored.
31933 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31934 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31935 rm -f confdef2sed.sed
31936
31937 # This sed command replaces #undef with comments.  This is necessary, for
31938 # example, in the case of _POSIX_SOURCE, which is predefined and required
31939 # on some systems where configure will not decide to define it.
31940 cat >>conftest.undefs <<\_ACEOF
31941 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31942 _ACEOF
31943
31944 # Break up conftest.defines because some shells have a limit on the size
31945 # of here documents, and old seds have small limits too (100 cmds).
31946 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31947 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31948 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31949 echo '  :' >>$CONFIG_STATUS
31950 rm -f conftest.tail
31951 while grep . conftest.defines >/dev/null
31952 do
31953   # Write a limited-size here document to $tmp/defines.sed.
31954   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31955   # Speed up: don't consider the non `#define' lines.
31956   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31957   # Work around the forget-to-reset-the-flag bug.
31958   echo 't clr' >>$CONFIG_STATUS
31959   echo ': clr' >>$CONFIG_STATUS
31960   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31961   echo 'CEOF
31962   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31963   rm -f $tmp/in
31964   mv $tmp/out $tmp/in
31965 ' >>$CONFIG_STATUS
31966   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31967   rm -f conftest.defines
31968   mv conftest.tail conftest.defines
31969 done
31970 rm -f conftest.defines
31971 echo '  fi # grep' >>$CONFIG_STATUS
31972 echo >>$CONFIG_STATUS
31973
31974 # Break up conftest.undefs because some shells have a limit on the size
31975 # of here documents, and old seds have small limits too (100 cmds).
31976 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31977 rm -f conftest.tail
31978 while grep . conftest.undefs >/dev/null
31979 do
31980   # Write a limited-size here document to $tmp/undefs.sed.
31981   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31982   # Speed up: don't consider the non `#undef'
31983   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31984   # Work around the forget-to-reset-the-flag bug.
31985   echo 't clr' >>$CONFIG_STATUS
31986   echo ': clr' >>$CONFIG_STATUS
31987   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31988   echo 'CEOF
31989   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31990   rm -f $tmp/in
31991   mv $tmp/out $tmp/in
31992 ' >>$CONFIG_STATUS
31993   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31994   rm -f conftest.undefs
31995   mv conftest.tail conftest.undefs
31996 done
31997 rm -f conftest.undefs
31998
31999 cat >>$CONFIG_STATUS <<\_ACEOF
32000   # Let's still pretend it is `configure' which instantiates (i.e., don't
32001   # use $as_me), people would be surprised to read:
32002   #    /* config.h.  Generated by config.status.  */
32003   if test x"$ac_file" = x-; then
32004     echo "/* Generated by configure.  */" >$tmp/config.h
32005   else
32006     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32007   fi
32008   cat $tmp/in >>$tmp/config.h
32009   rm -f $tmp/in
32010   if test x"$ac_file" != x-; then
32011     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32012       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32013 echo "$as_me: $ac_file is unchanged" >&6;}
32014     else
32015       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32017          X"$ac_file" : 'X\(//\)[^/]' \| \
32018          X"$ac_file" : 'X\(//\)$' \| \
32019          X"$ac_file" : 'X\(/\)' \| \
32020          .     : '\(.\)' 2>/dev/null ||
32021 echo X"$ac_file" |
32022     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32023           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32024           /^X\(\/\/\)$/{ s//\1/; q; }
32025           /^X\(\/\).*/{ s//\1/; q; }
32026           s/.*/./; q'`
32027       { if $as_mkdir_p; then
32028     mkdir -p "$ac_dir"
32029   else
32030     as_dir="$ac_dir"
32031     as_dirs=
32032     while test ! -d "$as_dir"; do
32033       as_dirs="$as_dir $as_dirs"
32034       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32036          X"$as_dir" : 'X\(//\)[^/]' \| \
32037          X"$as_dir" : 'X\(//\)$' \| \
32038          X"$as_dir" : 'X\(/\)' \| \
32039          .     : '\(.\)' 2>/dev/null ||
32040 echo X"$as_dir" |
32041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32042           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32043           /^X\(\/\/\)$/{ s//\1/; q; }
32044           /^X\(\/\).*/{ s//\1/; q; }
32045           s/.*/./; q'`
32046     done
32047     test ! -n "$as_dirs" || mkdir $as_dirs
32048   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32049 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32050    { (exit 1); exit 1; }; }; }
32051
32052       rm -f $ac_file
32053       mv $tmp/config.h $ac_file
32054     fi
32055   else
32056     cat $tmp/config.h
32057     rm -f $tmp/config.h
32058   fi
32059 done
32060 _ACEOF
32061 cat >>$CONFIG_STATUS <<\_ACEOF
32062
32063 #
32064 # CONFIG_COMMANDS section.
32065 #
32066 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32067   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32068   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32069   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32070 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32071          X"$ac_dest" : 'X\(//\)[^/]' \| \
32072          X"$ac_dest" : 'X\(//\)$' \| \
32073          X"$ac_dest" : 'X\(/\)' \| \
32074          .     : '\(.\)' 2>/dev/null ||
32075 echo X"$ac_dest" |
32076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32078           /^X\(\/\/\)$/{ s//\1/; q; }
32079           /^X\(\/\).*/{ s//\1/; q; }
32080           s/.*/./; q'`
32081   { if $as_mkdir_p; then
32082     mkdir -p "$ac_dir"
32083   else
32084     as_dir="$ac_dir"
32085     as_dirs=
32086     while test ! -d "$as_dir"; do
32087       as_dirs="$as_dir $as_dirs"
32088       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32090          X"$as_dir" : 'X\(//\)[^/]' \| \
32091          X"$as_dir" : 'X\(//\)$' \| \
32092          X"$as_dir" : 'X\(/\)' \| \
32093          .     : '\(.\)' 2>/dev/null ||
32094 echo X"$as_dir" |
32095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32096           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32097           /^X\(\/\/\)$/{ s//\1/; q; }
32098           /^X\(\/\).*/{ s//\1/; q; }
32099           s/.*/./; q'`
32100     done
32101     test ! -n "$as_dirs" || mkdir $as_dirs
32102   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32103 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32104    { (exit 1); exit 1; }; }; }
32105
32106   ac_builddir=.
32107
32108 if test "$ac_dir" != .; then
32109   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32110   # A "../" for each directory in $ac_dir_suffix.
32111   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32112 else
32113   ac_dir_suffix= ac_top_builddir=
32114 fi
32115
32116 case $srcdir in
32117   .)  # No --srcdir option.  We are building in place.
32118     ac_srcdir=.
32119     if test -z "$ac_top_builddir"; then
32120        ac_top_srcdir=.
32121     else
32122        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32123     fi ;;
32124   [\\/]* | ?:[\\/]* )  # Absolute path.
32125     ac_srcdir=$srcdir$ac_dir_suffix;
32126     ac_top_srcdir=$srcdir ;;
32127   *) # Relative path.
32128     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32129     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32130 esac
32131
32132 # Do not use `cd foo && pwd` to compute absolute paths, because
32133 # the directories may not exist.
32134 case `pwd` in
32135 .) ac_abs_builddir="$ac_dir";;
32136 *)
32137   case "$ac_dir" in
32138   .) ac_abs_builddir=`pwd`;;
32139   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32140   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32141   esac;;
32142 esac
32143 case $ac_abs_builddir in
32144 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32145 *)
32146   case ${ac_top_builddir}. in
32147   .) ac_abs_top_builddir=$ac_abs_builddir;;
32148   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32149   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32150   esac;;
32151 esac
32152 case $ac_abs_builddir in
32153 .) ac_abs_srcdir=$ac_srcdir;;
32154 *)
32155   case $ac_srcdir in
32156   .) ac_abs_srcdir=$ac_abs_builddir;;
32157   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32158   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32159   esac;;
32160 esac
32161 case $ac_abs_builddir in
32162 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32163 *)
32164   case $ac_top_srcdir in
32165   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32166   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32167   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32168   esac;;
32169 esac
32170
32171
32172   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32173 echo "$as_me: executing $ac_dest commands" >&6;}
32174   case $ac_dest in
32175     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32176    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32177     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32178    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32179     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32180    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32181     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32182    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32183     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32184    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32185     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32186    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32187     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32188    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32189     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32190    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32191     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32192    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32193     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32194    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32195   esac
32196 done
32197 _ACEOF
32198
32199 cat >>$CONFIG_STATUS <<\_ACEOF
32200
32201 { (exit 0); exit 0; }
32202 _ACEOF
32203 chmod +x $CONFIG_STATUS
32204 ac_clean_files=$ac_clean_files_save
32205
32206
32207 # configure is writing to config.log, and then calls config.status.
32208 # config.status does its own redirection, appending to config.log.
32209 # Unfortunately, on DOS this fails, as config.log is still kept open
32210 # by configure, so config.status won't be able to write to it; its
32211 # output is simply discarded.  So we exec the FD to /dev/null,
32212 # effectively closing config.log, so it can be properly (re)opened and
32213 # appended to by config.status.  When coming back to configure, we
32214 # need to make the FD available again.
32215 if test "$no_create" != yes; then
32216   ac_cs_success=:
32217   ac_config_status_args=
32218   test "$silent" = yes &&
32219     ac_config_status_args="$ac_config_status_args --quiet"
32220   exec 5>/dev/null
32221   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32222   exec 5>>config.log
32223   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32224   # would make configure fail if this is the last instruction.
32225   $ac_cs_success || { (exit 1); exit 1; }
32226 fi
32227
32228 #
32229 # CONFIG_SUBDIRS section.
32230 #
32231 if test "$no_recursion" != yes; then
32232
32233   # Remove --cache-file and --srcdir arguments so they do not pile up.
32234   ac_sub_configure_args=
32235   ac_prev=
32236   for ac_arg in $ac_configure_args; do
32237     if test -n "$ac_prev"; then
32238       ac_prev=
32239       continue
32240     fi
32241     case $ac_arg in
32242     -cache-file | --cache-file | --cache-fil | --cache-fi \
32243     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32244       ac_prev=cache_file ;;
32245     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32246     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32247     | --c=*)
32248       ;;
32249     --config-cache | -C)
32250       ;;
32251     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32252       ac_prev=srcdir ;;
32253     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32254       ;;
32255     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32256       ac_prev=prefix ;;
32257     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32258       ;;
32259     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32260     esac
32261   done
32262
32263   # Always prepend --prefix to ensure using the same prefix
32264   # in subdir configurations.
32265   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32266
32267   ac_popdir=`pwd`
32268   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32269
32270     # Do not complain, so a configure script can configure whichever
32271     # parts of a large source tree are present.
32272     test -d $srcdir/$ac_dir || continue
32273
32274     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32275 echo "$as_me: configuring in $ac_dir" >&6;}
32276     { if $as_mkdir_p; then
32277     mkdir -p "$ac_dir"
32278   else
32279     as_dir="$ac_dir"
32280     as_dirs=
32281     while test ! -d "$as_dir"; do
32282       as_dirs="$as_dir $as_dirs"
32283       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32285          X"$as_dir" : 'X\(//\)[^/]' \| \
32286          X"$as_dir" : 'X\(//\)$' \| \
32287          X"$as_dir" : 'X\(/\)' \| \
32288          .     : '\(.\)' 2>/dev/null ||
32289 echo X"$as_dir" |
32290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32291           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32292           /^X\(\/\/\)$/{ s//\1/; q; }
32293           /^X\(\/\).*/{ s//\1/; q; }
32294           s/.*/./; q'`
32295     done
32296     test ! -n "$as_dirs" || mkdir $as_dirs
32297   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32299    { (exit 1); exit 1; }; }; }
32300
32301     ac_builddir=.
32302
32303 if test "$ac_dir" != .; then
32304   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32305   # A "../" for each directory in $ac_dir_suffix.
32306   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32307 else
32308   ac_dir_suffix= ac_top_builddir=
32309 fi
32310
32311 case $srcdir in
32312   .)  # No --srcdir option.  We are building in place.
32313     ac_srcdir=.
32314     if test -z "$ac_top_builddir"; then
32315        ac_top_srcdir=.
32316     else
32317        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32318     fi ;;
32319   [\\/]* | ?:[\\/]* )  # Absolute path.
32320     ac_srcdir=$srcdir$ac_dir_suffix;
32321     ac_top_srcdir=$srcdir ;;
32322   *) # Relative path.
32323     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32324     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32325 esac
32326
32327 # Do not use `cd foo && pwd` to compute absolute paths, because
32328 # the directories may not exist.
32329 case `pwd` in
32330 .) ac_abs_builddir="$ac_dir";;
32331 *)
32332   case "$ac_dir" in
32333   .) ac_abs_builddir=`pwd`;;
32334   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32335   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32336   esac;;
32337 esac
32338 case $ac_abs_builddir in
32339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32340 *)
32341   case ${ac_top_builddir}. in
32342   .) ac_abs_top_builddir=$ac_abs_builddir;;
32343   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32344   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32345   esac;;
32346 esac
32347 case $ac_abs_builddir in
32348 .) ac_abs_srcdir=$ac_srcdir;;
32349 *)
32350   case $ac_srcdir in
32351   .) ac_abs_srcdir=$ac_abs_builddir;;
32352   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32353   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32354   esac;;
32355 esac
32356 case $ac_abs_builddir in
32357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32358 *)
32359   case $ac_top_srcdir in
32360   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32361   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32362   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32363   esac;;
32364 esac
32365
32366
32367     cd $ac_dir
32368
32369     # Check for guested configure; otherwise get Cygnus style configure.
32370     if test -f $ac_srcdir/configure.gnu; then
32371       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32372     elif test -f $ac_srcdir/configure; then
32373       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32374     elif test -f $ac_srcdir/configure.in; then
32375       ac_sub_configure=$ac_configure
32376     else
32377       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32379       ac_sub_configure=
32380     fi
32381
32382     # The recursion is here.
32383     if test -n "$ac_sub_configure"; then
32384       # Make the cache file name correct relative to the subdirectory.
32385       case $cache_file in
32386       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32387       *) # Relative path.
32388         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32389       esac
32390
32391       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32392 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32393       # The eval makes quoting arguments work.
32394       eval $ac_sub_configure $ac_sub_configure_args \
32395            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32396         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32397 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32398    { (exit 1); exit 1; }; }
32399     fi
32400
32401     cd $ac_popdir
32402   done
32403 fi
32404
32405
32406 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32407  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32408 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32409  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32410 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32411  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32412 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32413  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32414 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32415  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32416 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32417 fi