These changes are necessary to support the new llvm-config tool. llvm-config
[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 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 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)     JIT=TARGET_HAS_JIT=1
3015  ;;
3016     Sparc)   JIT=TARGET_HAS_JIT=1
3017  ;;
3018     PowerPC) JIT=TARGET_HAS_JIT=1
3019  ;;
3020     x86_64)  JIT=
3021  ;;
3022     Alpha)   JIT=TARGET_HAS_JIT=1
3023  ;;
3024     IA64)    JIT=
3025  ;;
3026     *)       JIT=
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 # Find a good install program.  We prefer a C program (faster),
5206 # so one script is as good as another.  But avoid the broken or
5207 # incompatible versions:
5208 # SysV /etc/install, /usr/sbin/install
5209 # SunOS /usr/etc/install
5210 # IRIX /sbin/install
5211 # AIX /bin/install
5212 # AmigaOS /C/install, which installs bootblocks on floppy discs
5213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5216 # OS/2's system install, which has a completely different semantic
5217 # ./install, which can be erroneously created by make from ./install.sh.
5218 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5219 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5220 if test -z "$INSTALL"; then
5221 if test "${ac_cv_path_install+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   # Account for people who put trailing slashes in PATH elements.
5230 case $as_dir/ in
5231   ./ | .// | /cC/* | \
5232   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5233   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5234   /usr/ucb/* ) ;;
5235   *)
5236     # OSF1 and SCO ODT 3.0 have their own names for install.
5237     # Don't use installbsd from OSF since it installs stuff as root
5238     # by default.
5239     for ac_prog in ginstall scoinst install; do
5240       for ac_exec_ext in '' $ac_executable_extensions; do
5241         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5242           if test $ac_prog = install &&
5243             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5244             # AIX install.  It has an incompatible calling convention.
5245             :
5246           elif test $ac_prog = install &&
5247             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5248             # program-specific install script used by HP pwplus--don't use.
5249             :
5250           else
5251             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5252             break 3
5253           fi
5254         fi
5255       done
5256     done
5257     ;;
5258 esac
5259 done
5260
5261
5262 fi
5263   if test "${ac_cv_path_install+set}" = set; then
5264     INSTALL=$ac_cv_path_install
5265   else
5266     # As a last resort, use the slow shell script.  We don't cache a
5267     # path for INSTALL within a source directory, because that will
5268     # break other packages using the cache if that directory is
5269     # removed, or if the path is relative.
5270     INSTALL=$ac_install_sh
5271   fi
5272 fi
5273 echo "$as_me:$LINENO: result: $INSTALL" >&5
5274 echo "${ECHO_T}$INSTALL" >&6
5275
5276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5277 # It thinks the first close brace ends the variable substitution.
5278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5279
5280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5281
5282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5283
5284
5285 # Extract the first word of "bzip2", so it can be a program name with args.
5286 set dummy bzip2; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_path_BZIP2+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   case $BZIP2 in
5293   [\\/]* | ?:[\\/]*)
5294   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5295   ;;
5296   *)
5297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302   for ac_exec_ext in '' $ac_executable_extensions; do
5303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309 done
5310
5311   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5312   ;;
5313 esac
5314 fi
5315 BZIP2=$ac_cv_path_BZIP2
5316
5317 if test -n "$BZIP2"; then
5318   echo "$as_me:$LINENO: result: $BZIP2" >&5
5319 echo "${ECHO_T}$BZIP2" >&6
5320 else
5321   echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5323 fi
5324
5325 # Extract the first word of "dot", so it can be a program name with args.
5326 set dummy dot; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_path_DOT+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   case $DOT in
5333   [\\/]* | ?:[\\/]*)
5334   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5335   ;;
5336   *)
5337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342   for ac_exec_ext in '' $ac_executable_extensions; do
5343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349 done
5350
5351   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5352   ;;
5353 esac
5354 fi
5355 DOT=$ac_cv_path_DOT
5356
5357 if test -n "$DOT"; then
5358   echo "$as_me:$LINENO: result: $DOT" >&5
5359 echo "${ECHO_T}$DOT" >&6
5360 else
5361   echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6
5363 fi
5364
5365 # Extract the first word of "doxygen", so it can be a program name with args.
5366 set dummy doxygen; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   case $DOXYGEN in
5373   [\\/]* | ?:[\\/]*)
5374   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5375   ;;
5376   *)
5377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380   IFS=$as_save_IFS
5381   test -z "$as_dir" && as_dir=.
5382   for ac_exec_ext in '' $ac_executable_extensions; do
5383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386     break 2
5387   fi
5388 done
5389 done
5390
5391   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5392   ;;
5393 esac
5394 fi
5395 DOXYGEN=$ac_cv_path_DOXYGEN
5396
5397 if test -n "$DOXYGEN"; then
5398   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5399 echo "${ECHO_T}$DOXYGEN" >&6
5400 else
5401   echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5403 fi
5404
5405 # Extract the first word of "etags", so it can be a program name with args.
5406 set dummy etags; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_path_ETAGS+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   case $ETAGS in
5413   [\\/]* | ?:[\\/]*)
5414   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5415   ;;
5416   *)
5417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422   for ac_exec_ext in '' $ac_executable_extensions; do
5423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426     break 2
5427   fi
5428 done
5429 done
5430
5431   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5432   ;;
5433 esac
5434 fi
5435 ETAGS=$ac_cv_path_ETAGS
5436
5437 if test -n "$ETAGS"; then
5438   echo "$as_me:$LINENO: result: $ETAGS" >&5
5439 echo "${ECHO_T}$ETAGS" >&6
5440 else
5441   echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5443 fi
5444
5445 # Extract the first word of "groff", so it can be a program name with args.
5446 set dummy groff; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_GROFF+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   case $GROFF in
5453   [\\/]* | ?:[\\/]*)
5454   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5455   ;;
5456   *)
5457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462   for ac_exec_ext in '' $ac_executable_extensions; do
5463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469 done
5470
5471   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5472   ;;
5473 esac
5474 fi
5475 GROFF=$ac_cv_path_GROFF
5476
5477 if test -n "$GROFF"; then
5478   echo "$as_me:$LINENO: result: $GROFF" >&5
5479 echo "${ECHO_T}$GROFF" >&6
5480 else
5481   echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5483 fi
5484
5485 # Extract the first word of "gzip", so it can be a program name with args.
5486 set dummy gzip; ac_word=$2
5487 echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489 if test "${ac_cv_path_GZIP+set}" = set; then
5490   echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492   case $GZIP in
5493   [\\/]* | ?:[\\/]*)
5494   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5495   ;;
5496   *)
5497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500   IFS=$as_save_IFS
5501   test -z "$as_dir" && as_dir=.
5502   for ac_exec_ext in '' $ac_executable_extensions; do
5503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506     break 2
5507   fi
5508 done
5509 done
5510
5511   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5512   ;;
5513 esac
5514 fi
5515 GZIP=$ac_cv_path_GZIP
5516
5517 if test -n "$GZIP"; then
5518   echo "$as_me:$LINENO: result: $GZIP" >&5
5519 echo "${ECHO_T}$GZIP" >&6
5520 else
5521   echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6
5523 fi
5524
5525 # Extract the first word of "pod2html", so it can be a program name with args.
5526 set dummy pod2html; ac_word=$2
5527 echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529 if test "${ac_cv_path_POD2HTML+set}" = set; then
5530   echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532   case $POD2HTML in
5533   [\\/]* | ?:[\\/]*)
5534   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5535   ;;
5536   *)
5537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542   for ac_exec_ext in '' $ac_executable_extensions; do
5543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549 done
5550
5551   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5552   ;;
5553 esac
5554 fi
5555 POD2HTML=$ac_cv_path_POD2HTML
5556
5557 if test -n "$POD2HTML"; then
5558   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5559 echo "${ECHO_T}$POD2HTML" >&6
5560 else
5561   echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5563 fi
5564
5565 # Extract the first word of "pod2man", so it can be a program name with args.
5566 set dummy pod2man; ac_word=$2
5567 echo "$as_me:$LINENO: checking for $ac_word" >&5
5568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5569 if test "${ac_cv_path_POD2MAN+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   case $POD2MAN in
5573   [\\/]* | ?:[\\/]*)
5574   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5575   ;;
5576   *)
5577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582   for ac_exec_ext in '' $ac_executable_extensions; do
5583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589 done
5590
5591   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5592   ;;
5593 esac
5594 fi
5595 POD2MAN=$ac_cv_path_POD2MAN
5596
5597 if test -n "$POD2MAN"; then
5598   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5599 echo "${ECHO_T}$POD2MAN" >&6
5600 else
5601   echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5603 fi
5604
5605 # Extract the first word of "runtest", so it can be a program name with args.
5606 set dummy runtest; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_path_RUNTEST+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   case $RUNTEST in
5613   [\\/]* | ?:[\\/]*)
5614   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5615   ;;
5616   *)
5617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_exec_ext in '' $ac_executable_extensions; do
5623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629 done
5630
5631   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5632   ;;
5633 esac
5634 fi
5635 RUNTEST=$ac_cv_path_RUNTEST
5636
5637 if test -n "$RUNTEST"; then
5638   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5639 echo "${ECHO_T}$RUNTEST" >&6
5640 else
5641   echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5643 fi
5644
5645
5646 no_itcl=true
5647 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5648 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5649
5650 # Check whether --with-tclinclude or --without-tclinclude was given.
5651 if test "${with_tclinclude+set}" = set; then
5652   withval="$with_tclinclude"
5653   with_tclinclude=${withval}
5654 else
5655   with_tclinclude=''
5656 fi;
5657 if test "${ac_cv_path_tclsh+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660
5661 if test x"${with_tclinclude}" != x ; then
5662   if test -f ${with_tclinclude}/tclsh ; then
5663     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5664   elif test -f ${with_tclinclude}/src/tclsh ; then
5665     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5666   else
5667     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5668 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5669    { (exit 1); exit 1; }; }
5670   fi
5671 fi
5672
5673 if test x"${ac_cv_path_tclsh}" = x ; then
5674   echo "$as_me:$LINENO: result: none" >&5
5675 echo "${ECHO_T}none" >&6
5676   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
5677 do
5678   # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 echo "$as_me:$LINENO: checking for $ac_word" >&5
5681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5682 if test "${ac_cv_path_TCLSH+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   case $TCLSH in
5686   [\\/]* | ?:[\\/]*)
5687   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5688   ;;
5689   *)
5690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695   for ac_exec_ext in '' $ac_executable_extensions; do
5696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702 done
5703
5704   ;;
5705 esac
5706 fi
5707 TCLSH=$ac_cv_path_TCLSH
5708
5709 if test -n "$TCLSH"; then
5710   echo "$as_me:$LINENO: result: $TCLSH" >&5
5711 echo "${ECHO_T}$TCLSH" >&6
5712 else
5713   echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715 fi
5716
5717   test -n "$TCLSH" && break
5718 done
5719
5720   if test x"${TCLSH}" = x ; then
5721     ac_cv_path_tclsh='';
5722   else
5723     ac_cv_path_tclsh="${TCLSH}";
5724   fi
5725 else
5726   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5727 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5728   TCLSH="${ac_cv_path_tclsh}"
5729
5730 fi
5731
5732 fi
5733
5734 # Extract the first word of "zip", so it can be a program name with args.
5735 set dummy zip; ac_word=$2
5736 echo "$as_me:$LINENO: checking for $ac_word" >&5
5737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738 if test "${ac_cv_path_ZIP+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   case $ZIP in
5742   [\\/]* | ?:[\\/]*)
5743   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5744   ;;
5745   *)
5746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751   for ac_exec_ext in '' $ac_executable_extensions; do
5752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758 done
5759
5760   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5761   ;;
5762 esac
5763 fi
5764 ZIP=$ac_cv_path_ZIP
5765
5766 if test -n "$ZIP"; then
5767   echo "$as_me:$LINENO: result: $ZIP" >&5
5768 echo "${ECHO_T}$ZIP" >&6
5769 else
5770   echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5772 fi
5773
5774
5775 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5776 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5777 if test "${llvm_cv_link_use_r+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780    ac_ext=c
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786   oldcflags="$CFLAGS"
5787   CFLAGS="$CFLAGS -Wl,-R."
5788   cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794
5795 int
5796 main ()
5797 {
5798 int main() { return 0; }
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805   (eval $ac_link) 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_c_werror_flag"
5813                          || test ! -s conftest.err'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; } &&
5819          { ac_try='test -s conftest$ac_exeext'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; }; then
5825   llvm_cv_link_use_r=yes
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 llvm_cv_link_use_r=no
5831 fi
5832 rm -f conftest.err conftest.$ac_objext \
5833       conftest$ac_exeext conftest.$ac_ext
5834   CFLAGS="$oldcflags"
5835   ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841
5842 fi
5843 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5844 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5845 if test "$llvm_cv_link_use_r" = yes ; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_LINK_R 1
5849 _ACEOF
5850
5851   fi
5852
5853
5854
5855
5856 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5857 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5858 if test "${ac_cv_c_const+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h.  */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h.  */
5867
5868 int
5869 main ()
5870 {
5871 /* FIXME: Include the comments suggested by Paul. */
5872 #ifndef __cplusplus
5873   /* Ultrix mips cc rejects this.  */
5874   typedef int charset[2];
5875   const charset x;
5876   /* SunOS 4.1.1 cc rejects this.  */
5877   char const *const *ccp;
5878   char **p;
5879   /* NEC SVR4.0.2 mips cc rejects this.  */
5880   struct point {int x, y;};
5881   static struct point const zero = {0,0};
5882   /* AIX XL C 1.02.0.0 rejects this.
5883      It does not let you subtract one const X* pointer from another in
5884      an arm of an if-expression whose if-part is not a constant
5885      expression */
5886   const char *g = "string";
5887   ccp = &g + (g ? g-g : 0);
5888   /* HPUX 7.0 cc rejects these. */
5889   ++ccp;
5890   p = (char**) ccp;
5891   ccp = (char const *const *) p;
5892   { /* SCO 3.2v4 cc rejects this.  */
5893     char *t;
5894     char const *s = 0 ? (char *) 0 : (char const *) 0;
5895
5896     *t++ = 0;
5897   }
5898   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5899     int x[] = {25, 17};
5900     const int *foo = &x[0];
5901     ++foo;
5902   }
5903   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5904     typedef const int *iptr;
5905     iptr p = 0;
5906     ++p;
5907   }
5908   { /* AIX XL C 1.02.0.0 rejects this saying
5909        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5910     struct s { int j; const int *ap[3]; };
5911     struct s *b; b->j = 5;
5912   }
5913   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5914     const int foo = 10;
5915   }
5916 #endif
5917
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924   (eval $ac_compile) 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } &&
5931          { ac_try='test -z "$ac_c_werror_flag"
5932                          || test ! -s conftest.err'
5933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934   (eval $ac_try) 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); }; } &&
5938          { ac_try='test -s conftest.$ac_objext'
5939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940   (eval $ac_try) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; }; then
5944   ac_cv_c_const=yes
5945 else
5946   echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 ac_cv_c_const=no
5950 fi
5951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5954 echo "${ECHO_T}$ac_cv_c_const" >&6
5955 if test $ac_cv_c_const = no; then
5956
5957 cat >>confdefs.h <<\_ACEOF
5958 #define const
5959 _ACEOF
5960
5961 fi
5962
5963
5964 echo "$as_me:$LINENO: checking for egrep" >&5
5965 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5966 if test "${ac_cv_prog_egrep+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5970     then ac_cv_prog_egrep='grep -E'
5971     else ac_cv_prog_egrep='egrep'
5972     fi
5973 fi
5974 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5975 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5976  EGREP=$ac_cv_prog_egrep
5977
5978
5979 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5981 if test "${ac_cv_header_stdc+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h.  */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h.  */
5990 #include <stdlib.h>
5991 #include <stdarg.h>
5992 #include <string.h>
5993 #include <float.h>
5994
5995 int
5996 main ()
5997 {
5998
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005   (eval $ac_compile) 2>conftest.er1
6006   ac_status=$?
6007   grep -v '^ *+' conftest.er1 >conftest.err
6008   rm -f conftest.er1
6009   cat conftest.err >&5
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); } &&
6012          { ac_try='test -z "$ac_c_werror_flag"
6013                          || test ! -s conftest.err'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; } &&
6019          { ac_try='test -s conftest.$ac_objext'
6020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025   ac_cv_header_stdc=yes
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ac_cv_header_stdc=no
6031 fi
6032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6033
6034 if test $ac_cv_header_stdc = yes; then
6035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036   cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <string.h>
6043
6044 _ACEOF
6045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046   $EGREP "memchr" >/dev/null 2>&1; then
6047   :
6048 else
6049   ac_cv_header_stdc=no
6050 fi
6051 rm -f conftest*
6052
6053 fi
6054
6055 if test $ac_cv_header_stdc = yes; then
6056   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057   cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063 #include <stdlib.h>
6064
6065 _ACEOF
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067   $EGREP "free" >/dev/null 2>&1; then
6068   :
6069 else
6070   ac_cv_header_stdc=no
6071 fi
6072 rm -f conftest*
6073
6074 fi
6075
6076 if test $ac_cv_header_stdc = yes; then
6077   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078   if test "$cross_compiling" = yes; then
6079   :
6080 else
6081   cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087 #include <ctype.h>
6088 #if ((' ' & 0x0FF) == 0x020)
6089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6091 #else
6092 # define ISLOWER(c) \
6093                    (('a' <= (c) && (c) <= 'i') \
6094                      || ('j' <= (c) && (c) <= 'r') \
6095                      || ('s' <= (c) && (c) <= 'z'))
6096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6097 #endif
6098
6099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100 int
6101 main ()
6102 {
6103   int i;
6104   for (i = 0; i < 256; i++)
6105     if (XOR (islower (i), ISLOWER (i))
6106         || toupper (i) != TOUPPER (i))
6107       exit(2);
6108   exit (0);
6109 }
6110 _ACEOF
6111 rm -f conftest$ac_exeext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113   (eval $ac_link) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118   (eval $ac_try) 2>&5
6119   ac_status=$?
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); }; }; then
6122   :
6123 else
6124   echo "$as_me: program exited with status $ac_status" >&5
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ( exit $ac_status )
6129 ac_cv_header_stdc=no
6130 fi
6131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6132 fi
6133 fi
6134 fi
6135 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6136 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6137 if test $ac_cv_header_stdc = yes; then
6138
6139 cat >>confdefs.h <<\_ACEOF
6140 #define STDC_HEADERS 1
6141 _ACEOF
6142
6143 fi
6144
6145
6146
6147
6148
6149
6150 ac_header_dirent=no
6151 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6152   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6153 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6154 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164 #include <sys/types.h>
6165 #include <$ac_hdr>
6166
6167 int
6168 main ()
6169 {
6170 if ((DIR *) 0)
6171 return 0;
6172   ;
6173   return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178   (eval $ac_compile) 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -z "$ac_c_werror_flag"
6186                          || test ! -s conftest.err'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   eval "$as_ac_Header=yes"
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 eval "$as_ac_Header=no"
6204 fi
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 fi
6207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210   cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6212 _ACEOF
6213
6214 ac_header_dirent=$ac_hdr; break
6215 fi
6216
6217 done
6218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6219 if test $ac_header_dirent = dirent.h; then
6220   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6222 if test "${ac_cv_search_opendir+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   ac_func_search_save_LIBS=$LIBS
6226 ac_cv_search_opendir=no
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233
6234 /* Override any gcc2 internal prototype to avoid an error.  */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char opendir ();
6241 int
6242 main ()
6243 {
6244 opendir ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251   (eval $ac_link) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag"
6259                          || test ! -s conftest.err'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } &&
6265          { ac_try='test -s conftest$ac_exeext'
6266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267   (eval $ac_try) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; }; then
6271   ac_cv_search_opendir="none required"
6272 else
6273   echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 fi
6277 rm -f conftest.err conftest.$ac_objext \
6278       conftest$ac_exeext conftest.$ac_ext
6279 if test "$ac_cv_search_opendir" = no; then
6280   for ac_lib in dir; do
6281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6282     cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288
6289 /* Override any gcc2 internal prototype to avoid an error.  */
6290 #ifdef __cplusplus
6291 extern "C"
6292 #endif
6293 /* We use char because int might match the return type of a gcc2
6294    builtin and then its argument prototype would still apply.  */
6295 char opendir ();
6296 int
6297 main ()
6298 {
6299 opendir ();
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306   (eval $ac_link) 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } &&
6313          { ac_try='test -z "$ac_c_werror_flag"
6314                          || test ! -s conftest.err'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; } &&
6320          { ac_try='test -s conftest$ac_exeext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_cv_search_opendir="-l$ac_lib"
6327 break
6328 else
6329   echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 fi
6333 rm -f conftest.err conftest.$ac_objext \
6334       conftest$ac_exeext conftest.$ac_ext
6335   done
6336 fi
6337 LIBS=$ac_func_search_save_LIBS
6338 fi
6339 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6340 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6341 if test "$ac_cv_search_opendir" != no; then
6342   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6343
6344 fi
6345
6346 else
6347   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6349 if test "${ac_cv_search_opendir+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   ac_func_search_save_LIBS=$LIBS
6353 ac_cv_search_opendir=no
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h.  */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h.  */
6360
6361 /* Override any gcc2 internal prototype to avoid an error.  */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366    builtin and then its argument prototype would still apply.  */
6367 char opendir ();
6368 int
6369 main ()
6370 {
6371 opendir ();
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378   (eval $ac_link) 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -z "$ac_c_werror_flag"
6386                          || test ! -s conftest.err'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; } &&
6392          { ac_try='test -s conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   ac_cv_search_opendir="none required"
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 fi
6404 rm -f conftest.err conftest.$ac_objext \
6405       conftest$ac_exeext conftest.$ac_ext
6406 if test "$ac_cv_search_opendir" = no; then
6407   for ac_lib in x; do
6408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6409     cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421    builtin and then its argument prototype would still apply.  */
6422 char opendir ();
6423 int
6424 main ()
6425 {
6426 opendir ();
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433   (eval $ac_link) 2>conftest.er1
6434   ac_status=$?
6435   grep -v '^ *+' conftest.er1 >conftest.err
6436   rm -f conftest.er1
6437   cat conftest.err >&5
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -z "$ac_c_werror_flag"
6441                          || test ! -s conftest.err'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; } &&
6447          { ac_try='test -s conftest$ac_exeext'
6448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449   (eval $ac_try) 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; }; then
6453   ac_cv_search_opendir="-l$ac_lib"
6454 break
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 fi
6460 rm -f conftest.err conftest.$ac_objext \
6461       conftest$ac_exeext conftest.$ac_ext
6462   done
6463 fi
6464 LIBS=$ac_func_search_save_LIBS
6465 fi
6466 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6467 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6468 if test "$ac_cv_search_opendir" != no; then
6469   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6470
6471 fi
6472
6473 fi
6474
6475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6486                   inttypes.h stdint.h unistd.h
6487 do
6488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489 echo "$as_me:$LINENO: checking for $ac_header" >&5
6490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 $ac_includes_default
6501
6502 #include <$ac_header>
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506   (eval $ac_compile) 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } &&
6513          { ac_try='test -z "$ac_c_werror_flag"
6514                          || test ! -s conftest.err'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; } &&
6520          { ac_try='test -s conftest.$ac_objext'
6521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522   (eval $ac_try) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }; }; then
6526   eval "$as_ac_Header=yes"
6527 else
6528   echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 eval "$as_ac_Header=no"
6532 fi
6533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534 fi
6535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6538   cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6540 _ACEOF
6541
6542 fi
6543
6544 done
6545
6546
6547
6548 for ac_header in dlfcn.h
6549 do
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
6557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6559 else
6560   # Is the header compilable?
6561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569 $ac_includes_default
6570 #include <$ac_header>
6571 _ACEOF
6572 rm -f conftest.$ac_objext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574   (eval $ac_compile) 2>conftest.er1
6575   ac_status=$?
6576   grep -v '^ *+' conftest.er1 >conftest.err
6577   rm -f conftest.er1
6578   cat conftest.err >&5
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } &&
6581          { ac_try='test -z "$ac_c_werror_flag"
6582                          || test ! -s conftest.err'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; } &&
6588          { ac_try='test -s conftest.$ac_objext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_header_compiler=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_header_compiler=no
6600 fi
6601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603 echo "${ECHO_T}$ac_header_compiler" >&6
6604
6605 # Is the header present?
6606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614 #include <$ac_header>
6615 _ACEOF
6616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6618   ac_status=$?
6619   grep -v '^ *+' conftest.er1 >conftest.err
6620   rm -f conftest.er1
6621   cat conftest.err >&5
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); } >/dev/null; then
6624   if test -s conftest.err; then
6625     ac_cpp_err=$ac_c_preproc_warn_flag
6626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6627   else
6628     ac_cpp_err=
6629   fi
6630 else
6631   ac_cpp_err=yes
6632 fi
6633 if test -z "$ac_cpp_err"; then
6634   ac_header_preproc=yes
6635 else
6636   echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639   ac_header_preproc=no
6640 fi
6641 rm -f conftest.err conftest.$ac_ext
6642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6643 echo "${ECHO_T}$ac_header_preproc" >&6
6644
6645 # So?  What about this header?
6646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6647   yes:no: )
6648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6652     ac_header_preproc=yes
6653     ;;
6654   no:yes:* )
6655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6667     (
6668       cat <<\_ASBOX
6669 ## ----------------------------------- ##
6670 ## Report this to llvmbugs@cs.uiuc.edu ##
6671 ## ----------------------------------- ##
6672 _ASBOX
6673     ) |
6674       sed "s/^/$as_me: WARNING:     /" >&2
6675     ;;
6676 esac
6677 echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   eval "$as_ac_Header=\$ac_header_preproc"
6683 fi
6684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6686
6687 fi
6688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6689   cat >>confdefs.h <<_ACEOF
6690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6691 _ACEOF
6692
6693 fi
6694
6695 done
6696
6697 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6698 if test "${enable_ltdl_install+set}" = set; then
6699   enableval="$enable_ltdl_install"
6700
6701 fi;
6702
6703
6704
6705 if test x"${enable_ltdl_install-no}" != xno; then
6706   INSTALL_LTDL_TRUE=
6707   INSTALL_LTDL_FALSE='#'
6708 else
6709   INSTALL_LTDL_TRUE='#'
6710   INSTALL_LTDL_FALSE=
6711 fi
6712
6713
6714
6715 if test x"${enable_ltdl_convenience-no}" != xno; then
6716   CONVENIENCE_LTDL_TRUE=
6717   CONVENIENCE_LTDL_FALSE='#'
6718 else
6719   CONVENIENCE_LTDL_TRUE='#'
6720   CONVENIENCE_LTDL_FALSE=
6721 fi
6722
6723
6724 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6726 library_names_spec=
6727 libname_spec='lib$name'
6728 soname_spec=
6729 shrext_cmds=".so"
6730 postinstall_cmds=
6731 postuninstall_cmds=
6732 finish_cmds=
6733 finish_eval=
6734 shlibpath_var=
6735 shlibpath_overrides_runpath=unknown
6736 version_type=none
6737 dynamic_linker="$host_os ld.so"
6738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6739 if test "$GCC" = yes; then
6740   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6741   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6742     # if the path contains ";" then we assume it to be the separator
6743     # otherwise default to the standard path separator (i.e. ":") - it is
6744     # assumed that no part of a normal pathname contains ";" but that should
6745     # okay in the real world where ";" in dirpaths is itself problematic.
6746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6747   else
6748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6749   fi
6750 else
6751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6752 fi
6753 need_lib_prefix=unknown
6754 hardcode_into_libs=no
6755
6756 # when you set need_version to no, make sure it does not cause -set_version
6757 # flags to be left without arguments
6758 need_version=unknown
6759
6760 case $host_os in
6761 aix3*)
6762   version_type=linux
6763   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6764   shlibpath_var=LIBPATH
6765
6766   # AIX 3 has no versioning support, so we append a major version to the name.
6767   soname_spec='${libname}${release}${shared_ext}$major'
6768   ;;
6769
6770 aix4* | aix5*)
6771   version_type=linux
6772   need_lib_prefix=no
6773   need_version=no
6774   hardcode_into_libs=yes
6775   if test "$host_cpu" = ia64; then
6776     # AIX 5 supports IA64
6777     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6778     shlibpath_var=LD_LIBRARY_PATH
6779   else
6780     # With GCC up to 2.95.x, collect2 would create an import file
6781     # for dependence libraries.  The import file would start with
6782     # the line `#! .'.  This would cause the generated library to
6783     # depend on `.', always an invalid library.  This was fixed in
6784     # development snapshots of GCC prior to 3.0.
6785     case $host_os in
6786       aix4 | aix4.[01] | aix4.[01].*)
6787       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6788            echo ' yes '
6789            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6790         :
6791       else
6792         can_build_shared=no
6793       fi
6794       ;;
6795     esac
6796     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6797     # soname into executable. Probably we can add versioning support to
6798     # collect2, so additional links can be useful in future.
6799     if test "$aix_use_runtimelinking" = yes; then
6800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6801       # instead of lib<name>.a to let people know that these are not
6802       # typical AIX shared libraries.
6803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6804     else
6805       # We preserve .a as extension for shared libraries through AIX4.2
6806       # and later when we are not doing run time linking.
6807       library_names_spec='${libname}${release}.a $libname.a'
6808       soname_spec='${libname}${release}${shared_ext}$major'
6809     fi
6810     shlibpath_var=LIBPATH
6811   fi
6812   ;;
6813
6814 amigaos*)
6815   library_names_spec='$libname.ixlibrary $libname.a'
6816   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6817   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'
6818   ;;
6819
6820 beos*)
6821   library_names_spec='${libname}${shared_ext}'
6822   dynamic_linker="$host_os ld.so"
6823   shlibpath_var=LIBRARY_PATH
6824   ;;
6825
6826 bsdi[45]*)
6827   version_type=linux
6828   need_version=no
6829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6830   soname_spec='${libname}${release}${shared_ext}$major'
6831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6832   shlibpath_var=LD_LIBRARY_PATH
6833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6835   # the default ld.so.conf also contains /usr/contrib/lib and
6836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6837   # libtool to hard-code these into programs
6838   ;;
6839
6840 cygwin* | mingw* | pw32*)
6841   version_type=windows
6842   shrext_cmds=".dll"
6843   need_version=no
6844   need_lib_prefix=no
6845
6846   case $GCC,$host_os in
6847   yes,cygwin* | yes,mingw* | yes,pw32*)
6848     library_names_spec='$libname.dll.a'
6849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6850     postinstall_cmds='base_file=`basename \${file}`~
6851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6852       dldir=$destdir/`dirname \$dlpath`~
6853       test -d \$dldir || mkdir -p \$dldir~
6854       $install_prog $dir/$dlname \$dldir/$dlname'
6855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6856       dlpath=$dir/\$dldll~
6857        $rm \$dlpath'
6858     shlibpath_overrides_runpath=yes
6859
6860     case $host_os in
6861     cygwin*)
6862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6864       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6865       ;;
6866     mingw*)
6867       # MinGW DLLs use traditional 'lib' prefix
6868       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6869       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6870       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6871         # It is most probably a Windows format PATH printed by
6872         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6873         # path with ; separators, and with drive letters. We can handle the
6874         # drive letters (cygwin fileutils understands them), so leave them,
6875         # especially as we might pass files found there to a mingw objdump,
6876         # which wouldn't understand a cygwinified path. Ahh.
6877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6878       else
6879         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6880       fi
6881       ;;
6882     pw32*)
6883       # pw32 DLLs use 'pw' prefix rather than 'lib'
6884       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6885       ;;
6886     esac
6887     ;;
6888
6889   *)
6890     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6891     ;;
6892   esac
6893   dynamic_linker='Win32 ld.exe'
6894   # FIXME: first we should search . and the directory the executable is in
6895   shlibpath_var=PATH
6896   ;;
6897
6898 darwin* | rhapsody*)
6899   dynamic_linker="$host_os dyld"
6900   version_type=darwin
6901   need_lib_prefix=no
6902   need_version=no
6903   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6904   soname_spec='${libname}${release}${major}$shared_ext'
6905   shlibpath_overrides_runpath=yes
6906   shlibpath_var=DYLD_LIBRARY_PATH
6907   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6908   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6909   if test "$GCC" = yes; then
6910     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"`
6911   else
6912     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6913   fi
6914   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6915   ;;
6916
6917 dgux*)
6918   version_type=linux
6919   need_lib_prefix=no
6920   need_version=no
6921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6922   soname_spec='${libname}${release}${shared_ext}$major'
6923   shlibpath_var=LD_LIBRARY_PATH
6924   ;;
6925
6926 freebsd1*)
6927   dynamic_linker=no
6928   ;;
6929
6930 kfreebsd*-gnu)
6931   version_type=linux
6932   need_lib_prefix=no
6933   need_version=no
6934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6935   soname_spec='${libname}${release}${shared_ext}$major'
6936   shlibpath_var=LD_LIBRARY_PATH
6937   shlibpath_overrides_runpath=no
6938   hardcode_into_libs=yes
6939   dynamic_linker='GNU ld.so'
6940   ;;
6941
6942 freebsd*)
6943   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6944   version_type=freebsd-$objformat
6945   case $version_type in
6946     freebsd-elf*)
6947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6948       need_version=no
6949       need_lib_prefix=no
6950       ;;
6951     freebsd-*)
6952       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6953       need_version=yes
6954       ;;
6955   esac
6956   shlibpath_var=LD_LIBRARY_PATH
6957   case $host_os in
6958   freebsd2*)
6959     shlibpath_overrides_runpath=yes
6960     ;;
6961   freebsd3.01* | freebsdelf3.01*)
6962     shlibpath_overrides_runpath=yes
6963     hardcode_into_libs=yes
6964     ;;
6965   *) # from 3.2 on
6966     shlibpath_overrides_runpath=no
6967     hardcode_into_libs=yes
6968     ;;
6969   esac
6970   ;;
6971
6972 gnu*)
6973   version_type=linux
6974   need_lib_prefix=no
6975   need_version=no
6976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6977   soname_spec='${libname}${release}${shared_ext}$major'
6978   shlibpath_var=LD_LIBRARY_PATH
6979   hardcode_into_libs=yes
6980   ;;
6981
6982 hpux9* | hpux10* | hpux11*)
6983   # Give a soname corresponding to the major version so that dld.sl refuses to
6984   # link against other versions.
6985   version_type=sunos
6986   need_lib_prefix=no
6987   need_version=no
6988   case "$host_cpu" in
6989   ia64*)
6990     shrext_cmds='.so'
6991     hardcode_into_libs=yes
6992     dynamic_linker="$host_os dld.so"
6993     shlibpath_var=LD_LIBRARY_PATH
6994     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996     soname_spec='${libname}${release}${shared_ext}$major'
6997     if test "X$HPUX_IA64_MODE" = X32; then
6998       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6999     else
7000       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7001     fi
7002     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7003     ;;
7004    hppa*64*)
7005      shrext_cmds='.sl'
7006      hardcode_into_libs=yes
7007      dynamic_linker="$host_os dld.sl"
7008      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7009      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7010      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011      soname_spec='${libname}${release}${shared_ext}$major'
7012      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7013      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7014      ;;
7015    *)
7016     shrext_cmds='.sl'
7017     dynamic_linker="$host_os dld.sl"
7018     shlibpath_var=SHLIB_PATH
7019     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7021     soname_spec='${libname}${release}${shared_ext}$major'
7022     ;;
7023   esac
7024   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7025   postinstall_cmds='chmod 555 $lib'
7026   ;;
7027
7028 irix5* | irix6* | nonstopux*)
7029   case $host_os in
7030     nonstopux*) version_type=nonstopux ;;
7031     *)
7032         if test "$lt_cv_prog_gnu_ld" = yes; then
7033                 version_type=linux
7034         else
7035                 version_type=irix
7036         fi ;;
7037   esac
7038   need_lib_prefix=no
7039   need_version=no
7040   soname_spec='${libname}${release}${shared_ext}$major'
7041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7042   case $host_os in
7043   irix5* | nonstopux*)
7044     libsuff= shlibsuff=
7045     ;;
7046   *)
7047     case $LD in # libtool.m4 will add one of these switches to LD
7048     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7049       libsuff= shlibsuff= libmagic=32-bit;;
7050     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7051       libsuff=32 shlibsuff=N32 libmagic=N32;;
7052     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7053       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7054     *) libsuff= shlibsuff= libmagic=never-match;;
7055     esac
7056     ;;
7057   esac
7058   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7059   shlibpath_overrides_runpath=no
7060   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7061   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7062   hardcode_into_libs=yes
7063   ;;
7064
7065 # No shared lib support for Linux oldld, aout, or coff.
7066 linux*oldld* | linux*aout* | linux*coff*)
7067   dynamic_linker=no
7068   ;;
7069
7070 # This must be Linux ELF.
7071 linux*)
7072   version_type=linux
7073   need_lib_prefix=no
7074   need_version=no
7075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7076   soname_spec='${libname}${release}${shared_ext}$major'
7077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7078   shlibpath_var=LD_LIBRARY_PATH
7079   shlibpath_overrides_runpath=no
7080   # This implies no fast_install, which is unacceptable.
7081   # Some rework will be needed to allow for fast_install
7082   # before this can be enabled.
7083   hardcode_into_libs=yes
7084
7085   # Append ld.so.conf contents to the search path
7086   if test -f /etc/ld.so.conf; then
7087     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7088     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7089   fi
7090
7091   # We used to test for /lib/ld.so.1 and disable shared libraries on
7092   # powerpc, because MkLinux only supported shared libraries with the
7093   # GNU dynamic linker.  Since this was broken with cross compilers,
7094   # most powerpc-linux boxes support dynamic linking these days and
7095   # people can always --disable-shared, the test was removed, and we
7096   # assume the GNU/Linux dynamic linker is in use.
7097   dynamic_linker='GNU/Linux ld.so'
7098   ;;
7099
7100 knetbsd*-gnu)
7101   version_type=linux
7102   need_lib_prefix=no
7103   need_version=no
7104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7105   soname_spec='${libname}${release}${shared_ext}$major'
7106   shlibpath_var=LD_LIBRARY_PATH
7107   shlibpath_overrides_runpath=no
7108   hardcode_into_libs=yes
7109   dynamic_linker='GNU ld.so'
7110   ;;
7111
7112 netbsd*)
7113   version_type=sunos
7114   need_lib_prefix=no
7115   need_version=no
7116   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7118     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7119     dynamic_linker='NetBSD (a.out) ld.so'
7120   else
7121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7122     soname_spec='${libname}${release}${shared_ext}$major'
7123     dynamic_linker='NetBSD ld.elf_so'
7124   fi
7125   shlibpath_var=LD_LIBRARY_PATH
7126   shlibpath_overrides_runpath=yes
7127   hardcode_into_libs=yes
7128   ;;
7129
7130 newsos6)
7131   version_type=linux
7132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7133   shlibpath_var=LD_LIBRARY_PATH
7134   shlibpath_overrides_runpath=yes
7135   ;;
7136
7137 nto-qnx*)
7138   version_type=linux
7139   need_lib_prefix=no
7140   need_version=no
7141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7142   soname_spec='${libname}${release}${shared_ext}$major'
7143   shlibpath_var=LD_LIBRARY_PATH
7144   shlibpath_overrides_runpath=yes
7145   ;;
7146
7147 openbsd*)
7148   version_type=sunos
7149   need_lib_prefix=no
7150   need_version=no
7151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7152   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7153   shlibpath_var=LD_LIBRARY_PATH
7154   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7155     case $host_os in
7156       openbsd2.[89] | openbsd2.[89].*)
7157         shlibpath_overrides_runpath=no
7158         ;;
7159       *)
7160         shlibpath_overrides_runpath=yes
7161         ;;
7162       esac
7163   else
7164     shlibpath_overrides_runpath=yes
7165   fi
7166   ;;
7167
7168 os2*)
7169   libname_spec='$name'
7170   shrext_cmds=".dll"
7171   need_lib_prefix=no
7172   library_names_spec='$libname${shared_ext} $libname.a'
7173   dynamic_linker='OS/2 ld.exe'
7174   shlibpath_var=LIBPATH
7175   ;;
7176
7177 osf3* | osf4* | osf5*)
7178   version_type=osf
7179   need_lib_prefix=no
7180   need_version=no
7181   soname_spec='${libname}${release}${shared_ext}$major'
7182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7183   shlibpath_var=LD_LIBRARY_PATH
7184   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7185   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7186   ;;
7187
7188 sco3.2v5*)
7189   version_type=osf
7190   soname_spec='${libname}${release}${shared_ext}$major'
7191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7192   shlibpath_var=LD_LIBRARY_PATH
7193   ;;
7194
7195 solaris*)
7196   version_type=linux
7197   need_lib_prefix=no
7198   need_version=no
7199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7200   soname_spec='${libname}${release}${shared_ext}$major'
7201   shlibpath_var=LD_LIBRARY_PATH
7202   shlibpath_overrides_runpath=yes
7203   hardcode_into_libs=yes
7204   # ldd complains unless libraries are executable
7205   postinstall_cmds='chmod +x $lib'
7206   ;;
7207
7208 sunos4*)
7209   version_type=sunos
7210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7211   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7212   shlibpath_var=LD_LIBRARY_PATH
7213   shlibpath_overrides_runpath=yes
7214   if test "$with_gnu_ld" = yes; then
7215     need_lib_prefix=no
7216   fi
7217   need_version=yes
7218   ;;
7219
7220 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7221   version_type=linux
7222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7223   soname_spec='${libname}${release}${shared_ext}$major'
7224   shlibpath_var=LD_LIBRARY_PATH
7225   case $host_vendor in
7226     sni)
7227       shlibpath_overrides_runpath=no
7228       need_lib_prefix=no
7229       export_dynamic_flag_spec='${wl}-Blargedynsym'
7230       runpath_var=LD_RUN_PATH
7231       ;;
7232     siemens)
7233       need_lib_prefix=no
7234       ;;
7235     motorola)
7236       need_lib_prefix=no
7237       need_version=no
7238       shlibpath_overrides_runpath=no
7239       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7240       ;;
7241   esac
7242   ;;
7243
7244 sysv4*MP*)
7245   if test -d /usr/nec ;then
7246     version_type=linux
7247     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7248     soname_spec='$libname${shared_ext}.$major'
7249     shlibpath_var=LD_LIBRARY_PATH
7250   fi
7251   ;;
7252
7253 uts4*)
7254   version_type=linux
7255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7256   soname_spec='${libname}${release}${shared_ext}$major'
7257   shlibpath_var=LD_LIBRARY_PATH
7258   ;;
7259
7260 *)
7261   dynamic_linker=no
7262   ;;
7263 esac
7264 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7265 echo "${ECHO_T}$dynamic_linker" >&6
7266 test "$dynamic_linker" = no && can_build_shared=no
7267
7268
7269 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7270 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7271 if test "${libltdl_cv_shlibext+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274
7275 module=yes
7276 eval libltdl_cv_shlibext=$shrext_cmds
7277
7278 fi
7279 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7280 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7281 if test -n "$libltdl_cv_shlibext"; then
7282
7283 cat >>confdefs.h <<_ACEOF
7284 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7285 _ACEOF
7286
7287 fi
7288
7289
7290 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7291 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7292 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   libltdl_cv_shlibpath_var="$shlibpath_var"
7296 fi
7297 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7298 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7299 if test -n "$libltdl_cv_shlibpath_var"; then
7300
7301 cat >>confdefs.h <<_ACEOF
7302 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7303 _ACEOF
7304
7305 fi
7306
7307
7308 echo "$as_me:$LINENO: checking for the default library search path" >&5
7309 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7310 if test "${libltdl_cv_sys_search_path+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7314 fi
7315 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7316 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7317 if test -n "$libltdl_cv_sys_search_path"; then
7318   sys_search_path=
7319   for dir in $libltdl_cv_sys_search_path; do
7320     if test -z "$sys_search_path"; then
7321       sys_search_path="$dir"
7322     else
7323       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7324     fi
7325   done
7326
7327 cat >>confdefs.h <<_ACEOF
7328 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7329 _ACEOF
7330
7331 fi
7332
7333 echo "$as_me:$LINENO: checking for objdir" >&5
7334 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7335 if test "${libltdl_cv_objdir+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   libltdl_cv_objdir="$objdir"
7339   if test -n "$objdir"; then
7340     :
7341   else
7342     rm -f .libs 2>/dev/null
7343     mkdir .libs 2>/dev/null
7344     if test -d .libs; then
7345       libltdl_cv_objdir=.libs
7346     else
7347       # MS-DOS does not allow filenames that begin with a dot.
7348       libltdl_cv_objdir=_libs
7349     fi
7350   rmdir .libs 2>/dev/null
7351   fi
7352
7353 fi
7354 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7355 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7356
7357 cat >>confdefs.h <<_ACEOF
7358 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7359 _ACEOF
7360
7361
7362 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7363 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7364 if test "${lt_cv_path_NM+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   if test -n "$NM"; then
7368   # Let the user override the test.
7369   lt_cv_path_NM="$NM"
7370 else
7371   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7373     IFS="$lt_save_ifs"
7374     test -z "$ac_dir" && ac_dir=.
7375     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7376     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7377       # Check to see if the nm accepts a BSD-compat flag.
7378       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7379       #   nm: unknown option "B" ignored
7380       # Tru64's nm complains that /dev/null is an invalid object file
7381       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7382       */dev/null* | *'Invalid file or object type'*)
7383         lt_cv_path_NM="$tmp_nm -B"
7384         break
7385         ;;
7386       *)
7387         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7388         */dev/null*)
7389           lt_cv_path_NM="$tmp_nm -p"
7390           break
7391           ;;
7392         *)
7393           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7394           continue # so that we can try to find one that supports BSD flags
7395           ;;
7396         esac
7397       esac
7398     fi
7399   done
7400   IFS="$lt_save_ifs"
7401   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7402 fi
7403 fi
7404 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7405 echo "${ECHO_T}$lt_cv_path_NM" >&6
7406 NM="$lt_cv_path_NM"
7407
7408
7409
7410
7411
7412 # Check for command to grab the raw symbol name followed by C symbol from nm.
7413 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7414 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7415 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418
7419 # These are sane defaults that work on at least a few old systems.
7420 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7421
7422 # Character class describing NM global symbol codes.
7423 symcode='[BCDEGRST]'
7424
7425 # Regexp to match symbols that can be accessed directly from C.
7426 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7427
7428 # Transform the above into a raw symbol and a C symbol.
7429 symxfrm='\1 \2\3 \3'
7430
7431 # Transform an extracted symbol line into a proper C declaration
7432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7433
7434 # Transform an extracted symbol line into symbol name and symbol address
7435 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'"
7436
7437 # Define system-specific variables.
7438 case $host_os in
7439 aix*)
7440   symcode='[BCDT]'
7441   ;;
7442 cygwin* | mingw* | pw32*)
7443   symcode='[ABCDGISTW]'
7444   ;;
7445 hpux*) # Its linker distinguishes data from code symbols
7446   if test "$host_cpu" = ia64; then
7447     symcode='[ABCDEGRST]'
7448   fi
7449   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7450   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'"
7451   ;;
7452 linux*)
7453   if test "$host_cpu" = ia64; then
7454     symcode='[ABCDGIRSTW]'
7455     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7456     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'"
7457   fi
7458   ;;
7459 irix* | nonstopux*)
7460   symcode='[BCDEGRST]'
7461   ;;
7462 osf*)
7463   symcode='[BCDEGQRST]'
7464   ;;
7465 solaris* | sysv5*)
7466   symcode='[BDRT]'
7467   ;;
7468 sysv4)
7469   symcode='[DFNSTU]'
7470   ;;
7471 esac
7472
7473 # Handle CRLF in mingw tool chain
7474 opt_cr=
7475 case $build_os in
7476 mingw*)
7477   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478   ;;
7479 esac
7480
7481 # If we're using GNU nm, then use its standard symbol codes.
7482 case `$NM -V 2>&1` in
7483 *GNU* | *'with BFD'*)
7484   symcode='[ABCDGIRSTW]' ;;
7485 esac
7486
7487 # Try without a prefix undercore, then with it.
7488 for ac_symprfx in "" "_"; do
7489
7490   # Write the raw and C identifiers.
7491   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7492
7493   # Check to see that the pipe works correctly.
7494   pipe_works=no
7495
7496   rm -f conftest*
7497   cat > conftest.$ac_ext <<EOF
7498 #ifdef __cplusplus
7499 extern "C" {
7500 #endif
7501 char nm_test_var;
7502 void nm_test_func(){}
7503 #ifdef __cplusplus
7504 }
7505 #endif
7506 int main(){nm_test_var='a';nm_test_func();return(0);}
7507 EOF
7508
7509   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510   (eval $ac_compile) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; then
7514     # Now try to grab the symbols.
7515     nlist=conftest.nm
7516     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7517   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } && test -s "$nlist"; then
7521       # Try sorting and uniquifying the output.
7522       if sort "$nlist" | uniq > "$nlist"T; then
7523         mv -f "$nlist"T "$nlist"
7524       else
7525         rm -f "$nlist"T
7526       fi
7527
7528       # Make sure that we snagged all the symbols we need.
7529       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7530         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7531           cat <<EOF > conftest.$ac_ext
7532 #ifdef __cplusplus
7533 extern "C" {
7534 #endif
7535
7536 EOF
7537           # Now generate the symbol file.
7538           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7539
7540           cat <<EOF >> conftest.$ac_ext
7541 #if defined (__STDC__) && __STDC__
7542 # define lt_ptr_t void *
7543 #else
7544 # define lt_ptr_t char *
7545 # define const
7546 #endif
7547
7548 /* The mapping between symbol names and symbols. */
7549 const struct {
7550   const char *name;
7551   lt_ptr_t address;
7552 }
7553 lt_preloaded_symbols[] =
7554 {
7555 EOF
7556           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7557           cat <<\EOF >> conftest.$ac_ext
7558   {0, (lt_ptr_t) 0}
7559 };
7560
7561 #ifdef __cplusplus
7562 }
7563 #endif
7564 EOF
7565           # Now try linking the two files.
7566           mv conftest.$ac_objext conftstm.$ac_objext
7567           lt_save_LIBS="$LIBS"
7568           lt_save_CFLAGS="$CFLAGS"
7569           LIBS="conftstm.$ac_objext"
7570           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7571           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572   (eval $ac_link) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7576             pipe_works=yes
7577           fi
7578           LIBS="$lt_save_LIBS"
7579           CFLAGS="$lt_save_CFLAGS"
7580         else
7581           echo "cannot find nm_test_func in $nlist" >&5
7582         fi
7583       else
7584         echo "cannot find nm_test_var in $nlist" >&5
7585       fi
7586     else
7587       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7588     fi
7589   else
7590     echo "$progname: failed program was:" >&5
7591     cat conftest.$ac_ext >&5
7592   fi
7593   rm -f conftest* conftst*
7594
7595   # Do not use the global_symbol_pipe unless it works.
7596   if test "$pipe_works" = yes; then
7597     break
7598   else
7599     lt_cv_sys_global_symbol_pipe=
7600   fi
7601 done
7602
7603 fi
7604
7605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7606   lt_cv_sys_global_symbol_to_cdecl=
7607 fi
7608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7609   echo "$as_me:$LINENO: result: failed" >&5
7610 echo "${ECHO_T}failed" >&6
7611 else
7612   echo "$as_me:$LINENO: result: ok" >&5
7613 echo "${ECHO_T}ok" >&6
7614 fi
7615
7616
7617 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7618 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7619 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7623     libltdl_cv_preloaded_symbols=yes
7624   else
7625     libltdl_cv_preloaded_symbols=no
7626   fi
7627
7628 fi
7629 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7630 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7631 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7632
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_PRELOADED_SYMBOLS 1
7635 _ACEOF
7636
7637 fi
7638
7639 LIBADD_DL=
7640
7641 ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648 echo "$as_me:$LINENO: checking for shl_load" >&5
7649 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7650 if test "${ac_cv_func_shl_load+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h.  */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h.  */
7659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7661 #define shl_load innocuous_shl_load
7662
7663 /* System header to define __stub macros and hopefully few prototypes,
7664     which can conflict with char shl_load (); below.
7665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666     <limits.h> exists even on freestanding compilers.  */
7667
7668 #ifdef __STDC__
7669 # include <limits.h>
7670 #else
7671 # include <assert.h>
7672 #endif
7673
7674 #undef shl_load
7675
7676 /* Override any gcc2 internal prototype to avoid an error.  */
7677 #ifdef __cplusplus
7678 extern "C"
7679 {
7680 #endif
7681 /* We use char because int might match the return type of a gcc2
7682    builtin and then its argument prototype would still apply.  */
7683 char shl_load ();
7684 /* The GNU C library defines this for functions which it implements
7685     to always fail with ENOSYS.  Some functions are actually named
7686     something starting with __ and the normal name is an alias.  */
7687 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7688 choke me
7689 #else
7690 char (*f) () = shl_load;
7691 #endif
7692 #ifdef __cplusplus
7693 }
7694 #endif
7695
7696 int
7697 main ()
7698 {
7699 return f != shl_load;
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706   (eval $ac_link) 2>conftest.er1
7707   ac_status=$?
7708   grep -v '^ *+' conftest.er1 >conftest.err
7709   rm -f conftest.er1
7710   cat conftest.err >&5
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); } &&
7713          { ac_try='test -z "$ac_c_werror_flag"
7714                          || test ! -s conftest.err'
7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716   (eval $ac_try) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; } &&
7720          { ac_try='test -s conftest$ac_exeext'
7721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }; }; then
7726   ac_cv_func_shl_load=yes
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 ac_cv_func_shl_load=no
7732 fi
7733 rm -f conftest.err conftest.$ac_objext \
7734       conftest$ac_exeext conftest.$ac_ext
7735 fi
7736 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7737 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7738 if test $ac_cv_func_shl_load = yes; then
7739
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_SHL_LOAD 1
7742 _ACEOF
7743
7744 else
7745   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7746 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   ac_check_lib_save_LIBS=$LIBS
7751 LIBS="-ldld  $LIBS"
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758
7759 /* Override any gcc2 internal prototype to avoid an error.  */
7760 #ifdef __cplusplus
7761 extern "C"
7762 #endif
7763 /* We use char because int might match the return type of a gcc2
7764    builtin and then its argument prototype would still apply.  */
7765 char shl_load ();
7766 int
7767 main ()
7768 {
7769 shl_load ();
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776   (eval $ac_link) 2>conftest.er1
7777   ac_status=$?
7778   grep -v '^ *+' conftest.er1 >conftest.err
7779   rm -f conftest.er1
7780   cat conftest.err >&5
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } &&
7783          { ac_try='test -z "$ac_c_werror_flag"
7784                          || test ! -s conftest.err'
7785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786   (eval $ac_try) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; } &&
7790          { ac_try='test -s conftest$ac_exeext'
7791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792   (eval $ac_try) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }; }; then
7796   ac_cv_lib_dld_shl_load=yes
7797 else
7798   echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7800
7801 ac_cv_lib_dld_shl_load=no
7802 fi
7803 rm -f conftest.err conftest.$ac_objext \
7804       conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7806 fi
7807 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7808 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7809 if test $ac_cv_lib_dld_shl_load = yes; then
7810
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_SHL_LOAD 1
7813 _ACEOF
7814
7815         LIBADD_DL="$LIBADD_DL -ldld"
7816 else
7817   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7818 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   ac_check_lib_save_LIBS=$LIBS
7823 LIBS="-ldl  $LIBS"
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h.  */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h.  */
7830
7831 /* Override any gcc2 internal prototype to avoid an error.  */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 /* We use char because int might match the return type of a gcc2
7836    builtin and then its argument prototype would still apply.  */
7837 char dlopen ();
7838 int
7839 main ()
7840 {
7841 dlopen ();
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848   (eval $ac_link) 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -z "$ac_c_werror_flag"
7856                          || test ! -s conftest.err'
7857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858   (eval $ac_try) 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; } &&
7862          { ac_try='test -s conftest$ac_exeext'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; }; then
7868   ac_cv_lib_dl_dlopen=yes
7869 else
7870   echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_cv_lib_dl_dlopen=no
7874 fi
7875 rm -f conftest.err conftest.$ac_objext \
7876       conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7878 fi
7879 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7880 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7881 if test $ac_cv_lib_dl_dlopen = yes; then
7882
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_LIBDL 1
7885 _ACEOF
7886
7887                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7888 else
7889   cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 #if HAVE_DLFCN_H
7896 #  include <dlfcn.h>
7897 #endif
7898
7899 int
7900 main ()
7901 {
7902 dlopen(0, 0);
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909   (eval $ac_link) 2>conftest.er1
7910   ac_status=$?
7911   grep -v '^ *+' conftest.er1 >conftest.err
7912   rm -f conftest.er1
7913   cat conftest.err >&5
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -z "$ac_c_werror_flag"
7917                          || test ! -s conftest.err'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; } &&
7923          { ac_try='test -s conftest$ac_exeext'
7924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925   (eval $ac_try) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); }; }; then
7929
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_LIBDL 1
7932 _ACEOF
7933  libltdl_cv_func_dlopen="yes"
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7939 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7940 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lsvld  $LIBS"
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 /* Override any gcc2 internal prototype to avoid an error.  */
7953 #ifdef __cplusplus
7954 extern "C"
7955 #endif
7956 /* We use char because int might match the return type of a gcc2
7957    builtin and then its argument prototype would still apply.  */
7958 char dlopen ();
7959 int
7960 main ()
7961 {
7962 dlopen ();
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969   (eval $ac_link) 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
7973   cat conftest.err >&5
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } &&
7976          { ac_try='test -z "$ac_c_werror_flag"
7977                          || test ! -s conftest.err'
7978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979   (eval $ac_try) 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; } &&
7983          { ac_try='test -s conftest$ac_exeext'
7984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985   (eval $ac_try) 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; }; then
7989   ac_cv_lib_svld_dlopen=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ac_cv_lib_svld_dlopen=no
7995 fi
7996 rm -f conftest.err conftest.$ac_objext \
7997       conftest$ac_exeext conftest.$ac_ext
7998 LIBS=$ac_check_lib_save_LIBS
7999 fi
8000 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8001 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8002 if test $ac_cv_lib_svld_dlopen = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_LIBDL 1
8006 _ACEOF
8007
8008                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8009 else
8010   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8011 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   ac_check_lib_save_LIBS=$LIBS
8016 LIBS="-ldld  $LIBS"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023
8024 /* Override any gcc2 internal prototype to avoid an error.  */
8025 #ifdef __cplusplus
8026 extern "C"
8027 #endif
8028 /* We use char because int might match the return type of a gcc2
8029    builtin and then its argument prototype would still apply.  */
8030 char dld_link ();
8031 int
8032 main ()
8033 {
8034 dld_link ();
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041   (eval $ac_link) 2>conftest.er1
8042   ac_status=$?
8043   grep -v '^ *+' conftest.er1 >conftest.err
8044   rm -f conftest.er1
8045   cat conftest.err >&5
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); } &&
8048          { ac_try='test -z "$ac_c_werror_flag"
8049                          || test ! -s conftest.err'
8050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051   (eval $ac_try) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; } &&
8055          { ac_try='test -s conftest$ac_exeext'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; }; then
8061   ac_cv_lib_dld_dld_link=yes
8062 else
8063   echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_cv_lib_dld_dld_link=no
8067 fi
8068 rm -f conftest.err conftest.$ac_objext \
8069       conftest$ac_exeext conftest.$ac_ext
8070 LIBS=$ac_check_lib_save_LIBS
8071 fi
8072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8073 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8074 if test $ac_cv_lib_dld_dld_link = yes; then
8075
8076 cat >>confdefs.h <<\_ACEOF
8077 #define HAVE_DLD 1
8078 _ACEOF
8079
8080                 LIBADD_DL="$LIBADD_DL -ldld"
8081 else
8082   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8083 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8084 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8095 #define _dyld_func_lookup innocuous__dyld_func_lookup
8096
8097 /* System header to define __stub macros and hopefully few prototypes,
8098     which can conflict with char _dyld_func_lookup (); below.
8099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100     <limits.h> exists even on freestanding compilers.  */
8101
8102 #ifdef __STDC__
8103 # include <limits.h>
8104 #else
8105 # include <assert.h>
8106 #endif
8107
8108 #undef _dyld_func_lookup
8109
8110 /* Override any gcc2 internal prototype to avoid an error.  */
8111 #ifdef __cplusplus
8112 extern "C"
8113 {
8114 #endif
8115 /* We use char because int might match the return type of a gcc2
8116    builtin and then its argument prototype would still apply.  */
8117 char _dyld_func_lookup ();
8118 /* The GNU C library defines this for functions which it implements
8119     to always fail with ENOSYS.  Some functions are actually named
8120     something starting with __ and the normal name is an alias.  */
8121 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8122 choke me
8123 #else
8124 char (*f) () = _dyld_func_lookup;
8125 #endif
8126 #ifdef __cplusplus
8127 }
8128 #endif
8129
8130 int
8131 main ()
8132 {
8133 return f != _dyld_func_lookup;
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140   (eval $ac_link) 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -z "$ac_c_werror_flag"
8148                          || test ! -s conftest.err'
8149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150   (eval $ac_try) 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; } &&
8154          { ac_try='test -s conftest$ac_exeext'
8155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156   (eval $ac_try) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); }; }; then
8160   ac_cv_func__dyld_func_lookup=yes
8161 else
8162   echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 ac_cv_func__dyld_func_lookup=no
8166 fi
8167 rm -f conftest.err conftest.$ac_objext \
8168       conftest$ac_exeext conftest.$ac_ext
8169 fi
8170 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8171 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8172 if test $ac_cv_func__dyld_func_lookup = yes; then
8173
8174 cat >>confdefs.h <<\_ACEOF
8175 #define HAVE_DYLD 1
8176 _ACEOF
8177
8178 fi
8179
8180
8181 fi
8182
8183
8184 fi
8185
8186
8187 fi
8188 rm -f conftest.err conftest.$ac_objext \
8189       conftest$ac_exeext conftest.$ac_ext
8190
8191 fi
8192
8193
8194 fi
8195
8196
8197 fi
8198
8199
8200 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8201 then
8202   lt_save_LIBS="$LIBS"
8203   LIBS="$LIBS $LIBADD_DL"
8204
8205 for ac_func in dlerror
8206 do
8207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8208 echo "$as_me:$LINENO: checking for $ac_func" >&5
8209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_var+set}\" = set"; then
8211   echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213   cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h.  */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h.  */
8219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8221 #define $ac_func innocuous_$ac_func
8222
8223 /* System header to define __stub macros and hopefully few prototypes,
8224     which can conflict with char $ac_func (); below.
8225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8226     <limits.h> exists even on freestanding compilers.  */
8227
8228 #ifdef __STDC__
8229 # include <limits.h>
8230 #else
8231 # include <assert.h>
8232 #endif
8233
8234 #undef $ac_func
8235
8236 /* Override any gcc2 internal prototype to avoid an error.  */
8237 #ifdef __cplusplus
8238 extern "C"
8239 {
8240 #endif
8241 /* We use char because int might match the return type of a gcc2
8242    builtin and then its argument prototype would still apply.  */
8243 char $ac_func ();
8244 /* The GNU C library defines this for functions which it implements
8245     to always fail with ENOSYS.  Some functions are actually named
8246     something starting with __ and the normal name is an alias.  */
8247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8248 choke me
8249 #else
8250 char (*f) () = $ac_func;
8251 #endif
8252 #ifdef __cplusplus
8253 }
8254 #endif
8255
8256 int
8257 main ()
8258 {
8259 return f != $ac_func;
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266   (eval $ac_link) 2>conftest.er1
8267   ac_status=$?
8268   grep -v '^ *+' conftest.er1 >conftest.err
8269   rm -f conftest.er1
8270   cat conftest.err >&5
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); } &&
8273          { ac_try='test -z "$ac_c_werror_flag"
8274                          || test ! -s conftest.err'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; } &&
8280          { ac_try='test -s conftest$ac_exeext'
8281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282   (eval $ac_try) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; }; then
8286   eval "$as_ac_var=yes"
8287 else
8288   echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 eval "$as_ac_var=no"
8292 fi
8293 rm -f conftest.err conftest.$ac_objext \
8294       conftest$ac_exeext conftest.$ac_ext
8295 fi
8296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299   cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 fi
8304 done
8305
8306   LIBS="$lt_save_LIBS"
8307 fi
8308 ac_ext=c
8309 ac_cpp='$CPP $CPPFLAGS'
8310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8313
8314
8315
8316 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8317 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8318 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   ac_cv_sys_symbol_underscore=no
8322   cat > conftest.$ac_ext <<EOF
8323 void nm_test_func(){}
8324 int main(){nm_test_func;return 0;}
8325 EOF
8326   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327   (eval $ac_compile) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; then
8331     # Now try to grab the symbols.
8332     ac_nlist=conftest.nm
8333     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8334   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } && test -s "$ac_nlist"; then
8338       # See whether the symbols have a leading underscore.
8339       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8340         ac_cv_sys_symbol_underscore=yes
8341       else
8342         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8343           :
8344         else
8345           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8346         fi
8347       fi
8348     else
8349       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8350     fi
8351   else
8352     echo "configure: failed program was:" >&5
8353     cat conftest.c >&5
8354   fi
8355   rm -rf conftest*
8356
8357 fi
8358 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8359 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8360
8361
8362 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8363   if test x"$libltdl_cv_func_dlopen" = xyes ||
8364      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8365         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8366 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8367 if test "${libltdl_cv_need_uscore+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   libltdl_cv_need_uscore=unknown
8371           save_LIBS="$LIBS"
8372           LIBS="$LIBS $LIBADD_DL"
8373           if test "$cross_compiling" = yes; then :
8374   libltdl_cv_need_uscore=cross
8375 else
8376   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8377   lt_status=$lt_dlunknown
8378   cat > conftest.$ac_ext <<EOF
8379 #line 8379 "configure"
8380 #include "confdefs.h"
8381
8382 #if HAVE_DLFCN_H
8383 #include <dlfcn.h>
8384 #endif
8385
8386 #include <stdio.h>
8387
8388 #ifdef RTLD_GLOBAL
8389 #  define LT_DLGLOBAL           RTLD_GLOBAL
8390 #else
8391 #  ifdef DL_GLOBAL
8392 #    define LT_DLGLOBAL         DL_GLOBAL
8393 #  else
8394 #    define LT_DLGLOBAL         0
8395 #  endif
8396 #endif
8397
8398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8399    find out it does not work in some platform. */
8400 #ifndef LT_DLLAZY_OR_NOW
8401 #  ifdef RTLD_LAZY
8402 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8403 #  else
8404 #    ifdef DL_LAZY
8405 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8406 #    else
8407 #      ifdef RTLD_NOW
8408 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8409 #      else
8410 #        ifdef DL_NOW
8411 #          define LT_DLLAZY_OR_NOW      DL_NOW
8412 #        else
8413 #          define LT_DLLAZY_OR_NOW      0
8414 #        endif
8415 #      endif
8416 #    endif
8417 #  endif
8418 #endif
8419
8420 #ifdef __cplusplus
8421 extern "C" void exit (int);
8422 #endif
8423
8424 void fnord() { int i=42;}
8425 int main ()
8426 {
8427   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8428   int status = $lt_dlunknown;
8429
8430   if (self)
8431     {
8432       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8433       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8434       /* dlclose (self); */
8435     }
8436
8437     exit (status);
8438 }
8439 EOF
8440   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441   (eval $ac_link) 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8445     (./conftest; exit; ) 2>/dev/null
8446     lt_status=$?
8447     case x$lt_status in
8448       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8449       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8450       x$lt_unknown|x*)  ;;
8451     esac
8452   else :
8453     # compilation failed
8454
8455   fi
8456 fi
8457 rm -fr conftest*
8458
8459           LIBS="$save_LIBS"
8460
8461 fi
8462 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8463 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8464   fi
8465 fi
8466
8467 if test x"$libltdl_cv_need_uscore" = xyes; then
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define NEED_USCORE 1
8471 _ACEOF
8472
8473 fi
8474
8475
8476 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8477 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8478 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   # PORTME does your system automatically load deplibs for dlopen?
8482   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8483   # For now, we just catch OSes we know something about -- in the
8484   # future, we'll try test this programmatically.
8485   libltdl_cv_sys_dlopen_deplibs=unknown
8486   case "$host_os" in
8487   aix3*|aix4.1.*|aix4.2.*)
8488     # Unknown whether this is true for these versions of AIX, but
8489     # we want this `case' here to explicitly catch those versions.
8490     libltdl_cv_sys_dlopen_deplibs=unknown
8491     ;;
8492   aix[45]*)
8493     libltdl_cv_sys_dlopen_deplibs=yes
8494     ;;
8495   darwin*)
8496     # Assuming the user has installed a libdl from somewhere, this is true
8497     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8498     libltdl_cv_sys_dlopen_deplibs=yes
8499     ;;
8500   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8501     # GNU and its variants, using gnu ld.so (Glibc)
8502     libltdl_cv_sys_dlopen_deplibs=yes
8503     ;;
8504   hpux10*|hpux11*)
8505     libltdl_cv_sys_dlopen_deplibs=yes
8506     ;;
8507   irix[12345]*|irix6.[01]*)
8508     # Catch all versions of IRIX before 6.2, and indicate that we don't
8509     # know how it worked for any of those versions.
8510     libltdl_cv_sys_dlopen_deplibs=unknown
8511     ;;
8512   irix*)
8513     # The case above catches anything before 6.2, and it's known that
8514     # at 6.2 and later dlopen does load deplibs.
8515     libltdl_cv_sys_dlopen_deplibs=yes
8516     ;;
8517   netbsd*)
8518     libltdl_cv_sys_dlopen_deplibs=yes
8519     ;;
8520   openbsd*)
8521     libltdl_cv_sys_dlopen_deplibs=yes
8522     ;;
8523   osf[1234]*)
8524     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8525     # it did *not* use an RPATH in a shared library to find objects the
8526     # library depends on, so we explictly say `no'.
8527     libltdl_cv_sys_dlopen_deplibs=no
8528     ;;
8529   osf5.0|osf5.0a|osf5.1)
8530     # dlopen *does* load deplibs and with the right loader patch applied
8531     # it even uses RPATH in a shared library to search for shared objects
8532     # that the library depends on, but there's no easy way to know if that
8533     # patch is installed.  Since this is the case, all we can really
8534     # say is unknown -- it depends on the patch being installed.  If
8535     # it is, this changes to `yes'.  Without it, it would be `no'.
8536     libltdl_cv_sys_dlopen_deplibs=unknown
8537     ;;
8538   osf*)
8539     # the two cases above should catch all versions of osf <= 5.1.  Read
8540     # the comments above for what we know about them.
8541     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8542     # is used to find them so we can finally say `yes'.
8543     libltdl_cv_sys_dlopen_deplibs=yes
8544     ;;
8545   solaris*)
8546     libltdl_cv_sys_dlopen_deplibs=yes
8547     ;;
8548   esac
8549
8550 fi
8551 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8552 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8553 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8554
8555 cat >>confdefs.h <<\_ACEOF
8556 #define LTDL_DLOPEN_DEPLIBS 1
8557 _ACEOF
8558
8559 fi
8560
8561
8562 for ac_header in argz.h
8563 do
8564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566   echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 fi
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8573 else
8574   # Is the header compilable?
8575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 $ac_includes_default
8584 #include <$ac_header>
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588   (eval $ac_compile) 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } &&
8595          { ac_try='test -z "$ac_c_werror_flag"
8596                          || test ! -s conftest.err'
8597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; } &&
8602          { ac_try='test -s conftest.$ac_objext'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; }; then
8608   ac_header_compiler=yes
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_header_compiler=no
8614 fi
8615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617 echo "${ECHO_T}$ac_header_compiler" >&6
8618
8619 # Is the header present?
8620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 #include <$ac_header>
8629 _ACEOF
8630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } >/dev/null; then
8638   if test -s conftest.err; then
8639     ac_cpp_err=$ac_c_preproc_warn_flag
8640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8641   else
8642     ac_cpp_err=
8643   fi
8644 else
8645   ac_cpp_err=yes
8646 fi
8647 if test -z "$ac_cpp_err"; then
8648   ac_header_preproc=yes
8649 else
8650   echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653   ac_header_preproc=no
8654 fi
8655 rm -f conftest.err conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8657 echo "${ECHO_T}$ac_header_preproc" >&6
8658
8659 # So?  What about this header?
8660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8661   yes:no: )
8662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8666     ac_header_preproc=yes
8667     ;;
8668   no:yes:* )
8669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8681     (
8682       cat <<\_ASBOX
8683 ## ----------------------------------- ##
8684 ## Report this to llvmbugs@cs.uiuc.edu ##
8685 ## ----------------------------------- ##
8686 _ASBOX
8687     ) |
8688       sed "s/^/$as_me: WARNING:     /" >&2
8689     ;;
8690 esac
8691 echo "$as_me:$LINENO: checking for $ac_header" >&5
8692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   eval "$as_ac_Header=\$ac_header_preproc"
8697 fi
8698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8700
8701 fi
8702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703   cat >>confdefs.h <<_ACEOF
8704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705 _ACEOF
8706
8707 fi
8708
8709 done
8710
8711
8712 echo "$as_me:$LINENO: checking for error_t" >&5
8713 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8714 if test "${ac_cv_type_error_t+set}" = set; then
8715   echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 #if HAVE_ARGZ_H
8724 #  include <argz.h>
8725 #endif
8726
8727 int
8728 main ()
8729 {
8730 if ((error_t *) 0)
8731   return 0;
8732 if (sizeof (error_t))
8733   return 0;
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740   (eval $ac_compile) 2>conftest.er1
8741   ac_status=$?
8742   grep -v '^ *+' conftest.er1 >conftest.err
8743   rm -f conftest.er1
8744   cat conftest.err >&5
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } &&
8747          { ac_try='test -z "$ac_c_werror_flag"
8748                          || test ! -s conftest.err'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; } &&
8754          { ac_try='test -s conftest.$ac_objext'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; }; then
8760   ac_cv_type_error_t=yes
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765 ac_cv_type_error_t=no
8766 fi
8767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8770 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8771 if test $ac_cv_type_error_t = yes; then
8772
8773 cat >>confdefs.h <<_ACEOF
8774 #define HAVE_ERROR_T 1
8775 _ACEOF
8776
8777
8778 else
8779
8780 cat >>confdefs.h <<\_ACEOF
8781 #define error_t int
8782 _ACEOF
8783
8784 fi
8785
8786
8787
8788
8789
8790
8791
8792 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8793 do
8794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795 echo "$as_me:$LINENO: checking for $ac_func" >&5
8796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8797 if eval "test \"\${$as_ac_var+set}\" = set"; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8808 #define $ac_func innocuous_$ac_func
8809
8810 /* System header to define __stub macros and hopefully few prototypes,
8811     which can conflict with char $ac_func (); below.
8812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8813     <limits.h> exists even on freestanding compilers.  */
8814
8815 #ifdef __STDC__
8816 # include <limits.h>
8817 #else
8818 # include <assert.h>
8819 #endif
8820
8821 #undef $ac_func
8822
8823 /* Override any gcc2 internal prototype to avoid an error.  */
8824 #ifdef __cplusplus
8825 extern "C"
8826 {
8827 #endif
8828 /* We use char because int might match the return type of a gcc2
8829    builtin and then its argument prototype would still apply.  */
8830 char $ac_func ();
8831 /* The GNU C library defines this for functions which it implements
8832     to always fail with ENOSYS.  Some functions are actually named
8833     something starting with __ and the normal name is an alias.  */
8834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8835 choke me
8836 #else
8837 char (*f) () = $ac_func;
8838 #endif
8839 #ifdef __cplusplus
8840 }
8841 #endif
8842
8843 int
8844 main ()
8845 {
8846 return f != $ac_func;
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853   (eval $ac_link) 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } &&
8860          { ac_try='test -z "$ac_c_werror_flag"
8861                          || test ! -s conftest.err'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; } &&
8867          { ac_try='test -s conftest$ac_exeext'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; }; then
8873   eval "$as_ac_var=yes"
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878 eval "$as_ac_var=no"
8879 fi
8880 rm -f conftest.err conftest.$ac_objext \
8881       conftest$ac_exeext conftest.$ac_ext
8882 fi
8883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8885 if test `eval echo '${'$as_ac_var'}'` = yes; then
8886   cat >>confdefs.h <<_ACEOF
8887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8888 _ACEOF
8889
8890 fi
8891 done
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8921                   stdio.h unistd.h
8922 do
8923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925   echo "$as_me:$LINENO: checking for $ac_header" >&5
8926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 fi
8930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8932 else
8933   # Is the header compilable?
8934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h.  */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h.  */
8942 $ac_includes_default
8943 #include <$ac_header>
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947   (eval $ac_compile) 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } &&
8954          { ac_try='test -z "$ac_c_werror_flag"
8955                          || test ! -s conftest.err'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; } &&
8961          { ac_try='test -s conftest.$ac_objext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   ac_header_compiler=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_header_compiler=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8976 echo "${ECHO_T}$ac_header_compiler" >&6
8977
8978 # Is the header present?
8979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987 #include <$ac_header>
8988 _ACEOF
8989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } >/dev/null; then
8997   if test -s conftest.err; then
8998     ac_cpp_err=$ac_c_preproc_warn_flag
8999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9000   else
9001     ac_cpp_err=
9002   fi
9003 else
9004   ac_cpp_err=yes
9005 fi
9006 if test -z "$ac_cpp_err"; then
9007   ac_header_preproc=yes
9008 else
9009   echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012   ac_header_preproc=no
9013 fi
9014 rm -f conftest.err conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9016 echo "${ECHO_T}$ac_header_preproc" >&6
9017
9018 # So?  What about this header?
9019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9020   yes:no: )
9021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9025     ac_header_preproc=yes
9026     ;;
9027   no:yes:* )
9028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9040     (
9041       cat <<\_ASBOX
9042 ## ----------------------------------- ##
9043 ## Report this to llvmbugs@cs.uiuc.edu ##
9044 ## ----------------------------------- ##
9045 _ASBOX
9046     ) |
9047       sed "s/^/$as_me: WARNING:     /" >&2
9048     ;;
9049 esac
9050 echo "$as_me:$LINENO: checking for $ac_header" >&5
9051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055   eval "$as_ac_Header=\$ac_header_preproc"
9056 fi
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9059
9060 fi
9061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9062   cat >>confdefs.h <<_ACEOF
9063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064 _ACEOF
9065
9066 fi
9067
9068 done
9069
9070
9071
9072
9073
9074 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9075 do
9076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078   echo "$as_me:$LINENO: checking for $ac_header" >&5
9079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 fi
9083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9085 else
9086   # Is the header compilable?
9087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h.  */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h.  */
9095 $ac_includes_default
9096 #include <$ac_header>
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100   (eval $ac_compile) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -z "$ac_c_werror_flag"
9108                          || test ! -s conftest.err'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; } &&
9114          { ac_try='test -s conftest.$ac_objext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   ac_header_compiler=yes
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 ac_header_compiler=no
9126 fi
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129 echo "${ECHO_T}$ac_header_compiler" >&6
9130
9131 # Is the header present?
9132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140 #include <$ac_header>
9141 _ACEOF
9142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9144   ac_status=$?
9145   grep -v '^ *+' conftest.er1 >conftest.err
9146   rm -f conftest.er1
9147   cat conftest.err >&5
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } >/dev/null; then
9150   if test -s conftest.err; then
9151     ac_cpp_err=$ac_c_preproc_warn_flag
9152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9153   else
9154     ac_cpp_err=
9155   fi
9156 else
9157   ac_cpp_err=yes
9158 fi
9159 if test -z "$ac_cpp_err"; then
9160   ac_header_preproc=yes
9161 else
9162   echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9164
9165   ac_header_preproc=no
9166 fi
9167 rm -f conftest.err conftest.$ac_ext
9168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169 echo "${ECHO_T}$ac_header_preproc" >&6
9170
9171 # So?  What about this header?
9172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173   yes:no: )
9174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178     ac_header_preproc=yes
9179     ;;
9180   no:yes:* )
9181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193     (
9194       cat <<\_ASBOX
9195 ## ----------------------------------- ##
9196 ## Report this to llvmbugs@cs.uiuc.edu ##
9197 ## ----------------------------------- ##
9198 _ASBOX
9199     ) |
9200       sed "s/^/$as_me: WARNING:     /" >&2
9201     ;;
9202 esac
9203 echo "$as_me:$LINENO: checking for $ac_header" >&5
9204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   eval "$as_ac_Header=\$ac_header_preproc"
9209 fi
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212
9213 fi
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215   cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217 _ACEOF
9218
9219 fi
9220
9221 done
9222
9223
9224
9225 for ac_header in string.h strings.h
9226 do
9227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229   echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 fi
9234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9236 else
9237   # Is the header compilable?
9238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h.  */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h.  */
9246 $ac_includes_default
9247 #include <$ac_header>
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251   (eval $ac_compile) 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -z "$ac_c_werror_flag"
9259                          || test ! -s conftest.err'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; } &&
9265          { ac_try='test -s conftest.$ac_objext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   ac_header_compiler=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ac_header_compiler=no
9277 fi
9278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9280 echo "${ECHO_T}$ac_header_compiler" >&6
9281
9282 # Is the header present?
9283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 #include <$ac_header>
9292 _ACEOF
9293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } >/dev/null; then
9301   if test -s conftest.err; then
9302     ac_cpp_err=$ac_c_preproc_warn_flag
9303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9304   else
9305     ac_cpp_err=
9306   fi
9307 else
9308   ac_cpp_err=yes
9309 fi
9310 if test -z "$ac_cpp_err"; then
9311   ac_header_preproc=yes
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316   ac_header_preproc=no
9317 fi
9318 rm -f conftest.err conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9320 echo "${ECHO_T}$ac_header_preproc" >&6
9321
9322 # So?  What about this header?
9323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9324   yes:no: )
9325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9329     ac_header_preproc=yes
9330     ;;
9331   no:yes:* )
9332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9344     (
9345       cat <<\_ASBOX
9346 ## ----------------------------------- ##
9347 ## Report this to llvmbugs@cs.uiuc.edu ##
9348 ## ----------------------------------- ##
9349 _ASBOX
9350     ) |
9351       sed "s/^/$as_me: WARNING:     /" >&2
9352     ;;
9353 esac
9354 echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359   eval "$as_ac_Header=\$ac_header_preproc"
9360 fi
9361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9363
9364 fi
9365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9366   cat >>confdefs.h <<_ACEOF
9367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368 _ACEOF
9369  break
9370 fi
9371
9372 done
9373
9374
9375
9376
9377 for ac_func in strchr index
9378 do
9379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9380 echo "$as_me:$LINENO: checking for $ac_func" >&5
9381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_var+set}\" = set"; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9393 #define $ac_func innocuous_$ac_func
9394
9395 /* System header to define __stub macros and hopefully few prototypes,
9396     which can conflict with char $ac_func (); below.
9397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9398     <limits.h> exists even on freestanding compilers.  */
9399
9400 #ifdef __STDC__
9401 # include <limits.h>
9402 #else
9403 # include <assert.h>
9404 #endif
9405
9406 #undef $ac_func
9407
9408 /* Override any gcc2 internal prototype to avoid an error.  */
9409 #ifdef __cplusplus
9410 extern "C"
9411 {
9412 #endif
9413 /* We use char because int might match the return type of a gcc2
9414    builtin and then its argument prototype would still apply.  */
9415 char $ac_func ();
9416 /* The GNU C library defines this for functions which it implements
9417     to always fail with ENOSYS.  Some functions are actually named
9418     something starting with __ and the normal name is an alias.  */
9419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9420 choke me
9421 #else
9422 char (*f) () = $ac_func;
9423 #endif
9424 #ifdef __cplusplus
9425 }
9426 #endif
9427
9428 int
9429 main ()
9430 {
9431 return f != $ac_func;
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438   (eval $ac_link) 2>conftest.er1
9439   ac_status=$?
9440   grep -v '^ *+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } &&
9445          { ac_try='test -z "$ac_c_werror_flag"
9446                          || test ! -s conftest.err'
9447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448   (eval $ac_try) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); }; } &&
9452          { ac_try='test -s conftest$ac_exeext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   eval "$as_ac_var=yes"
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 eval "$as_ac_var=no"
9464 fi
9465 rm -f conftest.err conftest.$ac_objext \
9466       conftest$ac_exeext conftest.$ac_ext
9467 fi
9468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9470 if test `eval echo '${'$as_ac_var'}'` = yes; then
9471   cat >>confdefs.h <<_ACEOF
9472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9473 _ACEOF
9474  break
9475 fi
9476 done
9477
9478
9479
9480 for ac_func in strrchr rindex
9481 do
9482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9483 echo "$as_me:$LINENO: checking for $ac_func" >&5
9484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_var+set}\" = set"; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496 #define $ac_func innocuous_$ac_func
9497
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char $ac_func (); below.
9500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501     <limits.h> exists even on freestanding compilers.  */
9502
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9508
9509 #undef $ac_func
9510
9511 /* Override any gcc2 internal prototype to avoid an error.  */
9512 #ifdef __cplusplus
9513 extern "C"
9514 {
9515 #endif
9516 /* We use char because int might match the return type of a gcc2
9517    builtin and then its argument prototype would still apply.  */
9518 char $ac_func ();
9519 /* The GNU C library defines this for functions which it implements
9520     to always fail with ENOSYS.  Some functions are actually named
9521     something starting with __ and the normal name is an alias.  */
9522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9523 choke me
9524 #else
9525 char (*f) () = $ac_func;
9526 #endif
9527 #ifdef __cplusplus
9528 }
9529 #endif
9530
9531 int
9532 main ()
9533 {
9534 return f != $ac_func;
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541   (eval $ac_link) 2>conftest.er1
9542   ac_status=$?
9543   grep -v '^ *+' conftest.er1 >conftest.err
9544   rm -f conftest.er1
9545   cat conftest.err >&5
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } &&
9548          { ac_try='test -z "$ac_c_werror_flag"
9549                          || test ! -s conftest.err'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; } &&
9555          { ac_try='test -s conftest$ac_exeext'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; }; then
9561   eval "$as_ac_var=yes"
9562 else
9563   echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 eval "$as_ac_var=no"
9567 fi
9568 rm -f conftest.err conftest.$ac_objext \
9569       conftest$ac_exeext conftest.$ac_ext
9570 fi
9571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9573 if test `eval echo '${'$as_ac_var'}'` = yes; then
9574   cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576 _ACEOF
9577  break
9578 fi
9579 done
9580
9581
9582
9583 for ac_func in memcpy bcopy
9584 do
9585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586 echo "$as_me:$LINENO: checking for $ac_func" >&5
9587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9588 if eval "test \"\${$as_ac_var+set}\" = set"; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591   cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9599 #define $ac_func innocuous_$ac_func
9600
9601 /* System header to define __stub macros and hopefully few prototypes,
9602     which can conflict with char $ac_func (); below.
9603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9604     <limits.h> exists even on freestanding compilers.  */
9605
9606 #ifdef __STDC__
9607 # include <limits.h>
9608 #else
9609 # include <assert.h>
9610 #endif
9611
9612 #undef $ac_func
9613
9614 /* Override any gcc2 internal prototype to avoid an error.  */
9615 #ifdef __cplusplus
9616 extern "C"
9617 {
9618 #endif
9619 /* We use char because int might match the return type of a gcc2
9620    builtin and then its argument prototype would still apply.  */
9621 char $ac_func ();
9622 /* The GNU C library defines this for functions which it implements
9623     to always fail with ENOSYS.  Some functions are actually named
9624     something starting with __ and the normal name is an alias.  */
9625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9626 choke me
9627 #else
9628 char (*f) () = $ac_func;
9629 #endif
9630 #ifdef __cplusplus
9631 }
9632 #endif
9633
9634 int
9635 main ()
9636 {
9637 return f != $ac_func;
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644   (eval $ac_link) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"
9652                          || test ! -s conftest.err'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest$ac_exeext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   eval "$as_ac_var=yes"
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 eval "$as_ac_var=no"
9670 fi
9671 rm -f conftest.err conftest.$ac_objext \
9672       conftest$ac_exeext conftest.$ac_ext
9673 fi
9674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9676 if test `eval echo '${'$as_ac_var'}'` = yes; then
9677   cat >>confdefs.h <<_ACEOF
9678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679 _ACEOF
9680  break
9681 fi
9682 done
9683
9684
9685
9686 for ac_func in memmove strcmp
9687 do
9688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689 echo "$as_me:$LINENO: checking for $ac_func" >&5
9690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9691 if eval "test \"\${$as_ac_var+set}\" = set"; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9702 #define $ac_func innocuous_$ac_func
9703
9704 /* System header to define __stub macros and hopefully few prototypes,
9705     which can conflict with char $ac_func (); below.
9706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707     <limits.h> exists even on freestanding compilers.  */
9708
9709 #ifdef __STDC__
9710 # include <limits.h>
9711 #else
9712 # include <assert.h>
9713 #endif
9714
9715 #undef $ac_func
9716
9717 /* Override any gcc2 internal prototype to avoid an error.  */
9718 #ifdef __cplusplus
9719 extern "C"
9720 {
9721 #endif
9722 /* We use char because int might match the return type of a gcc2
9723    builtin and then its argument prototype would still apply.  */
9724 char $ac_func ();
9725 /* The GNU C library defines this for functions which it implements
9726     to always fail with ENOSYS.  Some functions are actually named
9727     something starting with __ and the normal name is an alias.  */
9728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9729 choke me
9730 #else
9731 char (*f) () = $ac_func;
9732 #endif
9733 #ifdef __cplusplus
9734 }
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 return f != $ac_func;
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747   (eval $ac_link) 2>conftest.er1
9748   ac_status=$?
9749   grep -v '^ *+' conftest.er1 >conftest.err
9750   rm -f conftest.er1
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -z "$ac_c_werror_flag"
9755                          || test ! -s conftest.err'
9756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757   (eval $ac_try) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   eval "$as_ac_var=yes"
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 eval "$as_ac_var=no"
9773 fi
9774 rm -f conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 fi
9777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9779 if test `eval echo '${'$as_ac_var'}'` = yes; then
9780   cat >>confdefs.h <<_ACEOF
9781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9782 _ACEOF
9783
9784 fi
9785 done
9786
9787
9788
9789
9790 for ac_func in closedir opendir readdir
9791 do
9792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793 echo "$as_me:$LINENO: checking for $ac_func" >&5
9794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9795 if eval "test \"\${$as_ac_var+set}\" = set"; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9806 #define $ac_func innocuous_$ac_func
9807
9808 /* System header to define __stub macros and hopefully few prototypes,
9809     which can conflict with char $ac_func (); below.
9810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811     <limits.h> exists even on freestanding compilers.  */
9812
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9818
9819 #undef $ac_func
9820
9821 /* Override any gcc2 internal prototype to avoid an error.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 {
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827    builtin and then its argument prototype would still apply.  */
9828 char $ac_func ();
9829 /* The GNU C library defines this for functions which it implements
9830     to always fail with ENOSYS.  Some functions are actually named
9831     something starting with __ and the normal name is an alias.  */
9832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9833 choke me
9834 #else
9835 char (*f) () = $ac_func;
9836 #endif
9837 #ifdef __cplusplus
9838 }
9839 #endif
9840
9841 int
9842 main ()
9843 {
9844 return f != $ac_func;
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851   (eval $ac_link) 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag"
9859                          || test ! -s conftest.err'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; } &&
9865          { ac_try='test -s conftest$ac_exeext'
9866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867   (eval $ac_try) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; }; then
9871   eval "$as_ac_var=yes"
9872 else
9873   echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876 eval "$as_ac_var=no"
9877 fi
9878 rm -f conftest.err conftest.$ac_objext \
9879       conftest$ac_exeext conftest.$ac_ext
9880 fi
9881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9883 if test `eval echo '${'$as_ac_var'}'` = yes; then
9884   cat >>confdefs.h <<_ACEOF
9885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9886 _ACEOF
9887
9888 fi
9889 done
9890
9891
9892 # Check whether --enable-shared or --disable-shared was given.
9893 if test "${enable_shared+set}" = set; then
9894   enableval="$enable_shared"
9895   p=${PACKAGE-default}
9896     case $enableval in
9897     yes) enable_shared=yes ;;
9898     no) enable_shared=no ;;
9899     *)
9900       enable_shared=no
9901       # Look at the argument we got.  We use all the common list separators.
9902       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9903       for pkg in $enableval; do
9904         IFS="$lt_save_ifs"
9905         if test "X$pkg" = "X$p"; then
9906           enable_shared=yes
9907         fi
9908       done
9909       IFS="$lt_save_ifs"
9910       ;;
9911     esac
9912 else
9913   enable_shared=yes
9914 fi;
9915
9916 # Check whether --enable-static or --disable-static was given.
9917 if test "${enable_static+set}" = set; then
9918   enableval="$enable_static"
9919   p=${PACKAGE-default}
9920     case $enableval in
9921     yes) enable_static=yes ;;
9922     no) enable_static=no ;;
9923     *)
9924      enable_static=no
9925       # Look at the argument we got.  We use all the common list separators.
9926       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9927       for pkg in $enableval; do
9928         IFS="$lt_save_ifs"
9929         if test "X$pkg" = "X$p"; then
9930           enable_static=yes
9931         fi
9932       done
9933       IFS="$lt_save_ifs"
9934       ;;
9935     esac
9936 else
9937   enable_static=yes
9938 fi;
9939
9940 # Check whether --enable-fast-install or --disable-fast-install was given.
9941 if test "${enable_fast_install+set}" = set; then
9942   enableval="$enable_fast_install"
9943   p=${PACKAGE-default}
9944     case $enableval in
9945     yes) enable_fast_install=yes ;;
9946     no) enable_fast_install=no ;;
9947     *)
9948       enable_fast_install=no
9949       # Look at the argument we got.  We use all the common list separators.
9950       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9951       for pkg in $enableval; do
9952         IFS="$lt_save_ifs"
9953         if test "X$pkg" = "X$p"; then
9954           enable_fast_install=yes
9955         fi
9956       done
9957       IFS="$lt_save_ifs"
9958       ;;
9959     esac
9960 else
9961   enable_fast_install=yes
9962 fi;
9963
9964 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9965 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9966 if test "${lt_cv_path_SED+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   # Loop through the user's path and test for sed and gsed.
9970 # Then use that list of sed's as ones to test for truncation.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976   for lt_ac_prog in sed gsed; do
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9979         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9980       fi
9981     done
9982   done
9983 done
9984 lt_ac_max=0
9985 lt_ac_count=0
9986 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9987 # along with /bin/sed that truncates output.
9988 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9989   test ! -f $lt_ac_sed && break
9990   cat /dev/null > conftest.in
9991   lt_ac_count=0
9992   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9993   # Check for GNU sed and select it if it is found.
9994   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9995     lt_cv_path_SED=$lt_ac_sed
9996     break
9997   fi
9998   while true; do
9999     cat conftest.in conftest.in >conftest.tmp
10000     mv conftest.tmp conftest.in
10001     cp conftest.in conftest.nl
10002     echo >>conftest.nl
10003     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10004     cmp -s conftest.out conftest.nl || break
10005     # 10000 chars as input seems more than enough
10006     test $lt_ac_count -gt 10 && break
10007     lt_ac_count=`expr $lt_ac_count + 1`
10008     if test $lt_ac_count -gt $lt_ac_max; then
10009       lt_ac_max=$lt_ac_count
10010       lt_cv_path_SED=$lt_ac_sed
10011     fi
10012   done
10013 done
10014
10015 fi
10016
10017 SED=$lt_cv_path_SED
10018 echo "$as_me:$LINENO: result: $SED" >&5
10019 echo "${ECHO_T}$SED" >&6
10020
10021
10022 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10023 if test "${with_gnu_ld+set}" = set; then
10024   withval="$with_gnu_ld"
10025   test "$withval" = no || with_gnu_ld=yes
10026 else
10027   with_gnu_ld=no
10028 fi;
10029 ac_prog=ld
10030 if test "$GCC" = yes; then
10031   # Check if gcc -print-prog-name=ld gives a path.
10032   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10033 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10034   case $host in
10035   *-*-mingw*)
10036     # gcc leaves a trailing carriage return which upsets mingw
10037     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10038   *)
10039     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10040   esac
10041   case $ac_prog in
10042     # Accept absolute paths.
10043     [\\/]* | ?:[\\/]*)
10044       re_direlt='/[^/][^/]*/\.\./'
10045       # Canonicalize the pathname of ld
10046       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10047       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10048         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10049       done
10050       test -z "$LD" && LD="$ac_prog"
10051       ;;
10052   "")
10053     # If it fails, then pretend we aren't using GCC.
10054     ac_prog=ld
10055     ;;
10056   *)
10057     # If it is relative, then search for the first ld in PATH.
10058     with_gnu_ld=unknown
10059     ;;
10060   esac
10061 elif test "$with_gnu_ld" = yes; then
10062   echo "$as_me:$LINENO: checking for GNU ld" >&5
10063 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10064 else
10065   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10066 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10067 fi
10068 if test "${lt_cv_path_LD+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   if test -z "$LD"; then
10072   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10073   for ac_dir in $PATH; do
10074     IFS="$lt_save_ifs"
10075     test -z "$ac_dir" && ac_dir=.
10076     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10077       lt_cv_path_LD="$ac_dir/$ac_prog"
10078       # Check to see if the program is GNU ld.  I'd rather use --version,
10079       # but apparently some GNU ld's only accept -v.
10080       # Break only if it was the GNU/non-GNU ld that we prefer.
10081       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10082       *GNU* | *'with BFD'*)
10083         test "$with_gnu_ld" != no && break
10084         ;;
10085       *)
10086         test "$with_gnu_ld" != yes && break
10087         ;;
10088       esac
10089     fi
10090   done
10091   IFS="$lt_save_ifs"
10092 else
10093   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10094 fi
10095 fi
10096
10097 LD="$lt_cv_path_LD"
10098 if test -n "$LD"; then
10099   echo "$as_me:$LINENO: result: $LD" >&5
10100 echo "${ECHO_T}$LD" >&6
10101 else
10102   echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6
10104 fi
10105 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10106 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10107    { (exit 1); exit 1; }; }
10108 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10109 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10110 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10114 case `$LD -v 2>&1 </dev/null` in
10115 *GNU* | *'with BFD'*)
10116   lt_cv_prog_gnu_ld=yes
10117   ;;
10118 *)
10119   lt_cv_prog_gnu_ld=no
10120   ;;
10121 esac
10122 fi
10123 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10124 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10125 with_gnu_ld=$lt_cv_prog_gnu_ld
10126
10127
10128 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10129 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10130 if test "${lt_cv_ld_reload_flag+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   lt_cv_ld_reload_flag='-r'
10134 fi
10135 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10136 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10137 reload_flag=$lt_cv_ld_reload_flag
10138 case $reload_flag in
10139 "" | " "*) ;;
10140 *) reload_flag=" $reload_flag" ;;
10141 esac
10142 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10143 case $host_os in
10144   darwin*)
10145     if test "$GCC" = yes; then
10146       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10147     else
10148       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10149     fi
10150     ;;
10151 esac
10152
10153 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10154 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10155 if test "${lt_cv_deplibs_check_method+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   lt_cv_file_magic_cmd='$MAGIC_CMD'
10159 lt_cv_file_magic_test_file=
10160 lt_cv_deplibs_check_method='unknown'
10161 # Need to set the preceding variable on all platforms that support
10162 # interlibrary dependencies.
10163 # 'none' -- dependencies not supported.
10164 # `unknown' -- same as none, but documents that we really don't know.
10165 # 'pass_all' -- all dependencies passed with no checks.
10166 # 'test_compile' -- check by making test program.
10167 # 'file_magic [[regex]]' -- check by looking for files in library path
10168 # which responds to the $file_magic_cmd with a given extended regex.
10169 # If you have `file' or equivalent on your system and you're not sure
10170 # whether `pass_all' will *always* work, you probably want this one.
10171
10172 case $host_os in
10173 aix4* | aix5*)
10174   lt_cv_deplibs_check_method=pass_all
10175   ;;
10176
10177 beos*)
10178   lt_cv_deplibs_check_method=pass_all
10179   ;;
10180
10181 bsdi[45]*)
10182   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10183   lt_cv_file_magic_cmd='/usr/bin/file -L'
10184   lt_cv_file_magic_test_file=/shlib/libc.so
10185   ;;
10186
10187 cygwin*)
10188   # func_win32_libid is a shell function defined in ltmain.sh
10189   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10190   lt_cv_file_magic_cmd='func_win32_libid'
10191   ;;
10192
10193 mingw* | pw32*)
10194   # Base MSYS/MinGW do not provide the 'file' command needed by
10195   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10196   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10197   lt_cv_file_magic_cmd='$OBJDUMP -f'
10198   ;;
10199
10200 darwin* | rhapsody*)
10201   lt_cv_deplibs_check_method=pass_all
10202   ;;
10203
10204 freebsd* | kfreebsd*-gnu)
10205   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10206     case $host_cpu in
10207     i*86 )
10208       # Not sure whether the presence of OpenBSD here was a mistake.
10209       # Let's accept both of them until this is cleared up.
10210       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10211       lt_cv_file_magic_cmd=/usr/bin/file
10212       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10213       ;;
10214     esac
10215   else
10216     lt_cv_deplibs_check_method=pass_all
10217   fi
10218   ;;
10219
10220 gnu*)
10221   lt_cv_deplibs_check_method=pass_all
10222   ;;
10223
10224 hpux10.20* | hpux11*)
10225   lt_cv_file_magic_cmd=/usr/bin/file
10226   case "$host_cpu" in
10227   ia64*)
10228     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10229     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10230     ;;
10231   hppa*64*)
10232     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]'
10233     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10234     ;;
10235   *)
10236     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10237     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10238     ;;
10239   esac
10240   ;;
10241
10242 irix5* | irix6* | nonstopux*)
10243   case $LD in
10244   *-32|*"-32 ") libmagic=32-bit;;
10245   *-n32|*"-n32 ") libmagic=N32;;
10246   *-64|*"-64 ") libmagic=64-bit;;
10247   *) libmagic=never-match;;
10248   esac
10249   lt_cv_deplibs_check_method=pass_all
10250   ;;
10251
10252 # This must be Linux ELF.
10253 linux*)
10254   lt_cv_deplibs_check_method=pass_all
10255   ;;
10256
10257 netbsd*)
10258   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10259     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10260   else
10261     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10262   fi
10263   ;;
10264
10265 newos6*)
10266   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10267   lt_cv_file_magic_cmd=/usr/bin/file
10268   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10269   ;;
10270
10271 nto-qnx*)
10272   lt_cv_deplibs_check_method=unknown
10273   ;;
10274
10275 openbsd*)
10276   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10278   else
10279     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10280   fi
10281   ;;
10282
10283 osf3* | osf4* | osf5*)
10284   lt_cv_deplibs_check_method=pass_all
10285   ;;
10286
10287 sco3.2v5*)
10288   lt_cv_deplibs_check_method=pass_all
10289   ;;
10290
10291 solaris*)
10292   lt_cv_deplibs_check_method=pass_all
10293   ;;
10294
10295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10296   case $host_vendor in
10297   motorola)
10298     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]'
10299     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10300     ;;
10301   ncr)
10302     lt_cv_deplibs_check_method=pass_all
10303     ;;
10304   sequent)
10305     lt_cv_file_magic_cmd='/bin/file'
10306     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10307     ;;
10308   sni)
10309     lt_cv_file_magic_cmd='/bin/file'
10310     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10311     lt_cv_file_magic_test_file=/lib/libc.so
10312     ;;
10313   siemens)
10314     lt_cv_deplibs_check_method=pass_all
10315     ;;
10316   esac
10317   ;;
10318
10319 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10320   lt_cv_deplibs_check_method=pass_all
10321   ;;
10322 esac
10323
10324 fi
10325 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10326 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10327 file_magic_cmd=$lt_cv_file_magic_cmd
10328 deplibs_check_method=$lt_cv_deplibs_check_method
10329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10330
10331
10332
10333 # If no C compiler was specified, use CC.
10334 LTCC=${LTCC-"$CC"}
10335
10336 # Allow CC to be a program name with arguments.
10337 compiler=$CC
10338
10339 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10340 if test "${enable_libtool_lock+set}" = set; then
10341   enableval="$enable_libtool_lock"
10342
10343 fi;
10344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10345
10346 # Some flags need to be propagated to the compiler or linker for good
10347 # libtool support.
10348 case $host in
10349 ia64-*-hpux*)
10350   # Find out which ABI we are using.
10351   echo 'int i;' > conftest.$ac_ext
10352   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); }; then
10357     case `/usr/bin/file conftest.$ac_objext` in
10358     *ELF-32*)
10359       HPUX_IA64_MODE="32"
10360       ;;
10361     *ELF-64*)
10362       HPUX_IA64_MODE="64"
10363       ;;
10364     esac
10365   fi
10366   rm -rf conftest*
10367   ;;
10368 *-*-irix6*)
10369   # Find out which ABI we are using.
10370   echo '#line 10370 "configure"' > conftest.$ac_ext
10371   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372   (eval $ac_compile) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); }; then
10376    if test "$lt_cv_prog_gnu_ld" = yes; then
10377     case `/usr/bin/file conftest.$ac_objext` in
10378     *32-bit*)
10379       LD="${LD-ld} -melf32bsmip"
10380       ;;
10381     *N32*)
10382       LD="${LD-ld} -melf32bmipn32"
10383       ;;
10384     *64-bit*)
10385       LD="${LD-ld} -melf64bmip"
10386       ;;
10387     esac
10388    else
10389     case `/usr/bin/file conftest.$ac_objext` in
10390     *32-bit*)
10391       LD="${LD-ld} -32"
10392       ;;
10393     *N32*)
10394       LD="${LD-ld} -n32"
10395       ;;
10396     *64-bit*)
10397       LD="${LD-ld} -64"
10398       ;;
10399     esac
10400    fi
10401   fi
10402   rm -rf conftest*
10403   ;;
10404
10405 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10406   # Find out which ABI we are using.
10407   echo 'int i;' > conftest.$ac_ext
10408   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409   (eval $ac_compile) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; then
10413     case "`/usr/bin/file conftest.o`" in
10414     *32-bit*)
10415       case $host in
10416         x86_64-*linux*)
10417           LD="${LD-ld} -m elf_i386"
10418           ;;
10419         ppc64-*linux*|powerpc64-*linux*)
10420           LD="${LD-ld} -m elf32ppclinux"
10421           ;;
10422         s390x-*linux*)
10423           LD="${LD-ld} -m elf_s390"
10424           ;;
10425         sparc64-*linux*)
10426           LD="${LD-ld} -m elf32_sparc"
10427           ;;
10428       esac
10429       ;;
10430     *64-bit*)
10431       case $host in
10432         x86_64-*linux*)
10433           LD="${LD-ld} -m elf_x86_64"
10434           ;;
10435         ppc*-*linux*|powerpc*-*linux*)
10436           LD="${LD-ld} -m elf64ppc"
10437           ;;
10438         s390*-*linux*)
10439           LD="${LD-ld} -m elf64_s390"
10440           ;;
10441         sparc*-*linux*)
10442           LD="${LD-ld} -m elf64_sparc"
10443           ;;
10444       esac
10445       ;;
10446     esac
10447   fi
10448   rm -rf conftest*
10449   ;;
10450
10451 *-*-sco3.2v5*)
10452   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10453   SAVE_CFLAGS="$CFLAGS"
10454   CFLAGS="$CFLAGS -belf"
10455   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10456 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10457 if test "${lt_cv_cc_needs_belf+set}" = set; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   ac_ext=c
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466      cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472
10473 _ACEOF
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476   (eval $ac_link) 2>conftest.er1
10477   ac_status=$?
10478   grep -v '^ *+' conftest.er1 >conftest.err
10479   rm -f conftest.er1
10480   cat conftest.err >&5
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -z "$ac_c_werror_flag"
10484                          || test ! -s conftest.err'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; } &&
10490          { ac_try='test -s conftest$ac_exeext'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496   lt_cv_cc_needs_belf=yes
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 lt_cv_cc_needs_belf=no
10502 fi
10503 rm -f conftest.err conftest.$ac_objext \
10504       conftest$ac_exeext conftest.$ac_ext
10505      ac_ext=c
10506 ac_cpp='$CPP $CPPFLAGS'
10507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10510
10511 fi
10512 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10513 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10514   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10515     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10516     CFLAGS="$SAVE_CFLAGS"
10517   fi
10518   ;;
10519
10520 esac
10521
10522 need_locks="$enable_libtool_lock"
10523
10524
10525
10526
10527 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10528     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10529     (test "X$CXX" != "Xg++"))) ; then
10530   ac_ext=cc
10531 ac_cpp='$CXXCPP $CPPFLAGS'
10532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10535 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10536 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10537 if test -z "$CXXCPP"; then
10538   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541       # Double quotes because CXXCPP needs to be expanded
10542     for CXXCPP in "$CXX -E" "/lib/cpp"
10543     do
10544       ac_preproc_ok=false
10545 for ac_cxx_preproc_warn_flag in '' yes
10546 do
10547   # Use a header file that comes with gcc, so configuring glibc
10548   # with a fresh cross-compiler works.
10549   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10550   # <limits.h> exists even on freestanding compilers.
10551   # On the NeXT, cc -E runs the code through the compiler's parser,
10552   # not just through cpp. "Syntax error" is here to catch this case.
10553   cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 #ifdef __STDC__
10560 # include <limits.h>
10561 #else
10562 # include <assert.h>
10563 #endif
10564                      Syntax error
10565 _ACEOF
10566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10568   ac_status=$?
10569   grep -v '^ *+' conftest.er1 >conftest.err
10570   rm -f conftest.er1
10571   cat conftest.err >&5
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } >/dev/null; then
10574   if test -s conftest.err; then
10575     ac_cpp_err=$ac_cxx_preproc_warn_flag
10576     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10577   else
10578     ac_cpp_err=
10579   fi
10580 else
10581   ac_cpp_err=yes
10582 fi
10583 if test -z "$ac_cpp_err"; then
10584   :
10585 else
10586   echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589   # Broken: fails on valid input.
10590 continue
10591 fi
10592 rm -f conftest.err conftest.$ac_ext
10593
10594   # OK, works on sane cases.  Now check whether non-existent headers
10595   # can be detected and how.
10596   cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 #include <ac_nonexistent.h>
10603 _ACEOF
10604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } >/dev/null; then
10612   if test -s conftest.err; then
10613     ac_cpp_err=$ac_cxx_preproc_warn_flag
10614     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10615   else
10616     ac_cpp_err=
10617   fi
10618 else
10619   ac_cpp_err=yes
10620 fi
10621 if test -z "$ac_cpp_err"; then
10622   # Broken: success on invalid input.
10623 continue
10624 else
10625   echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628   # Passes both tests.
10629 ac_preproc_ok=:
10630 break
10631 fi
10632 rm -f conftest.err conftest.$ac_ext
10633
10634 done
10635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10636 rm -f conftest.err conftest.$ac_ext
10637 if $ac_preproc_ok; then
10638   break
10639 fi
10640
10641     done
10642     ac_cv_prog_CXXCPP=$CXXCPP
10643
10644 fi
10645   CXXCPP=$ac_cv_prog_CXXCPP
10646 else
10647   ac_cv_prog_CXXCPP=$CXXCPP
10648 fi
10649 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10650 echo "${ECHO_T}$CXXCPP" >&6
10651 ac_preproc_ok=false
10652 for ac_cxx_preproc_warn_flag in '' yes
10653 do
10654   # Use a header file that comes with gcc, so configuring glibc
10655   # with a fresh cross-compiler works.
10656   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657   # <limits.h> exists even on freestanding compilers.
10658   # On the NeXT, cc -E runs the code through the compiler's parser,
10659   # not just through cpp. "Syntax error" is here to catch this case.
10660   cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666 #ifdef __STDC__
10667 # include <limits.h>
10668 #else
10669 # include <assert.h>
10670 #endif
10671                      Syntax error
10672 _ACEOF
10673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } >/dev/null; then
10681   if test -s conftest.err; then
10682     ac_cpp_err=$ac_cxx_preproc_warn_flag
10683     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10684   else
10685     ac_cpp_err=
10686   fi
10687 else
10688   ac_cpp_err=yes
10689 fi
10690 if test -z "$ac_cpp_err"; then
10691   :
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696   # Broken: fails on valid input.
10697 continue
10698 fi
10699 rm -f conftest.err conftest.$ac_ext
10700
10701   # OK, works on sane cases.  Now check whether non-existent headers
10702   # can be detected and how.
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 #include <ac_nonexistent.h>
10710 _ACEOF
10711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } >/dev/null; then
10719   if test -s conftest.err; then
10720     ac_cpp_err=$ac_cxx_preproc_warn_flag
10721     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10722   else
10723     ac_cpp_err=
10724   fi
10725 else
10726   ac_cpp_err=yes
10727 fi
10728 if test -z "$ac_cpp_err"; then
10729   # Broken: success on invalid input.
10730 continue
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735   # Passes both tests.
10736 ac_preproc_ok=:
10737 break
10738 fi
10739 rm -f conftest.err conftest.$ac_ext
10740
10741 done
10742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10743 rm -f conftest.err conftest.$ac_ext
10744 if $ac_preproc_ok; then
10745   :
10746 else
10747   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10748 See \`config.log' for more details." >&5
10749 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10750 See \`config.log' for more details." >&2;}
10751    { (exit 1); exit 1; }; }
10752 fi
10753
10754 ac_ext=cc
10755 ac_cpp='$CXXCPP $CPPFLAGS'
10756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10759
10760 fi
10761
10762
10763 ac_ext=f
10764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10767 if test -n "$ac_tool_prefix"; then
10768   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10769   do
10770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10772 echo "$as_me:$LINENO: checking for $ac_word" >&5
10773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10774 if test "${ac_cv_prog_F77+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   if test -n "$F77"; then
10778   ac_cv_prog_F77="$F77" # Let the user override the test.
10779 else
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10782 do
10783   IFS=$as_save_IFS
10784   test -z "$as_dir" && as_dir=.
10785   for ac_exec_ext in '' $ac_executable_extensions; do
10786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10789     break 2
10790   fi
10791 done
10792 done
10793
10794 fi
10795 fi
10796 F77=$ac_cv_prog_F77
10797 if test -n "$F77"; then
10798   echo "$as_me:$LINENO: result: $F77" >&5
10799 echo "${ECHO_T}$F77" >&6
10800 else
10801   echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10803 fi
10804
10805     test -n "$F77" && break
10806   done
10807 fi
10808 if test -z "$F77"; then
10809   ac_ct_F77=$F77
10810   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10811 do
10812   # Extract the first word of "$ac_prog", so it can be a program name with args.
10813 set dummy $ac_prog; ac_word=$2
10814 echo "$as_me:$LINENO: checking for $ac_word" >&5
10815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10816 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819   if test -n "$ac_ct_F77"; then
10820   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10821 else
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825   IFS=$as_save_IFS
10826   test -z "$as_dir" && as_dir=.
10827   for ac_exec_ext in '' $ac_executable_extensions; do
10828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829     ac_cv_prog_ac_ct_F77="$ac_prog"
10830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10831     break 2
10832   fi
10833 done
10834 done
10835
10836 fi
10837 fi
10838 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10839 if test -n "$ac_ct_F77"; then
10840   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10841 echo "${ECHO_T}$ac_ct_F77" >&6
10842 else
10843   echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10845 fi
10846
10847   test -n "$ac_ct_F77" && break
10848 done
10849
10850   F77=$ac_ct_F77
10851 fi
10852
10853
10854 # Provide some information about the compiler.
10855 echo "$as_me:10855:" \
10856      "checking for Fortran 77 compiler version" >&5
10857 ac_compiler=`set X $ac_compile; echo $2`
10858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10859   (eval $ac_compiler --version </dev/null >&5) 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }
10863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10864   (eval $ac_compiler -v </dev/null >&5) 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); }
10868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10869   (eval $ac_compiler -V </dev/null >&5) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }
10873 rm -f a.out
10874
10875 # If we don't use `.F' as extension, the preprocessor is not run on the
10876 # input file.  (Note that this only needs to work for GNU compilers.)
10877 ac_save_ext=$ac_ext
10878 ac_ext=F
10879 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10880 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10881 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   cat >conftest.$ac_ext <<_ACEOF
10885       program main
10886 #ifndef __GNUC__
10887        choke me
10888 #endif
10889
10890       end
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894   (eval $ac_compile) 2>conftest.er1
10895   ac_status=$?
10896   grep -v '^ *+' conftest.er1 >conftest.err
10897   rm -f conftest.er1
10898   cat conftest.err >&5
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -z "$ac_f77_werror_flag"
10902                          || test ! -s conftest.err'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; } &&
10908          { ac_try='test -s conftest.$ac_objext'
10909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910   (eval $ac_try) 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; }; then
10914   ac_compiler_gnu=yes
10915 else
10916   echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919 ac_compiler_gnu=no
10920 fi
10921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10922 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10923
10924 fi
10925 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10926 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10927 ac_ext=$ac_save_ext
10928 ac_test_FFLAGS=${FFLAGS+set}
10929 ac_save_FFLAGS=$FFLAGS
10930 FFLAGS=
10931 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10932 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10933 if test "${ac_cv_prog_f77_g+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   FFLAGS=-g
10937 cat >conftest.$ac_ext <<_ACEOF
10938       program main
10939
10940       end
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944   (eval $ac_compile) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } &&
10951          { ac_try='test -z "$ac_f77_werror_flag"
10952                          || test ! -s conftest.err'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest.$ac_objext'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   ac_cv_prog_f77_g=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_prog_f77_g=no
10970 fi
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972
10973 fi
10974 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10975 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10976 if test "$ac_test_FFLAGS" = set; then
10977   FFLAGS=$ac_save_FFLAGS
10978 elif test $ac_cv_prog_f77_g = yes; then
10979   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10980     FFLAGS="-g -O2"
10981   else
10982     FFLAGS="-g"
10983   fi
10984 else
10985   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10986     FFLAGS="-O2"
10987   else
10988     FFLAGS=
10989   fi
10990 fi
10991
10992 G77=`test $ac_compiler_gnu = yes && echo yes`
10993 ac_ext=c
10994 ac_cpp='$CPP $CPPFLAGS'
10995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10998
10999
11000
11001 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11002
11003 # find the maximum length of command line arguments
11004 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11005 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11006 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009     i=0
11010   teststring="ABCD"
11011
11012   case $build_os in
11013   msdosdjgpp*)
11014     # On DJGPP, this test can blow up pretty badly due to problems in libc
11015     # (any single argument exceeding 2000 bytes causes a buffer overrun
11016     # during glob expansion).  Even if it were fixed, the result of this
11017     # check would be larger than it should be.
11018     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11019     ;;
11020
11021   gnu*)
11022     # Under GNU Hurd, this test is not required because there is
11023     # no limit to the length of command line arguments.
11024     # Libtool will interpret -1 as no limit whatsoever
11025     lt_cv_sys_max_cmd_len=-1;
11026     ;;
11027
11028   cygwin* | mingw*)
11029     # On Win9x/ME, this test blows up -- it succeeds, but takes
11030     # about 5 minutes as the teststring grows exponentially.
11031     # Worse, since 9x/ME are not pre-emptively multitasking,
11032     # you end up with a "frozen" computer, even though with patience
11033     # the test eventually succeeds (with a max line length of 256k).
11034     # Instead, let's just punt: use the minimum linelength reported by
11035     # all of the supported platforms: 8192 (on NT/2K/XP).
11036     lt_cv_sys_max_cmd_len=8192;
11037     ;;
11038
11039   amigaos*)
11040     # On AmigaOS with pdksh, this test takes hours, literally.
11041     # So we just punt and use a minimum line length of 8192.
11042     lt_cv_sys_max_cmd_len=8192;
11043     ;;
11044
11045   netbsd* | freebsd* | openbsd* | darwin* )
11046     # This has been around since 386BSD, at least.  Likely further.
11047     if test -x /sbin/sysctl; then
11048       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11049     elif test -x /usr/sbin/sysctl; then
11050       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11051     else
11052       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11053     fi
11054     # And add a safety zone
11055     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11056     ;;
11057
11058  *)
11059     # If test is not a shell built-in, we'll probably end up computing a
11060     # maximum length that is only half of the actual maximum length, but
11061     # we can't tell.
11062     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11063     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11064                = "XX$teststring") >/dev/null 2>&1 &&
11065             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11066             lt_cv_sys_max_cmd_len=$new_result &&
11067             test $i != 17 # 1/2 MB should be enough
11068     do
11069       i=`expr $i + 1`
11070       teststring=$teststring$teststring
11071     done
11072     teststring=
11073     # Add a significant safety factor because C++ compilers can tack on massive
11074     # amounts of additional arguments before passing them to the linker.
11075     # It appears as though 1/2 is a usable value.
11076     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11077     ;;
11078   esac
11079
11080 fi
11081
11082 if test -n $lt_cv_sys_max_cmd_len ; then
11083   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11084 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11085 else
11086   echo "$as_me:$LINENO: result: none" >&5
11087 echo "${ECHO_T}none" >&6
11088 fi
11089
11090
11091
11092
11093 # Check for command to grab the raw symbol name followed by C symbol from nm.
11094 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11095 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11096 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099
11100 # These are sane defaults that work on at least a few old systems.
11101 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11102
11103 # Character class describing NM global symbol codes.
11104 symcode='[BCDEGRST]'
11105
11106 # Regexp to match symbols that can be accessed directly from C.
11107 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11108
11109 # Transform the above into a raw symbol and a C symbol.
11110 symxfrm='\1 \2\3 \3'
11111
11112 # Transform an extracted symbol line into a proper C declaration
11113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11114
11115 # Transform an extracted symbol line into symbol name and symbol address
11116 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'"
11117
11118 # Define system-specific variables.
11119 case $host_os in
11120 aix*)
11121   symcode='[BCDT]'
11122   ;;
11123 cygwin* | mingw* | pw32*)
11124   symcode='[ABCDGISTW]'
11125   ;;
11126 hpux*) # Its linker distinguishes data from code symbols
11127   if test "$host_cpu" = ia64; then
11128     symcode='[ABCDEGRST]'
11129   fi
11130   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11131   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'"
11132   ;;
11133 linux*)
11134   if test "$host_cpu" = ia64; then
11135     symcode='[ABCDGIRSTW]'
11136     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11137     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'"
11138   fi
11139   ;;
11140 irix* | nonstopux*)
11141   symcode='[BCDEGRST]'
11142   ;;
11143 osf*)
11144   symcode='[BCDEGQRST]'
11145   ;;
11146 solaris* | sysv5*)
11147   symcode='[BDRT]'
11148   ;;
11149 sysv4)
11150   symcode='[DFNSTU]'
11151   ;;
11152 esac
11153
11154 # Handle CRLF in mingw tool chain
11155 opt_cr=
11156 case $build_os in
11157 mingw*)
11158   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11159   ;;
11160 esac
11161
11162 # If we're using GNU nm, then use its standard symbol codes.
11163 case `$NM -V 2>&1` in
11164 *GNU* | *'with BFD'*)
11165   symcode='[ABCDGIRSTW]' ;;
11166 esac
11167
11168 # Try without a prefix undercore, then with it.
11169 for ac_symprfx in "" "_"; do
11170
11171   # Write the raw and C identifiers.
11172   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11173
11174   # Check to see that the pipe works correctly.
11175   pipe_works=no
11176
11177   rm -f conftest*
11178   cat > conftest.$ac_ext <<EOF
11179 #ifdef __cplusplus
11180 extern "C" {
11181 #endif
11182 char nm_test_var;
11183 void nm_test_func(){}
11184 #ifdef __cplusplus
11185 }
11186 #endif
11187 int main(){nm_test_var='a';nm_test_func();return(0);}
11188 EOF
11189
11190   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191   (eval $ac_compile) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; then
11195     # Now try to grab the symbols.
11196     nlist=conftest.nm
11197     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11198   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } && test -s "$nlist"; then
11202       # Try sorting and uniquifying the output.
11203       if sort "$nlist" | uniq > "$nlist"T; then
11204         mv -f "$nlist"T "$nlist"
11205       else
11206         rm -f "$nlist"T
11207       fi
11208
11209       # Make sure that we snagged all the symbols we need.
11210       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11211         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11212           cat <<EOF > conftest.$ac_ext
11213 #ifdef __cplusplus
11214 extern "C" {
11215 #endif
11216
11217 EOF
11218           # Now generate the symbol file.
11219           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11220
11221           cat <<EOF >> conftest.$ac_ext
11222 #if defined (__STDC__) && __STDC__
11223 # define lt_ptr_t void *
11224 #else
11225 # define lt_ptr_t char *
11226 # define const
11227 #endif
11228
11229 /* The mapping between symbol names and symbols. */
11230 const struct {
11231   const char *name;
11232   lt_ptr_t address;
11233 }
11234 lt_preloaded_symbols[] =
11235 {
11236 EOF
11237           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11238           cat <<\EOF >> conftest.$ac_ext
11239   {0, (lt_ptr_t) 0}
11240 };
11241
11242 #ifdef __cplusplus
11243 }
11244 #endif
11245 EOF
11246           # Now try linking the two files.
11247           mv conftest.$ac_objext conftstm.$ac_objext
11248           lt_save_LIBS="$LIBS"
11249           lt_save_CFLAGS="$CFLAGS"
11250           LIBS="conftstm.$ac_objext"
11251           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11252           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253   (eval $ac_link) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11257             pipe_works=yes
11258           fi
11259           LIBS="$lt_save_LIBS"
11260           CFLAGS="$lt_save_CFLAGS"
11261         else
11262           echo "cannot find nm_test_func in $nlist" >&5
11263         fi
11264       else
11265         echo "cannot find nm_test_var in $nlist" >&5
11266       fi
11267     else
11268       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11269     fi
11270   else
11271     echo "$progname: failed program was:" >&5
11272     cat conftest.$ac_ext >&5
11273   fi
11274   rm -f conftest* conftst*
11275
11276   # Do not use the global_symbol_pipe unless it works.
11277   if test "$pipe_works" = yes; then
11278     break
11279   else
11280     lt_cv_sys_global_symbol_pipe=
11281   fi
11282 done
11283
11284 fi
11285
11286 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11287   lt_cv_sys_global_symbol_to_cdecl=
11288 fi
11289 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11290   echo "$as_me:$LINENO: result: failed" >&5
11291 echo "${ECHO_T}failed" >&6
11292 else
11293   echo "$as_me:$LINENO: result: ok" >&5
11294 echo "${ECHO_T}ok" >&6
11295 fi
11296
11297 echo "$as_me:$LINENO: checking for objdir" >&5
11298 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11299 if test "${lt_cv_objdir+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   rm -f .libs 2>/dev/null
11303 mkdir .libs 2>/dev/null
11304 if test -d .libs; then
11305   lt_cv_objdir=.libs
11306 else
11307   # MS-DOS does not allow filenames that begin with a dot.
11308   lt_cv_objdir=_libs
11309 fi
11310 rmdir .libs 2>/dev/null
11311 fi
11312 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11313 echo "${ECHO_T}$lt_cv_objdir" >&6
11314 objdir=$lt_cv_objdir
11315
11316
11317
11318
11319
11320 case $host_os in
11321 aix3*)
11322   # AIX sometimes has problems with the GCC collect2 program.  For some
11323   # reason, if we set the COLLECT_NAMES environment variable, the problems
11324   # vanish in a puff of smoke.
11325   if test "X${COLLECT_NAMES+set}" != Xset; then
11326     COLLECT_NAMES=
11327     export COLLECT_NAMES
11328   fi
11329   ;;
11330 esac
11331
11332 # Sed substitution that helps us do robust quoting.  It backslashifies
11333 # metacharacters that are still active within double-quoted strings.
11334 Xsed='sed -e s/^X//'
11335 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11336
11337 # Same as above, but do not quote variable references.
11338 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11339
11340 # Sed substitution to delay expansion of an escaped shell variable in a
11341 # double_quote_subst'ed string.
11342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11343
11344 # Sed substitution to avoid accidental globbing in evaled expressions
11345 no_glob_subst='s/\*/\\\*/g'
11346
11347 # Constants:
11348 rm="rm -f"
11349
11350 # Global variables:
11351 default_ofile=mklib
11352 can_build_shared=yes
11353
11354 # All known linkers require a `.a' archive for static linking (except M$VC,
11355 # which needs '.lib').
11356 libext=a
11357 ltmain="$ac_aux_dir/ltmain.sh"
11358 ofile="$default_ofile"
11359 with_gnu_ld="$lt_cv_prog_gnu_ld"
11360
11361 if test -n "$ac_tool_prefix"; then
11362   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11363 set dummy ${ac_tool_prefix}ar; ac_word=$2
11364 echo "$as_me:$LINENO: checking for $ac_word" >&5
11365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11366 if test "${ac_cv_prog_AR+set}" = set; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369   if test -n "$AR"; then
11370   ac_cv_prog_AR="$AR" # Let the user override the test.
11371 else
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11374 do
11375   IFS=$as_save_IFS
11376   test -z "$as_dir" && as_dir=.
11377   for ac_exec_ext in '' $ac_executable_extensions; do
11378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11379     ac_cv_prog_AR="${ac_tool_prefix}ar"
11380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11381     break 2
11382   fi
11383 done
11384 done
11385
11386 fi
11387 fi
11388 AR=$ac_cv_prog_AR
11389 if test -n "$AR"; then
11390   echo "$as_me:$LINENO: result: $AR" >&5
11391 echo "${ECHO_T}$AR" >&6
11392 else
11393   echo "$as_me:$LINENO: result: no" >&5
11394 echo "${ECHO_T}no" >&6
11395 fi
11396
11397 fi
11398 if test -z "$ac_cv_prog_AR"; then
11399   ac_ct_AR=$AR
11400   # Extract the first word of "ar", so it can be a program name with args.
11401 set dummy ar; ac_word=$2
11402 echo "$as_me:$LINENO: checking for $ac_word" >&5
11403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11404 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11405   echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407   if test -n "$ac_ct_AR"; then
11408   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11409 else
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11412 do
11413   IFS=$as_save_IFS
11414   test -z "$as_dir" && as_dir=.
11415   for ac_exec_ext in '' $ac_executable_extensions; do
11416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417     ac_cv_prog_ac_ct_AR="ar"
11418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11419     break 2
11420   fi
11421 done
11422 done
11423
11424   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11425 fi
11426 fi
11427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11428 if test -n "$ac_ct_AR"; then
11429   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11430 echo "${ECHO_T}$ac_ct_AR" >&6
11431 else
11432   echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6
11434 fi
11435
11436   AR=$ac_ct_AR
11437 else
11438   AR="$ac_cv_prog_AR"
11439 fi
11440
11441 if test -n "$ac_tool_prefix"; then
11442   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11444 echo "$as_me:$LINENO: checking for $ac_word" >&5
11445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11446 if test "${ac_cv_prog_RANLIB+set}" = set; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449   if test -n "$RANLIB"; then
11450   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455   IFS=$as_save_IFS
11456   test -z "$as_dir" && as_dir=.
11457   for ac_exec_ext in '' $ac_executable_extensions; do
11458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461     break 2
11462   fi
11463 done
11464 done
11465
11466 fi
11467 fi
11468 RANLIB=$ac_cv_prog_RANLIB
11469 if test -n "$RANLIB"; then
11470   echo "$as_me:$LINENO: result: $RANLIB" >&5
11471 echo "${ECHO_T}$RANLIB" >&6
11472 else
11473   echo "$as_me:$LINENO: result: no" >&5
11474 echo "${ECHO_T}no" >&6
11475 fi
11476
11477 fi
11478 if test -z "$ac_cv_prog_RANLIB"; then
11479   ac_ct_RANLIB=$RANLIB
11480   # Extract the first word of "ranlib", so it can be a program name with args.
11481 set dummy ranlib; ac_word=$2
11482 echo "$as_me:$LINENO: checking for $ac_word" >&5
11483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487   if test -n "$ac_ct_RANLIB"; then
11488   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11489 else
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11492 do
11493   IFS=$as_save_IFS
11494   test -z "$as_dir" && as_dir=.
11495   for ac_exec_ext in '' $ac_executable_extensions; do
11496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497     ac_cv_prog_ac_ct_RANLIB="ranlib"
11498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11499     break 2
11500   fi
11501 done
11502 done
11503
11504   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11505 fi
11506 fi
11507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11508 if test -n "$ac_ct_RANLIB"; then
11509   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11510 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11511 else
11512   echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6
11514 fi
11515
11516   RANLIB=$ac_ct_RANLIB
11517 else
11518   RANLIB="$ac_cv_prog_RANLIB"
11519 fi
11520
11521 if test -n "$ac_tool_prefix"; then
11522   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11523 set dummy ${ac_tool_prefix}strip; ac_word=$2
11524 echo "$as_me:$LINENO: checking for $ac_word" >&5
11525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11526 if test "${ac_cv_prog_STRIP+set}" = set; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   if test -n "$STRIP"; then
11530   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11531 else
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11534 do
11535   IFS=$as_save_IFS
11536   test -z "$as_dir" && as_dir=.
11537   for ac_exec_ext in '' $ac_executable_extensions; do
11538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11541     break 2
11542   fi
11543 done
11544 done
11545
11546 fi
11547 fi
11548 STRIP=$ac_cv_prog_STRIP
11549 if test -n "$STRIP"; then
11550   echo "$as_me:$LINENO: result: $STRIP" >&5
11551 echo "${ECHO_T}$STRIP" >&6
11552 else
11553   echo "$as_me:$LINENO: result: no" >&5
11554 echo "${ECHO_T}no" >&6
11555 fi
11556
11557 fi
11558 if test -z "$ac_cv_prog_STRIP"; then
11559   ac_ct_STRIP=$STRIP
11560   # Extract the first word of "strip", so it can be a program name with args.
11561 set dummy strip; ac_word=$2
11562 echo "$as_me:$LINENO: checking for $ac_word" >&5
11563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11564 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   if test -n "$ac_ct_STRIP"; then
11568   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11569 else
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 do
11573   IFS=$as_save_IFS
11574   test -z "$as_dir" && as_dir=.
11575   for ac_exec_ext in '' $ac_executable_extensions; do
11576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11577     ac_cv_prog_ac_ct_STRIP="strip"
11578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579     break 2
11580   fi
11581 done
11582 done
11583
11584   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11585 fi
11586 fi
11587 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11588 if test -n "$ac_ct_STRIP"; then
11589   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11590 echo "${ECHO_T}$ac_ct_STRIP" >&6
11591 else
11592   echo "$as_me:$LINENO: result: no" >&5
11593 echo "${ECHO_T}no" >&6
11594 fi
11595
11596   STRIP=$ac_ct_STRIP
11597 else
11598   STRIP="$ac_cv_prog_STRIP"
11599 fi
11600
11601
11602 old_CC="$CC"
11603 old_CFLAGS="$CFLAGS"
11604
11605 # Set sane defaults for various variables
11606 test -z "$AR" && AR=ar
11607 test -z "$AR_FLAGS" && AR_FLAGS=cru
11608 test -z "$AS" && AS=as
11609 test -z "$CC" && CC=cc
11610 test -z "$LTCC" && LTCC=$CC
11611 test -z "$DLLTOOL" && DLLTOOL=dlltool
11612 test -z "$LD" && LD=ld
11613 test -z "$LN_S" && LN_S="ln -s"
11614 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11615 test -z "$NM" && NM=nm
11616 test -z "$SED" && SED=sed
11617 test -z "$OBJDUMP" && OBJDUMP=objdump
11618 test -z "$RANLIB" && RANLIB=:
11619 test -z "$STRIP" && STRIP=:
11620 test -z "$ac_objext" && ac_objext=o
11621
11622 # Determine commands to create old-style static archives.
11623 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11624 old_postinstall_cmds='chmod 644 $oldlib'
11625 old_postuninstall_cmds=
11626
11627 if test -n "$RANLIB"; then
11628   case $host_os in
11629   openbsd*)
11630     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11631     ;;
11632   *)
11633     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11634     ;;
11635   esac
11636   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11637 fi
11638
11639 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11640
11641 # Only perform the check for file, if the check method requires it
11642 case $deplibs_check_method in
11643 file_magic*)
11644   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11645     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11646 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11647 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   case $MAGIC_CMD in
11651 [\\/*] |  ?:[\\/]*)
11652   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11653   ;;
11654 *)
11655   lt_save_MAGIC_CMD="$MAGIC_CMD"
11656   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11657   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11658   for ac_dir in $ac_dummy; do
11659     IFS="$lt_save_ifs"
11660     test -z "$ac_dir" && ac_dir=.
11661     if test -f $ac_dir/${ac_tool_prefix}file; then
11662       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11663       if test -n "$file_magic_test_file"; then
11664         case $deplibs_check_method in
11665         "file_magic "*)
11666           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11667           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11668           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11669             $EGREP "$file_magic_regex" > /dev/null; then
11670             :
11671           else
11672             cat <<EOF 1>&2
11673
11674 *** Warning: the command libtool uses to detect shared libraries,
11675 *** $file_magic_cmd, produces output that libtool cannot recognize.
11676 *** The result is that libtool may fail to recognize shared libraries
11677 *** as such.  This will affect the creation of libtool libraries that
11678 *** depend on shared libraries, but programs linked with such libtool
11679 *** libraries will work regardless of this problem.  Nevertheless, you
11680 *** may want to report the problem to your system manager and/or to
11681 *** bug-libtool@gnu.org
11682
11683 EOF
11684           fi ;;
11685         esac
11686       fi
11687       break
11688     fi
11689   done
11690   IFS="$lt_save_ifs"
11691   MAGIC_CMD="$lt_save_MAGIC_CMD"
11692   ;;
11693 esac
11694 fi
11695
11696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11697 if test -n "$MAGIC_CMD"; then
11698   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11699 echo "${ECHO_T}$MAGIC_CMD" >&6
11700 else
11701   echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11703 fi
11704
11705 if test -z "$lt_cv_path_MAGIC_CMD"; then
11706   if test -n "$ac_tool_prefix"; then
11707     echo "$as_me:$LINENO: checking for file" >&5
11708 echo $ECHO_N "checking for file... $ECHO_C" >&6
11709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   case $MAGIC_CMD in
11713 [\\/*] |  ?:[\\/]*)
11714   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11715   ;;
11716 *)
11717   lt_save_MAGIC_CMD="$MAGIC_CMD"
11718   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11719   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11720   for ac_dir in $ac_dummy; do
11721     IFS="$lt_save_ifs"
11722     test -z "$ac_dir" && ac_dir=.
11723     if test -f $ac_dir/file; then
11724       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11725       if test -n "$file_magic_test_file"; then
11726         case $deplibs_check_method in
11727         "file_magic "*)
11728           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11729           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11730           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11731             $EGREP "$file_magic_regex" > /dev/null; then
11732             :
11733           else
11734             cat <<EOF 1>&2
11735
11736 *** Warning: the command libtool uses to detect shared libraries,
11737 *** $file_magic_cmd, produces output that libtool cannot recognize.
11738 *** The result is that libtool may fail to recognize shared libraries
11739 *** as such.  This will affect the creation of libtool libraries that
11740 *** depend on shared libraries, but programs linked with such libtool
11741 *** libraries will work regardless of this problem.  Nevertheless, you
11742 *** may want to report the problem to your system manager and/or to
11743 *** bug-libtool@gnu.org
11744
11745 EOF
11746           fi ;;
11747         esac
11748       fi
11749       break
11750     fi
11751   done
11752   IFS="$lt_save_ifs"
11753   MAGIC_CMD="$lt_save_MAGIC_CMD"
11754   ;;
11755 esac
11756 fi
11757
11758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11759 if test -n "$MAGIC_CMD"; then
11760   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11761 echo "${ECHO_T}$MAGIC_CMD" >&6
11762 else
11763   echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11765 fi
11766
11767   else
11768     MAGIC_CMD=:
11769   fi
11770 fi
11771
11772   fi
11773   ;;
11774 esac
11775
11776 enable_dlopen=yes
11777 enable_win32_dll=no
11778
11779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11780 if test "${enable_libtool_lock+set}" = set; then
11781   enableval="$enable_libtool_lock"
11782
11783 fi;
11784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11785
11786
11787 # Check whether --with-pic or --without-pic was given.
11788 if test "${with_pic+set}" = set; then
11789   withval="$with_pic"
11790   pic_mode="$withval"
11791 else
11792   pic_mode=default
11793 fi;
11794 test -z "$pic_mode" && pic_mode=default
11795
11796 # Use C for the default configuration in the libtool script
11797 tagname=
11798 lt_save_CC="$CC"
11799 ac_ext=c
11800 ac_cpp='$CPP $CPPFLAGS'
11801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
11805
11806 # Source file extension for C test sources.
11807 ac_ext=c
11808
11809 # Object file extension for compiled C test sources.
11810 objext=o
11811 objext=$objext
11812
11813 # Code to be used in simple compile tests
11814 lt_simple_compile_test_code="int some_variable = 0;\n"
11815
11816 # Code to be used in simple link tests
11817 lt_simple_link_test_code='int main(){return(0);}\n'
11818
11819
11820 # If no C compiler was specified, use CC.
11821 LTCC=${LTCC-"$CC"}
11822
11823 # Allow CC to be a program name with arguments.
11824 compiler=$CC
11825
11826
11827 #
11828 # Check for any special shared library compilation flags.
11829 #
11830 lt_prog_cc_shlib=
11831 if test "$GCC" = no; then
11832   case $host_os in
11833   sco3.2v5*)
11834     lt_prog_cc_shlib='-belf'
11835     ;;
11836   esac
11837 fi
11838 if test -n "$lt_prog_cc_shlib"; then
11839   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11840 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11841   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11842   else
11843     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11844 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11845     lt_cv_prog_cc_can_build_shared=no
11846   fi
11847 fi
11848
11849
11850 #
11851 # Check to make sure the static flag actually works.
11852 #
11853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11854 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11855 if test "${lt_prog_compiler_static_works+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   lt_prog_compiler_static_works=no
11859    save_LDFLAGS="$LDFLAGS"
11860    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11861    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11862    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11863      # The compiler can only warn and ignore the option if not recognized
11864      # So say no if there are warnings
11865      if test -s conftest.err; then
11866        # Append any errors to the config.log.
11867        cat conftest.err 1>&5
11868      else
11869        lt_prog_compiler_static_works=yes
11870      fi
11871    fi
11872    $rm conftest*
11873    LDFLAGS="$save_LDFLAGS"
11874
11875 fi
11876 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11877 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11878
11879 if test x"$lt_prog_compiler_static_works" = xyes; then
11880     :
11881 else
11882     lt_prog_compiler_static=
11883 fi
11884
11885
11886
11887
11888 lt_prog_compiler_no_builtin_flag=
11889
11890 if test "$GCC" = yes; then
11891   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11892
11893
11894 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11895 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   lt_cv_prog_compiler_rtti_exceptions=no
11900   ac_outfile=conftest.$ac_objext
11901    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11902    lt_compiler_flag="-fno-rtti -fno-exceptions"
11903    # Insert the option either (1) after the last *FLAGS variable, or
11904    # (2) before a word containing "conftest.", or (3) at the end.
11905    # Note that $ac_compile itself does not contain backslashes and begins
11906    # with a dollar sign (not a hyphen), so the echo should work correctly.
11907    # The option is referenced via a variable to avoid confusing sed.
11908    lt_compile=`echo "$ac_compile" | $SED \
11909    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11911    -e 's:$: $lt_compiler_flag:'`
11912    (eval echo "\"\$as_me:11912: $lt_compile\"" >&5)
11913    (eval "$lt_compile" 2>conftest.err)
11914    ac_status=$?
11915    cat conftest.err >&5
11916    echo "$as_me:11916: \$? = $ac_status" >&5
11917    if (exit $ac_status) && test -s "$ac_outfile"; then
11918      # The compiler can only warn and ignore the option if not recognized
11919      # So say no if there are warnings
11920      if test ! -s conftest.err; then
11921        lt_cv_prog_compiler_rtti_exceptions=yes
11922      fi
11923    fi
11924    $rm conftest*
11925
11926 fi
11927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11928 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11929
11930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11931     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11932 else
11933     :
11934 fi
11935
11936 fi
11937
11938 lt_prog_compiler_wl=
11939 lt_prog_compiler_pic=
11940 lt_prog_compiler_static=
11941
11942 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11943 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11944
11945   if test "$GCC" = yes; then
11946     lt_prog_compiler_wl='-Wl,'
11947     lt_prog_compiler_static='-static'
11948
11949     case $host_os in
11950       aix*)
11951       # All AIX code is PIC.
11952       if test "$host_cpu" = ia64; then
11953         # AIX 5 now supports IA64 processor
11954         lt_prog_compiler_static='-Bstatic'
11955       fi
11956       ;;
11957
11958     amigaos*)
11959       # FIXME: we need at least 68020 code to build shared libraries, but
11960       # adding the `-m68020' flag to GCC prevents building anything better,
11961       # like `-m68040'.
11962       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11963       ;;
11964
11965     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11966       # PIC is the default for these OSes.
11967       ;;
11968
11969     mingw* | pw32* | os2*)
11970       # This hack is so that the source file can tell whether it is being
11971       # built for inclusion in a dll (and should export symbols for example).
11972       lt_prog_compiler_pic='-DDLL_EXPORT'
11973       ;;
11974
11975     darwin* | rhapsody*)
11976       # PIC is the default on this platform
11977       # Common symbols not allowed in MH_DYLIB files
11978       lt_prog_compiler_pic='-fno-common'
11979       ;;
11980
11981     msdosdjgpp*)
11982       # Just because we use GCC doesn't mean we suddenly get shared libraries
11983       # on systems that don't support them.
11984       lt_prog_compiler_can_build_shared=no
11985       enable_shared=no
11986       ;;
11987
11988     sysv4*MP*)
11989       if test -d /usr/nec; then
11990         lt_prog_compiler_pic=-Kconform_pic
11991       fi
11992       ;;
11993
11994     hpux*)
11995       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11996       # not for PA HP-UX.
11997       case "$host_cpu" in
11998       hppa*64*|ia64*)
11999         # +Z the default
12000         ;;
12001       *)
12002         lt_prog_compiler_pic='-fPIC'
12003         ;;
12004       esac
12005       ;;
12006
12007     *)
12008       lt_prog_compiler_pic='-fPIC'
12009       ;;
12010     esac
12011   else
12012     # PORTME Check for flag to pass linker flags through the system compiler.
12013     case $host_os in
12014     aix*)
12015       lt_prog_compiler_wl='-Wl,'
12016       if test "$host_cpu" = ia64; then
12017         # AIX 5 now supports IA64 processor
12018         lt_prog_compiler_static='-Bstatic'
12019       else
12020         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12021       fi
12022       ;;
12023       darwin*)
12024         # PIC is the default on this platform
12025         # Common symbols not allowed in MH_DYLIB files
12026        case "$cc_basename" in
12027          xlc*)
12028          lt_prog_compiler_pic='-qnocommon'
12029          lt_prog_compiler_wl='-Wl,'
12030          ;;
12031        esac
12032        ;;
12033
12034     mingw* | pw32* | os2*)
12035       # This hack is so that the source file can tell whether it is being
12036       # built for inclusion in a dll (and should export symbols for example).
12037       lt_prog_compiler_pic='-DDLL_EXPORT'
12038       ;;
12039
12040     hpux9* | hpux10* | hpux11*)
12041       lt_prog_compiler_wl='-Wl,'
12042       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12043       # not for PA HP-UX.
12044       case "$host_cpu" in
12045       hppa*64*|ia64*)
12046         # +Z the default
12047         ;;
12048       *)
12049         lt_prog_compiler_pic='+Z'
12050         ;;
12051       esac
12052       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12053       lt_prog_compiler_static='${wl}-a ${wl}archive'
12054       ;;
12055
12056     irix5* | irix6* | nonstopux*)
12057       lt_prog_compiler_wl='-Wl,'
12058       # PIC (with -KPIC) is the default.
12059       lt_prog_compiler_static='-non_shared'
12060       ;;
12061
12062     newsos6)
12063       lt_prog_compiler_pic='-KPIC'
12064       lt_prog_compiler_static='-Bstatic'
12065       ;;
12066
12067     linux*)
12068       case $CC in
12069       icc* | ecc*)
12070         lt_prog_compiler_wl='-Wl,'
12071         lt_prog_compiler_pic='-KPIC'
12072         lt_prog_compiler_static='-static'
12073         ;;
12074       ccc*)
12075         lt_prog_compiler_wl='-Wl,'
12076         # All Alpha code is PIC.
12077         lt_prog_compiler_static='-non_shared'
12078         ;;
12079       esac
12080       ;;
12081
12082     osf3* | osf4* | osf5*)
12083       lt_prog_compiler_wl='-Wl,'
12084       # All OSF/1 code is PIC.
12085       lt_prog_compiler_static='-non_shared'
12086       ;;
12087
12088     sco3.2v5*)
12089       lt_prog_compiler_pic='-Kpic'
12090       lt_prog_compiler_static='-dn'
12091       ;;
12092
12093     solaris*)
12094       lt_prog_compiler_wl='-Wl,'
12095       lt_prog_compiler_pic='-KPIC'
12096       lt_prog_compiler_static='-Bstatic'
12097       ;;
12098
12099     sunos4*)
12100       lt_prog_compiler_wl='-Qoption ld '
12101       lt_prog_compiler_pic='-PIC'
12102       lt_prog_compiler_static='-Bstatic'
12103       ;;
12104
12105     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12106       lt_prog_compiler_wl='-Wl,'
12107       lt_prog_compiler_pic='-KPIC'
12108       lt_prog_compiler_static='-Bstatic'
12109       ;;
12110
12111     sysv4*MP*)
12112       if test -d /usr/nec ;then
12113         lt_prog_compiler_pic='-Kconform_pic'
12114         lt_prog_compiler_static='-Bstatic'
12115       fi
12116       ;;
12117
12118     uts4*)
12119       lt_prog_compiler_pic='-pic'
12120       lt_prog_compiler_static='-Bstatic'
12121       ;;
12122
12123     *)
12124       lt_prog_compiler_can_build_shared=no
12125       ;;
12126     esac
12127   fi
12128
12129 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12130 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12131
12132 #
12133 # Check to make sure the PIC flag actually works.
12134 #
12135 if test -n "$lt_prog_compiler_pic"; then
12136
12137 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12138 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12139 if test "${lt_prog_compiler_pic_works+set}" = set; then
12140   echo $ECHO_N "(cached) $ECHO_C" >&6
12141 else
12142   lt_prog_compiler_pic_works=no
12143   ac_outfile=conftest.$ac_objext
12144    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12145    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12146    # Insert the option either (1) after the last *FLAGS variable, or
12147    # (2) before a word containing "conftest.", or (3) at the end.
12148    # Note that $ac_compile itself does not contain backslashes and begins
12149    # with a dollar sign (not a hyphen), so the echo should work correctly.
12150    # The option is referenced via a variable to avoid confusing sed.
12151    lt_compile=`echo "$ac_compile" | $SED \
12152    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12154    -e 's:$: $lt_compiler_flag:'`
12155    (eval echo "\"\$as_me:12155: $lt_compile\"" >&5)
12156    (eval "$lt_compile" 2>conftest.err)
12157    ac_status=$?
12158    cat conftest.err >&5
12159    echo "$as_me:12159: \$? = $ac_status" >&5
12160    if (exit $ac_status) && test -s "$ac_outfile"; then
12161      # The compiler can only warn and ignore the option if not recognized
12162      # So say no if there are warnings
12163      if test ! -s conftest.err; then
12164        lt_prog_compiler_pic_works=yes
12165      fi
12166    fi
12167    $rm conftest*
12168
12169 fi
12170 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12171 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12172
12173 if test x"$lt_prog_compiler_pic_works" = xyes; then
12174     case $lt_prog_compiler_pic in
12175      "" | " "*) ;;
12176      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12177      esac
12178 else
12179     lt_prog_compiler_pic=
12180      lt_prog_compiler_can_build_shared=no
12181 fi
12182
12183 fi
12184 case "$host_os" in
12185   # For platforms which do not support PIC, -DPIC is meaningless:
12186   *djgpp*)
12187     lt_prog_compiler_pic=
12188     ;;
12189   *)
12190     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12191     ;;
12192 esac
12193
12194 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12195 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12196 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   lt_cv_prog_compiler_c_o=no
12200    $rm -r conftest 2>/dev/null
12201    mkdir conftest
12202    cd conftest
12203    mkdir out
12204    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12205
12206    lt_compiler_flag="-o out/conftest2.$ac_objext"
12207    # Insert the option either (1) after the last *FLAGS variable, or
12208    # (2) before a word containing "conftest.", or (3) at the end.
12209    # Note that $ac_compile itself does not contain backslashes and begins
12210    # with a dollar sign (not a hyphen), so the echo should work correctly.
12211    lt_compile=`echo "$ac_compile" | $SED \
12212    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12214    -e 's:$: $lt_compiler_flag:'`
12215    (eval echo "\"\$as_me:12215: $lt_compile\"" >&5)
12216    (eval "$lt_compile" 2>out/conftest.err)
12217    ac_status=$?
12218    cat out/conftest.err >&5
12219    echo "$as_me:12219: \$? = $ac_status" >&5
12220    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12221    then
12222      # The compiler can only warn and ignore the option if not recognized
12223      # So say no if there are warnings
12224      if test ! -s out/conftest.err; then
12225        lt_cv_prog_compiler_c_o=yes
12226      fi
12227    fi
12228    chmod u+w .
12229    $rm conftest*
12230    # SGI C++ compiler will create directory out/ii_files/ for
12231    # template instantiation
12232    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12233    $rm out/* && rmdir out
12234    cd ..
12235    rmdir conftest
12236    $rm conftest*
12237
12238 fi
12239 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12241
12242
12243 hard_links="nottested"
12244 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12245   # do not overwrite the value of need_locks provided by the user
12246   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12247 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12248   hard_links=yes
12249   $rm conftest*
12250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12251   touch conftest.a
12252   ln conftest.a conftest.b 2>&5 || hard_links=no
12253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12254   echo "$as_me:$LINENO: result: $hard_links" >&5
12255 echo "${ECHO_T}$hard_links" >&6
12256   if test "$hard_links" = no; then
12257     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12258 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12259     need_locks=warn
12260   fi
12261 else
12262   need_locks=no
12263 fi
12264
12265 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12267
12268   runpath_var=
12269   allow_undefined_flag=
12270   enable_shared_with_static_runtimes=no
12271   archive_cmds=
12272   archive_expsym_cmds=
12273   old_archive_From_new_cmds=
12274   old_archive_from_expsyms_cmds=
12275   export_dynamic_flag_spec=
12276   whole_archive_flag_spec=
12277   thread_safe_flag_spec=
12278   hardcode_libdir_flag_spec=
12279   hardcode_libdir_flag_spec_ld=
12280   hardcode_libdir_separator=
12281   hardcode_direct=no
12282   hardcode_minus_L=no
12283   hardcode_shlibpath_var=unsupported
12284   link_all_deplibs=unknown
12285   hardcode_automatic=no
12286   module_cmds=
12287   module_expsym_cmds=
12288   always_export_symbols=no
12289   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12290   # include_expsyms should be a list of space-separated symbols to be *always*
12291   # included in the symbol list
12292   include_expsyms=
12293   # exclude_expsyms can be an extended regexp of symbols to exclude
12294   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12295   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12296   # as well as any symbol that contains `d'.
12297   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12298   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12299   # platforms (ab)use it in PIC code, but their linkers get confused if
12300   # the symbol is explicitly referenced.  Since portable code cannot
12301   # rely on this symbol name, it's probably fine to never include it in
12302   # preloaded symbol tables.
12303   extract_expsyms_cmds=
12304
12305   case $host_os in
12306   cygwin* | mingw* | pw32*)
12307     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12308     # When not using gcc, we currently assume that we are using
12309     # Microsoft Visual C++.
12310     if test "$GCC" != yes; then
12311       with_gnu_ld=no
12312     fi
12313     ;;
12314   openbsd*)
12315     with_gnu_ld=no
12316     ;;
12317   esac
12318
12319   ld_shlibs=yes
12320   if test "$with_gnu_ld" = yes; then
12321     # If archive_cmds runs LD, not CC, wlarc should be empty
12322     wlarc='${wl}'
12323
12324     # See if GNU ld supports shared libraries.
12325     case $host_os in
12326     aix3* | aix4* | aix5*)
12327       # On AIX/PPC, the GNU linker is very broken
12328       if test "$host_cpu" != ia64; then
12329         ld_shlibs=no
12330         cat <<EOF 1>&2
12331
12332 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12333 *** to be unable to reliably create shared libraries on AIX.
12334 *** Therefore, libtool is disabling shared libraries support.  If you
12335 *** really care for shared libraries, you may want to modify your PATH
12336 *** so that a non-GNU linker is found, and then restart.
12337
12338 EOF
12339       fi
12340       ;;
12341
12342     amigaos*)
12343       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)'
12344       hardcode_libdir_flag_spec='-L$libdir'
12345       hardcode_minus_L=yes
12346
12347       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12348       # that the semantics of dynamic libraries on AmigaOS, at least up
12349       # to version 4, is to share data among multiple programs linked
12350       # with the same dynamic library.  Since this doesn't match the
12351       # behavior of shared libraries on other platforms, we can't use
12352       # them.
12353       ld_shlibs=no
12354       ;;
12355
12356     beos*)
12357       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12358         allow_undefined_flag=unsupported
12359         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12360         # support --undefined.  This deserves some investigation.  FIXME
12361         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12362       else
12363         ld_shlibs=no
12364       fi
12365       ;;
12366
12367     cygwin* | mingw* | pw32*)
12368       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12369       # as there is no search path for DLLs.
12370       hardcode_libdir_flag_spec='-L$libdir'
12371       allow_undefined_flag=unsupported
12372       always_export_symbols=no
12373       enable_shared_with_static_runtimes=yes
12374       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12375
12376       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12378         # If the export-symbols file already is a .def file (1st line
12379         # is EXPORTS), use it as is; otherwise, prepend...
12380         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12381           cp $export_symbols $output_objdir/$soname.def;
12382         else
12383           echo EXPORTS > $output_objdir/$soname.def;
12384           cat $export_symbols >> $output_objdir/$soname.def;
12385         fi~
12386         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12387       else
12388         ld_shlibs=no
12389       fi
12390       ;;
12391
12392     netbsd*)
12393       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12394         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12395         wlarc=
12396       else
12397         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399       fi
12400       ;;
12401
12402     solaris* | sysv5*)
12403       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12404         ld_shlibs=no
12405         cat <<EOF 1>&2
12406
12407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12408 *** create shared libraries on Solaris systems.  Therefore, libtool
12409 *** is disabling shared libraries support.  We urge you to upgrade GNU
12410 *** binutils to release 2.9.1 or newer.  Another option is to modify
12411 *** your PATH or compiler configuration so that the native linker is
12412 *** used, and then restart.
12413
12414 EOF
12415       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12416         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12418       else
12419         ld_shlibs=no
12420       fi
12421       ;;
12422
12423     sunos4*)
12424       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12425       wlarc=
12426       hardcode_direct=yes
12427       hardcode_shlibpath_var=no
12428       ;;
12429
12430   linux*)
12431     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12432         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433         archive_cmds="$tmp_archive_cmds"
12434       supports_anon_versioning=no
12435       case `$LD -v 2>/dev/null` in
12436         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12437         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12438         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12439         *\ 2.11.*) ;; # other 2.11 versions
12440         *) supports_anon_versioning=yes ;;
12441       esac
12442       if test $supports_anon_versioning = yes; then
12443         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12445 $echo "local: *; };" >> $output_objdir/$libname.ver~
12446         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12447       else
12448         archive_expsym_cmds="$tmp_archive_cmds"
12449       fi
12450     else
12451       ld_shlibs=no
12452     fi
12453     ;;
12454
12455     *)
12456       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12457         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12459       else
12460         ld_shlibs=no
12461       fi
12462       ;;
12463     esac
12464
12465     if test "$ld_shlibs" = yes; then
12466       runpath_var=LD_RUN_PATH
12467       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12468       export_dynamic_flag_spec='${wl}--export-dynamic'
12469       # ancient GNU ld didn't support --whole-archive et. al.
12470       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12471         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12472       else
12473         whole_archive_flag_spec=
12474       fi
12475     fi
12476   else
12477     # PORTME fill in a description of your system's linker (not GNU ld)
12478     case $host_os in
12479     aix3*)
12480       allow_undefined_flag=unsupported
12481       always_export_symbols=yes
12482       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'
12483       # Note: this linker hardcodes the directories in LIBPATH if there
12484       # are no directories specified by -L.
12485       hardcode_minus_L=yes
12486       if test "$GCC" = yes && test -z "$link_static_flag"; then
12487         # Neither direct hardcoding nor static linking is supported with a
12488         # broken collect2.
12489         hardcode_direct=unsupported
12490       fi
12491       ;;
12492
12493     aix4* | aix5*)
12494       if test "$host_cpu" = ia64; then
12495         # On IA64, the linker does run time linking by default, so we don't
12496         # have to do anything special.
12497         aix_use_runtimelinking=no
12498         exp_sym_flag='-Bexport'
12499         no_entry_flag=""
12500       else
12501         # If we're using GNU nm, then we don't want the "-C" option.
12502         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12503         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12504           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'
12505         else
12506           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'
12507         fi
12508         aix_use_runtimelinking=no
12509
12510         # Test if we are trying to use run time linking or normal
12511         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512         # need to do runtime linking.
12513         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12514           for ld_flag in $LDFLAGS; do
12515           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12516             aix_use_runtimelinking=yes
12517             break
12518           fi
12519           done
12520         esac
12521
12522         exp_sym_flag='-bexport'
12523         no_entry_flag='-bnoentry'
12524       fi
12525
12526       # When large executables or shared objects are built, AIX ld can
12527       # have problems creating the table of contents.  If linking a library
12528       # or program results in "error TOC overflow" add -mminimal-toc to
12529       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12530       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12531
12532       archive_cmds=''
12533       hardcode_direct=yes
12534       hardcode_libdir_separator=':'
12535       link_all_deplibs=yes
12536
12537       if test "$GCC" = yes; then
12538         case $host_os in aix4.012|aix4.012.*)
12539         # We only want to do this on AIX 4.2 and lower, the check
12540         # below for broken collect2 doesn't work under 4.3+
12541           collect2name=`${CC} -print-prog-name=collect2`
12542           if test -f "$collect2name" && \
12543            strings "$collect2name" | grep resolve_lib_name >/dev/null
12544           then
12545           # We have reworked collect2
12546           hardcode_direct=yes
12547           else
12548           # We have old collect2
12549           hardcode_direct=unsupported
12550           # It fails to find uninstalled libraries when the uninstalled
12551           # path is not listed in the libpath.  Setting hardcode_minus_L
12552           # to unsupported forces relinking
12553           hardcode_minus_L=yes
12554           hardcode_libdir_flag_spec='-L$libdir'
12555           hardcode_libdir_separator=
12556           fi
12557         esac
12558         shared_flag='-shared'
12559       else
12560         # not using gcc
12561         if test "$host_cpu" = ia64; then
12562         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12563         # chokes on -Wl,-G. The following line is correct:
12564           shared_flag='-G'
12565         else
12566         if test "$aix_use_runtimelinking" = yes; then
12567             shared_flag='${wl}-G'
12568           else
12569             shared_flag='${wl}-bM:SRE'
12570         fi
12571         fi
12572       fi
12573
12574       # It seems that -bexpall does not export symbols beginning with
12575       # underscore (_), so it is better to generate a list of symbols to export.
12576       always_export_symbols=yes
12577       if test "$aix_use_runtimelinking" = yes; then
12578         # Warning - without using the other runtime loading flags (-brtl),
12579         # -berok will link without error, but may produce a broken library.
12580         allow_undefined_flag='-berok'
12581        # Determine the default libpath from the value encoded in an empty executable.
12582        cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588
12589 int
12590 main ()
12591 {
12592
12593   ;
12594   return 0;
12595 }
12596 _ACEOF
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599   (eval $ac_link) 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } &&
12606          { ac_try='test -z "$ac_c_werror_flag"
12607                          || test ! -s conftest.err'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; } &&
12613          { ac_try='test -s conftest$ac_exeext'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619
12620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12621 }'`
12622 # Check for a 64-bit object if we didn't find anything.
12623 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; }
12624 }'`; fi
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 fi
12630 rm -f conftest.err conftest.$ac_objext \
12631       conftest$ac_exeext conftest.$ac_ext
12632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12633
12634        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12635         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"
12636        else
12637         if test "$host_cpu" = ia64; then
12638           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12639           allow_undefined_flag="-z nodefs"
12640           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"
12641         else
12642          # Determine the default libpath from the value encoded in an empty executable.
12643          cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649
12650 int
12651 main ()
12652 {
12653
12654   ;
12655   return 0;
12656 }
12657 _ACEOF
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660   (eval $ac_link) 2>conftest.er1
12661   ac_status=$?
12662   grep -v '^ *+' conftest.er1 >conftest.err
12663   rm -f conftest.er1
12664   cat conftest.err >&5
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); } &&
12667          { ac_try='test -z "$ac_c_werror_flag"
12668                          || test ! -s conftest.err'
12669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670   (eval $ac_try) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; } &&
12674          { ac_try='test -s conftest$ac_exeext'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; }; then
12680
12681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12682 }'`
12683 # Check for a 64-bit object if we didn't find anything.
12684 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; }
12685 }'`; fi
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 fi
12691 rm -f conftest.err conftest.$ac_objext \
12692       conftest$ac_exeext conftest.$ac_ext
12693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12694
12695          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12696           # Warning - without using the other run time loading flags,
12697           # -berok will link without error, but may produce a broken library.
12698           no_undefined_flag=' ${wl}-bernotok'
12699           allow_undefined_flag=' ${wl}-berok'
12700           # -bexpall does not export symbols beginning with underscore (_)
12701           always_export_symbols=yes
12702           # Exported symbols can be pulled into shared objects from archives
12703           whole_archive_flag_spec=' '
12704           archive_cmds_need_lc=yes
12705           # This is similar to how AIX traditionally builds it's shared libraries.
12706           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'
12707         fi
12708       fi
12709       ;;
12710
12711     amigaos*)
12712       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)'
12713       hardcode_libdir_flag_spec='-L$libdir'
12714       hardcode_minus_L=yes
12715       # see comment about different semantics on the GNU ld section
12716       ld_shlibs=no
12717       ;;
12718
12719     bsdi[45]*)
12720       export_dynamic_flag_spec=-rdynamic
12721       ;;
12722
12723     cygwin* | mingw* | pw32*)
12724       # When not using gcc, we currently assume that we are using
12725       # Microsoft Visual C++.
12726       # hardcode_libdir_flag_spec is actually meaningless, as there is
12727       # no search path for DLLs.
12728       hardcode_libdir_flag_spec=' '
12729       allow_undefined_flag=unsupported
12730       # Tell ltmain to make .lib files, not .a files.
12731       libext=lib
12732       # Tell ltmain to make .dll files, not .so files.
12733       shrext_cmds=".dll"
12734       # FIXME: Setting linknames here is a bad hack.
12735       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12736       # The linker will automatically build a .lib file if we build a DLL.
12737       old_archive_From_new_cmds='true'
12738       # FIXME: Should let the user specify the lib program.
12739       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12740       fix_srcfile_path='`cygpath -w "$srcfile"`'
12741       enable_shared_with_static_runtimes=yes
12742       ;;
12743
12744     darwin* | rhapsody*)
12745       case "$host_os" in
12746         rhapsody* | darwin1.[012])
12747          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12748          ;;
12749        *) # Darwin 1.3 on
12750          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12751            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12752          else
12753            case ${MACOSX_DEPLOYMENT_TARGET} in
12754              10.[012])
12755                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12756                ;;
12757              10.*)
12758                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12759                ;;
12760            esac
12761          fi
12762          ;;
12763       esac
12764       archive_cmds_need_lc=no
12765       hardcode_direct=no
12766       hardcode_automatic=yes
12767       hardcode_shlibpath_var=unsupported
12768       whole_archive_flag_spec=''
12769       link_all_deplibs=yes
12770     if test "$GCC" = yes ; then
12771         output_verbose_link_cmd='echo'
12772         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12773       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12774       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12775       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}'
12776       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}'
12777     else
12778       case "$cc_basename" in
12779         xlc*)
12780          output_verbose_link_cmd='echo'
12781          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12782          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12783           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12784          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}'
12785           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}'
12786           ;;
12787        *)
12788          ld_shlibs=no
12789           ;;
12790       esac
12791     fi
12792       ;;
12793
12794     dgux*)
12795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796       hardcode_libdir_flag_spec='-L$libdir'
12797       hardcode_shlibpath_var=no
12798       ;;
12799
12800     freebsd1*)
12801       ld_shlibs=no
12802       ;;
12803
12804     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12805     # support.  Future versions do this automatically, but an explicit c++rt0.o
12806     # does not break anything, and helps significantly (at the cost of a little
12807     # extra space).
12808     freebsd2.2*)
12809       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12810       hardcode_libdir_flag_spec='-R$libdir'
12811       hardcode_direct=yes
12812       hardcode_shlibpath_var=no
12813       ;;
12814
12815     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12816     freebsd2*)
12817       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12818       hardcode_direct=yes
12819       hardcode_minus_L=yes
12820       hardcode_shlibpath_var=no
12821       ;;
12822
12823     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12824     freebsd* | kfreebsd*-gnu)
12825       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12826       hardcode_libdir_flag_spec='-R$libdir'
12827       hardcode_direct=yes
12828       hardcode_shlibpath_var=no
12829       ;;
12830
12831     hpux9*)
12832       if test "$GCC" = yes; then
12833         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'
12834       else
12835         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'
12836       fi
12837       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12838       hardcode_libdir_separator=:
12839       hardcode_direct=yes
12840
12841       # hardcode_minus_L: Not really in the search PATH,
12842       # but as the default location of the library.
12843       hardcode_minus_L=yes
12844       export_dynamic_flag_spec='${wl}-E'
12845       ;;
12846
12847     hpux10* | hpux11*)
12848       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12849         case "$host_cpu" in
12850         hppa*64*|ia64*)
12851           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12852           ;;
12853         *)
12854           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12855           ;;
12856         esac
12857       else
12858         case "$host_cpu" in
12859         hppa*64*|ia64*)
12860           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12861           ;;
12862         *)
12863           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12864           ;;
12865         esac
12866       fi
12867       if test "$with_gnu_ld" = no; then
12868         case "$host_cpu" in
12869         hppa*64*)
12870           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12871           hardcode_libdir_flag_spec_ld='+b $libdir'
12872           hardcode_libdir_separator=:
12873           hardcode_direct=no
12874           hardcode_shlibpath_var=no
12875           ;;
12876         ia64*)
12877           hardcode_libdir_flag_spec='-L$libdir'
12878           hardcode_direct=no
12879           hardcode_shlibpath_var=no
12880
12881           # hardcode_minus_L: Not really in the search PATH,
12882           # but as the default location of the library.
12883           hardcode_minus_L=yes
12884           ;;
12885         *)
12886           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12887           hardcode_libdir_separator=:
12888           hardcode_direct=yes
12889           export_dynamic_flag_spec='${wl}-E'
12890
12891           # hardcode_minus_L: Not really in the search PATH,
12892           # but as the default location of the library.
12893           hardcode_minus_L=yes
12894           ;;
12895         esac
12896       fi
12897       ;;
12898
12899     irix5* | irix6* | nonstopux*)
12900       if test "$GCC" = yes; then
12901         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'
12902       else
12903         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'
12904         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12905       fi
12906       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12907       hardcode_libdir_separator=:
12908       link_all_deplibs=yes
12909       ;;
12910
12911     netbsd*)
12912       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12913         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12914       else
12915         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12916       fi
12917       hardcode_libdir_flag_spec='-R$libdir'
12918       hardcode_direct=yes
12919       hardcode_shlibpath_var=no
12920       ;;
12921
12922     newsos6)
12923       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12924       hardcode_direct=yes
12925       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926       hardcode_libdir_separator=:
12927       hardcode_shlibpath_var=no
12928       ;;
12929
12930     openbsd*)
12931       hardcode_direct=yes
12932       hardcode_shlibpath_var=no
12933       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12934         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12935         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12936         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12937         export_dynamic_flag_spec='${wl}-E'
12938       else
12939        case $host_os in
12940          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12941            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12942            hardcode_libdir_flag_spec='-R$libdir'
12943            ;;
12944          *)
12945            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12946            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12947            ;;
12948        esac
12949       fi
12950       ;;
12951
12952     os2*)
12953       hardcode_libdir_flag_spec='-L$libdir'
12954       hardcode_minus_L=yes
12955       allow_undefined_flag=unsupported
12956       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'
12957       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12958       ;;
12959
12960     osf3*)
12961       if test "$GCC" = yes; then
12962         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12963         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'
12964       else
12965         allow_undefined_flag=' -expect_unresolved \*'
12966         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'
12967       fi
12968       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12969       hardcode_libdir_separator=:
12970       ;;
12971
12972     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12973       if test "$GCC" = yes; then
12974         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12975         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'
12976         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12977       else
12978         allow_undefined_flag=' -expect_unresolved \*'
12979         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'
12980         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12981         $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'
12982
12983         # Both c and cxx compiler support -rpath directly
12984         hardcode_libdir_flag_spec='-rpath $libdir'
12985       fi
12986       hardcode_libdir_separator=:
12987       ;;
12988
12989     sco3.2v5*)
12990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12991       hardcode_shlibpath_var=no
12992       export_dynamic_flag_spec='${wl}-Bexport'
12993       runpath_var=LD_RUN_PATH
12994       hardcode_runpath_var=yes
12995       ;;
12996
12997     solaris*)
12998       no_undefined_flag=' -z text'
12999       if test "$GCC" = yes; then
13000         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13001         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13003       else
13004         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13005         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13006         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13007       fi
13008       hardcode_libdir_flag_spec='-R$libdir'
13009       hardcode_shlibpath_var=no
13010       case $host_os in
13011       solaris2.[0-5] | solaris2.[0-5].*) ;;
13012       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13013         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13014       esac
13015       link_all_deplibs=yes
13016       ;;
13017
13018     sunos4*)
13019       if test "x$host_vendor" = xsequent; then
13020         # Use $CC to link under sequent, because it throws in some extra .o
13021         # files that make .init and .fini sections work.
13022         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13023       else
13024         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13025       fi
13026       hardcode_libdir_flag_spec='-L$libdir'
13027       hardcode_direct=yes
13028       hardcode_minus_L=yes
13029       hardcode_shlibpath_var=no
13030       ;;
13031
13032     sysv4)
13033       case $host_vendor in
13034         sni)
13035           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13036           hardcode_direct=yes # is this really true???
13037         ;;
13038         siemens)
13039           ## LD is ld it makes a PLAMLIB
13040           ## CC just makes a GrossModule.
13041           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13042           reload_cmds='$CC -r -o $output$reload_objs'
13043           hardcode_direct=no
13044         ;;
13045         motorola)
13046           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13047           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13048         ;;
13049       esac
13050       runpath_var='LD_RUN_PATH'
13051       hardcode_shlibpath_var=no
13052       ;;
13053
13054     sysv4.3*)
13055       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056       hardcode_shlibpath_var=no
13057       export_dynamic_flag_spec='-Bexport'
13058       ;;
13059
13060     sysv4*MP*)
13061       if test -d /usr/nec; then
13062         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063         hardcode_shlibpath_var=no
13064         runpath_var=LD_RUN_PATH
13065         hardcode_runpath_var=yes
13066         ld_shlibs=yes
13067       fi
13068       ;;
13069
13070     sysv4.2uw2*)
13071       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13072       hardcode_direct=yes
13073       hardcode_minus_L=no
13074       hardcode_shlibpath_var=no
13075       hardcode_runpath_var=yes
13076       runpath_var=LD_RUN_PATH
13077       ;;
13078
13079    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13080       no_undefined_flag='${wl}-z ${wl}text'
13081       if test "$GCC" = yes; then
13082         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13083       else
13084         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13085       fi
13086       runpath_var='LD_RUN_PATH'
13087       hardcode_shlibpath_var=no
13088       ;;
13089
13090     sysv5*)
13091       no_undefined_flag=' -z text'
13092       # $CC -shared without GNU ld will not create a library from C++
13093       # object files and a static libstdc++, better avoid it by now
13094       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13095       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13096                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13097       hardcode_libdir_flag_spec=
13098       hardcode_shlibpath_var=no
13099       runpath_var='LD_RUN_PATH'
13100       ;;
13101
13102     uts4*)
13103       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104       hardcode_libdir_flag_spec='-L$libdir'
13105       hardcode_shlibpath_var=no
13106       ;;
13107
13108     *)
13109       ld_shlibs=no
13110       ;;
13111     esac
13112   fi
13113
13114 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13115 echo "${ECHO_T}$ld_shlibs" >&6
13116 test "$ld_shlibs" = no && can_build_shared=no
13117
13118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13119 if test "$GCC" = yes; then
13120   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13121 fi
13122
13123 #
13124 # Do we need to explicitly link libc?
13125 #
13126 case "x$archive_cmds_need_lc" in
13127 x|xyes)
13128   # Assume -lc should be added
13129   archive_cmds_need_lc=yes
13130
13131   if test "$enable_shared" = yes && test "$GCC" = yes; then
13132     case $archive_cmds in
13133     *'~'*)
13134       # FIXME: we may have to deal with multi-command sequences.
13135       ;;
13136     '$CC '*)
13137       # Test whether the compiler implicitly links with -lc since on some
13138       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139       # to ld, don't add -lc before -lgcc.
13140       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13142       $rm conftest*
13143       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13144
13145       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146   (eval $ac_compile) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } 2>conftest.err; then
13150         soname=conftest
13151         lib=conftest
13152         libobjs=conftest.$ac_objext
13153         deplibs=
13154         wl=$lt_prog_compiler_wl
13155         compiler_flags=-v
13156         linker_flags=-v
13157         verstring=
13158         output_objdir=.
13159         libname=conftest
13160         lt_save_allow_undefined_flag=$allow_undefined_flag
13161         allow_undefined_flag=
13162         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13163   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }
13167         then
13168           archive_cmds_need_lc=no
13169         else
13170           archive_cmds_need_lc=yes
13171         fi
13172         allow_undefined_flag=$lt_save_allow_undefined_flag
13173       else
13174         cat conftest.err 1>&5
13175       fi
13176       $rm conftest*
13177       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13178 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13179       ;;
13180     esac
13181   fi
13182   ;;
13183 esac
13184
13185 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13186 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13187 library_names_spec=
13188 libname_spec='lib$name'
13189 soname_spec=
13190 shrext_cmds=".so"
13191 postinstall_cmds=
13192 postuninstall_cmds=
13193 finish_cmds=
13194 finish_eval=
13195 shlibpath_var=
13196 shlibpath_overrides_runpath=unknown
13197 version_type=none
13198 dynamic_linker="$host_os ld.so"
13199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13200 if test "$GCC" = yes; then
13201   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13202   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13203     # if the path contains ";" then we assume it to be the separator
13204     # otherwise default to the standard path separator (i.e. ":") - it is
13205     # assumed that no part of a normal pathname contains ";" but that should
13206     # okay in the real world where ";" in dirpaths is itself problematic.
13207     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13208   else
13209     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13210   fi
13211 else
13212   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13213 fi
13214 need_lib_prefix=unknown
13215 hardcode_into_libs=no
13216
13217 # when you set need_version to no, make sure it does not cause -set_version
13218 # flags to be left without arguments
13219 need_version=unknown
13220
13221 case $host_os in
13222 aix3*)
13223   version_type=linux
13224   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13225   shlibpath_var=LIBPATH
13226
13227   # AIX 3 has no versioning support, so we append a major version to the name.
13228   soname_spec='${libname}${release}${shared_ext}$major'
13229   ;;
13230
13231 aix4* | aix5*)
13232   version_type=linux
13233   need_lib_prefix=no
13234   need_version=no
13235   hardcode_into_libs=yes
13236   if test "$host_cpu" = ia64; then
13237     # AIX 5 supports IA64
13238     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13239     shlibpath_var=LD_LIBRARY_PATH
13240   else
13241     # With GCC up to 2.95.x, collect2 would create an import file
13242     # for dependence libraries.  The import file would start with
13243     # the line `#! .'.  This would cause the generated library to
13244     # depend on `.', always an invalid library.  This was fixed in
13245     # development snapshots of GCC prior to 3.0.
13246     case $host_os in
13247       aix4 | aix4.[01] | aix4.[01].*)
13248       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13249            echo ' yes '
13250            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13251         :
13252       else
13253         can_build_shared=no
13254       fi
13255       ;;
13256     esac
13257     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13258     # soname into executable. Probably we can add versioning support to
13259     # collect2, so additional links can be useful in future.
13260     if test "$aix_use_runtimelinking" = yes; then
13261       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13262       # instead of lib<name>.a to let people know that these are not
13263       # typical AIX shared libraries.
13264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265     else
13266       # We preserve .a as extension for shared libraries through AIX4.2
13267       # and later when we are not doing run time linking.
13268       library_names_spec='${libname}${release}.a $libname.a'
13269       soname_spec='${libname}${release}${shared_ext}$major'
13270     fi
13271     shlibpath_var=LIBPATH
13272   fi
13273   ;;
13274
13275 amigaos*)
13276   library_names_spec='$libname.ixlibrary $libname.a'
13277   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13278   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'
13279   ;;
13280
13281 beos*)
13282   library_names_spec='${libname}${shared_ext}'
13283   dynamic_linker="$host_os ld.so"
13284   shlibpath_var=LIBRARY_PATH
13285   ;;
13286
13287 bsdi[45]*)
13288   version_type=linux
13289   need_version=no
13290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291   soname_spec='${libname}${release}${shared_ext}$major'
13292   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13293   shlibpath_var=LD_LIBRARY_PATH
13294   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13295   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13296   # the default ld.so.conf also contains /usr/contrib/lib and
13297   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13298   # libtool to hard-code these into programs
13299   ;;
13300
13301 cygwin* | mingw* | pw32*)
13302   version_type=windows
13303   shrext_cmds=".dll"
13304   need_version=no
13305   need_lib_prefix=no
13306
13307   case $GCC,$host_os in
13308   yes,cygwin* | yes,mingw* | yes,pw32*)
13309     library_names_spec='$libname.dll.a'
13310     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13311     postinstall_cmds='base_file=`basename \${file}`~
13312       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13313       dldir=$destdir/`dirname \$dlpath`~
13314       test -d \$dldir || mkdir -p \$dldir~
13315       $install_prog $dir/$dlname \$dldir/$dlname'
13316     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13317       dlpath=$dir/\$dldll~
13318        $rm \$dlpath'
13319     shlibpath_overrides_runpath=yes
13320
13321     case $host_os in
13322     cygwin*)
13323       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13324       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13325       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13326       ;;
13327     mingw*)
13328       # MinGW DLLs use traditional 'lib' prefix
13329       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13330       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13331       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13332         # It is most probably a Windows format PATH printed by
13333         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13334         # path with ; separators, and with drive letters. We can handle the
13335         # drive letters (cygwin fileutils understands them), so leave them,
13336         # especially as we might pass files found there to a mingw objdump,
13337         # which wouldn't understand a cygwinified path. Ahh.
13338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13339       else
13340         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13341       fi
13342       ;;
13343     pw32*)
13344       # pw32 DLLs use 'pw' prefix rather than 'lib'
13345       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13346       ;;
13347     esac
13348     ;;
13349
13350   *)
13351     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13352     ;;
13353   esac
13354   dynamic_linker='Win32 ld.exe'
13355   # FIXME: first we should search . and the directory the executable is in
13356   shlibpath_var=PATH
13357   ;;
13358
13359 darwin* | rhapsody*)
13360   dynamic_linker="$host_os dyld"
13361   version_type=darwin
13362   need_lib_prefix=no
13363   need_version=no
13364   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13365   soname_spec='${libname}${release}${major}$shared_ext'
13366   shlibpath_overrides_runpath=yes
13367   shlibpath_var=DYLD_LIBRARY_PATH
13368   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13369   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13370   if test "$GCC" = yes; then
13371     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"`
13372   else
13373     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13374   fi
13375   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13376   ;;
13377
13378 dgux*)
13379   version_type=linux
13380   need_lib_prefix=no
13381   need_version=no
13382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13383   soname_spec='${libname}${release}${shared_ext}$major'
13384   shlibpath_var=LD_LIBRARY_PATH
13385   ;;
13386
13387 freebsd1*)
13388   dynamic_linker=no
13389   ;;
13390
13391 kfreebsd*-gnu)
13392   version_type=linux
13393   need_lib_prefix=no
13394   need_version=no
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396   soname_spec='${libname}${release}${shared_ext}$major'
13397   shlibpath_var=LD_LIBRARY_PATH
13398   shlibpath_overrides_runpath=no
13399   hardcode_into_libs=yes
13400   dynamic_linker='GNU ld.so'
13401   ;;
13402
13403 freebsd*)
13404   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13405   version_type=freebsd-$objformat
13406   case $version_type in
13407     freebsd-elf*)
13408       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13409       need_version=no
13410       need_lib_prefix=no
13411       ;;
13412     freebsd-*)
13413       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13414       need_version=yes
13415       ;;
13416   esac
13417   shlibpath_var=LD_LIBRARY_PATH
13418   case $host_os in
13419   freebsd2*)
13420     shlibpath_overrides_runpath=yes
13421     ;;
13422   freebsd3.01* | freebsdelf3.01*)
13423     shlibpath_overrides_runpath=yes
13424     hardcode_into_libs=yes
13425     ;;
13426   *) # from 3.2 on
13427     shlibpath_overrides_runpath=no
13428     hardcode_into_libs=yes
13429     ;;
13430   esac
13431   ;;
13432
13433 gnu*)
13434   version_type=linux
13435   need_lib_prefix=no
13436   need_version=no
13437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13438   soname_spec='${libname}${release}${shared_ext}$major'
13439   shlibpath_var=LD_LIBRARY_PATH
13440   hardcode_into_libs=yes
13441   ;;
13442
13443 hpux9* | hpux10* | hpux11*)
13444   # Give a soname corresponding to the major version so that dld.sl refuses to
13445   # link against other versions.
13446   version_type=sunos
13447   need_lib_prefix=no
13448   need_version=no
13449   case "$host_cpu" in
13450   ia64*)
13451     shrext_cmds='.so'
13452     hardcode_into_libs=yes
13453     dynamic_linker="$host_os dld.so"
13454     shlibpath_var=LD_LIBRARY_PATH
13455     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457     soname_spec='${libname}${release}${shared_ext}$major'
13458     if test "X$HPUX_IA64_MODE" = X32; then
13459       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13460     else
13461       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13462     fi
13463     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13464     ;;
13465    hppa*64*)
13466      shrext_cmds='.sl'
13467      hardcode_into_libs=yes
13468      dynamic_linker="$host_os dld.sl"
13469      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13470      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13471      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472      soname_spec='${libname}${release}${shared_ext}$major'
13473      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13474      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13475      ;;
13476    *)
13477     shrext_cmds='.sl'
13478     dynamic_linker="$host_os dld.sl"
13479     shlibpath_var=SHLIB_PATH
13480     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482     soname_spec='${libname}${release}${shared_ext}$major'
13483     ;;
13484   esac
13485   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13486   postinstall_cmds='chmod 555 $lib'
13487   ;;
13488
13489 irix5* | irix6* | nonstopux*)
13490   case $host_os in
13491     nonstopux*) version_type=nonstopux ;;
13492     *)
13493         if test "$lt_cv_prog_gnu_ld" = yes; then
13494                 version_type=linux
13495         else
13496                 version_type=irix
13497         fi ;;
13498   esac
13499   need_lib_prefix=no
13500   need_version=no
13501   soname_spec='${libname}${release}${shared_ext}$major'
13502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13503   case $host_os in
13504   irix5* | nonstopux*)
13505     libsuff= shlibsuff=
13506     ;;
13507   *)
13508     case $LD in # libtool.m4 will add one of these switches to LD
13509     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13510       libsuff= shlibsuff= libmagic=32-bit;;
13511     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13512       libsuff=32 shlibsuff=N32 libmagic=N32;;
13513     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13514       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13515     *) libsuff= shlibsuff= libmagic=never-match;;
13516     esac
13517     ;;
13518   esac
13519   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13520   shlibpath_overrides_runpath=no
13521   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13522   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13523   hardcode_into_libs=yes
13524   ;;
13525
13526 # No shared lib support for Linux oldld, aout, or coff.
13527 linux*oldld* | linux*aout* | linux*coff*)
13528   dynamic_linker=no
13529   ;;
13530
13531 # This must be Linux ELF.
13532 linux*)
13533   version_type=linux
13534   need_lib_prefix=no
13535   need_version=no
13536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537   soname_spec='${libname}${release}${shared_ext}$major'
13538   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13539   shlibpath_var=LD_LIBRARY_PATH
13540   shlibpath_overrides_runpath=no
13541   # This implies no fast_install, which is unacceptable.
13542   # Some rework will be needed to allow for fast_install
13543   # before this can be enabled.
13544   hardcode_into_libs=yes
13545
13546   # Append ld.so.conf contents to the search path
13547   if test -f /etc/ld.so.conf; then
13548     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13549     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13550   fi
13551
13552   # We used to test for /lib/ld.so.1 and disable shared libraries on
13553   # powerpc, because MkLinux only supported shared libraries with the
13554   # GNU dynamic linker.  Since this was broken with cross compilers,
13555   # most powerpc-linux boxes support dynamic linking these days and
13556   # people can always --disable-shared, the test was removed, and we
13557   # assume the GNU/Linux dynamic linker is in use.
13558   dynamic_linker='GNU/Linux ld.so'
13559   ;;
13560
13561 knetbsd*-gnu)
13562   version_type=linux
13563   need_lib_prefix=no
13564   need_version=no
13565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13566   soname_spec='${libname}${release}${shared_ext}$major'
13567   shlibpath_var=LD_LIBRARY_PATH
13568   shlibpath_overrides_runpath=no
13569   hardcode_into_libs=yes
13570   dynamic_linker='GNU ld.so'
13571   ;;
13572
13573 netbsd*)
13574   version_type=sunos
13575   need_lib_prefix=no
13576   need_version=no
13577   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13579     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13580     dynamic_linker='NetBSD (a.out) ld.so'
13581   else
13582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583     soname_spec='${libname}${release}${shared_ext}$major'
13584     dynamic_linker='NetBSD ld.elf_so'
13585   fi
13586   shlibpath_var=LD_LIBRARY_PATH
13587   shlibpath_overrides_runpath=yes
13588   hardcode_into_libs=yes
13589   ;;
13590
13591 newsos6)
13592   version_type=linux
13593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13594   shlibpath_var=LD_LIBRARY_PATH
13595   shlibpath_overrides_runpath=yes
13596   ;;
13597
13598 nto-qnx*)
13599   version_type=linux
13600   need_lib_prefix=no
13601   need_version=no
13602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603   soname_spec='${libname}${release}${shared_ext}$major'
13604   shlibpath_var=LD_LIBRARY_PATH
13605   shlibpath_overrides_runpath=yes
13606   ;;
13607
13608 openbsd*)
13609   version_type=sunos
13610   need_lib_prefix=no
13611   need_version=no
13612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13614   shlibpath_var=LD_LIBRARY_PATH
13615   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13616     case $host_os in
13617       openbsd2.[89] | openbsd2.[89].*)
13618         shlibpath_overrides_runpath=no
13619         ;;
13620       *)
13621         shlibpath_overrides_runpath=yes
13622         ;;
13623       esac
13624   else
13625     shlibpath_overrides_runpath=yes
13626   fi
13627   ;;
13628
13629 os2*)
13630   libname_spec='$name'
13631   shrext_cmds=".dll"
13632   need_lib_prefix=no
13633   library_names_spec='$libname${shared_ext} $libname.a'
13634   dynamic_linker='OS/2 ld.exe'
13635   shlibpath_var=LIBPATH
13636   ;;
13637
13638 osf3* | osf4* | osf5*)
13639   version_type=osf
13640   need_lib_prefix=no
13641   need_version=no
13642   soname_spec='${libname}${release}${shared_ext}$major'
13643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644   shlibpath_var=LD_LIBRARY_PATH
13645   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13646   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13647   ;;
13648
13649 sco3.2v5*)
13650   version_type=osf
13651   soname_spec='${libname}${release}${shared_ext}$major'
13652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653   shlibpath_var=LD_LIBRARY_PATH
13654   ;;
13655
13656 solaris*)
13657   version_type=linux
13658   need_lib_prefix=no
13659   need_version=no
13660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661   soname_spec='${libname}${release}${shared_ext}$major'
13662   shlibpath_var=LD_LIBRARY_PATH
13663   shlibpath_overrides_runpath=yes
13664   hardcode_into_libs=yes
13665   # ldd complains unless libraries are executable
13666   postinstall_cmds='chmod +x $lib'
13667   ;;
13668
13669 sunos4*)
13670   version_type=sunos
13671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13673   shlibpath_var=LD_LIBRARY_PATH
13674   shlibpath_overrides_runpath=yes
13675   if test "$with_gnu_ld" = yes; then
13676     need_lib_prefix=no
13677   fi
13678   need_version=yes
13679   ;;
13680
13681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13682   version_type=linux
13683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   shlibpath_var=LD_LIBRARY_PATH
13686   case $host_vendor in
13687     sni)
13688       shlibpath_overrides_runpath=no
13689       need_lib_prefix=no
13690       export_dynamic_flag_spec='${wl}-Blargedynsym'
13691       runpath_var=LD_RUN_PATH
13692       ;;
13693     siemens)
13694       need_lib_prefix=no
13695       ;;
13696     motorola)
13697       need_lib_prefix=no
13698       need_version=no
13699       shlibpath_overrides_runpath=no
13700       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13701       ;;
13702   esac
13703   ;;
13704
13705 sysv4*MP*)
13706   if test -d /usr/nec ;then
13707     version_type=linux
13708     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13709     soname_spec='$libname${shared_ext}.$major'
13710     shlibpath_var=LD_LIBRARY_PATH
13711   fi
13712   ;;
13713
13714 uts4*)
13715   version_type=linux
13716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717   soname_spec='${libname}${release}${shared_ext}$major'
13718   shlibpath_var=LD_LIBRARY_PATH
13719   ;;
13720
13721 *)
13722   dynamic_linker=no
13723   ;;
13724 esac
13725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13726 echo "${ECHO_T}$dynamic_linker" >&6
13727 test "$dynamic_linker" = no && can_build_shared=no
13728
13729 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13730 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13731 hardcode_action=
13732 if test -n "$hardcode_libdir_flag_spec" || \
13733    test -n "$runpath_var" || \
13734    test "X$hardcode_automatic" = "Xyes" ; then
13735
13736   # We can hardcode non-existant directories.
13737   if test "$hardcode_direct" != no &&
13738      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13739      # have to relink, otherwise we might link with an installed library
13740      # when we should be linking with a yet-to-be-installed one
13741      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13742      test "$hardcode_minus_L" != no; then
13743     # Linking always hardcodes the temporary library directory.
13744     hardcode_action=relink
13745   else
13746     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13747     hardcode_action=immediate
13748   fi
13749 else
13750   # We cannot hardcode anything, or else we can only hardcode existing
13751   # directories.
13752   hardcode_action=unsupported
13753 fi
13754 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13755 echo "${ECHO_T}$hardcode_action" >&6
13756
13757 if test "$hardcode_action" = relink; then
13758   # Fast installation is not supported
13759   enable_fast_install=no
13760 elif test "$shlibpath_overrides_runpath" = yes ||
13761      test "$enable_shared" = no; then
13762   # Fast installation is not necessary
13763   enable_fast_install=needless
13764 fi
13765
13766 striplib=
13767 old_striplib=
13768 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13769 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13770 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13771   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13772   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13773   echo "$as_me:$LINENO: result: yes" >&5
13774 echo "${ECHO_T}yes" >&6
13775 else
13776 # FIXME - insert some real tests, host_os isn't really good enough
13777   case $host_os in
13778    darwin*)
13779        if test -n "$STRIP" ; then
13780          striplib="$STRIP -x"
13781          echo "$as_me:$LINENO: result: yes" >&5
13782 echo "${ECHO_T}yes" >&6
13783        else
13784   echo "$as_me:$LINENO: result: no" >&5
13785 echo "${ECHO_T}no" >&6
13786 fi
13787        ;;
13788    *)
13789   echo "$as_me:$LINENO: result: no" >&5
13790 echo "${ECHO_T}no" >&6
13791     ;;
13792   esac
13793 fi
13794
13795 if test "x$enable_dlopen" != xyes; then
13796   enable_dlopen=unknown
13797   enable_dlopen_self=unknown
13798   enable_dlopen_self_static=unknown
13799 else
13800   lt_cv_dlopen=no
13801   lt_cv_dlopen_libs=
13802
13803   case $host_os in
13804   beos*)
13805     lt_cv_dlopen="load_add_on"
13806     lt_cv_dlopen_libs=
13807     lt_cv_dlopen_self=yes
13808     ;;
13809
13810   mingw* | pw32*)
13811     lt_cv_dlopen="LoadLibrary"
13812     lt_cv_dlopen_libs=
13813    ;;
13814
13815   cygwin*)
13816     lt_cv_dlopen="dlopen"
13817     lt_cv_dlopen_libs=
13818    ;;
13819
13820   darwin*)
13821   # if libdl is installed we need to link against it
13822     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13825   echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827   ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-ldl  $LIBS"
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835
13836 /* Override any gcc2 internal prototype to avoid an error.  */
13837 #ifdef __cplusplus
13838 extern "C"
13839 #endif
13840 /* We use char because int might match the return type of a gcc2
13841    builtin and then its argument prototype would still apply.  */
13842 char dlopen ();
13843 int
13844 main ()
13845 {
13846 dlopen ();
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853   (eval $ac_link) 2>conftest.er1
13854   ac_status=$?
13855   grep -v '^ *+' conftest.er1 >conftest.err
13856   rm -f conftest.er1
13857   cat conftest.err >&5
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); } &&
13860          { ac_try='test -z "$ac_c_werror_flag"
13861                          || test ! -s conftest.err'
13862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863   (eval $ac_try) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; } &&
13867          { ac_try='test -s conftest$ac_exeext'
13868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869   (eval $ac_try) 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   ac_cv_lib_dl_dlopen=yes
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878 ac_cv_lib_dl_dlopen=no
13879 fi
13880 rm -f conftest.err conftest.$ac_objext \
13881       conftest$ac_exeext conftest.$ac_ext
13882 LIBS=$ac_check_lib_save_LIBS
13883 fi
13884 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13886 if test $ac_cv_lib_dl_dlopen = yes; then
13887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13888 else
13889
13890     lt_cv_dlopen="dyld"
13891     lt_cv_dlopen_libs=
13892     lt_cv_dlopen_self=yes
13893
13894 fi
13895
13896    ;;
13897
13898   *)
13899     echo "$as_me:$LINENO: checking for shl_load" >&5
13900 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13901 if test "${ac_cv_func_shl_load+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13912 #define shl_load innocuous_shl_load
13913
13914 /* System header to define __stub macros and hopefully few prototypes,
13915     which can conflict with char shl_load (); below.
13916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13917     <limits.h> exists even on freestanding compilers.  */
13918
13919 #ifdef __STDC__
13920 # include <limits.h>
13921 #else
13922 # include <assert.h>
13923 #endif
13924
13925 #undef shl_load
13926
13927 /* Override any gcc2 internal prototype to avoid an error.  */
13928 #ifdef __cplusplus
13929 extern "C"
13930 {
13931 #endif
13932 /* We use char because int might match the return type of a gcc2
13933    builtin and then its argument prototype would still apply.  */
13934 char shl_load ();
13935 /* The GNU C library defines this for functions which it implements
13936     to always fail with ENOSYS.  Some functions are actually named
13937     something starting with __ and the normal name is an alias.  */
13938 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13939 choke me
13940 #else
13941 char (*f) () = shl_load;
13942 #endif
13943 #ifdef __cplusplus
13944 }
13945 #endif
13946
13947 int
13948 main ()
13949 {
13950 return f != shl_load;
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957   (eval $ac_link) 2>conftest.er1
13958   ac_status=$?
13959   grep -v '^ *+' conftest.er1 >conftest.err
13960   rm -f conftest.er1
13961   cat conftest.err >&5
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } &&
13964          { ac_try='test -z "$ac_c_werror_flag"
13965                          || test ! -s conftest.err'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; } &&
13971          { ac_try='test -s conftest$ac_exeext'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; }; then
13977   ac_cv_func_shl_load=yes
13978 else
13979   echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ac_cv_func_shl_load=no
13983 fi
13984 rm -f conftest.err conftest.$ac_objext \
13985       conftest$ac_exeext conftest.$ac_ext
13986 fi
13987 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13988 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13989 if test $ac_cv_func_shl_load = yes; then
13990   lt_cv_dlopen="shl_load"
13991 else
13992   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13993 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13994 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   ac_check_lib_save_LIBS=$LIBS
13998 LIBS="-ldld  $LIBS"
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005
14006 /* Override any gcc2 internal prototype to avoid an error.  */
14007 #ifdef __cplusplus
14008 extern "C"
14009 #endif
14010 /* We use char because int might match the return type of a gcc2
14011    builtin and then its argument prototype would still apply.  */
14012 char shl_load ();
14013 int
14014 main ()
14015 {
14016 shl_load ();
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023   (eval $ac_link) 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -z "$ac_c_werror_flag"
14031                          || test ! -s conftest.err'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest$ac_exeext'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; }; then
14043   ac_cv_lib_dld_shl_load=yes
14044 else
14045   echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 ac_cv_lib_dld_shl_load=no
14049 fi
14050 rm -f conftest.err conftest.$ac_objext \
14051       conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14055 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14056 if test $ac_cv_lib_dld_shl_load = yes; then
14057   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14058 else
14059   echo "$as_me:$LINENO: checking for dlopen" >&5
14060 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14061 if test "${ac_cv_func_dlopen+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064   cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14072 #define dlopen innocuous_dlopen
14073
14074 /* System header to define __stub macros and hopefully few prototypes,
14075     which can conflict with char dlopen (); below.
14076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077     <limits.h> exists even on freestanding compilers.  */
14078
14079 #ifdef __STDC__
14080 # include <limits.h>
14081 #else
14082 # include <assert.h>
14083 #endif
14084
14085 #undef dlopen
14086
14087 /* Override any gcc2 internal prototype to avoid an error.  */
14088 #ifdef __cplusplus
14089 extern "C"
14090 {
14091 #endif
14092 /* We use char because int might match the return type of a gcc2
14093    builtin and then its argument prototype would still apply.  */
14094 char dlopen ();
14095 /* The GNU C library defines this for functions which it implements
14096     to always fail with ENOSYS.  Some functions are actually named
14097     something starting with __ and the normal name is an alias.  */
14098 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14099 choke me
14100 #else
14101 char (*f) () = dlopen;
14102 #endif
14103 #ifdef __cplusplus
14104 }
14105 #endif
14106
14107 int
14108 main ()
14109 {
14110 return f != dlopen;
14111   ;
14112   return 0;
14113 }
14114 _ACEOF
14115 rm -f conftest.$ac_objext conftest$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117   (eval $ac_link) 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -z "$ac_c_werror_flag"
14125                          || test ! -s conftest.err'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest$ac_exeext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_cv_func_dlopen=yes
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_cv_func_dlopen=no
14143 fi
14144 rm -f conftest.err conftest.$ac_objext \
14145       conftest$ac_exeext conftest.$ac_ext
14146 fi
14147 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14148 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14149 if test $ac_cv_func_dlopen = yes; then
14150   lt_cv_dlopen="dlopen"
14151 else
14152   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-ldl  $LIBS"
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165
14166 /* Override any gcc2 internal prototype to avoid an error.  */
14167 #ifdef __cplusplus
14168 extern "C"
14169 #endif
14170 /* We use char because int might match the return type of a gcc2
14171    builtin and then its argument prototype would still apply.  */
14172 char dlopen ();
14173 int
14174 main ()
14175 {
14176 dlopen ();
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183   (eval $ac_link) 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } &&
14190          { ac_try='test -z "$ac_c_werror_flag"
14191                          || test ! -s conftest.err'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; } &&
14197          { ac_try='test -s conftest$ac_exeext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_lib_dl_dlopen=yes
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_cv_lib_dl_dlopen=no
14209 fi
14210 rm -f conftest.err conftest.$ac_objext \
14211       conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14213 fi
14214 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14216 if test $ac_cv_lib_dl_dlopen = yes; then
14217   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14218 else
14219   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14220 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   ac_check_lib_save_LIBS=$LIBS
14225 LIBS="-lsvld  $LIBS"
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232
14233 /* Override any gcc2 internal prototype to avoid an error.  */
14234 #ifdef __cplusplus
14235 extern "C"
14236 #endif
14237 /* We use char because int might match the return type of a gcc2
14238    builtin and then its argument prototype would still apply.  */
14239 char dlopen ();
14240 int
14241 main ()
14242 {
14243 dlopen ();
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250   (eval $ac_link) 2>conftest.er1
14251   ac_status=$?
14252   grep -v '^ *+' conftest.er1 >conftest.err
14253   rm -f conftest.er1
14254   cat conftest.err >&5
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); } &&
14257          { ac_try='test -z "$ac_c_werror_flag"
14258                          || test ! -s conftest.err'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; } &&
14264          { ac_try='test -s conftest$ac_exeext'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; }; then
14270   ac_cv_lib_svld_dlopen=yes
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 ac_cv_lib_svld_dlopen=no
14276 fi
14277 rm -f conftest.err conftest.$ac_objext \
14278       conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14280 fi
14281 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14282 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14283 if test $ac_cv_lib_svld_dlopen = yes; then
14284   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14285 else
14286   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14287 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14288 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291   ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-ldld  $LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h.  */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h.  */
14299
14300 /* Override any gcc2 internal prototype to avoid an error.  */
14301 #ifdef __cplusplus
14302 extern "C"
14303 #endif
14304 /* We use char because int might match the return type of a gcc2
14305    builtin and then its argument prototype would still apply.  */
14306 char dld_link ();
14307 int
14308 main ()
14309 {
14310 dld_link ();
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317   (eval $ac_link) 2>conftest.er1
14318   ac_status=$?
14319   grep -v '^ *+' conftest.er1 >conftest.err
14320   rm -f conftest.er1
14321   cat conftest.err >&5
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); } &&
14324          { ac_try='test -z "$ac_c_werror_flag"
14325                          || test ! -s conftest.err'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest$ac_exeext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_lib_dld_dld_link=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_cv_lib_dld_dld_link=no
14343 fi
14344 rm -f conftest.err conftest.$ac_objext \
14345       conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14347 fi
14348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14349 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14350 if test $ac_cv_lib_dld_dld_link = yes; then
14351   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14352 fi
14353
14354
14355 fi
14356
14357
14358 fi
14359
14360
14361 fi
14362
14363
14364 fi
14365
14366
14367 fi
14368
14369     ;;
14370   esac
14371
14372   if test "x$lt_cv_dlopen" != xno; then
14373     enable_dlopen=yes
14374   else
14375     enable_dlopen=no
14376   fi
14377
14378   case $lt_cv_dlopen in
14379   dlopen)
14380     save_CPPFLAGS="$CPPFLAGS"
14381     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14382
14383     save_LDFLAGS="$LDFLAGS"
14384     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14385
14386     save_LIBS="$LIBS"
14387     LIBS="$lt_cv_dlopen_libs $LIBS"
14388
14389     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14390 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14391 if test "${lt_cv_dlopen_self+set}" = set; then
14392   echo $ECHO_N "(cached) $ECHO_C" >&6
14393 else
14394           if test "$cross_compiling" = yes; then :
14395   lt_cv_dlopen_self=cross
14396 else
14397   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14398   lt_status=$lt_dlunknown
14399   cat > conftest.$ac_ext <<EOF
14400 #line 14400 "configure"
14401 #include "confdefs.h"
14402
14403 #if HAVE_DLFCN_H
14404 #include <dlfcn.h>
14405 #endif
14406
14407 #include <stdio.h>
14408
14409 #ifdef RTLD_GLOBAL
14410 #  define LT_DLGLOBAL           RTLD_GLOBAL
14411 #else
14412 #  ifdef DL_GLOBAL
14413 #    define LT_DLGLOBAL         DL_GLOBAL
14414 #  else
14415 #    define LT_DLGLOBAL         0
14416 #  endif
14417 #endif
14418
14419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14420    find out it does not work in some platform. */
14421 #ifndef LT_DLLAZY_OR_NOW
14422 #  ifdef RTLD_LAZY
14423 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14424 #  else
14425 #    ifdef DL_LAZY
14426 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14427 #    else
14428 #      ifdef RTLD_NOW
14429 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14430 #      else
14431 #        ifdef DL_NOW
14432 #          define LT_DLLAZY_OR_NOW      DL_NOW
14433 #        else
14434 #          define LT_DLLAZY_OR_NOW      0
14435 #        endif
14436 #      endif
14437 #    endif
14438 #  endif
14439 #endif
14440
14441 #ifdef __cplusplus
14442 extern "C" void exit (int);
14443 #endif
14444
14445 void fnord() { int i=42;}
14446 int main ()
14447 {
14448   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14449   int status = $lt_dlunknown;
14450
14451   if (self)
14452     {
14453       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14454       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14455       /* dlclose (self); */
14456     }
14457
14458     exit (status);
14459 }
14460 EOF
14461   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462   (eval $ac_link) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14466     (./conftest; exit; ) 2>/dev/null
14467     lt_status=$?
14468     case x$lt_status in
14469       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14470       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14471       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14472     esac
14473   else :
14474     # compilation failed
14475     lt_cv_dlopen_self=no
14476   fi
14477 fi
14478 rm -fr conftest*
14479
14480
14481 fi
14482 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14483 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14484
14485     if test "x$lt_cv_dlopen_self" = xyes; then
14486       LDFLAGS="$LDFLAGS $link_static_flag"
14487       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14488 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14489 if test "${lt_cv_dlopen_self_static+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492           if test "$cross_compiling" = yes; then :
14493   lt_cv_dlopen_self_static=cross
14494 else
14495   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14496   lt_status=$lt_dlunknown
14497   cat > conftest.$ac_ext <<EOF
14498 #line 14498 "configure"
14499 #include "confdefs.h"
14500
14501 #if HAVE_DLFCN_H
14502 #include <dlfcn.h>
14503 #endif
14504
14505 #include <stdio.h>
14506
14507 #ifdef RTLD_GLOBAL
14508 #  define LT_DLGLOBAL           RTLD_GLOBAL
14509 #else
14510 #  ifdef DL_GLOBAL
14511 #    define LT_DLGLOBAL         DL_GLOBAL
14512 #  else
14513 #    define LT_DLGLOBAL         0
14514 #  endif
14515 #endif
14516
14517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14518    find out it does not work in some platform. */
14519 #ifndef LT_DLLAZY_OR_NOW
14520 #  ifdef RTLD_LAZY
14521 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14522 #  else
14523 #    ifdef DL_LAZY
14524 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14525 #    else
14526 #      ifdef RTLD_NOW
14527 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14528 #      else
14529 #        ifdef DL_NOW
14530 #          define LT_DLLAZY_OR_NOW      DL_NOW
14531 #        else
14532 #          define LT_DLLAZY_OR_NOW      0
14533 #        endif
14534 #      endif
14535 #    endif
14536 #  endif
14537 #endif
14538
14539 #ifdef __cplusplus
14540 extern "C" void exit (int);
14541 #endif
14542
14543 void fnord() { int i=42;}
14544 int main ()
14545 {
14546   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14547   int status = $lt_dlunknown;
14548
14549   if (self)
14550     {
14551       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14552       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14553       /* dlclose (self); */
14554     }
14555
14556     exit (status);
14557 }
14558 EOF
14559   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560   (eval $ac_link) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14564     (./conftest; exit; ) 2>/dev/null
14565     lt_status=$?
14566     case x$lt_status in
14567       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14568       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14569       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14570     esac
14571   else :
14572     # compilation failed
14573     lt_cv_dlopen_self_static=no
14574   fi
14575 fi
14576 rm -fr conftest*
14577
14578
14579 fi
14580 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14581 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14582     fi
14583
14584     CPPFLAGS="$save_CPPFLAGS"
14585     LDFLAGS="$save_LDFLAGS"
14586     LIBS="$save_LIBS"
14587     ;;
14588   esac
14589
14590   case $lt_cv_dlopen_self in
14591   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14592   *) enable_dlopen_self=unknown ;;
14593   esac
14594
14595   case $lt_cv_dlopen_self_static in
14596   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14597   *) enable_dlopen_self_static=unknown ;;
14598   esac
14599 fi
14600
14601
14602 # Report which librarie types wil actually be built
14603 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14605 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14606 echo "${ECHO_T}$can_build_shared" >&6
14607
14608 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14610 test "$can_build_shared" = "no" && enable_shared=no
14611
14612 # On AIX, shared libraries and static libraries use the same namespace, and
14613 # are all built from PIC.
14614 case "$host_os" in
14615 aix3*)
14616   test "$enable_shared" = yes && enable_static=no
14617   if test -n "$RANLIB"; then
14618     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14619     postinstall_cmds='$RANLIB $lib'
14620   fi
14621   ;;
14622
14623 aix4* | aix5*)
14624   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14625     test "$enable_shared" = yes && enable_static=no
14626   fi
14627     ;;
14628 esac
14629 echo "$as_me:$LINENO: result: $enable_shared" >&5
14630 echo "${ECHO_T}$enable_shared" >&6
14631
14632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14634 # Make sure either enable_shared or enable_static is yes.
14635 test "$enable_shared" = yes || enable_static=yes
14636 echo "$as_me:$LINENO: result: $enable_static" >&5
14637 echo "${ECHO_T}$enable_static" >&6
14638
14639 # The else clause should only fire when bootstrapping the
14640 # libtool distribution, otherwise you forgot to ship ltmain.sh
14641 # with your package, and you will get complaints that there are
14642 # no rules to generate ltmain.sh.
14643 if test -f "$ltmain"; then
14644   # See if we are running on zsh, and set the options which allow our commands through
14645   # without removal of \ escapes.
14646   if test -n "${ZSH_VERSION+set}" ; then
14647     setopt NO_GLOB_SUBST
14648   fi
14649   # Now quote all the things that may contain metacharacters while being
14650   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14651   # variables and quote the copies for generation of the libtool script.
14652   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14653     SED SHELL STRIP \
14654     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14655     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14656     deplibs_check_method reload_flag reload_cmds need_locks \
14657     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14658     lt_cv_sys_global_symbol_to_c_name_address \
14659     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14660     old_postinstall_cmds old_postuninstall_cmds \
14661     compiler \
14662     CC \
14663     LD \
14664     lt_prog_compiler_wl \
14665     lt_prog_compiler_pic \
14666     lt_prog_compiler_static \
14667     lt_prog_compiler_no_builtin_flag \
14668     export_dynamic_flag_spec \
14669     thread_safe_flag_spec \
14670     whole_archive_flag_spec \
14671     enable_shared_with_static_runtimes \
14672     old_archive_cmds \
14673     old_archive_from_new_cmds \
14674     predep_objects \
14675     postdep_objects \
14676     predeps \
14677     postdeps \
14678     compiler_lib_search_path \
14679     archive_cmds \
14680     archive_expsym_cmds \
14681     postinstall_cmds \
14682     postuninstall_cmds \
14683     old_archive_from_expsyms_cmds \
14684     allow_undefined_flag \
14685     no_undefined_flag \
14686     export_symbols_cmds \
14687     hardcode_libdir_flag_spec \
14688     hardcode_libdir_flag_spec_ld \
14689     hardcode_libdir_separator \
14690     hardcode_automatic \
14691     module_cmds \
14692     module_expsym_cmds \
14693     lt_cv_prog_compiler_c_o \
14694     exclude_expsyms \
14695     include_expsyms; do
14696
14697     case $var in
14698     old_archive_cmds | \
14699     old_archive_from_new_cmds | \
14700     archive_cmds | \
14701     archive_expsym_cmds | \
14702     module_cmds | \
14703     module_expsym_cmds | \
14704     old_archive_from_expsyms_cmds | \
14705     export_symbols_cmds | \
14706     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14707     postinstall_cmds | postuninstall_cmds | \
14708     old_postinstall_cmds | old_postuninstall_cmds | \
14709     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14710       # Double-quote double-evaled strings.
14711       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14712       ;;
14713     *)
14714       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14715       ;;
14716     esac
14717   done
14718
14719   case $lt_echo in
14720   *'\$0 --fallback-echo"')
14721     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14722     ;;
14723   esac
14724
14725 cfgfile="${ofile}T"
14726   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14727   $rm -f "$cfgfile"
14728   { echo "$as_me:$LINENO: creating $ofile" >&5
14729 echo "$as_me: creating $ofile" >&6;}
14730
14731   cat <<__EOF__ >> "$cfgfile"
14732 #! $SHELL
14733
14734 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14735 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14736 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14737 #
14738 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14739 # Free Software Foundation, Inc.
14740 #
14741 # This file is part of GNU Libtool:
14742 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14743 #
14744 # This program is free software; you can redistribute it and/or modify
14745 # it under the terms of the GNU General Public License as published by
14746 # the Free Software Foundation; either version 2 of the License, or
14747 # (at your option) any later version.
14748 #
14749 # This program is distributed in the hope that it will be useful, but
14750 # WITHOUT ANY WARRANTY; without even the implied warranty of
14751 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14752 # General Public License for more details.
14753 #
14754 # You should have received a copy of the GNU General Public License
14755 # along with this program; if not, write to the Free Software
14756 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14757 #
14758 # As a special exception to the GNU General Public License, if you
14759 # distribute this file as part of a program that contains a
14760 # configuration script generated by Autoconf, you may include it under
14761 # the same distribution terms that you use for the rest of that program.
14762
14763 # A sed program that does not truncate output.
14764 SED=$lt_SED
14765
14766 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14767 Xsed="$SED -e s/^X//"
14768
14769 # The HP-UX ksh and POSIX shell print the target directory to stdout
14770 # if CDPATH is set.
14771 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14772
14773 # The names of the tagged configurations supported by this script.
14774 available_tags=
14775
14776 # ### BEGIN LIBTOOL CONFIG
14777
14778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14779
14780 # Shell to use when invoking shell scripts.
14781 SHELL=$lt_SHELL
14782
14783 # Whether or not to build shared libraries.
14784 build_libtool_libs=$enable_shared
14785
14786 # Whether or not to build static libraries.
14787 build_old_libs=$enable_static
14788
14789 # Whether or not to add -lc for building shared libraries.
14790 build_libtool_need_lc=$archive_cmds_need_lc
14791
14792 # Whether or not to disallow shared libs when runtime libs are static
14793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14794
14795 # Whether or not to optimize for fast installation.
14796 fast_install=$enable_fast_install
14797
14798 # The host system.
14799 host_alias=$host_alias
14800 host=$host
14801
14802 # An echo program that does not interpret backslashes.
14803 echo=$lt_echo
14804
14805 # The archiver.
14806 AR=$lt_AR
14807 AR_FLAGS=$lt_AR_FLAGS
14808
14809 # A C compiler.
14810 LTCC=$lt_LTCC
14811
14812 # A language-specific compiler.
14813 CC=$lt_compiler
14814
14815 # Is the compiler the GNU C compiler?
14816 with_gcc=$GCC
14817
14818 # An ERE matcher.
14819 EGREP=$lt_EGREP
14820
14821 # The linker used to build libraries.
14822 LD=$lt_LD
14823
14824 # Whether we need hard or soft links.
14825 LN_S=$lt_LN_S
14826
14827 # A BSD-compatible nm program.
14828 NM=$lt_NM
14829
14830 # A symbol stripping program
14831 STRIP=$lt_STRIP
14832
14833 # Used to examine libraries when file_magic_cmd begins "file"
14834 MAGIC_CMD=$MAGIC_CMD
14835
14836 # Used on cygwin: DLL creation program.
14837 DLLTOOL="$DLLTOOL"
14838
14839 # Used on cygwin: object dumper.
14840 OBJDUMP="$OBJDUMP"
14841
14842 # Used on cygwin: assembler.
14843 AS="$AS"
14844
14845 # The name of the directory that contains temporary libtool files.
14846 objdir=$objdir
14847
14848 # How to create reloadable object files.
14849 reload_flag=$lt_reload_flag
14850 reload_cmds=$lt_reload_cmds
14851
14852 # How to pass a linker flag through the compiler.
14853 wl=$lt_lt_prog_compiler_wl
14854
14855 # Object file suffix (normally "o").
14856 objext="$ac_objext"
14857
14858 # Old archive suffix (normally "a").
14859 libext="$libext"
14860
14861 # Shared library suffix (normally ".so").
14862 shrext_cmds='$shrext_cmds'
14863
14864 # Executable file suffix (normally "").
14865 exeext="$exeext"
14866
14867 # Additional compiler flags for building library objects.
14868 pic_flag=$lt_lt_prog_compiler_pic
14869 pic_mode=$pic_mode
14870
14871 # What is the maximum length of a command?
14872 max_cmd_len=$lt_cv_sys_max_cmd_len
14873
14874 # Does compiler simultaneously support -c and -o options?
14875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14876
14877 # Must we lock files when doing compilation ?
14878 need_locks=$lt_need_locks
14879
14880 # Do we need the lib prefix for modules?
14881 need_lib_prefix=$need_lib_prefix
14882
14883 # Do we need a version for libraries?
14884 need_version=$need_version
14885
14886 # Whether dlopen is supported.
14887 dlopen_support=$enable_dlopen
14888
14889 # Whether dlopen of programs is supported.
14890 dlopen_self=$enable_dlopen_self
14891
14892 # Whether dlopen of statically linked programs is supported.
14893 dlopen_self_static=$enable_dlopen_self_static
14894
14895 # Compiler flag to prevent dynamic linking.
14896 link_static_flag=$lt_lt_prog_compiler_static
14897
14898 # Compiler flag to turn off builtin functions.
14899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14900
14901 # Compiler flag to allow reflexive dlopens.
14902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14903
14904 # Compiler flag to generate shared objects directly from archives.
14905 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14906
14907 # Compiler flag to generate thread-safe objects.
14908 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14909
14910 # Library versioning type.
14911 version_type=$version_type
14912
14913 # Format of library name prefix.
14914 libname_spec=$lt_libname_spec
14915
14916 # List of archive names.  First name is the real one, the rest are links.
14917 # The last name is the one that the linker finds with -lNAME.
14918 library_names_spec=$lt_library_names_spec
14919
14920 # The coded name of the library, if different from the real name.
14921 soname_spec=$lt_soname_spec
14922
14923 # Commands used to build and install an old-style archive.
14924 RANLIB=$lt_RANLIB
14925 old_archive_cmds=$lt_old_archive_cmds
14926 old_postinstall_cmds=$lt_old_postinstall_cmds
14927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14928
14929 # Create an old-style archive from a shared archive.
14930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14931
14932 # Create a temporary old-style archive to link instead of a shared archive.
14933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14934
14935 # Commands used to build and install a shared archive.
14936 archive_cmds=$lt_archive_cmds
14937 archive_expsym_cmds=$lt_archive_expsym_cmds
14938 postinstall_cmds=$lt_postinstall_cmds
14939 postuninstall_cmds=$lt_postuninstall_cmds
14940
14941 # Commands used to build a loadable module (assumed same as above if empty)
14942 module_cmds=$lt_module_cmds
14943 module_expsym_cmds=$lt_module_expsym_cmds
14944
14945 # Commands to strip libraries.
14946 old_striplib=$lt_old_striplib
14947 striplib=$lt_striplib
14948
14949 # Dependencies to place before the objects being linked to create a
14950 # shared library.
14951 predep_objects=$lt_predep_objects
14952
14953 # Dependencies to place after the objects being linked to create a
14954 # shared library.
14955 postdep_objects=$lt_postdep_objects
14956
14957 # Dependencies to place before the objects being linked to create a
14958 # shared library.
14959 predeps=$lt_predeps
14960
14961 # Dependencies to place after the objects being linked to create a
14962 # shared library.
14963 postdeps=$lt_postdeps
14964
14965 # The library search path used internally by the compiler when linking
14966 # a shared library.
14967 compiler_lib_search_path=$lt_compiler_lib_search_path
14968
14969 # Method to check whether dependent libraries are shared objects.
14970 deplibs_check_method=$lt_deplibs_check_method
14971
14972 # Command to use when deplibs_check_method == file_magic.
14973 file_magic_cmd=$lt_file_magic_cmd
14974
14975 # Flag that allows shared libraries with undefined symbols to be built.
14976 allow_undefined_flag=$lt_allow_undefined_flag
14977
14978 # Flag that forces no undefined symbols.
14979 no_undefined_flag=$lt_no_undefined_flag
14980
14981 # Commands used to finish a libtool library installation in a directory.
14982 finish_cmds=$lt_finish_cmds
14983
14984 # Same as above, but a single script fragment to be evaled but not shown.
14985 finish_eval=$lt_finish_eval
14986
14987 # Take the output of nm and produce a listing of raw symbols and C names.
14988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14989
14990 # Transform the output of nm in a proper C declaration
14991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14992
14993 # Transform the output of nm in a C name address pair
14994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14995
14996 # This is the shared library runtime path variable.
14997 runpath_var=$runpath_var
14998
14999 # This is the shared library path variable.
15000 shlibpath_var=$shlibpath_var
15001
15002 # Is shlibpath searched before the hard-coded library search path?
15003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15004
15005 # How to hardcode a shared library path into an executable.
15006 hardcode_action=$hardcode_action
15007
15008 # Whether we should hardcode library paths into libraries.
15009 hardcode_into_libs=$hardcode_into_libs
15010
15011 # Flag to hardcode \$libdir into a binary during linking.
15012 # This must work even if \$libdir does not exist.
15013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15014
15015 # If ld is used when linking, flag to hardcode \$libdir into
15016 # a binary during linking. This must work even if \$libdir does
15017 # not exist.
15018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15019
15020 # Whether we need a single -rpath flag with a separated argument.
15021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15022
15023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15024 # resulting binary.
15025 hardcode_direct=$hardcode_direct
15026
15027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15028 # resulting binary.
15029 hardcode_minus_L=$hardcode_minus_L
15030
15031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15032 # the resulting binary.
15033 hardcode_shlibpath_var=$hardcode_shlibpath_var
15034
15035 # Set to yes if building a shared library automatically hardcodes DIR into the library
15036 # and all subsequent libraries and executables linked against it.
15037 hardcode_automatic=$hardcode_automatic
15038
15039 # Variables whose values should be saved in libtool wrapper scripts and
15040 # restored at relink time.
15041 variables_saved_for_relink="$variables_saved_for_relink"
15042
15043 # Whether libtool must link a program against all its dependency libraries.
15044 link_all_deplibs=$link_all_deplibs
15045
15046 # Compile-time system search path for libraries
15047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15048
15049 # Run-time system search path for libraries
15050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15051
15052 # Fix the shell variable \$srcfile for the compiler.
15053 fix_srcfile_path="$fix_srcfile_path"
15054
15055 # Set to yes if exported symbols are required.
15056 always_export_symbols=$always_export_symbols
15057
15058 # The commands to list exported symbols.
15059 export_symbols_cmds=$lt_export_symbols_cmds
15060
15061 # The commands to extract the exported symbol list from a shared archive.
15062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15063
15064 # Symbols that should not be listed in the preloaded symbols.
15065 exclude_expsyms=$lt_exclude_expsyms
15066
15067 # Symbols that must always be exported.
15068 include_expsyms=$lt_include_expsyms
15069
15070 # ### END LIBTOOL CONFIG
15071
15072 __EOF__
15073
15074
15075   case $host_os in
15076   aix3*)
15077     cat <<\EOF >> "$cfgfile"
15078
15079 # AIX sometimes has problems with the GCC collect2 program.  For some
15080 # reason, if we set the COLLECT_NAMES environment variable, the problems
15081 # vanish in a puff of smoke.
15082 if test "X${COLLECT_NAMES+set}" != Xset; then
15083   COLLECT_NAMES=
15084   export COLLECT_NAMES
15085 fi
15086 EOF
15087     ;;
15088   esac
15089
15090   # We use sed instead of cat because bash on DJGPP gets confused if
15091   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15092   # text mode, it properly converts lines to CR/LF.  This bash problem
15093   # is reportedly fixed, but why not run on old versions too?
15094   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15095
15096   mv -f "$cfgfile" "$ofile" || \
15097     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15098   chmod +x "$ofile"
15099
15100 else
15101   # If there is no Makefile yet, we rely on a make rule to execute
15102   # `config.status --recheck' to rerun these tests and create the
15103   # libtool script then.
15104   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15105   if test -f "$ltmain_in"; then
15106     test -f Makefile && make "$ltmain"
15107   fi
15108 fi
15109
15110
15111 ac_ext=c
15112 ac_cpp='$CPP $CPPFLAGS'
15113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15116
15117 CC="$lt_save_CC"
15118
15119
15120 # Check whether --with-tags or --without-tags was given.
15121 if test "${with_tags+set}" = set; then
15122   withval="$with_tags"
15123   tagnames="$withval"
15124 fi;
15125
15126 if test -f "$ltmain" && test -n "$tagnames"; then
15127   if test ! -f "${ofile}"; then
15128     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15129 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15130   fi
15131
15132   if test -z "$LTCC"; then
15133     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15134     if test -z "$LTCC"; then
15135       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15136 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15137     else
15138       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15139 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15140     fi
15141   fi
15142
15143   # Extract list of available tagged configurations in $ofile.
15144   # Note that this assumes the entire list is on one line.
15145   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15146
15147   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15148   for tagname in $tagnames; do
15149     IFS="$lt_save_ifs"
15150     # Check whether tagname contains only valid characters
15151     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15152     "") ;;
15153     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15154 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15155    { (exit 1); exit 1; }; }
15156         ;;
15157     esac
15158
15159     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15160     then
15161       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15162 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15163    { (exit 1); exit 1; }; }
15164     fi
15165
15166     # Update the list of available tags.
15167     if test -n "$tagname"; then
15168       echo appending configuration tag "$tagname" to $ofile
15169
15170       case $tagname in
15171       CXX)
15172         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15173             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15174             (test "X$CXX" != "Xg++"))) ; then
15175           ac_ext=cc
15176 ac_cpp='$CXXCPP $CPPFLAGS'
15177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15180
15181
15182
15183
15184 archive_cmds_need_lc_CXX=no
15185 allow_undefined_flag_CXX=
15186 always_export_symbols_CXX=no
15187 archive_expsym_cmds_CXX=
15188 export_dynamic_flag_spec_CXX=
15189 hardcode_direct_CXX=no
15190 hardcode_libdir_flag_spec_CXX=
15191 hardcode_libdir_flag_spec_ld_CXX=
15192 hardcode_libdir_separator_CXX=
15193 hardcode_minus_L_CXX=no
15194 hardcode_automatic_CXX=no
15195 module_cmds_CXX=
15196 module_expsym_cmds_CXX=
15197 link_all_deplibs_CXX=unknown
15198 old_archive_cmds_CXX=$old_archive_cmds
15199 no_undefined_flag_CXX=
15200 whole_archive_flag_spec_CXX=
15201 enable_shared_with_static_runtimes_CXX=no
15202
15203 # Dependencies to place before and after the object being linked:
15204 predep_objects_CXX=
15205 postdep_objects_CXX=
15206 predeps_CXX=
15207 postdeps_CXX=
15208 compiler_lib_search_path_CXX=
15209
15210 # Source file extension for C++ test sources.
15211 ac_ext=cc
15212
15213 # Object file extension for compiled C++ test sources.
15214 objext=o
15215 objext_CXX=$objext
15216
15217 # Code to be used in simple compile tests
15218 lt_simple_compile_test_code="int some_variable = 0;\n"
15219
15220 # Code to be used in simple link tests
15221 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15222
15223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15224
15225 # If no C compiler was specified, use CC.
15226 LTCC=${LTCC-"$CC"}
15227
15228 # Allow CC to be a program name with arguments.
15229 compiler=$CC
15230
15231
15232 # Allow CC to be a program name with arguments.
15233 lt_save_CC=$CC
15234 lt_save_LD=$LD
15235 lt_save_GCC=$GCC
15236 GCC=$GXX
15237 lt_save_with_gnu_ld=$with_gnu_ld
15238 lt_save_path_LD=$lt_cv_path_LD
15239 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15240   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15241 else
15242   unset lt_cv_prog_gnu_ld
15243 fi
15244 if test -n "${lt_cv_path_LDCXX+set}"; then
15245   lt_cv_path_LD=$lt_cv_path_LDCXX
15246 else
15247   unset lt_cv_path_LD
15248 fi
15249 test -z "${LDCXX+set}" || LD=$LDCXX
15250 CC=${CXX-"c++"}
15251 compiler=$CC
15252 compiler_CXX=$CC
15253 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15254
15255 # We don't want -fno-exception wen compiling C++ code, so set the
15256 # no_builtin_flag separately
15257 if test "$GXX" = yes; then
15258   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15259 else
15260   lt_prog_compiler_no_builtin_flag_CXX=
15261 fi
15262
15263 if test "$GXX" = yes; then
15264   # Set up default GNU C++ configuration
15265
15266
15267 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15268 if test "${with_gnu_ld+set}" = set; then
15269   withval="$with_gnu_ld"
15270   test "$withval" = no || with_gnu_ld=yes
15271 else
15272   with_gnu_ld=no
15273 fi;
15274 ac_prog=ld
15275 if test "$GCC" = yes; then
15276   # Check if gcc -print-prog-name=ld gives a path.
15277   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15278 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15279   case $host in
15280   *-*-mingw*)
15281     # gcc leaves a trailing carriage return which upsets mingw
15282     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15283   *)
15284     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15285   esac
15286   case $ac_prog in
15287     # Accept absolute paths.
15288     [\\/]* | ?:[\\/]*)
15289       re_direlt='/[^/][^/]*/\.\./'
15290       # Canonicalize the pathname of ld
15291       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15292       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15293         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15294       done
15295       test -z "$LD" && LD="$ac_prog"
15296       ;;
15297   "")
15298     # If it fails, then pretend we aren't using GCC.
15299     ac_prog=ld
15300     ;;
15301   *)
15302     # If it is relative, then search for the first ld in PATH.
15303     with_gnu_ld=unknown
15304     ;;
15305   esac
15306 elif test "$with_gnu_ld" = yes; then
15307   echo "$as_me:$LINENO: checking for GNU ld" >&5
15308 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15309 else
15310   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15311 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15312 fi
15313 if test "${lt_cv_path_LD+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   if test -z "$LD"; then
15317   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15318   for ac_dir in $PATH; do
15319     IFS="$lt_save_ifs"
15320     test -z "$ac_dir" && ac_dir=.
15321     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15322       lt_cv_path_LD="$ac_dir/$ac_prog"
15323       # Check to see if the program is GNU ld.  I'd rather use --version,
15324       # but apparently some GNU ld's only accept -v.
15325       # Break only if it was the GNU/non-GNU ld that we prefer.
15326       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15327       *GNU* | *'with BFD'*)
15328         test "$with_gnu_ld" != no && break
15329         ;;
15330       *)
15331         test "$with_gnu_ld" != yes && break
15332         ;;
15333       esac
15334     fi
15335   done
15336   IFS="$lt_save_ifs"
15337 else
15338   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15339 fi
15340 fi
15341
15342 LD="$lt_cv_path_LD"
15343 if test -n "$LD"; then
15344   echo "$as_me:$LINENO: result: $LD" >&5
15345 echo "${ECHO_T}$LD" >&6
15346 else
15347   echo "$as_me:$LINENO: result: no" >&5
15348 echo "${ECHO_T}no" >&6
15349 fi
15350 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15351 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15352    { (exit 1); exit 1; }; }
15353 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15354 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15355 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15356   echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15359 case `$LD -v 2>&1 </dev/null` in
15360 *GNU* | *'with BFD'*)
15361   lt_cv_prog_gnu_ld=yes
15362   ;;
15363 *)
15364   lt_cv_prog_gnu_ld=no
15365   ;;
15366 esac
15367 fi
15368 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15369 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15370 with_gnu_ld=$lt_cv_prog_gnu_ld
15371
15372
15373
15374   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15375   # archiving commands below assume that GNU ld is being used.
15376   if test "$with_gnu_ld" = yes; then
15377     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378     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'
15379
15380     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15381     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15382
15383     # If archive_cmds runs LD, not CC, wlarc should be empty
15384     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15385     #     investigate it a little bit more. (MM)
15386     wlarc='${wl}'
15387
15388     # ancient GNU ld didn't support --whole-archive et. al.
15389     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15390         grep 'no-whole-archive' > /dev/null; then
15391       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15392     else
15393       whole_archive_flag_spec_CXX=
15394     fi
15395   else
15396     with_gnu_ld=no
15397     wlarc=
15398
15399     # A generic and very simple default shared library creation
15400     # command for GNU C++ for the case where it uses the native
15401     # linker, instead of GNU ld.  If possible, this setting should
15402     # overridden to take advantage of the native linker features on
15403     # the platform it is being used on.
15404     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15405   fi
15406
15407   # Commands to make compiler produce verbose output that lists
15408   # what "hidden" libraries, object files and flags are used when
15409   # linking a shared library.
15410   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15411
15412 else
15413   GXX=no
15414   with_gnu_ld=no
15415   wlarc=
15416 fi
15417
15418 # PORTME: fill in a description of your system's C++ link characteristics
15419 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15420 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15421 ld_shlibs_CXX=yes
15422 case $host_os in
15423   aix3*)
15424     # FIXME: insert proper C++ library support
15425     ld_shlibs_CXX=no
15426     ;;
15427   aix4* | aix5*)
15428     if test "$host_cpu" = ia64; then
15429       # On IA64, the linker does run time linking by default, so we don't
15430       # have to do anything special.
15431       aix_use_runtimelinking=no
15432       exp_sym_flag='-Bexport'
15433       no_entry_flag=""
15434     else
15435       aix_use_runtimelinking=no
15436
15437       # Test if we are trying to use run time linking or normal
15438       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15439       # need to do runtime linking.
15440       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15441         for ld_flag in $LDFLAGS; do
15442           case $ld_flag in
15443           *-brtl*)
15444             aix_use_runtimelinking=yes
15445             break
15446             ;;
15447           esac
15448         done
15449       esac
15450
15451       exp_sym_flag='-bexport'
15452       no_entry_flag='-bnoentry'
15453     fi
15454
15455     # When large executables or shared objects are built, AIX ld can
15456     # have problems creating the table of contents.  If linking a library
15457     # or program results in "error TOC overflow" add -mminimal-toc to
15458     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15459     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15460
15461     archive_cmds_CXX=''
15462     hardcode_direct_CXX=yes
15463     hardcode_libdir_separator_CXX=':'
15464     link_all_deplibs_CXX=yes
15465
15466     if test "$GXX" = yes; then
15467       case $host_os in aix4.012|aix4.012.*)
15468       # We only want to do this on AIX 4.2 and lower, the check
15469       # below for broken collect2 doesn't work under 4.3+
15470         collect2name=`${CC} -print-prog-name=collect2`
15471         if test -f "$collect2name" && \
15472            strings "$collect2name" | grep resolve_lib_name >/dev/null
15473         then
15474           # We have reworked collect2
15475           hardcode_direct_CXX=yes
15476         else
15477           # We have old collect2
15478           hardcode_direct_CXX=unsupported
15479           # It fails to find uninstalled libraries when the uninstalled
15480           # path is not listed in the libpath.  Setting hardcode_minus_L
15481           # to unsupported forces relinking
15482           hardcode_minus_L_CXX=yes
15483           hardcode_libdir_flag_spec_CXX='-L$libdir'
15484           hardcode_libdir_separator_CXX=
15485         fi
15486       esac
15487       shared_flag='-shared'
15488     else
15489       # not using gcc
15490       if test "$host_cpu" = ia64; then
15491         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15492         # chokes on -Wl,-G. The following line is correct:
15493         shared_flag='-G'
15494       else
15495         if test "$aix_use_runtimelinking" = yes; then
15496           shared_flag='${wl}-G'
15497         else
15498           shared_flag='${wl}-bM:SRE'
15499         fi
15500       fi
15501     fi
15502
15503     # It seems that -bexpall does not export symbols beginning with
15504     # underscore (_), so it is better to generate a list of symbols to export.
15505     always_export_symbols_CXX=yes
15506     if test "$aix_use_runtimelinking" = yes; then
15507       # Warning - without using the other runtime loading flags (-brtl),
15508       # -berok will link without error, but may produce a broken library.
15509       allow_undefined_flag_CXX='-berok'
15510       # Determine the default libpath from the value encoded in an empty executable.
15511       cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h.  */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h.  */
15517
15518 int
15519 main ()
15520 {
15521
15522   ;
15523   return 0;
15524 }
15525 _ACEOF
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528   (eval $ac_link) 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -z "$ac_cxx_werror_flag"
15536                          || test ! -s conftest.err'
15537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538   (eval $ac_try) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); }; } &&
15542          { ac_try='test -s conftest$ac_exeext'
15543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544   (eval $ac_try) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }; then
15548
15549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15550 }'`
15551 # Check for a 64-bit object if we didn't find anything.
15552 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; }
15553 }'`; fi
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 fi
15559 rm -f conftest.err conftest.$ac_objext \
15560       conftest$ac_exeext conftest.$ac_ext
15561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15562
15563       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15564
15565       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"
15566      else
15567       if test "$host_cpu" = ia64; then
15568         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15569         allow_undefined_flag_CXX="-z nodefs"
15570         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"
15571       else
15572         # Determine the default libpath from the value encoded in an empty executable.
15573         cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579
15580 int
15581 main ()
15582 {
15583
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590   (eval $ac_link) 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } &&
15597          { ac_try='test -z "$ac_cxx_werror_flag"
15598                          || test ! -s conftest.err'
15599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600   (eval $ac_try) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; } &&
15604          { ac_try='test -s conftest$ac_exeext'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; }; then
15610
15611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15612 }'`
15613 # Check for a 64-bit object if we didn't find anything.
15614 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; }
15615 }'`; fi
15616 else
15617   echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620 fi
15621 rm -f conftest.err conftest.$ac_objext \
15622       conftest$ac_exeext conftest.$ac_ext
15623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15624
15625         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15626         # Warning - without using the other run time loading flags,
15627         # -berok will link without error, but may produce a broken library.
15628         no_undefined_flag_CXX=' ${wl}-bernotok'
15629         allow_undefined_flag_CXX=' ${wl}-berok'
15630         # -bexpall does not export symbols beginning with underscore (_)
15631         always_export_symbols_CXX=yes
15632         # Exported symbols can be pulled into shared objects from archives
15633         whole_archive_flag_spec_CXX=' '
15634         archive_cmds_need_lc_CXX=yes
15635         # This is similar to how AIX traditionally builds it's shared libraries.
15636         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'
15637       fi
15638     fi
15639     ;;
15640   chorus*)
15641     case $cc_basename in
15642       *)
15643         # FIXME: insert proper C++ library support
15644         ld_shlibs_CXX=no
15645         ;;
15646     esac
15647     ;;
15648
15649
15650   cygwin* | mingw* | pw32*)
15651     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15652     # as there is no search path for DLLs.
15653     hardcode_libdir_flag_spec_CXX='-L$libdir'
15654     allow_undefined_flag_CXX=unsupported
15655     always_export_symbols_CXX=no
15656     enable_shared_with_static_runtimes_CXX=yes
15657
15658     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15659       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'
15660       # If the export-symbols file already is a .def file (1st line
15661       # is EXPORTS), use it as is; otherwise, prepend...
15662       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15663         cp $export_symbols $output_objdir/$soname.def;
15664       else
15665         echo EXPORTS > $output_objdir/$soname.def;
15666         cat $export_symbols >> $output_objdir/$soname.def;
15667       fi~
15668       $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'
15669     else
15670       ld_shlibs_CXX=no
15671     fi
15672   ;;
15673       darwin* | rhapsody*)
15674         case "$host_os" in
15675         rhapsody* | darwin1.[012])
15676          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15677          ;;
15678        *) # Darwin 1.3 on
15679          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15680            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15681          else
15682            case ${MACOSX_DEPLOYMENT_TARGET} in
15683              10.[012])
15684                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15685                ;;
15686              10.*)
15687                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15688                ;;
15689            esac
15690          fi
15691          ;;
15692         esac
15693       archive_cmds_need_lc_CXX=no
15694       hardcode_direct_CXX=no
15695       hardcode_automatic_CXX=yes
15696       hardcode_shlibpath_var_CXX=unsupported
15697       whole_archive_flag_spec_CXX=''
15698       link_all_deplibs_CXX=yes
15699
15700     if test "$GXX" = yes ; then
15701       lt_int_apple_cc_single_mod=no
15702       output_verbose_link_cmd='echo'
15703       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15704        lt_int_apple_cc_single_mod=yes
15705       fi
15706       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15707        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15708       else
15709           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'
15710         fi
15711         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15712         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15713           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15714             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}'
15715           else
15716             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}'
15717           fi
15718             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}'
15719       else
15720       case "$cc_basename" in
15721         xlc*)
15722          output_verbose_link_cmd='echo'
15723           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'
15724           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15725           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15726           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}'
15727           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}'
15728           ;;
15729        *)
15730          ld_shlibs_CXX=no
15731           ;;
15732       esac
15733       fi
15734         ;;
15735
15736   dgux*)
15737     case $cc_basename in
15738       ec++)
15739         # FIXME: insert proper C++ library support
15740         ld_shlibs_CXX=no
15741         ;;
15742       ghcx)
15743         # Green Hills C++ Compiler
15744         # FIXME: insert proper C++ library support
15745         ld_shlibs_CXX=no
15746         ;;
15747       *)
15748         # FIXME: insert proper C++ library support
15749         ld_shlibs_CXX=no
15750         ;;
15751     esac
15752     ;;
15753   freebsd12*)
15754     # C++ shared libraries reported to be fairly broken before switch to ELF
15755     ld_shlibs_CXX=no
15756     ;;
15757   freebsd-elf*)
15758     archive_cmds_need_lc_CXX=no
15759     ;;
15760   freebsd* | kfreebsd*-gnu)
15761     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15762     # conventions
15763     ld_shlibs_CXX=yes
15764     ;;
15765   gnu*)
15766     ;;
15767   hpux9*)
15768     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15769     hardcode_libdir_separator_CXX=:
15770     export_dynamic_flag_spec_CXX='${wl}-E'
15771     hardcode_direct_CXX=yes
15772     hardcode_minus_L_CXX=yes # Not in the search PATH,
15773                                 # but as the default
15774                                 # location of the library.
15775
15776     case $cc_basename in
15777     CC)
15778       # FIXME: insert proper C++ library support
15779       ld_shlibs_CXX=no
15780       ;;
15781     aCC)
15782       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'
15783       # Commands to make compiler produce verbose output that lists
15784       # what "hidden" libraries, object files and flags are used when
15785       # linking a shared library.
15786       #
15787       # There doesn't appear to be a way to prevent this compiler from
15788       # explicitly linking system object files so we need to strip them
15789       # from the output so that they don't get included in the library
15790       # dependencies.
15791       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'
15792       ;;
15793     *)
15794       if test "$GXX" = yes; then
15795         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'
15796       else
15797         # FIXME: insert proper C++ library support
15798         ld_shlibs_CXX=no
15799       fi
15800       ;;
15801     esac
15802     ;;
15803   hpux10*|hpux11*)
15804     if test $with_gnu_ld = no; then
15805       case "$host_cpu" in
15806       hppa*64*)
15807         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15808         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15809         hardcode_libdir_separator_CXX=:
15810         ;;
15811       ia64*)
15812         hardcode_libdir_flag_spec_CXX='-L$libdir'
15813         ;;
15814       *)
15815         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15816         hardcode_libdir_separator_CXX=:
15817         export_dynamic_flag_spec_CXX='${wl}-E'
15818         ;;
15819       esac
15820     fi
15821     case "$host_cpu" in
15822     hppa*64*)
15823       hardcode_direct_CXX=no
15824       hardcode_shlibpath_var_CXX=no
15825       ;;
15826     ia64*)
15827       hardcode_direct_CXX=no
15828       hardcode_shlibpath_var_CXX=no
15829       hardcode_minus_L_CXX=yes # Not in the search PATH,
15830                                               # but as the default
15831                                               # location of the library.
15832       ;;
15833     *)
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     esac
15840
15841     case $cc_basename in
15842       CC)
15843         # FIXME: insert proper C++ library support
15844         ld_shlibs_CXX=no
15845         ;;
15846       aCC)
15847         case "$host_cpu" in
15848         hppa*64*|ia64*)
15849           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15850           ;;
15851         *)
15852           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15853           ;;
15854         esac
15855         # Commands to make compiler produce verbose output that lists
15856         # what "hidden" libraries, object files and flags are used when
15857         # linking a shared library.
15858         #
15859         # There doesn't appear to be a way to prevent this compiler from
15860         # explicitly linking system object files so we need to strip them
15861         # from the output so that they don't get included in the library
15862         # dependencies.
15863         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'
15864         ;;
15865       *)
15866         if test "$GXX" = yes; then
15867           if test $with_gnu_ld = no; then
15868             case "$host_cpu" in
15869             ia64*|hppa*64*)
15870               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15871               ;;
15872             *)
15873               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'
15874               ;;
15875             esac
15876           fi
15877         else
15878           # FIXME: insert proper C++ library support
15879           ld_shlibs_CXX=no
15880         fi
15881         ;;
15882     esac
15883     ;;
15884   irix5* | irix6*)
15885     case $cc_basename in
15886       CC)
15887         # SGI C++
15888         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'
15889
15890         # Archives containing C++ object files must be created using
15891         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15892         # necessary to make sure instantiated templates are included
15893         # in the archive.
15894         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15895         ;;
15896       *)
15897         if test "$GXX" = yes; then
15898           if test "$with_gnu_ld" = no; then
15899             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'
15900           else
15901             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'
15902           fi
15903         fi
15904         link_all_deplibs_CXX=yes
15905         ;;
15906     esac
15907     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15908     hardcode_libdir_separator_CXX=:
15909     ;;
15910   linux*)
15911     case $cc_basename in
15912       KCC)
15913         # Kuck and Associates, Inc. (KAI) C++ Compiler
15914
15915         # KCC will only create a shared library if the output file
15916         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15917         # to its proper name (with version) after linking.
15918         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'
15919         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'
15920         # Commands to make compiler produce verbose output that lists
15921         # what "hidden" libraries, object files and flags are used when
15922         # linking a shared library.
15923         #
15924         # There doesn't appear to be a way to prevent this compiler from
15925         # explicitly linking system object files so we need to strip them
15926         # from the output so that they don't get included in the library
15927         # dependencies.
15928         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'
15929
15930         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15931         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15932
15933         # Archives containing C++ object files must be created using
15934         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15935         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15936         ;;
15937       icpc)
15938         # Intel C++
15939         with_gnu_ld=yes
15940         # version 8.0 and above of icpc choke on multiply defined symbols
15941         # if we add $predep_objects and $postdep_objects, however 7.1 and
15942         # earlier do not add the objects themselves.
15943         case `$CC -V 2>&1` in
15944         *"Version 7."*)
15945           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946           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'
15947           ;;
15948         *)  # Version 8.0 or newer
15949           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15950         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15951           ;;
15952         esac
15953         archive_cmds_need_lc_CXX=no
15954         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15955         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15956         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15957         ;;
15958       cxx)
15959         # Compaq C++
15960         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961         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'
15962
15963         runpath_var=LD_RUN_PATH
15964         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15965         hardcode_libdir_separator_CXX=:
15966
15967         # Commands to make compiler produce verbose output that lists
15968         # what "hidden" libraries, object files and flags are used when
15969         # linking a shared library.
15970         #
15971         # There doesn't appear to be a way to prevent this compiler from
15972         # explicitly linking system object files so we need to strip them
15973         # from the output so that they don't get included in the library
15974         # dependencies.
15975         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'
15976         ;;
15977     esac
15978     ;;
15979   lynxos*)
15980     # FIXME: insert proper C++ library support
15981     ld_shlibs_CXX=no
15982     ;;
15983   m88k*)
15984     # FIXME: insert proper C++ library support
15985     ld_shlibs_CXX=no
15986     ;;
15987   mvs*)
15988     case $cc_basename in
15989       cxx)
15990         # FIXME: insert proper C++ library support
15991         ld_shlibs_CXX=no
15992         ;;
15993       *)
15994         # FIXME: insert proper C++ library support
15995         ld_shlibs_CXX=no
15996         ;;
15997     esac
15998     ;;
15999   netbsd*)
16000     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16001       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16002       wlarc=
16003       hardcode_libdir_flag_spec_CXX='-R$libdir'
16004       hardcode_direct_CXX=yes
16005       hardcode_shlibpath_var_CXX=no
16006     fi
16007     # Workaround some broken pre-1.5 toolchains
16008     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16009     ;;
16010   openbsd2*)
16011     # C++ shared libraries are fairly broken
16012     ld_shlibs_CXX=no
16013     ;;
16014   openbsd*)
16015     hardcode_direct_CXX=yes
16016     hardcode_shlibpath_var_CXX=no
16017     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16018     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16019     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16020       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16021       export_dynamic_flag_spec_CXX='${wl}-E'
16022       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16023     fi
16024     output_verbose_link_cmd='echo'
16025     ;;
16026   osf3*)
16027     case $cc_basename in
16028       KCC)
16029         # Kuck and Associates, Inc. (KAI) C++ Compiler
16030
16031         # KCC will only create a shared library if the output file
16032         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16033         # to its proper name (with version) after linking.
16034         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'
16035
16036         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16037         hardcode_libdir_separator_CXX=:
16038
16039         # Archives containing C++ object files must be created using
16040         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16041         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16042
16043         ;;
16044       RCC)
16045         # Rational C++ 2.4.1
16046         # FIXME: insert proper C++ library support
16047         ld_shlibs_CXX=no
16048         ;;
16049       cxx)
16050         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16051         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'
16052
16053         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16054         hardcode_libdir_separator_CXX=:
16055
16056         # Commands to make compiler produce verbose output that lists
16057         # what "hidden" libraries, object files and flags are used when
16058         # linking a shared library.
16059         #
16060         # There doesn't appear to be a way to prevent this compiler from
16061         # explicitly linking system object files so we need to strip them
16062         # from the output so that they don't get included in the library
16063         # dependencies.
16064         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'
16065         ;;
16066       *)
16067         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16068           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16069           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'
16070
16071           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16072           hardcode_libdir_separator_CXX=:
16073
16074           # Commands to make compiler produce verbose output that lists
16075           # what "hidden" libraries, object files and flags are used when
16076           # linking a shared library.
16077           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16078
16079         else
16080           # FIXME: insert proper C++ library support
16081           ld_shlibs_CXX=no
16082         fi
16083         ;;
16084     esac
16085     ;;
16086   osf4* | osf5*)
16087     case $cc_basename in
16088       KCC)
16089         # Kuck and Associates, Inc. (KAI) C++ Compiler
16090
16091         # KCC will only create a shared library if the output file
16092         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16093         # to its proper name (with version) after linking.
16094         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'
16095
16096         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16097         hardcode_libdir_separator_CXX=:
16098
16099         # Archives containing C++ object files must be created using
16100         # the KAI C++ compiler.
16101         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16102         ;;
16103       RCC)
16104         # Rational C++ 2.4.1
16105         # FIXME: insert proper C++ library support
16106         ld_shlibs_CXX=no
16107         ;;
16108       cxx)
16109         allow_undefined_flag_CXX=' -expect_unresolved \*'
16110         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'
16111         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16112           echo "-hidden">> $lib.exp~
16113           $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~
16114           $rm $lib.exp'
16115
16116         hardcode_libdir_flag_spec_CXX='-rpath $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}-msym ${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   psos*)
16150     # FIXME: insert proper C++ library support
16151     ld_shlibs_CXX=no
16152     ;;
16153   sco*)
16154     archive_cmds_need_lc_CXX=no
16155     case $cc_basename in
16156       CC)
16157         # FIXME: insert proper C++ library support
16158         ld_shlibs_CXX=no
16159         ;;
16160       *)
16161         # FIXME: insert proper C++ library support
16162         ld_shlibs_CXX=no
16163         ;;
16164     esac
16165     ;;
16166   sunos4*)
16167     case $cc_basename in
16168       CC)
16169         # Sun C++ 4.x
16170         # FIXME: insert proper C++ library support
16171         ld_shlibs_CXX=no
16172         ;;
16173       lcc)
16174         # Lucid
16175         # FIXME: insert proper C++ library support
16176         ld_shlibs_CXX=no
16177         ;;
16178       *)
16179         # FIXME: insert proper C++ library support
16180         ld_shlibs_CXX=no
16181         ;;
16182     esac
16183     ;;
16184   solaris*)
16185     case $cc_basename in
16186       CC)
16187         # Sun C++ 4.2, 5.x and Centerline C++
16188         no_undefined_flag_CXX=' -zdefs'
16189         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16190         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16191         $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'
16192
16193         hardcode_libdir_flag_spec_CXX='-R$libdir'
16194         hardcode_shlibpath_var_CXX=no
16195         case $host_os in
16196           solaris2.0-5 | solaris2.0-5.*) ;;
16197           *)
16198             # The C++ compiler is used as linker so we must use $wl
16199             # flag to pass the commands to the underlying system
16200             # linker.
16201             # Supported since Solaris 2.6 (maybe 2.5.1?)
16202             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16203             ;;
16204         esac
16205         link_all_deplibs_CXX=yes
16206
16207         # Commands to make compiler produce verbose output that lists
16208         # what "hidden" libraries, object files and flags are used when
16209         # linking a shared library.
16210         #
16211         # There doesn't appear to be a way to prevent this compiler from
16212         # explicitly linking system object files so we need to strip them
16213         # from the output so that they don't get included in the library
16214         # dependencies.
16215         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'
16216
16217         # Archives containing C++ object files must be created using
16218         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16219         # necessary to make sure instantiated templates are included
16220         # in the archive.
16221         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16222         ;;
16223       gcx)
16224         # Green Hills C++ Compiler
16225         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16226
16227         # The C++ compiler must be used to create the archive.
16228         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16229         ;;
16230       *)
16231         # GNU C++ compiler with Solaris linker
16232         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16233           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16234           if $CC --version | grep -v '^2\.7' > /dev/null; then
16235             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16236             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16237                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16238
16239             # Commands to make compiler produce verbose output that lists
16240             # what "hidden" libraries, object files and flags are used when
16241             # linking a shared library.
16242             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16243           else
16244             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16245             # platform.
16246             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16247             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16249
16250             # Commands to make compiler produce verbose output that lists
16251             # what "hidden" libraries, object files and flags are used when
16252             # linking a shared library.
16253             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16254           fi
16255
16256           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16257         fi
16258         ;;
16259     esac
16260     ;;
16261   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16262     archive_cmds_need_lc_CXX=no
16263     ;;
16264   tandem*)
16265     case $cc_basename in
16266       NCC)
16267         # NonStop-UX NCC 3.20
16268         # FIXME: insert proper C++ library support
16269         ld_shlibs_CXX=no
16270         ;;
16271       *)
16272         # FIXME: insert proper C++ library support
16273         ld_shlibs_CXX=no
16274         ;;
16275     esac
16276     ;;
16277   vxworks*)
16278     # FIXME: insert proper C++ library support
16279     ld_shlibs_CXX=no
16280     ;;
16281   *)
16282     # FIXME: insert proper C++ library support
16283     ld_shlibs_CXX=no
16284     ;;
16285 esac
16286 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16287 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16288 test "$ld_shlibs_CXX" = no && can_build_shared=no
16289
16290 GCC_CXX="$GXX"
16291 LD_CXX="$LD"
16292
16293
16294 cat > conftest.$ac_ext <<EOF
16295 class Foo
16296 {
16297 public:
16298   Foo (void) { a = 0; }
16299 private:
16300   int a;
16301 };
16302 EOF
16303
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305   (eval $ac_compile) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; then
16309   # Parse the compiler output and extract the necessary
16310   # objects, libraries and library flags.
16311
16312   # Sentinel used to keep track of whether or not we are before
16313   # the conftest object file.
16314   pre_test_object_deps_done=no
16315
16316   # The `*' in the case matches for architectures that use `case' in
16317   # $output_verbose_cmd can trigger glob expansion during the loop
16318   # eval without this substitution.
16319   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16320
16321   for p in `eval $output_verbose_link_cmd`; do
16322     case $p in
16323
16324     -L* | -R* | -l*)
16325        # Some compilers place space between "-{L,R}" and the path.
16326        # Remove the space.
16327        if test $p = "-L" \
16328           || test $p = "-R"; then
16329          prev=$p
16330          continue
16331        else
16332          prev=
16333        fi
16334
16335        if test "$pre_test_object_deps_done" = no; then
16336          case $p in
16337          -L* | -R*)
16338            # Internal compiler library paths should come after those
16339            # provided the user.  The postdeps already come after the
16340            # user supplied libs so there is no need to process them.
16341            if test -z "$compiler_lib_search_path_CXX"; then
16342              compiler_lib_search_path_CXX="${prev}${p}"
16343            else
16344              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16345            fi
16346            ;;
16347          # The "-l" case would never come before the object being
16348          # linked, so don't bother handling this case.
16349          esac
16350        else
16351          if test -z "$postdeps_CXX"; then
16352            postdeps_CXX="${prev}${p}"
16353          else
16354            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16355          fi
16356        fi
16357        ;;
16358
16359     *.$objext)
16360        # This assumes that the test object file only shows up
16361        # once in the compiler output.
16362        if test "$p" = "conftest.$objext"; then
16363          pre_test_object_deps_done=yes
16364          continue
16365        fi
16366
16367        if test "$pre_test_object_deps_done" = no; then
16368          if test -z "$predep_objects_CXX"; then
16369            predep_objects_CXX="$p"
16370          else
16371            predep_objects_CXX="$predep_objects_CXX $p"
16372          fi
16373        else
16374          if test -z "$postdep_objects_CXX"; then
16375            postdep_objects_CXX="$p"
16376          else
16377            postdep_objects_CXX="$postdep_objects_CXX $p"
16378          fi
16379        fi
16380        ;;
16381
16382     *) ;; # Ignore the rest.
16383
16384     esac
16385   done
16386
16387   # Clean up.
16388   rm -f a.out a.exe
16389 else
16390   echo "libtool.m4: error: problem compiling CXX test program"
16391 fi
16392
16393 $rm -f confest.$objext
16394
16395 case " $postdeps_CXX " in
16396 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16397 esac
16398
16399 lt_prog_compiler_wl_CXX=
16400 lt_prog_compiler_pic_CXX=
16401 lt_prog_compiler_static_CXX=
16402
16403 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16404 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16405
16406   # C++ specific cases for pic, static, wl, etc.
16407   if test "$GXX" = yes; then
16408     lt_prog_compiler_wl_CXX='-Wl,'
16409     lt_prog_compiler_static_CXX='-static'
16410
16411     case $host_os in
16412     aix*)
16413       # All AIX code is PIC.
16414       if test "$host_cpu" = ia64; then
16415         # AIX 5 now supports IA64 processor
16416         lt_prog_compiler_static_CXX='-Bstatic'
16417       fi
16418       ;;
16419     amigaos*)
16420       # FIXME: we need at least 68020 code to build shared libraries, but
16421       # adding the `-m68020' flag to GCC prevents building anything better,
16422       # like `-m68040'.
16423       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16424       ;;
16425     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16426       # PIC is the default for these OSes.
16427       ;;
16428     mingw* | os2* | pw32*)
16429       # This hack is so that the source file can tell whether it is being
16430       # built for inclusion in a dll (and should export symbols for example).
16431       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16432       ;;
16433     darwin* | rhapsody*)
16434       # PIC is the default on this platform
16435       # Common symbols not allowed in MH_DYLIB files
16436       lt_prog_compiler_pic_CXX='-fno-common'
16437       ;;
16438     *djgpp*)
16439       # DJGPP does not support shared libraries at all
16440       lt_prog_compiler_pic_CXX=
16441       ;;
16442     sysv4*MP*)
16443       if test -d /usr/nec; then
16444         lt_prog_compiler_pic_CXX=-Kconform_pic
16445       fi
16446       ;;
16447     hpux*)
16448       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16449       # not for PA HP-UX.
16450       case "$host_cpu" in
16451       hppa*64*|ia64*)
16452         ;;
16453       *)
16454         lt_prog_compiler_pic_CXX='-fPIC'
16455         ;;
16456       esac
16457       ;;
16458     *)
16459       lt_prog_compiler_pic_CXX='-fPIC'
16460       ;;
16461     esac
16462   else
16463     case $host_os in
16464       aix4* | aix5*)
16465         # All AIX code is PIC.
16466         if test "$host_cpu" = ia64; then
16467           # AIX 5 now supports IA64 processor
16468           lt_prog_compiler_static_CXX='-Bstatic'
16469         else
16470           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16471         fi
16472         ;;
16473       chorus*)
16474         case $cc_basename in
16475         cxch68)
16476           # Green Hills C++ Compiler
16477           # _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"
16478           ;;
16479         esac
16480         ;;
16481        darwin*)
16482          # PIC is the default on this platform
16483          # Common symbols not allowed in MH_DYLIB files
16484          case "$cc_basename" in
16485            xlc*)
16486            lt_prog_compiler_pic_CXX='-qnocommon'
16487            lt_prog_compiler_wl_CXX='-Wl,'
16488            ;;
16489          esac
16490        ;;
16491       dgux*)
16492         case $cc_basename in
16493           ec++)
16494             lt_prog_compiler_pic_CXX='-KPIC'
16495             ;;
16496           ghcx)
16497             # Green Hills C++ Compiler
16498             lt_prog_compiler_pic_CXX='-pic'
16499             ;;
16500           *)
16501             ;;
16502         esac
16503         ;;
16504       freebsd* | kfreebsd*-gnu)
16505         # FreeBSD uses GNU C++
16506         ;;
16507       hpux9* | hpux10* | hpux11*)
16508         case $cc_basename in
16509           CC)
16510             lt_prog_compiler_wl_CXX='-Wl,'
16511             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16512             if test "$host_cpu" != ia64; then
16513               lt_prog_compiler_pic_CXX='+Z'
16514             fi
16515             ;;
16516           aCC)
16517             lt_prog_compiler_wl_CXX='-Wl,'
16518             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16519             case "$host_cpu" in
16520             hppa*64*|ia64*)
16521               # +Z the default
16522               ;;
16523             *)
16524               lt_prog_compiler_pic_CXX='+Z'
16525               ;;
16526             esac
16527             ;;
16528           *)
16529             ;;
16530         esac
16531         ;;
16532       irix5* | irix6* | nonstopux*)
16533         case $cc_basename in
16534           CC)
16535             lt_prog_compiler_wl_CXX='-Wl,'
16536             lt_prog_compiler_static_CXX='-non_shared'
16537             # CC pic flag -KPIC is the default.
16538             ;;
16539           *)
16540             ;;
16541         esac
16542         ;;
16543       linux*)
16544         case $cc_basename in
16545           KCC)
16546             # KAI C++ Compiler
16547             lt_prog_compiler_wl_CXX='--backend -Wl,'
16548             lt_prog_compiler_pic_CXX='-fPIC'
16549             ;;
16550           icpc)
16551             # Intel C++
16552             lt_prog_compiler_wl_CXX='-Wl,'
16553             lt_prog_compiler_pic_CXX='-KPIC'
16554             lt_prog_compiler_static_CXX='-static'
16555             ;;
16556           cxx)
16557             # Compaq C++
16558             # Make sure the PIC flag is empty.  It appears that all Alpha
16559             # Linux and Compaq Tru64 Unix objects are PIC.
16560             lt_prog_compiler_pic_CXX=
16561             lt_prog_compiler_static_CXX='-non_shared'
16562             ;;
16563           *)
16564             ;;
16565         esac
16566         ;;
16567       lynxos*)
16568         ;;
16569       m88k*)
16570         ;;
16571       mvs*)
16572         case $cc_basename in
16573           cxx)
16574             lt_prog_compiler_pic_CXX='-W c,exportall'
16575             ;;
16576           *)
16577             ;;
16578         esac
16579         ;;
16580       netbsd*)
16581         ;;
16582       osf3* | osf4* | osf5*)
16583         case $cc_basename in
16584           KCC)
16585             lt_prog_compiler_wl_CXX='--backend -Wl,'
16586             ;;
16587           RCC)
16588             # Rational C++ 2.4.1
16589             lt_prog_compiler_pic_CXX='-pic'
16590             ;;
16591           cxx)
16592             # Digital/Compaq C++
16593             lt_prog_compiler_wl_CXX='-Wl,'
16594             # Make sure the PIC flag is empty.  It appears that all Alpha
16595             # Linux and Compaq Tru64 Unix objects are PIC.
16596             lt_prog_compiler_pic_CXX=
16597             lt_prog_compiler_static_CXX='-non_shared'
16598             ;;
16599           *)
16600             ;;
16601         esac
16602         ;;
16603       psos*)
16604         ;;
16605       sco*)
16606         case $cc_basename in
16607           CC)
16608             lt_prog_compiler_pic_CXX='-fPIC'
16609             ;;
16610           *)
16611             ;;
16612         esac
16613         ;;
16614       solaris*)
16615         case $cc_basename in
16616           CC)
16617             # Sun C++ 4.2, 5.x and Centerline C++
16618             lt_prog_compiler_pic_CXX='-KPIC'
16619             lt_prog_compiler_static_CXX='-Bstatic'
16620             lt_prog_compiler_wl_CXX='-Qoption ld '
16621             ;;
16622           gcx)
16623             # Green Hills C++ Compiler
16624             lt_prog_compiler_pic_CXX='-PIC'
16625             ;;
16626           *)
16627             ;;
16628         esac
16629         ;;
16630       sunos4*)
16631         case $cc_basename in
16632           CC)
16633             # Sun C++ 4.x
16634             lt_prog_compiler_pic_CXX='-pic'
16635             lt_prog_compiler_static_CXX='-Bstatic'
16636             ;;
16637           lcc)
16638             # Lucid
16639             lt_prog_compiler_pic_CXX='-pic'
16640             ;;
16641           *)
16642             ;;
16643         esac
16644         ;;
16645       tandem*)
16646         case $cc_basename in
16647           NCC)
16648             # NonStop-UX NCC 3.20
16649             lt_prog_compiler_pic_CXX='-KPIC'
16650             ;;
16651           *)
16652             ;;
16653         esac
16654         ;;
16655       unixware*)
16656         ;;
16657       vxworks*)
16658         ;;
16659       *)
16660         lt_prog_compiler_can_build_shared_CXX=no
16661         ;;
16662     esac
16663   fi
16664
16665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16666 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16667
16668 #
16669 # Check to make sure the PIC flag actually works.
16670 #
16671 if test -n "$lt_prog_compiler_pic_CXX"; then
16672
16673 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16674 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16675 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   lt_prog_compiler_pic_works_CXX=no
16679   ac_outfile=conftest.$ac_objext
16680    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16681    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16682    # Insert the option either (1) after the last *FLAGS variable, or
16683    # (2) before a word containing "conftest.", or (3) at the end.
16684    # Note that $ac_compile itself does not contain backslashes and begins
16685    # with a dollar sign (not a hyphen), so the echo should work correctly.
16686    # The option is referenced via a variable to avoid confusing sed.
16687    lt_compile=`echo "$ac_compile" | $SED \
16688    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16689    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16690    -e 's:$: $lt_compiler_flag:'`
16691    (eval echo "\"\$as_me:16691: $lt_compile\"" >&5)
16692    (eval "$lt_compile" 2>conftest.err)
16693    ac_status=$?
16694    cat conftest.err >&5
16695    echo "$as_me:16695: \$? = $ac_status" >&5
16696    if (exit $ac_status) && test -s "$ac_outfile"; then
16697      # The compiler can only warn and ignore the option if not recognized
16698      # So say no if there are warnings
16699      if test ! -s conftest.err; then
16700        lt_prog_compiler_pic_works_CXX=yes
16701      fi
16702    fi
16703    $rm conftest*
16704
16705 fi
16706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16707 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16708
16709 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16710     case $lt_prog_compiler_pic_CXX in
16711      "" | " "*) ;;
16712      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16713      esac
16714 else
16715     lt_prog_compiler_pic_CXX=
16716      lt_prog_compiler_can_build_shared_CXX=no
16717 fi
16718
16719 fi
16720 case "$host_os" in
16721   # For platforms which do not support PIC, -DPIC is meaningless:
16722   *djgpp*)
16723     lt_prog_compiler_pic_CXX=
16724     ;;
16725   *)
16726     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16727     ;;
16728 esac
16729
16730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16732 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735   lt_cv_prog_compiler_c_o_CXX=no
16736    $rm -r conftest 2>/dev/null
16737    mkdir conftest
16738    cd conftest
16739    mkdir out
16740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16741
16742    lt_compiler_flag="-o out/conftest2.$ac_objext"
16743    # Insert the option either (1) after the last *FLAGS variable, or
16744    # (2) before a word containing "conftest.", or (3) at the end.
16745    # Note that $ac_compile itself does not contain backslashes and begins
16746    # with a dollar sign (not a hyphen), so the echo should work correctly.
16747    lt_compile=`echo "$ac_compile" | $SED \
16748    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750    -e 's:$: $lt_compiler_flag:'`
16751    (eval echo "\"\$as_me:16751: $lt_compile\"" >&5)
16752    (eval "$lt_compile" 2>out/conftest.err)
16753    ac_status=$?
16754    cat out/conftest.err >&5
16755    echo "$as_me:16755: \$? = $ac_status" >&5
16756    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16757    then
16758      # The compiler can only warn and ignore the option if not recognized
16759      # So say no if there are warnings
16760      if test ! -s out/conftest.err; then
16761        lt_cv_prog_compiler_c_o_CXX=yes
16762      fi
16763    fi
16764    chmod u+w .
16765    $rm conftest*
16766    # SGI C++ compiler will create directory out/ii_files/ for
16767    # template instantiation
16768    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16769    $rm out/* && rmdir out
16770    cd ..
16771    rmdir conftest
16772    $rm conftest*
16773
16774 fi
16775 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16776 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16777
16778
16779 hard_links="nottested"
16780 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16781   # do not overwrite the value of need_locks provided by the user
16782   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16783 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16784   hard_links=yes
16785   $rm conftest*
16786   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16787   touch conftest.a
16788   ln conftest.a conftest.b 2>&5 || hard_links=no
16789   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790   echo "$as_me:$LINENO: result: $hard_links" >&5
16791 echo "${ECHO_T}$hard_links" >&6
16792   if test "$hard_links" = no; then
16793     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16794 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16795     need_locks=warn
16796   fi
16797 else
16798   need_locks=no
16799 fi
16800
16801 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16802 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16803
16804   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16805   case $host_os in
16806   aix4* | aix5*)
16807     # If we're using GNU nm, then we don't want the "-C" option.
16808     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16809     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16810       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'
16811     else
16812       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'
16813     fi
16814     ;;
16815   pw32*)
16816     export_symbols_cmds_CXX="$ltdll_cmds"
16817   ;;
16818   cygwin* | mingw*)
16819     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16820   ;;
16821   *)
16822     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16823   ;;
16824   esac
16825
16826 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16827 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16828 test "$ld_shlibs_CXX" = no && can_build_shared=no
16829
16830 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16831 if test "$GCC" = yes; then
16832   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16833 fi
16834
16835 #
16836 # Do we need to explicitly link libc?
16837 #
16838 case "x$archive_cmds_need_lc_CXX" in
16839 x|xyes)
16840   # Assume -lc should be added
16841   archive_cmds_need_lc_CXX=yes
16842
16843   if test "$enable_shared" = yes && test "$GCC" = yes; then
16844     case $archive_cmds_CXX in
16845     *'~'*)
16846       # FIXME: we may have to deal with multi-command sequences.
16847       ;;
16848     '$CC '*)
16849       # Test whether the compiler implicitly links with -lc since on some
16850       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16851       # to ld, don't add -lc before -lgcc.
16852       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16853 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16854       $rm conftest*
16855       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16856
16857       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858   (eval $ac_compile) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } 2>conftest.err; then
16862         soname=conftest
16863         lib=conftest
16864         libobjs=conftest.$ac_objext
16865         deplibs=
16866         wl=$lt_prog_compiler_wl_CXX
16867         compiler_flags=-v
16868         linker_flags=-v
16869         verstring=
16870         output_objdir=.
16871         libname=conftest
16872         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16873         allow_undefined_flag_CXX=
16874         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16875   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16876   ac_status=$?
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); }
16879         then
16880           archive_cmds_need_lc_CXX=no
16881         else
16882           archive_cmds_need_lc_CXX=yes
16883         fi
16884         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16885       else
16886         cat conftest.err 1>&5
16887       fi
16888       $rm conftest*
16889       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16890 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16891       ;;
16892     esac
16893   fi
16894   ;;
16895 esac
16896
16897 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16898 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16899 library_names_spec=
16900 libname_spec='lib$name'
16901 soname_spec=
16902 shrext_cmds=".so"
16903 postinstall_cmds=
16904 postuninstall_cmds=
16905 finish_cmds=
16906 finish_eval=
16907 shlibpath_var=
16908 shlibpath_overrides_runpath=unknown
16909 version_type=none
16910 dynamic_linker="$host_os ld.so"
16911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16912 if test "$GCC" = yes; then
16913   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16914   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16915     # if the path contains ";" then we assume it to be the separator
16916     # otherwise default to the standard path separator (i.e. ":") - it is
16917     # assumed that no part of a normal pathname contains ";" but that should
16918     # okay in the real world where ";" in dirpaths is itself problematic.
16919     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16920   else
16921     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16922   fi
16923 else
16924   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16925 fi
16926 need_lib_prefix=unknown
16927 hardcode_into_libs=no
16928
16929 # when you set need_version to no, make sure it does not cause -set_version
16930 # flags to be left without arguments
16931 need_version=unknown
16932
16933 case $host_os in
16934 aix3*)
16935   version_type=linux
16936   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16937   shlibpath_var=LIBPATH
16938
16939   # AIX 3 has no versioning support, so we append a major version to the name.
16940   soname_spec='${libname}${release}${shared_ext}$major'
16941   ;;
16942
16943 aix4* | aix5*)
16944   version_type=linux
16945   need_lib_prefix=no
16946   need_version=no
16947   hardcode_into_libs=yes
16948   if test "$host_cpu" = ia64; then
16949     # AIX 5 supports IA64
16950     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16951     shlibpath_var=LD_LIBRARY_PATH
16952   else
16953     # With GCC up to 2.95.x, collect2 would create an import file
16954     # for dependence libraries.  The import file would start with
16955     # the line `#! .'.  This would cause the generated library to
16956     # depend on `.', always an invalid library.  This was fixed in
16957     # development snapshots of GCC prior to 3.0.
16958     case $host_os in
16959       aix4 | aix4.[01] | aix4.[01].*)
16960       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16961            echo ' yes '
16962            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16963         :
16964       else
16965         can_build_shared=no
16966       fi
16967       ;;
16968     esac
16969     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16970     # soname into executable. Probably we can add versioning support to
16971     # collect2, so additional links can be useful in future.
16972     if test "$aix_use_runtimelinking" = yes; then
16973       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16974       # instead of lib<name>.a to let people know that these are not
16975       # typical AIX shared libraries.
16976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977     else
16978       # We preserve .a as extension for shared libraries through AIX4.2
16979       # and later when we are not doing run time linking.
16980       library_names_spec='${libname}${release}.a $libname.a'
16981       soname_spec='${libname}${release}${shared_ext}$major'
16982     fi
16983     shlibpath_var=LIBPATH
16984   fi
16985   ;;
16986
16987 amigaos*)
16988   library_names_spec='$libname.ixlibrary $libname.a'
16989   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16990   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'
16991   ;;
16992
16993 beos*)
16994   library_names_spec='${libname}${shared_ext}'
16995   dynamic_linker="$host_os ld.so"
16996   shlibpath_var=LIBRARY_PATH
16997   ;;
16998
16999 bsdi[45]*)
17000   version_type=linux
17001   need_version=no
17002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003   soname_spec='${libname}${release}${shared_ext}$major'
17004   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17005   shlibpath_var=LD_LIBRARY_PATH
17006   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17007   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17008   # the default ld.so.conf also contains /usr/contrib/lib and
17009   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17010   # libtool to hard-code these into programs
17011   ;;
17012
17013 cygwin* | mingw* | pw32*)
17014   version_type=windows
17015   shrext_cmds=".dll"
17016   need_version=no
17017   need_lib_prefix=no
17018
17019   case $GCC,$host_os in
17020   yes,cygwin* | yes,mingw* | yes,pw32*)
17021     library_names_spec='$libname.dll.a'
17022     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17023     postinstall_cmds='base_file=`basename \${file}`~
17024       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17025       dldir=$destdir/`dirname \$dlpath`~
17026       test -d \$dldir || mkdir -p \$dldir~
17027       $install_prog $dir/$dlname \$dldir/$dlname'
17028     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17029       dlpath=$dir/\$dldll~
17030        $rm \$dlpath'
17031     shlibpath_overrides_runpath=yes
17032
17033     case $host_os in
17034     cygwin*)
17035       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17036       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17037       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17038       ;;
17039     mingw*)
17040       # MinGW DLLs use traditional 'lib' prefix
17041       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17042       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17043       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17044         # It is most probably a Windows format PATH printed by
17045         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17046         # path with ; separators, and with drive letters. We can handle the
17047         # drive letters (cygwin fileutils understands them), so leave them,
17048         # especially as we might pass files found there to a mingw objdump,
17049         # which wouldn't understand a cygwinified path. Ahh.
17050         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17051       else
17052         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17053       fi
17054       ;;
17055     pw32*)
17056       # pw32 DLLs use 'pw' prefix rather than 'lib'
17057       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17058       ;;
17059     esac
17060     ;;
17061
17062   *)
17063     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17064     ;;
17065   esac
17066   dynamic_linker='Win32 ld.exe'
17067   # FIXME: first we should search . and the directory the executable is in
17068   shlibpath_var=PATH
17069   ;;
17070
17071 darwin* | rhapsody*)
17072   dynamic_linker="$host_os dyld"
17073   version_type=darwin
17074   need_lib_prefix=no
17075   need_version=no
17076   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17077   soname_spec='${libname}${release}${major}$shared_ext'
17078   shlibpath_overrides_runpath=yes
17079   shlibpath_var=DYLD_LIBRARY_PATH
17080   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17081   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17082   if test "$GCC" = yes; then
17083     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"`
17084   else
17085     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17086   fi
17087   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17088   ;;
17089
17090 dgux*)
17091   version_type=linux
17092   need_lib_prefix=no
17093   need_version=no
17094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17095   soname_spec='${libname}${release}${shared_ext}$major'
17096   shlibpath_var=LD_LIBRARY_PATH
17097   ;;
17098
17099 freebsd1*)
17100   dynamic_linker=no
17101   ;;
17102
17103 kfreebsd*-gnu)
17104   version_type=linux
17105   need_lib_prefix=no
17106   need_version=no
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17108   soname_spec='${libname}${release}${shared_ext}$major'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   shlibpath_overrides_runpath=no
17111   hardcode_into_libs=yes
17112   dynamic_linker='GNU ld.so'
17113   ;;
17114
17115 freebsd*)
17116   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17117   version_type=freebsd-$objformat
17118   case $version_type in
17119     freebsd-elf*)
17120       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17121       need_version=no
17122       need_lib_prefix=no
17123       ;;
17124     freebsd-*)
17125       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17126       need_version=yes
17127       ;;
17128   esac
17129   shlibpath_var=LD_LIBRARY_PATH
17130   case $host_os in
17131   freebsd2*)
17132     shlibpath_overrides_runpath=yes
17133     ;;
17134   freebsd3.01* | freebsdelf3.01*)
17135     shlibpath_overrides_runpath=yes
17136     hardcode_into_libs=yes
17137     ;;
17138   *) # from 3.2 on
17139     shlibpath_overrides_runpath=no
17140     hardcode_into_libs=yes
17141     ;;
17142   esac
17143   ;;
17144
17145 gnu*)
17146   version_type=linux
17147   need_lib_prefix=no
17148   need_version=no
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   hardcode_into_libs=yes
17153   ;;
17154
17155 hpux9* | hpux10* | hpux11*)
17156   # Give a soname corresponding to the major version so that dld.sl refuses to
17157   # link against other versions.
17158   version_type=sunos
17159   need_lib_prefix=no
17160   need_version=no
17161   case "$host_cpu" in
17162   ia64*)
17163     shrext_cmds='.so'
17164     hardcode_into_libs=yes
17165     dynamic_linker="$host_os dld.so"
17166     shlibpath_var=LD_LIBRARY_PATH
17167     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169     soname_spec='${libname}${release}${shared_ext}$major'
17170     if test "X$HPUX_IA64_MODE" = X32; then
17171       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17172     else
17173       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17174     fi
17175     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17176     ;;
17177    hppa*64*)
17178      shrext_cmds='.sl'
17179      hardcode_into_libs=yes
17180      dynamic_linker="$host_os dld.sl"
17181      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17182      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184      soname_spec='${libname}${release}${shared_ext}$major'
17185      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17186      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17187      ;;
17188    *)
17189     shrext_cmds='.sl'
17190     dynamic_linker="$host_os dld.sl"
17191     shlibpath_var=SHLIB_PATH
17192     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194     soname_spec='${libname}${release}${shared_ext}$major'
17195     ;;
17196   esac
17197   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17198   postinstall_cmds='chmod 555 $lib'
17199   ;;
17200
17201 irix5* | irix6* | nonstopux*)
17202   case $host_os in
17203     nonstopux*) version_type=nonstopux ;;
17204     *)
17205         if test "$lt_cv_prog_gnu_ld" = yes; then
17206                 version_type=linux
17207         else
17208                 version_type=irix
17209         fi ;;
17210   esac
17211   need_lib_prefix=no
17212   need_version=no
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17215   case $host_os in
17216   irix5* | nonstopux*)
17217     libsuff= shlibsuff=
17218     ;;
17219   *)
17220     case $LD in # libtool.m4 will add one of these switches to LD
17221     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17222       libsuff= shlibsuff= libmagic=32-bit;;
17223     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17224       libsuff=32 shlibsuff=N32 libmagic=N32;;
17225     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17226       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17227     *) libsuff= shlibsuff= libmagic=never-match;;
17228     esac
17229     ;;
17230   esac
17231   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17232   shlibpath_overrides_runpath=no
17233   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17234   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17235   hardcode_into_libs=yes
17236   ;;
17237
17238 # No shared lib support for Linux oldld, aout, or coff.
17239 linux*oldld* | linux*aout* | linux*coff*)
17240   dynamic_linker=no
17241   ;;
17242
17243 # This must be Linux ELF.
17244 linux*)
17245   version_type=linux
17246   need_lib_prefix=no
17247   need_version=no
17248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249   soname_spec='${libname}${release}${shared_ext}$major'
17250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17251   shlibpath_var=LD_LIBRARY_PATH
17252   shlibpath_overrides_runpath=no
17253   # This implies no fast_install, which is unacceptable.
17254   # Some rework will be needed to allow for fast_install
17255   # before this can be enabled.
17256   hardcode_into_libs=yes
17257
17258   # Append ld.so.conf contents to the search path
17259   if test -f /etc/ld.so.conf; then
17260     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17261     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17262   fi
17263
17264   # We used to test for /lib/ld.so.1 and disable shared libraries on
17265   # powerpc, because MkLinux only supported shared libraries with the
17266   # GNU dynamic linker.  Since this was broken with cross compilers,
17267   # most powerpc-linux boxes support dynamic linking these days and
17268   # people can always --disable-shared, the test was removed, and we
17269   # assume the GNU/Linux dynamic linker is in use.
17270   dynamic_linker='GNU/Linux ld.so'
17271   ;;
17272
17273 knetbsd*-gnu)
17274   version_type=linux
17275   need_lib_prefix=no
17276   need_version=no
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278   soname_spec='${libname}${release}${shared_ext}$major'
17279   shlibpath_var=LD_LIBRARY_PATH
17280   shlibpath_overrides_runpath=no
17281   hardcode_into_libs=yes
17282   dynamic_linker='GNU ld.so'
17283   ;;
17284
17285 netbsd*)
17286   version_type=sunos
17287   need_lib_prefix=no
17288   need_version=no
17289   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17292     dynamic_linker='NetBSD (a.out) ld.so'
17293   else
17294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17295     soname_spec='${libname}${release}${shared_ext}$major'
17296     dynamic_linker='NetBSD ld.elf_so'
17297   fi
17298   shlibpath_var=LD_LIBRARY_PATH
17299   shlibpath_overrides_runpath=yes
17300   hardcode_into_libs=yes
17301   ;;
17302
17303 newsos6)
17304   version_type=linux
17305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306   shlibpath_var=LD_LIBRARY_PATH
17307   shlibpath_overrides_runpath=yes
17308   ;;
17309
17310 nto-qnx*)
17311   version_type=linux
17312   need_lib_prefix=no
17313   need_version=no
17314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315   soname_spec='${libname}${release}${shared_ext}$major'
17316   shlibpath_var=LD_LIBRARY_PATH
17317   shlibpath_overrides_runpath=yes
17318   ;;
17319
17320 openbsd*)
17321   version_type=sunos
17322   need_lib_prefix=no
17323   need_version=no
17324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17326   shlibpath_var=LD_LIBRARY_PATH
17327   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17328     case $host_os in
17329       openbsd2.[89] | openbsd2.[89].*)
17330         shlibpath_overrides_runpath=no
17331         ;;
17332       *)
17333         shlibpath_overrides_runpath=yes
17334         ;;
17335       esac
17336   else
17337     shlibpath_overrides_runpath=yes
17338   fi
17339   ;;
17340
17341 os2*)
17342   libname_spec='$name'
17343   shrext_cmds=".dll"
17344   need_lib_prefix=no
17345   library_names_spec='$libname${shared_ext} $libname.a'
17346   dynamic_linker='OS/2 ld.exe'
17347   shlibpath_var=LIBPATH
17348   ;;
17349
17350 osf3* | osf4* | osf5*)
17351   version_type=osf
17352   need_lib_prefix=no
17353   need_version=no
17354   soname_spec='${libname}${release}${shared_ext}$major'
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356   shlibpath_var=LD_LIBRARY_PATH
17357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17359   ;;
17360
17361 sco3.2v5*)
17362   version_type=osf
17363   soname_spec='${libname}${release}${shared_ext}$major'
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   ;;
17367
17368 solaris*)
17369   version_type=linux
17370   need_lib_prefix=no
17371   need_version=no
17372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373   soname_spec='${libname}${release}${shared_ext}$major'
17374   shlibpath_var=LD_LIBRARY_PATH
17375   shlibpath_overrides_runpath=yes
17376   hardcode_into_libs=yes
17377   # ldd complains unless libraries are executable
17378   postinstall_cmds='chmod +x $lib'
17379   ;;
17380
17381 sunos4*)
17382   version_type=sunos
17383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17385   shlibpath_var=LD_LIBRARY_PATH
17386   shlibpath_overrides_runpath=yes
17387   if test "$with_gnu_ld" = yes; then
17388     need_lib_prefix=no
17389   fi
17390   need_version=yes
17391   ;;
17392
17393 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17394   version_type=linux
17395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396   soname_spec='${libname}${release}${shared_ext}$major'
17397   shlibpath_var=LD_LIBRARY_PATH
17398   case $host_vendor in
17399     sni)
17400       shlibpath_overrides_runpath=no
17401       need_lib_prefix=no
17402       export_dynamic_flag_spec='${wl}-Blargedynsym'
17403       runpath_var=LD_RUN_PATH
17404       ;;
17405     siemens)
17406       need_lib_prefix=no
17407       ;;
17408     motorola)
17409       need_lib_prefix=no
17410       need_version=no
17411       shlibpath_overrides_runpath=no
17412       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17413       ;;
17414   esac
17415   ;;
17416
17417 sysv4*MP*)
17418   if test -d /usr/nec ;then
17419     version_type=linux
17420     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17421     soname_spec='$libname${shared_ext}.$major'
17422     shlibpath_var=LD_LIBRARY_PATH
17423   fi
17424   ;;
17425
17426 uts4*)
17427   version_type=linux
17428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429   soname_spec='${libname}${release}${shared_ext}$major'
17430   shlibpath_var=LD_LIBRARY_PATH
17431   ;;
17432
17433 *)
17434   dynamic_linker=no
17435   ;;
17436 esac
17437 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17438 echo "${ECHO_T}$dynamic_linker" >&6
17439 test "$dynamic_linker" = no && can_build_shared=no
17440
17441 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17443 hardcode_action_CXX=
17444 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17445    test -n "$runpath_var_CXX" || \
17446    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17447
17448   # We can hardcode non-existant directories.
17449   if test "$hardcode_direct_CXX" != no &&
17450      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17451      # have to relink, otherwise we might link with an installed library
17452      # when we should be linking with a yet-to-be-installed one
17453      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17454      test "$hardcode_minus_L_CXX" != no; then
17455     # Linking always hardcodes the temporary library directory.
17456     hardcode_action_CXX=relink
17457   else
17458     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17459     hardcode_action_CXX=immediate
17460   fi
17461 else
17462   # We cannot hardcode anything, or else we can only hardcode existing
17463   # directories.
17464   hardcode_action_CXX=unsupported
17465 fi
17466 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17467 echo "${ECHO_T}$hardcode_action_CXX" >&6
17468
17469 if test "$hardcode_action_CXX" = relink; then
17470   # Fast installation is not supported
17471   enable_fast_install=no
17472 elif test "$shlibpath_overrides_runpath" = yes ||
17473      test "$enable_shared" = no; then
17474   # Fast installation is not necessary
17475   enable_fast_install=needless
17476 fi
17477
17478 striplib=
17479 old_striplib=
17480 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17481 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17482 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17483   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17484   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17485   echo "$as_me:$LINENO: result: yes" >&5
17486 echo "${ECHO_T}yes" >&6
17487 else
17488 # FIXME - insert some real tests, host_os isn't really good enough
17489   case $host_os in
17490    darwin*)
17491        if test -n "$STRIP" ; then
17492          striplib="$STRIP -x"
17493          echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6
17495        else
17496   echo "$as_me:$LINENO: result: no" >&5
17497 echo "${ECHO_T}no" >&6
17498 fi
17499        ;;
17500    *)
17501   echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6
17503     ;;
17504   esac
17505 fi
17506
17507 if test "x$enable_dlopen" != xyes; then
17508   enable_dlopen=unknown
17509   enable_dlopen_self=unknown
17510   enable_dlopen_self_static=unknown
17511 else
17512   lt_cv_dlopen=no
17513   lt_cv_dlopen_libs=
17514
17515   case $host_os in
17516   beos*)
17517     lt_cv_dlopen="load_add_on"
17518     lt_cv_dlopen_libs=
17519     lt_cv_dlopen_self=yes
17520     ;;
17521
17522   mingw* | pw32*)
17523     lt_cv_dlopen="LoadLibrary"
17524     lt_cv_dlopen_libs=
17525    ;;
17526
17527   cygwin*)
17528     lt_cv_dlopen="dlopen"
17529     lt_cv_dlopen_libs=
17530    ;;
17531
17532   darwin*)
17533   # if libdl is installed we need to link against it
17534     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17537   echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539   ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-ldl  $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547
17548 /* Override any gcc2 internal prototype to avoid an error.  */
17549 #ifdef __cplusplus
17550 extern "C"
17551 #endif
17552 /* We use char because int might match the return type of a gcc2
17553    builtin and then its argument prototype would still apply.  */
17554 char dlopen ();
17555 int
17556 main ()
17557 {
17558 dlopen ();
17559   ;
17560   return 0;
17561 }
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17565   (eval $ac_link) 2>conftest.er1
17566   ac_status=$?
17567   grep -v '^ *+' conftest.er1 >conftest.err
17568   rm -f conftest.er1
17569   cat conftest.err >&5
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); } &&
17572          { ac_try='test -z "$ac_cxx_werror_flag"
17573                          || test ! -s conftest.err'
17574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575   (eval $ac_try) 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); }; } &&
17579          { ac_try='test -s conftest$ac_exeext'
17580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581   (eval $ac_try) 2>&5
17582   ac_status=$?
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); }; }; then
17585   ac_cv_lib_dl_dlopen=yes
17586 else
17587   echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590 ac_cv_lib_dl_dlopen=no
17591 fi
17592 rm -f conftest.err conftest.$ac_objext \
17593       conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17595 fi
17596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17598 if test $ac_cv_lib_dl_dlopen = yes; then
17599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17600 else
17601
17602     lt_cv_dlopen="dyld"
17603     lt_cv_dlopen_libs=
17604     lt_cv_dlopen_self=yes
17605
17606 fi
17607
17608    ;;
17609
17610   *)
17611     echo "$as_me:$LINENO: checking for shl_load" >&5
17612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17613 if test "${ac_cv_func_shl_load+set}" = set; then
17614   echo $ECHO_N "(cached) $ECHO_C" >&6
17615 else
17616   cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h.  */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h.  */
17622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17624 #define shl_load innocuous_shl_load
17625
17626 /* System header to define __stub macros and hopefully few prototypes,
17627     which can conflict with char shl_load (); below.
17628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629     <limits.h> exists even on freestanding compilers.  */
17630
17631 #ifdef __STDC__
17632 # include <limits.h>
17633 #else
17634 # include <assert.h>
17635 #endif
17636
17637 #undef shl_load
17638
17639 /* Override any gcc2 internal prototype to avoid an error.  */
17640 #ifdef __cplusplus
17641 extern "C"
17642 {
17643 #endif
17644 /* We use char because int might match the return type of a gcc2
17645    builtin and then its argument prototype would still apply.  */
17646 char shl_load ();
17647 /* The GNU C library defines this for functions which it implements
17648     to always fail with ENOSYS.  Some functions are actually named
17649     something starting with __ and the normal name is an alias.  */
17650 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17651 choke me
17652 #else
17653 char (*f) () = shl_load;
17654 #endif
17655 #ifdef __cplusplus
17656 }
17657 #endif
17658
17659 int
17660 main ()
17661 {
17662 return f != shl_load;
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17669   (eval $ac_link) 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } &&
17676          { ac_try='test -z "$ac_cxx_werror_flag"
17677                          || test ! -s conftest.err'
17678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679   (eval $ac_try) 2>&5
17680   ac_status=$?
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); }; } &&
17683          { ac_try='test -s conftest$ac_exeext'
17684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685   (eval $ac_try) 2>&5
17686   ac_status=$?
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); }; }; then
17689   ac_cv_func_shl_load=yes
17690 else
17691   echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_cv_func_shl_load=no
17695 fi
17696 rm -f conftest.err conftest.$ac_objext \
17697       conftest$ac_exeext conftest.$ac_ext
17698 fi
17699 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17700 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17701 if test $ac_cv_func_shl_load = yes; then
17702   lt_cv_dlopen="shl_load"
17703 else
17704   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17705 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17706 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17707   echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709   ac_check_lib_save_LIBS=$LIBS
17710 LIBS="-ldld  $LIBS"
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h.  */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h.  */
17717
17718 /* Override any gcc2 internal prototype to avoid an error.  */
17719 #ifdef __cplusplus
17720 extern "C"
17721 #endif
17722 /* We use char because int might match the return type of a gcc2
17723    builtin and then its argument prototype would still apply.  */
17724 char shl_load ();
17725 int
17726 main ()
17727 {
17728 shl_load ();
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735   (eval $ac_link) 2>conftest.er1
17736   ac_status=$?
17737   grep -v '^ *+' conftest.er1 >conftest.err
17738   rm -f conftest.er1
17739   cat conftest.err >&5
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); } &&
17742          { ac_try='test -z "$ac_cxx_werror_flag"
17743                          || test ! -s conftest.err'
17744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745   (eval $ac_try) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; } &&
17749          { ac_try='test -s conftest$ac_exeext'
17750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751   (eval $ac_try) 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; }; then
17755   ac_cv_lib_dld_shl_load=yes
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 ac_cv_lib_dld_shl_load=no
17761 fi
17762 rm -f conftest.err conftest.$ac_objext \
17763       conftest$ac_exeext conftest.$ac_ext
17764 LIBS=$ac_check_lib_save_LIBS
17765 fi
17766 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17768 if test $ac_cv_lib_dld_shl_load = yes; then
17769   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17770 else
17771   echo "$as_me:$LINENO: checking for dlopen" >&5
17772 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17773 if test "${ac_cv_func_dlopen+set}" = set; then
17774   echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776   cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h.  */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h.  */
17782 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17784 #define dlopen innocuous_dlopen
17785
17786 /* System header to define __stub macros and hopefully few prototypes,
17787     which can conflict with char dlopen (); below.
17788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17789     <limits.h> exists even on freestanding compilers.  */
17790
17791 #ifdef __STDC__
17792 # include <limits.h>
17793 #else
17794 # include <assert.h>
17795 #endif
17796
17797 #undef dlopen
17798
17799 /* Override any gcc2 internal prototype to avoid an error.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 {
17803 #endif
17804 /* We use char because int might match the return type of a gcc2
17805    builtin and then its argument prototype would still apply.  */
17806 char dlopen ();
17807 /* The GNU C library defines this for functions which it implements
17808     to always fail with ENOSYS.  Some functions are actually named
17809     something starting with __ and the normal name is an alias.  */
17810 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17811 choke me
17812 #else
17813 char (*f) () = dlopen;
17814 #endif
17815 #ifdef __cplusplus
17816 }
17817 #endif
17818
17819 int
17820 main ()
17821 {
17822 return f != dlopen;
17823   ;
17824   return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829   (eval $ac_link) 2>conftest.er1
17830   ac_status=$?
17831   grep -v '^ *+' conftest.er1 >conftest.err
17832   rm -f conftest.er1
17833   cat conftest.err >&5
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); } &&
17836          { ac_try='test -z "$ac_cxx_werror_flag"
17837                          || test ! -s conftest.err'
17838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839   (eval $ac_try) 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; } &&
17843          { ac_try='test -s conftest$ac_exeext'
17844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845   (eval $ac_try) 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; }; then
17849   ac_cv_func_dlopen=yes
17850 else
17851   echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854 ac_cv_func_dlopen=no
17855 fi
17856 rm -f conftest.err conftest.$ac_objext \
17857       conftest$ac_exeext conftest.$ac_ext
17858 fi
17859 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17860 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17861 if test $ac_cv_func_dlopen = yes; then
17862   lt_cv_dlopen="dlopen"
17863 else
17864   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17867   echo $ECHO_N "(cached) $ECHO_C" >&6
17868 else
17869   ac_check_lib_save_LIBS=$LIBS
17870 LIBS="-ldl  $LIBS"
17871 cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877
17878 /* Override any gcc2 internal prototype to avoid an error.  */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 /* We use char because int might match the return type of a gcc2
17883    builtin and then its argument prototype would still apply.  */
17884 char dlopen ();
17885 int
17886 main ()
17887 {
17888 dlopen ();
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17895   (eval $ac_link) 2>conftest.er1
17896   ac_status=$?
17897   grep -v '^ *+' conftest.er1 >conftest.err
17898   rm -f conftest.er1
17899   cat conftest.err >&5
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } &&
17902          { ac_try='test -z "$ac_cxx_werror_flag"
17903                          || test ! -s conftest.err'
17904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905   (eval $ac_try) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; } &&
17909          { ac_try='test -s conftest$ac_exeext'
17910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911   (eval $ac_try) 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; }; then
17915   ac_cv_lib_dl_dlopen=yes
17916 else
17917   echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920 ac_cv_lib_dl_dlopen=no
17921 fi
17922 rm -f conftest.err conftest.$ac_objext \
17923       conftest$ac_exeext conftest.$ac_ext
17924 LIBS=$ac_check_lib_save_LIBS
17925 fi
17926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17928 if test $ac_cv_lib_dl_dlopen = yes; then
17929   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17930 else
17931   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17932 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17933 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936   ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-lsvld  $LIBS"
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944
17945 /* Override any gcc2 internal prototype to avoid an error.  */
17946 #ifdef __cplusplus
17947 extern "C"
17948 #endif
17949 /* We use char because int might match the return type of a gcc2
17950    builtin and then its argument prototype would still apply.  */
17951 char dlopen ();
17952 int
17953 main ()
17954 {
17955 dlopen ();
17956   ;
17957   return 0;
17958 }
17959 _ACEOF
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962   (eval $ac_link) 2>conftest.er1
17963   ac_status=$?
17964   grep -v '^ *+' conftest.er1 >conftest.err
17965   rm -f conftest.er1
17966   cat conftest.err >&5
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); } &&
17969          { ac_try='test -z "$ac_cxx_werror_flag"
17970                          || test ! -s conftest.err'
17971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972   (eval $ac_try) 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; } &&
17976          { ac_try='test -s conftest$ac_exeext'
17977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978   (eval $ac_try) 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; }; then
17982   ac_cv_lib_svld_dlopen=yes
17983 else
17984   echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17986
17987 ac_cv_lib_svld_dlopen=no
17988 fi
17989 rm -f conftest.err conftest.$ac_objext \
17990       conftest$ac_exeext conftest.$ac_ext
17991 LIBS=$ac_check_lib_save_LIBS
17992 fi
17993 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17994 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17995 if test $ac_cv_lib_svld_dlopen = yes; then
17996   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17997 else
17998   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17999 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18000 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18001   echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003   ac_check_lib_save_LIBS=$LIBS
18004 LIBS="-ldld  $LIBS"
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h.  */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h.  */
18011
18012 /* Override any gcc2 internal prototype to avoid an error.  */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 /* We use char because int might match the return type of a gcc2
18017    builtin and then its argument prototype would still apply.  */
18018 char dld_link ();
18019 int
18020 main ()
18021 {
18022 dld_link ();
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029   (eval $ac_link) 2>conftest.er1
18030   ac_status=$?
18031   grep -v '^ *+' conftest.er1 >conftest.err
18032   rm -f conftest.er1
18033   cat conftest.err >&5
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); } &&
18036          { ac_try='test -z "$ac_cxx_werror_flag"
18037                          || test ! -s conftest.err'
18038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039   (eval $ac_try) 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; } &&
18043          { ac_try='test -s conftest$ac_exeext'
18044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045   (eval $ac_try) 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; }; then
18049   ac_cv_lib_dld_dld_link=yes
18050 else
18051   echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054 ac_cv_lib_dld_dld_link=no
18055 fi
18056 rm -f conftest.err conftest.$ac_objext \
18057       conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18059 fi
18060 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18061 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18062 if test $ac_cv_lib_dld_dld_link = yes; then
18063   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18064 fi
18065
18066
18067 fi
18068
18069
18070 fi
18071
18072
18073 fi
18074
18075
18076 fi
18077
18078
18079 fi
18080
18081     ;;
18082   esac
18083
18084   if test "x$lt_cv_dlopen" != xno; then
18085     enable_dlopen=yes
18086   else
18087     enable_dlopen=no
18088   fi
18089
18090   case $lt_cv_dlopen in
18091   dlopen)
18092     save_CPPFLAGS="$CPPFLAGS"
18093     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18094
18095     save_LDFLAGS="$LDFLAGS"
18096     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18097
18098     save_LIBS="$LIBS"
18099     LIBS="$lt_cv_dlopen_libs $LIBS"
18100
18101     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18102 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18103 if test "${lt_cv_dlopen_self+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106           if test "$cross_compiling" = yes; then :
18107   lt_cv_dlopen_self=cross
18108 else
18109   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18110   lt_status=$lt_dlunknown
18111   cat > conftest.$ac_ext <<EOF
18112 #line 18112 "configure"
18113 #include "confdefs.h"
18114
18115 #if HAVE_DLFCN_H
18116 #include <dlfcn.h>
18117 #endif
18118
18119 #include <stdio.h>
18120
18121 #ifdef RTLD_GLOBAL
18122 #  define LT_DLGLOBAL           RTLD_GLOBAL
18123 #else
18124 #  ifdef DL_GLOBAL
18125 #    define LT_DLGLOBAL         DL_GLOBAL
18126 #  else
18127 #    define LT_DLGLOBAL         0
18128 #  endif
18129 #endif
18130
18131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18132    find out it does not work in some platform. */
18133 #ifndef LT_DLLAZY_OR_NOW
18134 #  ifdef RTLD_LAZY
18135 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18136 #  else
18137 #    ifdef DL_LAZY
18138 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18139 #    else
18140 #      ifdef RTLD_NOW
18141 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18142 #      else
18143 #        ifdef DL_NOW
18144 #          define LT_DLLAZY_OR_NOW      DL_NOW
18145 #        else
18146 #          define LT_DLLAZY_OR_NOW      0
18147 #        endif
18148 #      endif
18149 #    endif
18150 #  endif
18151 #endif
18152
18153 #ifdef __cplusplus
18154 extern "C" void exit (int);
18155 #endif
18156
18157 void fnord() { int i=42;}
18158 int main ()
18159 {
18160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18161   int status = $lt_dlunknown;
18162
18163   if (self)
18164     {
18165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18166       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18167       /* dlclose (self); */
18168     }
18169
18170     exit (status);
18171 }
18172 EOF
18173   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174   (eval $ac_link) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18178     (./conftest; exit; ) 2>/dev/null
18179     lt_status=$?
18180     case x$lt_status in
18181       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18182       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18183       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18184     esac
18185   else :
18186     # compilation failed
18187     lt_cv_dlopen_self=no
18188   fi
18189 fi
18190 rm -fr conftest*
18191
18192
18193 fi
18194 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18195 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18196
18197     if test "x$lt_cv_dlopen_self" = xyes; then
18198       LDFLAGS="$LDFLAGS $link_static_flag"
18199       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18200 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18201 if test "${lt_cv_dlopen_self_static+set}" = set; then
18202   echo $ECHO_N "(cached) $ECHO_C" >&6
18203 else
18204           if test "$cross_compiling" = yes; then :
18205   lt_cv_dlopen_self_static=cross
18206 else
18207   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18208   lt_status=$lt_dlunknown
18209   cat > conftest.$ac_ext <<EOF
18210 #line 18210 "configure"
18211 #include "confdefs.h"
18212
18213 #if HAVE_DLFCN_H
18214 #include <dlfcn.h>
18215 #endif
18216
18217 #include <stdio.h>
18218
18219 #ifdef RTLD_GLOBAL
18220 #  define LT_DLGLOBAL           RTLD_GLOBAL
18221 #else
18222 #  ifdef DL_GLOBAL
18223 #    define LT_DLGLOBAL         DL_GLOBAL
18224 #  else
18225 #    define LT_DLGLOBAL         0
18226 #  endif
18227 #endif
18228
18229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18230    find out it does not work in some platform. */
18231 #ifndef LT_DLLAZY_OR_NOW
18232 #  ifdef RTLD_LAZY
18233 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18234 #  else
18235 #    ifdef DL_LAZY
18236 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18237 #    else
18238 #      ifdef RTLD_NOW
18239 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18240 #      else
18241 #        ifdef DL_NOW
18242 #          define LT_DLLAZY_OR_NOW      DL_NOW
18243 #        else
18244 #          define LT_DLLAZY_OR_NOW      0
18245 #        endif
18246 #      endif
18247 #    endif
18248 #  endif
18249 #endif
18250
18251 #ifdef __cplusplus
18252 extern "C" void exit (int);
18253 #endif
18254
18255 void fnord() { int i=42;}
18256 int main ()
18257 {
18258   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18259   int status = $lt_dlunknown;
18260
18261   if (self)
18262     {
18263       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18264       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18265       /* dlclose (self); */
18266     }
18267
18268     exit (status);
18269 }
18270 EOF
18271   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272   (eval $ac_link) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18276     (./conftest; exit; ) 2>/dev/null
18277     lt_status=$?
18278     case x$lt_status in
18279       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18280       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18281       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18282     esac
18283   else :
18284     # compilation failed
18285     lt_cv_dlopen_self_static=no
18286   fi
18287 fi
18288 rm -fr conftest*
18289
18290
18291 fi
18292 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18293 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18294     fi
18295
18296     CPPFLAGS="$save_CPPFLAGS"
18297     LDFLAGS="$save_LDFLAGS"
18298     LIBS="$save_LIBS"
18299     ;;
18300   esac
18301
18302   case $lt_cv_dlopen_self in
18303   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18304   *) enable_dlopen_self=unknown ;;
18305   esac
18306
18307   case $lt_cv_dlopen_self_static in
18308   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18309   *) enable_dlopen_self_static=unknown ;;
18310   esac
18311 fi
18312
18313
18314 # The else clause should only fire when bootstrapping the
18315 # libtool distribution, otherwise you forgot to ship ltmain.sh
18316 # with your package, and you will get complaints that there are
18317 # no rules to generate ltmain.sh.
18318 if test -f "$ltmain"; then
18319   # See if we are running on zsh, and set the options which allow our commands through
18320   # without removal of \ escapes.
18321   if test -n "${ZSH_VERSION+set}" ; then
18322     setopt NO_GLOB_SUBST
18323   fi
18324   # Now quote all the things that may contain metacharacters while being
18325   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18326   # variables and quote the copies for generation of the libtool script.
18327   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18328     SED SHELL STRIP \
18329     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18330     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18331     deplibs_check_method reload_flag reload_cmds need_locks \
18332     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18333     lt_cv_sys_global_symbol_to_c_name_address \
18334     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18335     old_postinstall_cmds old_postuninstall_cmds \
18336     compiler_CXX \
18337     CC_CXX \
18338     LD_CXX \
18339     lt_prog_compiler_wl_CXX \
18340     lt_prog_compiler_pic_CXX \
18341     lt_prog_compiler_static_CXX \
18342     lt_prog_compiler_no_builtin_flag_CXX \
18343     export_dynamic_flag_spec_CXX \
18344     thread_safe_flag_spec_CXX \
18345     whole_archive_flag_spec_CXX \
18346     enable_shared_with_static_runtimes_CXX \
18347     old_archive_cmds_CXX \
18348     old_archive_from_new_cmds_CXX \
18349     predep_objects_CXX \
18350     postdep_objects_CXX \
18351     predeps_CXX \
18352     postdeps_CXX \
18353     compiler_lib_search_path_CXX \
18354     archive_cmds_CXX \
18355     archive_expsym_cmds_CXX \
18356     postinstall_cmds_CXX \
18357     postuninstall_cmds_CXX \
18358     old_archive_from_expsyms_cmds_CXX \
18359     allow_undefined_flag_CXX \
18360     no_undefined_flag_CXX \
18361     export_symbols_cmds_CXX \
18362     hardcode_libdir_flag_spec_CXX \
18363     hardcode_libdir_flag_spec_ld_CXX \
18364     hardcode_libdir_separator_CXX \
18365     hardcode_automatic_CXX \
18366     module_cmds_CXX \
18367     module_expsym_cmds_CXX \
18368     lt_cv_prog_compiler_c_o_CXX \
18369     exclude_expsyms_CXX \
18370     include_expsyms_CXX; do
18371
18372     case $var in
18373     old_archive_cmds_CXX | \
18374     old_archive_from_new_cmds_CXX | \
18375     archive_cmds_CXX | \
18376     archive_expsym_cmds_CXX | \
18377     module_cmds_CXX | \
18378     module_expsym_cmds_CXX | \
18379     old_archive_from_expsyms_cmds_CXX | \
18380     export_symbols_cmds_CXX | \
18381     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18382     postinstall_cmds | postuninstall_cmds | \
18383     old_postinstall_cmds | old_postuninstall_cmds | \
18384     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18385       # Double-quote double-evaled strings.
18386       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18387       ;;
18388     *)
18389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18390       ;;
18391     esac
18392   done
18393
18394   case $lt_echo in
18395   *'\$0 --fallback-echo"')
18396     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18397     ;;
18398   esac
18399
18400 cfgfile="$ofile"
18401
18402   cat <<__EOF__ >> "$cfgfile"
18403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18404
18405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18406
18407 # Shell to use when invoking shell scripts.
18408 SHELL=$lt_SHELL
18409
18410 # Whether or not to build shared libraries.
18411 build_libtool_libs=$enable_shared
18412
18413 # Whether or not to build static libraries.
18414 build_old_libs=$enable_static
18415
18416 # Whether or not to add -lc for building shared libraries.
18417 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18418
18419 # Whether or not to disallow shared libs when runtime libs are static
18420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18421
18422 # Whether or not to optimize for fast installation.
18423 fast_install=$enable_fast_install
18424
18425 # The host system.
18426 host_alias=$host_alias
18427 host=$host
18428
18429 # An echo program that does not interpret backslashes.
18430 echo=$lt_echo
18431
18432 # The archiver.
18433 AR=$lt_AR
18434 AR_FLAGS=$lt_AR_FLAGS
18435
18436 # A C compiler.
18437 LTCC=$lt_LTCC
18438
18439 # A language-specific compiler.
18440 CC=$lt_compiler_CXX
18441
18442 # Is the compiler the GNU C compiler?
18443 with_gcc=$GCC_CXX
18444
18445 # An ERE matcher.
18446 EGREP=$lt_EGREP
18447
18448 # The linker used to build libraries.
18449 LD=$lt_LD_CXX
18450
18451 # Whether we need hard or soft links.
18452 LN_S=$lt_LN_S
18453
18454 # A BSD-compatible nm program.
18455 NM=$lt_NM
18456
18457 # A symbol stripping program
18458 STRIP=$lt_STRIP
18459
18460 # Used to examine libraries when file_magic_cmd begins "file"
18461 MAGIC_CMD=$MAGIC_CMD
18462
18463 # Used on cygwin: DLL creation program.
18464 DLLTOOL="$DLLTOOL"
18465
18466 # Used on cygwin: object dumper.
18467 OBJDUMP="$OBJDUMP"
18468
18469 # Used on cygwin: assembler.
18470 AS="$AS"
18471
18472 # The name of the directory that contains temporary libtool files.
18473 objdir=$objdir
18474
18475 # How to create reloadable object files.
18476 reload_flag=$lt_reload_flag
18477 reload_cmds=$lt_reload_cmds
18478
18479 # How to pass a linker flag through the compiler.
18480 wl=$lt_lt_prog_compiler_wl_CXX
18481
18482 # Object file suffix (normally "o").
18483 objext="$ac_objext"
18484
18485 # Old archive suffix (normally "a").
18486 libext="$libext"
18487
18488 # Shared library suffix (normally ".so").
18489 shrext_cmds='$shrext_cmds'
18490
18491 # Executable file suffix (normally "").
18492 exeext="$exeext"
18493
18494 # Additional compiler flags for building library objects.
18495 pic_flag=$lt_lt_prog_compiler_pic_CXX
18496 pic_mode=$pic_mode
18497
18498 # What is the maximum length of a command?
18499 max_cmd_len=$lt_cv_sys_max_cmd_len
18500
18501 # Does compiler simultaneously support -c and -o options?
18502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18503
18504 # Must we lock files when doing compilation ?
18505 need_locks=$lt_need_locks
18506
18507 # Do we need the lib prefix for modules?
18508 need_lib_prefix=$need_lib_prefix
18509
18510 # Do we need a version for libraries?
18511 need_version=$need_version
18512
18513 # Whether dlopen is supported.
18514 dlopen_support=$enable_dlopen
18515
18516 # Whether dlopen of programs is supported.
18517 dlopen_self=$enable_dlopen_self
18518
18519 # Whether dlopen of statically linked programs is supported.
18520 dlopen_self_static=$enable_dlopen_self_static
18521
18522 # Compiler flag to prevent dynamic linking.
18523 link_static_flag=$lt_lt_prog_compiler_static_CXX
18524
18525 # Compiler flag to turn off builtin functions.
18526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18527
18528 # Compiler flag to allow reflexive dlopens.
18529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18530
18531 # Compiler flag to generate shared objects directly from archives.
18532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18533
18534 # Compiler flag to generate thread-safe objects.
18535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18536
18537 # Library versioning type.
18538 version_type=$version_type
18539
18540 # Format of library name prefix.
18541 libname_spec=$lt_libname_spec
18542
18543 # List of archive names.  First name is the real one, the rest are links.
18544 # The last name is the one that the linker finds with -lNAME.
18545 library_names_spec=$lt_library_names_spec
18546
18547 # The coded name of the library, if different from the real name.
18548 soname_spec=$lt_soname_spec
18549
18550 # Commands used to build and install an old-style archive.
18551 RANLIB=$lt_RANLIB
18552 old_archive_cmds=$lt_old_archive_cmds_CXX
18553 old_postinstall_cmds=$lt_old_postinstall_cmds
18554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18555
18556 # Create an old-style archive from a shared archive.
18557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18558
18559 # Create a temporary old-style archive to link instead of a shared archive.
18560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18561
18562 # Commands used to build and install a shared archive.
18563 archive_cmds=$lt_archive_cmds_CXX
18564 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18565 postinstall_cmds=$lt_postinstall_cmds
18566 postuninstall_cmds=$lt_postuninstall_cmds
18567
18568 # Commands used to build a loadable module (assumed same as above if empty)
18569 module_cmds=$lt_module_cmds_CXX
18570 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18571
18572 # Commands to strip libraries.
18573 old_striplib=$lt_old_striplib
18574 striplib=$lt_striplib
18575
18576 # Dependencies to place before the objects being linked to create a
18577 # shared library.
18578 predep_objects=$lt_predep_objects_CXX
18579
18580 # Dependencies to place after the objects being linked to create a
18581 # shared library.
18582 postdep_objects=$lt_postdep_objects_CXX
18583
18584 # Dependencies to place before the objects being linked to create a
18585 # shared library.
18586 predeps=$lt_predeps_CXX
18587
18588 # Dependencies to place after the objects being linked to create a
18589 # shared library.
18590 postdeps=$lt_postdeps_CXX
18591
18592 # The library search path used internally by the compiler when linking
18593 # a shared library.
18594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18595
18596 # Method to check whether dependent libraries are shared objects.
18597 deplibs_check_method=$lt_deplibs_check_method
18598
18599 # Command to use when deplibs_check_method == file_magic.
18600 file_magic_cmd=$lt_file_magic_cmd
18601
18602 # Flag that allows shared libraries with undefined symbols to be built.
18603 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18604
18605 # Flag that forces no undefined symbols.
18606 no_undefined_flag=$lt_no_undefined_flag_CXX
18607
18608 # Commands used to finish a libtool library installation in a directory.
18609 finish_cmds=$lt_finish_cmds
18610
18611 # Same as above, but a single script fragment to be evaled but not shown.
18612 finish_eval=$lt_finish_eval
18613
18614 # Take the output of nm and produce a listing of raw symbols and C names.
18615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18616
18617 # Transform the output of nm in a proper C declaration
18618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18619
18620 # Transform the output of nm in a C name address pair
18621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18622
18623 # This is the shared library runtime path variable.
18624 runpath_var=$runpath_var
18625
18626 # This is the shared library path variable.
18627 shlibpath_var=$shlibpath_var
18628
18629 # Is shlibpath searched before the hard-coded library search path?
18630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18631
18632 # How to hardcode a shared library path into an executable.
18633 hardcode_action=$hardcode_action_CXX
18634
18635 # Whether we should hardcode library paths into libraries.
18636 hardcode_into_libs=$hardcode_into_libs
18637
18638 # Flag to hardcode \$libdir into a binary during linking.
18639 # This must work even if \$libdir does not exist.
18640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18641
18642 # If ld is used when linking, flag to hardcode \$libdir into
18643 # a binary during linking. This must work even if \$libdir does
18644 # not exist.
18645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18646
18647 # Whether we need a single -rpath flag with a separated argument.
18648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18649
18650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18651 # resulting binary.
18652 hardcode_direct=$hardcode_direct_CXX
18653
18654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18655 # resulting binary.
18656 hardcode_minus_L=$hardcode_minus_L_CXX
18657
18658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18659 # the resulting binary.
18660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18661
18662 # Set to yes if building a shared library automatically hardcodes DIR into the library
18663 # and all subsequent libraries and executables linked against it.
18664 hardcode_automatic=$hardcode_automatic_CXX
18665
18666 # Variables whose values should be saved in libtool wrapper scripts and
18667 # restored at relink time.
18668 variables_saved_for_relink="$variables_saved_for_relink"
18669
18670 # Whether libtool must link a program against all its dependency libraries.
18671 link_all_deplibs=$link_all_deplibs_CXX
18672
18673 # Compile-time system search path for libraries
18674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18675
18676 # Run-time system search path for libraries
18677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18678
18679 # Fix the shell variable \$srcfile for the compiler.
18680 fix_srcfile_path="$fix_srcfile_path_CXX"
18681
18682 # Set to yes if exported symbols are required.
18683 always_export_symbols=$always_export_symbols_CXX
18684
18685 # The commands to list exported symbols.
18686 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18687
18688 # The commands to extract the exported symbol list from a shared archive.
18689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18690
18691 # Symbols that should not be listed in the preloaded symbols.
18692 exclude_expsyms=$lt_exclude_expsyms_CXX
18693
18694 # Symbols that must always be exported.
18695 include_expsyms=$lt_include_expsyms_CXX
18696
18697 # ### END LIBTOOL TAG CONFIG: $tagname
18698
18699 __EOF__
18700
18701
18702 else
18703   # If there is no Makefile yet, we rely on a make rule to execute
18704   # `config.status --recheck' to rerun these tests and create the
18705   # libtool script then.
18706   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18707   if test -f "$ltmain_in"; then
18708     test -f Makefile && make "$ltmain"
18709   fi
18710 fi
18711
18712
18713 ac_ext=c
18714 ac_cpp='$CPP $CPPFLAGS'
18715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18718
18719 CC=$lt_save_CC
18720 LDCXX=$LD
18721 LD=$lt_save_LD
18722 GCC=$lt_save_GCC
18723 with_gnu_ldcxx=$with_gnu_ld
18724 with_gnu_ld=$lt_save_with_gnu_ld
18725 lt_cv_path_LDCXX=$lt_cv_path_LD
18726 lt_cv_path_LD=$lt_save_path_LD
18727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18729
18730         else
18731           tagname=""
18732         fi
18733         ;;
18734
18735       F77)
18736         if test -n "$F77" && test "X$F77" != "Xno"; then
18737
18738 ac_ext=f
18739 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18740 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18742
18743
18744 archive_cmds_need_lc_F77=no
18745 allow_undefined_flag_F77=
18746 always_export_symbols_F77=no
18747 archive_expsym_cmds_F77=
18748 export_dynamic_flag_spec_F77=
18749 hardcode_direct_F77=no
18750 hardcode_libdir_flag_spec_F77=
18751 hardcode_libdir_flag_spec_ld_F77=
18752 hardcode_libdir_separator_F77=
18753 hardcode_minus_L_F77=no
18754 hardcode_automatic_F77=no
18755 module_cmds_F77=
18756 module_expsym_cmds_F77=
18757 link_all_deplibs_F77=unknown
18758 old_archive_cmds_F77=$old_archive_cmds
18759 no_undefined_flag_F77=
18760 whole_archive_flag_spec_F77=
18761 enable_shared_with_static_runtimes_F77=no
18762
18763 # Source file extension for f77 test sources.
18764 ac_ext=f
18765
18766 # Object file extension for compiled f77 test sources.
18767 objext=o
18768 objext_F77=$objext
18769
18770 # Code to be used in simple compile tests
18771 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18772
18773 # Code to be used in simple link tests
18774 lt_simple_link_test_code="      program t\n      end\n"
18775
18776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18777
18778 # If no C compiler was specified, use CC.
18779 LTCC=${LTCC-"$CC"}
18780
18781 # Allow CC to be a program name with arguments.
18782 compiler=$CC
18783
18784
18785 # Allow CC to be a program name with arguments.
18786 lt_save_CC="$CC"
18787 CC=${F77-"f77"}
18788 compiler=$CC
18789 compiler_F77=$CC
18790 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18791
18792 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18793 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18794 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18795 echo "${ECHO_T}$can_build_shared" >&6
18796
18797 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18798 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18799 test "$can_build_shared" = "no" && enable_shared=no
18800
18801 # On AIX, shared libraries and static libraries use the same namespace, and
18802 # are all built from PIC.
18803 case "$host_os" in
18804 aix3*)
18805   test "$enable_shared" = yes && enable_static=no
18806   if test -n "$RANLIB"; then
18807     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18808     postinstall_cmds='$RANLIB $lib'
18809   fi
18810   ;;
18811 aix4* | aix5*)
18812   test "$enable_shared" = yes && enable_static=no
18813   ;;
18814 esac
18815 echo "$as_me:$LINENO: result: $enable_shared" >&5
18816 echo "${ECHO_T}$enable_shared" >&6
18817
18818 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18819 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18820 # Make sure either enable_shared or enable_static is yes.
18821 test "$enable_shared" = yes || enable_static=yes
18822 echo "$as_me:$LINENO: result: $enable_static" >&5
18823 echo "${ECHO_T}$enable_static" >&6
18824
18825 test "$ld_shlibs_F77" = no && can_build_shared=no
18826
18827 GCC_F77="$G77"
18828 LD_F77="$LD"
18829
18830 lt_prog_compiler_wl_F77=
18831 lt_prog_compiler_pic_F77=
18832 lt_prog_compiler_static_F77=
18833
18834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18836
18837   if test "$GCC" = yes; then
18838     lt_prog_compiler_wl_F77='-Wl,'
18839     lt_prog_compiler_static_F77='-static'
18840
18841     case $host_os in
18842       aix*)
18843       # All AIX code is PIC.
18844       if test "$host_cpu" = ia64; then
18845         # AIX 5 now supports IA64 processor
18846         lt_prog_compiler_static_F77='-Bstatic'
18847       fi
18848       ;;
18849
18850     amigaos*)
18851       # FIXME: we need at least 68020 code to build shared libraries, but
18852       # adding the `-m68020' flag to GCC prevents building anything better,
18853       # like `-m68040'.
18854       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18855       ;;
18856
18857     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18858       # PIC is the default for these OSes.
18859       ;;
18860
18861     mingw* | pw32* | os2*)
18862       # This hack is so that the source file can tell whether it is being
18863       # built for inclusion in a dll (and should export symbols for example).
18864       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18865       ;;
18866
18867     darwin* | rhapsody*)
18868       # PIC is the default on this platform
18869       # Common symbols not allowed in MH_DYLIB files
18870       lt_prog_compiler_pic_F77='-fno-common'
18871       ;;
18872
18873     msdosdjgpp*)
18874       # Just because we use GCC doesn't mean we suddenly get shared libraries
18875       # on systems that don't support them.
18876       lt_prog_compiler_can_build_shared_F77=no
18877       enable_shared=no
18878       ;;
18879
18880     sysv4*MP*)
18881       if test -d /usr/nec; then
18882         lt_prog_compiler_pic_F77=-Kconform_pic
18883       fi
18884       ;;
18885
18886     hpux*)
18887       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18888       # not for PA HP-UX.
18889       case "$host_cpu" in
18890       hppa*64*|ia64*)
18891         # +Z the default
18892         ;;
18893       *)
18894         lt_prog_compiler_pic_F77='-fPIC'
18895         ;;
18896       esac
18897       ;;
18898
18899     *)
18900       lt_prog_compiler_pic_F77='-fPIC'
18901       ;;
18902     esac
18903   else
18904     # PORTME Check for flag to pass linker flags through the system compiler.
18905     case $host_os in
18906     aix*)
18907       lt_prog_compiler_wl_F77='-Wl,'
18908       if test "$host_cpu" = ia64; then
18909         # AIX 5 now supports IA64 processor
18910         lt_prog_compiler_static_F77='-Bstatic'
18911       else
18912         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18913       fi
18914       ;;
18915       darwin*)
18916         # PIC is the default on this platform
18917         # Common symbols not allowed in MH_DYLIB files
18918        case "$cc_basename" in
18919          xlc*)
18920          lt_prog_compiler_pic_F77='-qnocommon'
18921          lt_prog_compiler_wl_F77='-Wl,'
18922          ;;
18923        esac
18924        ;;
18925
18926     mingw* | pw32* | os2*)
18927       # This hack is so that the source file can tell whether it is being
18928       # built for inclusion in a dll (and should export symbols for example).
18929       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18930       ;;
18931
18932     hpux9* | hpux10* | hpux11*)
18933       lt_prog_compiler_wl_F77='-Wl,'
18934       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18935       # not for PA HP-UX.
18936       case "$host_cpu" in
18937       hppa*64*|ia64*)
18938         # +Z the default
18939         ;;
18940       *)
18941         lt_prog_compiler_pic_F77='+Z'
18942         ;;
18943       esac
18944       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18945       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18946       ;;
18947
18948     irix5* | irix6* | nonstopux*)
18949       lt_prog_compiler_wl_F77='-Wl,'
18950       # PIC (with -KPIC) is the default.
18951       lt_prog_compiler_static_F77='-non_shared'
18952       ;;
18953
18954     newsos6)
18955       lt_prog_compiler_pic_F77='-KPIC'
18956       lt_prog_compiler_static_F77='-Bstatic'
18957       ;;
18958
18959     linux*)
18960       case $CC in
18961       icc* | ecc*)
18962         lt_prog_compiler_wl_F77='-Wl,'
18963         lt_prog_compiler_pic_F77='-KPIC'
18964         lt_prog_compiler_static_F77='-static'
18965         ;;
18966       ccc*)
18967         lt_prog_compiler_wl_F77='-Wl,'
18968         # All Alpha code is PIC.
18969         lt_prog_compiler_static_F77='-non_shared'
18970         ;;
18971       esac
18972       ;;
18973
18974     osf3* | osf4* | osf5*)
18975       lt_prog_compiler_wl_F77='-Wl,'
18976       # All OSF/1 code is PIC.
18977       lt_prog_compiler_static_F77='-non_shared'
18978       ;;
18979
18980     sco3.2v5*)
18981       lt_prog_compiler_pic_F77='-Kpic'
18982       lt_prog_compiler_static_F77='-dn'
18983       ;;
18984
18985     solaris*)
18986       lt_prog_compiler_wl_F77='-Wl,'
18987       lt_prog_compiler_pic_F77='-KPIC'
18988       lt_prog_compiler_static_F77='-Bstatic'
18989       ;;
18990
18991     sunos4*)
18992       lt_prog_compiler_wl_F77='-Qoption ld '
18993       lt_prog_compiler_pic_F77='-PIC'
18994       lt_prog_compiler_static_F77='-Bstatic'
18995       ;;
18996
18997     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18998       lt_prog_compiler_wl_F77='-Wl,'
18999       lt_prog_compiler_pic_F77='-KPIC'
19000       lt_prog_compiler_static_F77='-Bstatic'
19001       ;;
19002
19003     sysv4*MP*)
19004       if test -d /usr/nec ;then
19005         lt_prog_compiler_pic_F77='-Kconform_pic'
19006         lt_prog_compiler_static_F77='-Bstatic'
19007       fi
19008       ;;
19009
19010     uts4*)
19011       lt_prog_compiler_pic_F77='-pic'
19012       lt_prog_compiler_static_F77='-Bstatic'
19013       ;;
19014
19015     *)
19016       lt_prog_compiler_can_build_shared_F77=no
19017       ;;
19018     esac
19019   fi
19020
19021 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19022 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19023
19024 #
19025 # Check to make sure the PIC flag actually works.
19026 #
19027 if test -n "$lt_prog_compiler_pic_F77"; then
19028
19029 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19030 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19031 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19032   echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034   lt_prog_compiler_pic_works_F77=no
19035   ac_outfile=conftest.$ac_objext
19036    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19037    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19038    # Insert the option either (1) after the last *FLAGS variable, or
19039    # (2) before a word containing "conftest.", or (3) at the end.
19040    # Note that $ac_compile itself does not contain backslashes and begins
19041    # with a dollar sign (not a hyphen), so the echo should work correctly.
19042    # The option is referenced via a variable to avoid confusing sed.
19043    lt_compile=`echo "$ac_compile" | $SED \
19044    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19046    -e 's:$: $lt_compiler_flag:'`
19047    (eval echo "\"\$as_me:19047: $lt_compile\"" >&5)
19048    (eval "$lt_compile" 2>conftest.err)
19049    ac_status=$?
19050    cat conftest.err >&5
19051    echo "$as_me:19051: \$? = $ac_status" >&5
19052    if (exit $ac_status) && test -s "$ac_outfile"; then
19053      # The compiler can only warn and ignore the option if not recognized
19054      # So say no if there are warnings
19055      if test ! -s conftest.err; then
19056        lt_prog_compiler_pic_works_F77=yes
19057      fi
19058    fi
19059    $rm conftest*
19060
19061 fi
19062 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19063 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19064
19065 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19066     case $lt_prog_compiler_pic_F77 in
19067      "" | " "*) ;;
19068      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19069      esac
19070 else
19071     lt_prog_compiler_pic_F77=
19072      lt_prog_compiler_can_build_shared_F77=no
19073 fi
19074
19075 fi
19076 case "$host_os" in
19077   # For platforms which do not support PIC, -DPIC is meaningless:
19078   *djgpp*)
19079     lt_prog_compiler_pic_F77=
19080     ;;
19081   *)
19082     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19083     ;;
19084 esac
19085
19086 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19087 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19088 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   lt_cv_prog_compiler_c_o_F77=no
19092    $rm -r conftest 2>/dev/null
19093    mkdir conftest
19094    cd conftest
19095    mkdir out
19096    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19097
19098    lt_compiler_flag="-o out/conftest2.$ac_objext"
19099    # Insert the option either (1) after the last *FLAGS variable, or
19100    # (2) before a word containing "conftest.", or (3) at the end.
19101    # Note that $ac_compile itself does not contain backslashes and begins
19102    # with a dollar sign (not a hyphen), so the echo should work correctly.
19103    lt_compile=`echo "$ac_compile" | $SED \
19104    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19106    -e 's:$: $lt_compiler_flag:'`
19107    (eval echo "\"\$as_me:19107: $lt_compile\"" >&5)
19108    (eval "$lt_compile" 2>out/conftest.err)
19109    ac_status=$?
19110    cat out/conftest.err >&5
19111    echo "$as_me:19111: \$? = $ac_status" >&5
19112    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19113    then
19114      # The compiler can only warn and ignore the option if not recognized
19115      # So say no if there are warnings
19116      if test ! -s out/conftest.err; then
19117        lt_cv_prog_compiler_c_o_F77=yes
19118      fi
19119    fi
19120    chmod u+w .
19121    $rm conftest*
19122    # SGI C++ compiler will create directory out/ii_files/ for
19123    # template instantiation
19124    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19125    $rm out/* && rmdir out
19126    cd ..
19127    rmdir conftest
19128    $rm conftest*
19129
19130 fi
19131 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19132 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19133
19134
19135 hard_links="nottested"
19136 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19137   # do not overwrite the value of need_locks provided by the user
19138   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19139 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19140   hard_links=yes
19141   $rm conftest*
19142   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19143   touch conftest.a
19144   ln conftest.a conftest.b 2>&5 || hard_links=no
19145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19146   echo "$as_me:$LINENO: result: $hard_links" >&5
19147 echo "${ECHO_T}$hard_links" >&6
19148   if test "$hard_links" = no; then
19149     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19150 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19151     need_locks=warn
19152   fi
19153 else
19154   need_locks=no
19155 fi
19156
19157 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19158 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19159
19160   runpath_var=
19161   allow_undefined_flag_F77=
19162   enable_shared_with_static_runtimes_F77=no
19163   archive_cmds_F77=
19164   archive_expsym_cmds_F77=
19165   old_archive_From_new_cmds_F77=
19166   old_archive_from_expsyms_cmds_F77=
19167   export_dynamic_flag_spec_F77=
19168   whole_archive_flag_spec_F77=
19169   thread_safe_flag_spec_F77=
19170   hardcode_libdir_flag_spec_F77=
19171   hardcode_libdir_flag_spec_ld_F77=
19172   hardcode_libdir_separator_F77=
19173   hardcode_direct_F77=no
19174   hardcode_minus_L_F77=no
19175   hardcode_shlibpath_var_F77=unsupported
19176   link_all_deplibs_F77=unknown
19177   hardcode_automatic_F77=no
19178   module_cmds_F77=
19179   module_expsym_cmds_F77=
19180   always_export_symbols_F77=no
19181   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19182   # include_expsyms should be a list of space-separated symbols to be *always*
19183   # included in the symbol list
19184   include_expsyms_F77=
19185   # exclude_expsyms can be an extended regexp of symbols to exclude
19186   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19187   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19188   # as well as any symbol that contains `d'.
19189   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19190   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19191   # platforms (ab)use it in PIC code, but their linkers get confused if
19192   # the symbol is explicitly referenced.  Since portable code cannot
19193   # rely on this symbol name, it's probably fine to never include it in
19194   # preloaded symbol tables.
19195   extract_expsyms_cmds=
19196
19197   case $host_os in
19198   cygwin* | mingw* | pw32*)
19199     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19200     # When not using gcc, we currently assume that we are using
19201     # Microsoft Visual C++.
19202     if test "$GCC" != yes; then
19203       with_gnu_ld=no
19204     fi
19205     ;;
19206   openbsd*)
19207     with_gnu_ld=no
19208     ;;
19209   esac
19210
19211   ld_shlibs_F77=yes
19212   if test "$with_gnu_ld" = yes; then
19213     # If archive_cmds runs LD, not CC, wlarc should be empty
19214     wlarc='${wl}'
19215
19216     # See if GNU ld supports shared libraries.
19217     case $host_os in
19218     aix3* | aix4* | aix5*)
19219       # On AIX/PPC, the GNU linker is very broken
19220       if test "$host_cpu" != ia64; then
19221         ld_shlibs_F77=no
19222         cat <<EOF 1>&2
19223
19224 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19225 *** to be unable to reliably create shared libraries on AIX.
19226 *** Therefore, libtool is disabling shared libraries support.  If you
19227 *** really care for shared libraries, you may want to modify your PATH
19228 *** so that a non-GNU linker is found, and then restart.
19229
19230 EOF
19231       fi
19232       ;;
19233
19234     amigaos*)
19235       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)'
19236       hardcode_libdir_flag_spec_F77='-L$libdir'
19237       hardcode_minus_L_F77=yes
19238
19239       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19240       # that the semantics of dynamic libraries on AmigaOS, at least up
19241       # to version 4, is to share data among multiple programs linked
19242       # with the same dynamic library.  Since this doesn't match the
19243       # behavior of shared libraries on other platforms, we can't use
19244       # them.
19245       ld_shlibs_F77=no
19246       ;;
19247
19248     beos*)
19249       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19250         allow_undefined_flag_F77=unsupported
19251         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19252         # support --undefined.  This deserves some investigation.  FIXME
19253         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19254       else
19255         ld_shlibs_F77=no
19256       fi
19257       ;;
19258
19259     cygwin* | mingw* | pw32*)
19260       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19261       # as there is no search path for DLLs.
19262       hardcode_libdir_flag_spec_F77='-L$libdir'
19263       allow_undefined_flag_F77=unsupported
19264       always_export_symbols_F77=no
19265       enable_shared_with_static_runtimes_F77=yes
19266       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19267
19268       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19269         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19270         # If the export-symbols file already is a .def file (1st line
19271         # is EXPORTS), use it as is; otherwise, prepend...
19272         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19273           cp $export_symbols $output_objdir/$soname.def;
19274         else
19275           echo EXPORTS > $output_objdir/$soname.def;
19276           cat $export_symbols >> $output_objdir/$soname.def;
19277         fi~
19278         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19279       else
19280         ld_shlibs=no
19281       fi
19282       ;;
19283
19284     netbsd*)
19285       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19286         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19287         wlarc=
19288       else
19289         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19290         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19291       fi
19292       ;;
19293
19294     solaris* | sysv5*)
19295       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19296         ld_shlibs_F77=no
19297         cat <<EOF 1>&2
19298
19299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19300 *** create shared libraries on Solaris systems.  Therefore, libtool
19301 *** is disabling shared libraries support.  We urge you to upgrade GNU
19302 *** binutils to release 2.9.1 or newer.  Another option is to modify
19303 *** your PATH or compiler configuration so that the native linker is
19304 *** used, and then restart.
19305
19306 EOF
19307       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19310       else
19311         ld_shlibs_F77=no
19312       fi
19313       ;;
19314
19315     sunos4*)
19316       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19317       wlarc=
19318       hardcode_direct_F77=yes
19319       hardcode_shlibpath_var_F77=no
19320       ;;
19321
19322   linux*)
19323     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19324         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325         archive_cmds_F77="$tmp_archive_cmds"
19326       supports_anon_versioning=no
19327       case `$LD -v 2>/dev/null` in
19328         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19329         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19330         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19331         *\ 2.11.*) ;; # other 2.11 versions
19332         *) supports_anon_versioning=yes ;;
19333       esac
19334       if test $supports_anon_versioning = yes; then
19335         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19337 $echo "local: *; };" >> $output_objdir/$libname.ver~
19338         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19339       else
19340         archive_expsym_cmds_F77="$tmp_archive_cmds"
19341       fi
19342     else
19343       ld_shlibs_F77=no
19344     fi
19345     ;;
19346
19347     *)
19348       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19349         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19350         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19351       else
19352         ld_shlibs_F77=no
19353       fi
19354       ;;
19355     esac
19356
19357     if test "$ld_shlibs_F77" = yes; then
19358       runpath_var=LD_RUN_PATH
19359       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19360       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19361       # ancient GNU ld didn't support --whole-archive et. al.
19362       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19363         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19364       else
19365         whole_archive_flag_spec_F77=
19366       fi
19367     fi
19368   else
19369     # PORTME fill in a description of your system's linker (not GNU ld)
19370     case $host_os in
19371     aix3*)
19372       allow_undefined_flag_F77=unsupported
19373       always_export_symbols_F77=yes
19374       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'
19375       # Note: this linker hardcodes the directories in LIBPATH if there
19376       # are no directories specified by -L.
19377       hardcode_minus_L_F77=yes
19378       if test "$GCC" = yes && test -z "$link_static_flag"; then
19379         # Neither direct hardcoding nor static linking is supported with a
19380         # broken collect2.
19381         hardcode_direct_F77=unsupported
19382       fi
19383       ;;
19384
19385     aix4* | aix5*)
19386       if test "$host_cpu" = ia64; then
19387         # On IA64, the linker does run time linking by default, so we don't
19388         # have to do anything special.
19389         aix_use_runtimelinking=no
19390         exp_sym_flag='-Bexport'
19391         no_entry_flag=""
19392       else
19393         # If we're using GNU nm, then we don't want the "-C" option.
19394         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19395         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19396           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'
19397         else
19398           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'
19399         fi
19400         aix_use_runtimelinking=no
19401
19402         # Test if we are trying to use run time linking or normal
19403         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19404         # need to do runtime linking.
19405         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19406           for ld_flag in $LDFLAGS; do
19407           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19408             aix_use_runtimelinking=yes
19409             break
19410           fi
19411           done
19412         esac
19413
19414         exp_sym_flag='-bexport'
19415         no_entry_flag='-bnoentry'
19416       fi
19417
19418       # When large executables or shared objects are built, AIX ld can
19419       # have problems creating the table of contents.  If linking a library
19420       # or program results in "error TOC overflow" add -mminimal-toc to
19421       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19422       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19423
19424       archive_cmds_F77=''
19425       hardcode_direct_F77=yes
19426       hardcode_libdir_separator_F77=':'
19427       link_all_deplibs_F77=yes
19428
19429       if test "$GCC" = yes; then
19430         case $host_os in aix4.012|aix4.012.*)
19431         # We only want to do this on AIX 4.2 and lower, the check
19432         # below for broken collect2 doesn't work under 4.3+
19433           collect2name=`${CC} -print-prog-name=collect2`
19434           if test -f "$collect2name" && \
19435            strings "$collect2name" | grep resolve_lib_name >/dev/null
19436           then
19437           # We have reworked collect2
19438           hardcode_direct_F77=yes
19439           else
19440           # We have old collect2
19441           hardcode_direct_F77=unsupported
19442           # It fails to find uninstalled libraries when the uninstalled
19443           # path is not listed in the libpath.  Setting hardcode_minus_L
19444           # to unsupported forces relinking
19445           hardcode_minus_L_F77=yes
19446           hardcode_libdir_flag_spec_F77='-L$libdir'
19447           hardcode_libdir_separator_F77=
19448           fi
19449         esac
19450         shared_flag='-shared'
19451       else
19452         # not using gcc
19453         if test "$host_cpu" = ia64; then
19454         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19455         # chokes on -Wl,-G. The following line is correct:
19456           shared_flag='-G'
19457         else
19458         if test "$aix_use_runtimelinking" = yes; then
19459             shared_flag='${wl}-G'
19460           else
19461             shared_flag='${wl}-bM:SRE'
19462         fi
19463         fi
19464       fi
19465
19466       # It seems that -bexpall does not export symbols beginning with
19467       # underscore (_), so it is better to generate a list of symbols to export.
19468       always_export_symbols_F77=yes
19469       if test "$aix_use_runtimelinking" = yes; then
19470         # Warning - without using the other runtime loading flags (-brtl),
19471         # -berok will link without error, but may produce a broken library.
19472         allow_undefined_flag_F77='-berok'
19473        # Determine the default libpath from the value encoded in an empty executable.
19474        cat >conftest.$ac_ext <<_ACEOF
19475       program main
19476
19477       end
19478 _ACEOF
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19481   (eval $ac_link) 2>conftest.er1
19482   ac_status=$?
19483   grep -v '^ *+' conftest.er1 >conftest.err
19484   rm -f conftest.er1
19485   cat conftest.err >&5
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } &&
19488          { ac_try='test -z "$ac_f77_werror_flag"
19489                          || test ! -s conftest.err'
19490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491   (eval $ac_try) 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); }; } &&
19495          { ac_try='test -s conftest$ac_exeext'
19496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497   (eval $ac_try) 2>&5
19498   ac_status=$?
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); }; }; then
19501
19502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19503 }'`
19504 # Check for a 64-bit object if we didn't find anything.
19505 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; }
19506 }'`; fi
19507 else
19508   echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 fi
19512 rm -f conftest.err conftest.$ac_objext \
19513       conftest$ac_exeext conftest.$ac_ext
19514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19515
19516        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19517         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"
19518        else
19519         if test "$host_cpu" = ia64; then
19520           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19521           allow_undefined_flag_F77="-z nodefs"
19522           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"
19523         else
19524          # Determine the default libpath from the value encoded in an empty executable.
19525          cat >conftest.$ac_ext <<_ACEOF
19526       program main
19527
19528       end
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19532   (eval $ac_link) 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } &&
19539          { ac_try='test -z "$ac_f77_werror_flag"
19540                          || test ! -s conftest.err'
19541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542   (eval $ac_try) 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; } &&
19546          { ac_try='test -s conftest$ac_exeext'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; }; then
19552
19553 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19554 }'`
19555 # Check for a 64-bit object if we didn't find anything.
19556 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; }
19557 }'`; fi
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 fi
19563 rm -f conftest.err conftest.$ac_objext \
19564       conftest$ac_exeext conftest.$ac_ext
19565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19566
19567          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19568           # Warning - without using the other run time loading flags,
19569           # -berok will link without error, but may produce a broken library.
19570           no_undefined_flag_F77=' ${wl}-bernotok'
19571           allow_undefined_flag_F77=' ${wl}-berok'
19572           # -bexpall does not export symbols beginning with underscore (_)
19573           always_export_symbols_F77=yes
19574           # Exported symbols can be pulled into shared objects from archives
19575           whole_archive_flag_spec_F77=' '
19576           archive_cmds_need_lc_F77=yes
19577           # This is similar to how AIX traditionally builds it's shared libraries.
19578           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'
19579         fi
19580       fi
19581       ;;
19582
19583     amigaos*)
19584       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)'
19585       hardcode_libdir_flag_spec_F77='-L$libdir'
19586       hardcode_minus_L_F77=yes
19587       # see comment about different semantics on the GNU ld section
19588       ld_shlibs_F77=no
19589       ;;
19590
19591     bsdi[45]*)
19592       export_dynamic_flag_spec_F77=-rdynamic
19593       ;;
19594
19595     cygwin* | mingw* | pw32*)
19596       # When not using gcc, we currently assume that we are using
19597       # Microsoft Visual C++.
19598       # hardcode_libdir_flag_spec is actually meaningless, as there is
19599       # no search path for DLLs.
19600       hardcode_libdir_flag_spec_F77=' '
19601       allow_undefined_flag_F77=unsupported
19602       # Tell ltmain to make .lib files, not .a files.
19603       libext=lib
19604       # Tell ltmain to make .dll files, not .so files.
19605       shrext_cmds=".dll"
19606       # FIXME: Setting linknames here is a bad hack.
19607       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19608       # The linker will automatically build a .lib file if we build a DLL.
19609       old_archive_From_new_cmds_F77='true'
19610       # FIXME: Should let the user specify the lib program.
19611       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19612       fix_srcfile_path='`cygpath -w "$srcfile"`'
19613       enable_shared_with_static_runtimes_F77=yes
19614       ;;
19615
19616     darwin* | rhapsody*)
19617       case "$host_os" in
19618         rhapsody* | darwin1.[012])
19619          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19620          ;;
19621        *) # Darwin 1.3 on
19622          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19623            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19624          else
19625            case ${MACOSX_DEPLOYMENT_TARGET} in
19626              10.[012])
19627                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19628                ;;
19629              10.*)
19630                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19631                ;;
19632            esac
19633          fi
19634          ;;
19635       esac
19636       archive_cmds_need_lc_F77=no
19637       hardcode_direct_F77=no
19638       hardcode_automatic_F77=yes
19639       hardcode_shlibpath_var_F77=unsupported
19640       whole_archive_flag_spec_F77=''
19641       link_all_deplibs_F77=yes
19642     if test "$GCC" = yes ; then
19643         output_verbose_link_cmd='echo'
19644         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19645       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19646       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19647       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}'
19648       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}'
19649     else
19650       case "$cc_basename" in
19651         xlc*)
19652          output_verbose_link_cmd='echo'
19653          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19654          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19655           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19656          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}'
19657           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}'
19658           ;;
19659        *)
19660          ld_shlibs_F77=no
19661           ;;
19662       esac
19663     fi
19664       ;;
19665
19666     dgux*)
19667       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668       hardcode_libdir_flag_spec_F77='-L$libdir'
19669       hardcode_shlibpath_var_F77=no
19670       ;;
19671
19672     freebsd1*)
19673       ld_shlibs_F77=no
19674       ;;
19675
19676     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19677     # support.  Future versions do this automatically, but an explicit c++rt0.o
19678     # does not break anything, and helps significantly (at the cost of a little
19679     # extra space).
19680     freebsd2.2*)
19681       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19682       hardcode_libdir_flag_spec_F77='-R$libdir'
19683       hardcode_direct_F77=yes
19684       hardcode_shlibpath_var_F77=no
19685       ;;
19686
19687     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19688     freebsd2*)
19689       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19690       hardcode_direct_F77=yes
19691       hardcode_minus_L_F77=yes
19692       hardcode_shlibpath_var_F77=no
19693       ;;
19694
19695     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19696     freebsd* | kfreebsd*-gnu)
19697       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19698       hardcode_libdir_flag_spec_F77='-R$libdir'
19699       hardcode_direct_F77=yes
19700       hardcode_shlibpath_var_F77=no
19701       ;;
19702
19703     hpux9*)
19704       if test "$GCC" = yes; then
19705         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'
19706       else
19707         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'
19708       fi
19709       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19710       hardcode_libdir_separator_F77=:
19711       hardcode_direct_F77=yes
19712
19713       # hardcode_minus_L: Not really in the search PATH,
19714       # but as the default location of the library.
19715       hardcode_minus_L_F77=yes
19716       export_dynamic_flag_spec_F77='${wl}-E'
19717       ;;
19718
19719     hpux10* | hpux11*)
19720       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19721         case "$host_cpu" in
19722         hppa*64*|ia64*)
19723           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19724           ;;
19725         *)
19726           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19727           ;;
19728         esac
19729       else
19730         case "$host_cpu" in
19731         hppa*64*|ia64*)
19732           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19733           ;;
19734         *)
19735           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19736           ;;
19737         esac
19738       fi
19739       if test "$with_gnu_ld" = no; then
19740         case "$host_cpu" in
19741         hppa*64*)
19742           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19743           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19744           hardcode_libdir_separator_F77=:
19745           hardcode_direct_F77=no
19746           hardcode_shlibpath_var_F77=no
19747           ;;
19748         ia64*)
19749           hardcode_libdir_flag_spec_F77='-L$libdir'
19750           hardcode_direct_F77=no
19751           hardcode_shlibpath_var_F77=no
19752
19753           # hardcode_minus_L: Not really in the search PATH,
19754           # but as the default location of the library.
19755           hardcode_minus_L_F77=yes
19756           ;;
19757         *)
19758           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19759           hardcode_libdir_separator_F77=:
19760           hardcode_direct_F77=yes
19761           export_dynamic_flag_spec_F77='${wl}-E'
19762
19763           # hardcode_minus_L: Not really in the search PATH,
19764           # but as the default location of the library.
19765           hardcode_minus_L_F77=yes
19766           ;;
19767         esac
19768       fi
19769       ;;
19770
19771     irix5* | irix6* | nonstopux*)
19772       if test "$GCC" = yes; then
19773         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'
19774       else
19775         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'
19776         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19777       fi
19778       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19779       hardcode_libdir_separator_F77=:
19780       link_all_deplibs_F77=yes
19781       ;;
19782
19783     netbsd*)
19784       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19785         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19786       else
19787         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19788       fi
19789       hardcode_libdir_flag_spec_F77='-R$libdir'
19790       hardcode_direct_F77=yes
19791       hardcode_shlibpath_var_F77=no
19792       ;;
19793
19794     newsos6)
19795       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19796       hardcode_direct_F77=yes
19797       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19798       hardcode_libdir_separator_F77=:
19799       hardcode_shlibpath_var_F77=no
19800       ;;
19801
19802     openbsd*)
19803       hardcode_direct_F77=yes
19804       hardcode_shlibpath_var_F77=no
19805       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19806         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19807         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19808         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19809         export_dynamic_flag_spec_F77='${wl}-E'
19810       else
19811        case $host_os in
19812          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19813            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19814            hardcode_libdir_flag_spec_F77='-R$libdir'
19815            ;;
19816          *)
19817            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19818            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19819            ;;
19820        esac
19821       fi
19822       ;;
19823
19824     os2*)
19825       hardcode_libdir_flag_spec_F77='-L$libdir'
19826       hardcode_minus_L_F77=yes
19827       allow_undefined_flag_F77=unsupported
19828       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'
19829       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19830       ;;
19831
19832     osf3*)
19833       if test "$GCC" = yes; then
19834         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19835         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'
19836       else
19837         allow_undefined_flag_F77=' -expect_unresolved \*'
19838         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'
19839       fi
19840       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19841       hardcode_libdir_separator_F77=:
19842       ;;
19843
19844     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19845       if test "$GCC" = yes; then
19846         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19847         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'
19848         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19849       else
19850         allow_undefined_flag_F77=' -expect_unresolved \*'
19851         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'
19852         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~
19853         $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'
19854
19855         # Both c and cxx compiler support -rpath directly
19856         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19857       fi
19858       hardcode_libdir_separator_F77=:
19859       ;;
19860
19861     sco3.2v5*)
19862       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19863       hardcode_shlibpath_var_F77=no
19864       export_dynamic_flag_spec_F77='${wl}-Bexport'
19865       runpath_var=LD_RUN_PATH
19866       hardcode_runpath_var=yes
19867       ;;
19868
19869     solaris*)
19870       no_undefined_flag_F77=' -z text'
19871       if test "$GCC" = yes; then
19872         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19873         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19874           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19875       else
19876         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19877         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19878         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19879       fi
19880       hardcode_libdir_flag_spec_F77='-R$libdir'
19881       hardcode_shlibpath_var_F77=no
19882       case $host_os in
19883       solaris2.[0-5] | solaris2.[0-5].*) ;;
19884       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19885         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19886       esac
19887       link_all_deplibs_F77=yes
19888       ;;
19889
19890     sunos4*)
19891       if test "x$host_vendor" = xsequent; then
19892         # Use $CC to link under sequent, because it throws in some extra .o
19893         # files that make .init and .fini sections work.
19894         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19895       else
19896         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19897       fi
19898       hardcode_libdir_flag_spec_F77='-L$libdir'
19899       hardcode_direct_F77=yes
19900       hardcode_minus_L_F77=yes
19901       hardcode_shlibpath_var_F77=no
19902       ;;
19903
19904     sysv4)
19905       case $host_vendor in
19906         sni)
19907           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19908           hardcode_direct_F77=yes # is this really true???
19909         ;;
19910         siemens)
19911           ## LD is ld it makes a PLAMLIB
19912           ## CC just makes a GrossModule.
19913           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19914           reload_cmds_F77='$CC -r -o $output$reload_objs'
19915           hardcode_direct_F77=no
19916         ;;
19917         motorola)
19918           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19919           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19920         ;;
19921       esac
19922       runpath_var='LD_RUN_PATH'
19923       hardcode_shlibpath_var_F77=no
19924       ;;
19925
19926     sysv4.3*)
19927       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19928       hardcode_shlibpath_var_F77=no
19929       export_dynamic_flag_spec_F77='-Bexport'
19930       ;;
19931
19932     sysv4*MP*)
19933       if test -d /usr/nec; then
19934         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19935         hardcode_shlibpath_var_F77=no
19936         runpath_var=LD_RUN_PATH
19937         hardcode_runpath_var=yes
19938         ld_shlibs_F77=yes
19939       fi
19940       ;;
19941
19942     sysv4.2uw2*)
19943       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19944       hardcode_direct_F77=yes
19945       hardcode_minus_L_F77=no
19946       hardcode_shlibpath_var_F77=no
19947       hardcode_runpath_var=yes
19948       runpath_var=LD_RUN_PATH
19949       ;;
19950
19951    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19952       no_undefined_flag_F77='${wl}-z ${wl}text'
19953       if test "$GCC" = yes; then
19954         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19955       else
19956         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19957       fi
19958       runpath_var='LD_RUN_PATH'
19959       hardcode_shlibpath_var_F77=no
19960       ;;
19961
19962     sysv5*)
19963       no_undefined_flag_F77=' -z text'
19964       # $CC -shared without GNU ld will not create a library from C++
19965       # object files and a static libstdc++, better avoid it by now
19966       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19967       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19968                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19969       hardcode_libdir_flag_spec_F77=
19970       hardcode_shlibpath_var_F77=no
19971       runpath_var='LD_RUN_PATH'
19972       ;;
19973
19974     uts4*)
19975       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19976       hardcode_libdir_flag_spec_F77='-L$libdir'
19977       hardcode_shlibpath_var_F77=no
19978       ;;
19979
19980     *)
19981       ld_shlibs_F77=no
19982       ;;
19983     esac
19984   fi
19985
19986 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19987 echo "${ECHO_T}$ld_shlibs_F77" >&6
19988 test "$ld_shlibs_F77" = no && can_build_shared=no
19989
19990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19991 if test "$GCC" = yes; then
19992   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19993 fi
19994
19995 #
19996 # Do we need to explicitly link libc?
19997 #
19998 case "x$archive_cmds_need_lc_F77" in
19999 x|xyes)
20000   # Assume -lc should be added
20001   archive_cmds_need_lc_F77=yes
20002
20003   if test "$enable_shared" = yes && test "$GCC" = yes; then
20004     case $archive_cmds_F77 in
20005     *'~'*)
20006       # FIXME: we may have to deal with multi-command sequences.
20007       ;;
20008     '$CC '*)
20009       # Test whether the compiler implicitly links with -lc since on some
20010       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20011       # to ld, don't add -lc before -lgcc.
20012       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20013 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20014       $rm conftest*
20015       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20016
20017       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20018   (eval $ac_compile) 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } 2>conftest.err; then
20022         soname=conftest
20023         lib=conftest
20024         libobjs=conftest.$ac_objext
20025         deplibs=
20026         wl=$lt_prog_compiler_wl_F77
20027         compiler_flags=-v
20028         linker_flags=-v
20029         verstring=
20030         output_objdir=.
20031         libname=conftest
20032         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20033         allow_undefined_flag_F77=
20034         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20035   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }
20039         then
20040           archive_cmds_need_lc_F77=no
20041         else
20042           archive_cmds_need_lc_F77=yes
20043         fi
20044         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20045       else
20046         cat conftest.err 1>&5
20047       fi
20048       $rm conftest*
20049       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20050 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20051       ;;
20052     esac
20053   fi
20054   ;;
20055 esac
20056
20057 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20058 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20059 library_names_spec=
20060 libname_spec='lib$name'
20061 soname_spec=
20062 shrext_cmds=".so"
20063 postinstall_cmds=
20064 postuninstall_cmds=
20065 finish_cmds=
20066 finish_eval=
20067 shlibpath_var=
20068 shlibpath_overrides_runpath=unknown
20069 version_type=none
20070 dynamic_linker="$host_os ld.so"
20071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20072 if test "$GCC" = yes; then
20073   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20074   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20075     # if the path contains ";" then we assume it to be the separator
20076     # otherwise default to the standard path separator (i.e. ":") - it is
20077     # assumed that no part of a normal pathname contains ";" but that should
20078     # okay in the real world where ";" in dirpaths is itself problematic.
20079     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20080   else
20081     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20082   fi
20083 else
20084   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20085 fi
20086 need_lib_prefix=unknown
20087 hardcode_into_libs=no
20088
20089 # when you set need_version to no, make sure it does not cause -set_version
20090 # flags to be left without arguments
20091 need_version=unknown
20092
20093 case $host_os in
20094 aix3*)
20095   version_type=linux
20096   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20097   shlibpath_var=LIBPATH
20098
20099   # AIX 3 has no versioning support, so we append a major version to the name.
20100   soname_spec='${libname}${release}${shared_ext}$major'
20101   ;;
20102
20103 aix4* | aix5*)
20104   version_type=linux
20105   need_lib_prefix=no
20106   need_version=no
20107   hardcode_into_libs=yes
20108   if test "$host_cpu" = ia64; then
20109     # AIX 5 supports IA64
20110     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20111     shlibpath_var=LD_LIBRARY_PATH
20112   else
20113     # With GCC up to 2.95.x, collect2 would create an import file
20114     # for dependence libraries.  The import file would start with
20115     # the line `#! .'.  This would cause the generated library to
20116     # depend on `.', always an invalid library.  This was fixed in
20117     # development snapshots of GCC prior to 3.0.
20118     case $host_os in
20119       aix4 | aix4.[01] | aix4.[01].*)
20120       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20121            echo ' yes '
20122            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20123         :
20124       else
20125         can_build_shared=no
20126       fi
20127       ;;
20128     esac
20129     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20130     # soname into executable. Probably we can add versioning support to
20131     # collect2, so additional links can be useful in future.
20132     if test "$aix_use_runtimelinking" = yes; then
20133       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20134       # instead of lib<name>.a to let people know that these are not
20135       # typical AIX shared libraries.
20136       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20137     else
20138       # We preserve .a as extension for shared libraries through AIX4.2
20139       # and later when we are not doing run time linking.
20140       library_names_spec='${libname}${release}.a $libname.a'
20141       soname_spec='${libname}${release}${shared_ext}$major'
20142     fi
20143     shlibpath_var=LIBPATH
20144   fi
20145   ;;
20146
20147 amigaos*)
20148   library_names_spec='$libname.ixlibrary $libname.a'
20149   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20150   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'
20151   ;;
20152
20153 beos*)
20154   library_names_spec='${libname}${shared_ext}'
20155   dynamic_linker="$host_os ld.so"
20156   shlibpath_var=LIBRARY_PATH
20157   ;;
20158
20159 bsdi[45]*)
20160   version_type=linux
20161   need_version=no
20162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20163   soname_spec='${libname}${release}${shared_ext}$major'
20164   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20165   shlibpath_var=LD_LIBRARY_PATH
20166   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20167   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20168   # the default ld.so.conf also contains /usr/contrib/lib and
20169   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20170   # libtool to hard-code these into programs
20171   ;;
20172
20173 cygwin* | mingw* | pw32*)
20174   version_type=windows
20175   shrext_cmds=".dll"
20176   need_version=no
20177   need_lib_prefix=no
20178
20179   case $GCC,$host_os in
20180   yes,cygwin* | yes,mingw* | yes,pw32*)
20181     library_names_spec='$libname.dll.a'
20182     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20183     postinstall_cmds='base_file=`basename \${file}`~
20184       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20185       dldir=$destdir/`dirname \$dlpath`~
20186       test -d \$dldir || mkdir -p \$dldir~
20187       $install_prog $dir/$dlname \$dldir/$dlname'
20188     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20189       dlpath=$dir/\$dldll~
20190        $rm \$dlpath'
20191     shlibpath_overrides_runpath=yes
20192
20193     case $host_os in
20194     cygwin*)
20195       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20196       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20197       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20198       ;;
20199     mingw*)
20200       # MinGW DLLs use traditional 'lib' prefix
20201       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20202       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20203       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20204         # It is most probably a Windows format PATH printed by
20205         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20206         # path with ; separators, and with drive letters. We can handle the
20207         # drive letters (cygwin fileutils understands them), so leave them,
20208         # especially as we might pass files found there to a mingw objdump,
20209         # which wouldn't understand a cygwinified path. Ahh.
20210         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20211       else
20212         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20213       fi
20214       ;;
20215     pw32*)
20216       # pw32 DLLs use 'pw' prefix rather than 'lib'
20217       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20218       ;;
20219     esac
20220     ;;
20221
20222   *)
20223     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20224     ;;
20225   esac
20226   dynamic_linker='Win32 ld.exe'
20227   # FIXME: first we should search . and the directory the executable is in
20228   shlibpath_var=PATH
20229   ;;
20230
20231 darwin* | rhapsody*)
20232   dynamic_linker="$host_os dyld"
20233   version_type=darwin
20234   need_lib_prefix=no
20235   need_version=no
20236   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20237   soname_spec='${libname}${release}${major}$shared_ext'
20238   shlibpath_overrides_runpath=yes
20239   shlibpath_var=DYLD_LIBRARY_PATH
20240   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20241   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20242   if test "$GCC" = yes; then
20243     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"`
20244   else
20245     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20246   fi
20247   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20248   ;;
20249
20250 dgux*)
20251   version_type=linux
20252   need_lib_prefix=no
20253   need_version=no
20254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20255   soname_spec='${libname}${release}${shared_ext}$major'
20256   shlibpath_var=LD_LIBRARY_PATH
20257   ;;
20258
20259 freebsd1*)
20260   dynamic_linker=no
20261   ;;
20262
20263 kfreebsd*-gnu)
20264   version_type=linux
20265   need_lib_prefix=no
20266   need_version=no
20267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20268   soname_spec='${libname}${release}${shared_ext}$major'
20269   shlibpath_var=LD_LIBRARY_PATH
20270   shlibpath_overrides_runpath=no
20271   hardcode_into_libs=yes
20272   dynamic_linker='GNU ld.so'
20273   ;;
20274
20275 freebsd*)
20276   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20277   version_type=freebsd-$objformat
20278   case $version_type in
20279     freebsd-elf*)
20280       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20281       need_version=no
20282       need_lib_prefix=no
20283       ;;
20284     freebsd-*)
20285       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20286       need_version=yes
20287       ;;
20288   esac
20289   shlibpath_var=LD_LIBRARY_PATH
20290   case $host_os in
20291   freebsd2*)
20292     shlibpath_overrides_runpath=yes
20293     ;;
20294   freebsd3.01* | freebsdelf3.01*)
20295     shlibpath_overrides_runpath=yes
20296     hardcode_into_libs=yes
20297     ;;
20298   *) # from 3.2 on
20299     shlibpath_overrides_runpath=no
20300     hardcode_into_libs=yes
20301     ;;
20302   esac
20303   ;;
20304
20305 gnu*)
20306   version_type=linux
20307   need_lib_prefix=no
20308   need_version=no
20309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20310   soname_spec='${libname}${release}${shared_ext}$major'
20311   shlibpath_var=LD_LIBRARY_PATH
20312   hardcode_into_libs=yes
20313   ;;
20314
20315 hpux9* | hpux10* | hpux11*)
20316   # Give a soname corresponding to the major version so that dld.sl refuses to
20317   # link against other versions.
20318   version_type=sunos
20319   need_lib_prefix=no
20320   need_version=no
20321   case "$host_cpu" in
20322   ia64*)
20323     shrext_cmds='.so'
20324     hardcode_into_libs=yes
20325     dynamic_linker="$host_os dld.so"
20326     shlibpath_var=LD_LIBRARY_PATH
20327     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329     soname_spec='${libname}${release}${shared_ext}$major'
20330     if test "X$HPUX_IA64_MODE" = X32; then
20331       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20332     else
20333       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20334     fi
20335     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20336     ;;
20337    hppa*64*)
20338      shrext_cmds='.sl'
20339      hardcode_into_libs=yes
20340      dynamic_linker="$host_os dld.sl"
20341      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20342      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20343      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344      soname_spec='${libname}${release}${shared_ext}$major'
20345      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20346      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20347      ;;
20348    *)
20349     shrext_cmds='.sl'
20350     dynamic_linker="$host_os dld.sl"
20351     shlibpath_var=SHLIB_PATH
20352     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354     soname_spec='${libname}${release}${shared_ext}$major'
20355     ;;
20356   esac
20357   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20358   postinstall_cmds='chmod 555 $lib'
20359   ;;
20360
20361 irix5* | irix6* | nonstopux*)
20362   case $host_os in
20363     nonstopux*) version_type=nonstopux ;;
20364     *)
20365         if test "$lt_cv_prog_gnu_ld" = yes; then
20366                 version_type=linux
20367         else
20368                 version_type=irix
20369         fi ;;
20370   esac
20371   need_lib_prefix=no
20372   need_version=no
20373   soname_spec='${libname}${release}${shared_ext}$major'
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20375   case $host_os in
20376   irix5* | nonstopux*)
20377     libsuff= shlibsuff=
20378     ;;
20379   *)
20380     case $LD in # libtool.m4 will add one of these switches to LD
20381     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20382       libsuff= shlibsuff= libmagic=32-bit;;
20383     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20384       libsuff=32 shlibsuff=N32 libmagic=N32;;
20385     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20386       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20387     *) libsuff= shlibsuff= libmagic=never-match;;
20388     esac
20389     ;;
20390   esac
20391   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20392   shlibpath_overrides_runpath=no
20393   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20394   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20395   hardcode_into_libs=yes
20396   ;;
20397
20398 # No shared lib support for Linux oldld, aout, or coff.
20399 linux*oldld* | linux*aout* | linux*coff*)
20400   dynamic_linker=no
20401   ;;
20402
20403 # This must be Linux ELF.
20404 linux*)
20405   version_type=linux
20406   need_lib_prefix=no
20407   need_version=no
20408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409   soname_spec='${libname}${release}${shared_ext}$major'
20410   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20411   shlibpath_var=LD_LIBRARY_PATH
20412   shlibpath_overrides_runpath=no
20413   # This implies no fast_install, which is unacceptable.
20414   # Some rework will be needed to allow for fast_install
20415   # before this can be enabled.
20416   hardcode_into_libs=yes
20417
20418   # Append ld.so.conf contents to the search path
20419   if test -f /etc/ld.so.conf; then
20420     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20421     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20422   fi
20423
20424   # We used to test for /lib/ld.so.1 and disable shared libraries on
20425   # powerpc, because MkLinux only supported shared libraries with the
20426   # GNU dynamic linker.  Since this was broken with cross compilers,
20427   # most powerpc-linux boxes support dynamic linking these days and
20428   # people can always --disable-shared, the test was removed, and we
20429   # assume the GNU/Linux dynamic linker is in use.
20430   dynamic_linker='GNU/Linux ld.so'
20431   ;;
20432
20433 knetbsd*-gnu)
20434   version_type=linux
20435   need_lib_prefix=no
20436   need_version=no
20437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20438   soname_spec='${libname}${release}${shared_ext}$major'
20439   shlibpath_var=LD_LIBRARY_PATH
20440   shlibpath_overrides_runpath=no
20441   hardcode_into_libs=yes
20442   dynamic_linker='GNU ld.so'
20443   ;;
20444
20445 netbsd*)
20446   version_type=sunos
20447   need_lib_prefix=no
20448   need_version=no
20449   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20451     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20452     dynamic_linker='NetBSD (a.out) ld.so'
20453   else
20454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20455     soname_spec='${libname}${release}${shared_ext}$major'
20456     dynamic_linker='NetBSD ld.elf_so'
20457   fi
20458   shlibpath_var=LD_LIBRARY_PATH
20459   shlibpath_overrides_runpath=yes
20460   hardcode_into_libs=yes
20461   ;;
20462
20463 newsos6)
20464   version_type=linux
20465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466   shlibpath_var=LD_LIBRARY_PATH
20467   shlibpath_overrides_runpath=yes
20468   ;;
20469
20470 nto-qnx*)
20471   version_type=linux
20472   need_lib_prefix=no
20473   need_version=no
20474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475   soname_spec='${libname}${release}${shared_ext}$major'
20476   shlibpath_var=LD_LIBRARY_PATH
20477   shlibpath_overrides_runpath=yes
20478   ;;
20479
20480 openbsd*)
20481   version_type=sunos
20482   need_lib_prefix=no
20483   need_version=no
20484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20485   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20486   shlibpath_var=LD_LIBRARY_PATH
20487   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20488     case $host_os in
20489       openbsd2.[89] | openbsd2.[89].*)
20490         shlibpath_overrides_runpath=no
20491         ;;
20492       *)
20493         shlibpath_overrides_runpath=yes
20494         ;;
20495       esac
20496   else
20497     shlibpath_overrides_runpath=yes
20498   fi
20499   ;;
20500
20501 os2*)
20502   libname_spec='$name'
20503   shrext_cmds=".dll"
20504   need_lib_prefix=no
20505   library_names_spec='$libname${shared_ext} $libname.a'
20506   dynamic_linker='OS/2 ld.exe'
20507   shlibpath_var=LIBPATH
20508   ;;
20509
20510 osf3* | osf4* | osf5*)
20511   version_type=osf
20512   need_lib_prefix=no
20513   need_version=no
20514   soname_spec='${libname}${release}${shared_ext}$major'
20515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20516   shlibpath_var=LD_LIBRARY_PATH
20517   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20518   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20519   ;;
20520
20521 sco3.2v5*)
20522   version_type=osf
20523   soname_spec='${libname}${release}${shared_ext}$major'
20524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525   shlibpath_var=LD_LIBRARY_PATH
20526   ;;
20527
20528 solaris*)
20529   version_type=linux
20530   need_lib_prefix=no
20531   need_version=no
20532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533   soname_spec='${libname}${release}${shared_ext}$major'
20534   shlibpath_var=LD_LIBRARY_PATH
20535   shlibpath_overrides_runpath=yes
20536   hardcode_into_libs=yes
20537   # ldd complains unless libraries are executable
20538   postinstall_cmds='chmod +x $lib'
20539   ;;
20540
20541 sunos4*)
20542   version_type=sunos
20543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20544   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20545   shlibpath_var=LD_LIBRARY_PATH
20546   shlibpath_overrides_runpath=yes
20547   if test "$with_gnu_ld" = yes; then
20548     need_lib_prefix=no
20549   fi
20550   need_version=yes
20551   ;;
20552
20553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20554   version_type=linux
20555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20556   soname_spec='${libname}${release}${shared_ext}$major'
20557   shlibpath_var=LD_LIBRARY_PATH
20558   case $host_vendor in
20559     sni)
20560       shlibpath_overrides_runpath=no
20561       need_lib_prefix=no
20562       export_dynamic_flag_spec='${wl}-Blargedynsym'
20563       runpath_var=LD_RUN_PATH
20564       ;;
20565     siemens)
20566       need_lib_prefix=no
20567       ;;
20568     motorola)
20569       need_lib_prefix=no
20570       need_version=no
20571       shlibpath_overrides_runpath=no
20572       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20573       ;;
20574   esac
20575   ;;
20576
20577 sysv4*MP*)
20578   if test -d /usr/nec ;then
20579     version_type=linux
20580     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20581     soname_spec='$libname${shared_ext}.$major'
20582     shlibpath_var=LD_LIBRARY_PATH
20583   fi
20584   ;;
20585
20586 uts4*)
20587   version_type=linux
20588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20589   soname_spec='${libname}${release}${shared_ext}$major'
20590   shlibpath_var=LD_LIBRARY_PATH
20591   ;;
20592
20593 *)
20594   dynamic_linker=no
20595   ;;
20596 esac
20597 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20598 echo "${ECHO_T}$dynamic_linker" >&6
20599 test "$dynamic_linker" = no && can_build_shared=no
20600
20601 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20602 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20603 hardcode_action_F77=
20604 if test -n "$hardcode_libdir_flag_spec_F77" || \
20605    test -n "$runpath_var_F77" || \
20606    test "X$hardcode_automatic_F77" = "Xyes" ; then
20607
20608   # We can hardcode non-existant directories.
20609   if test "$hardcode_direct_F77" != no &&
20610      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20611      # have to relink, otherwise we might link with an installed library
20612      # when we should be linking with a yet-to-be-installed one
20613      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20614      test "$hardcode_minus_L_F77" != no; then
20615     # Linking always hardcodes the temporary library directory.
20616     hardcode_action_F77=relink
20617   else
20618     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20619     hardcode_action_F77=immediate
20620   fi
20621 else
20622   # We cannot hardcode anything, or else we can only hardcode existing
20623   # directories.
20624   hardcode_action_F77=unsupported
20625 fi
20626 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20627 echo "${ECHO_T}$hardcode_action_F77" >&6
20628
20629 if test "$hardcode_action_F77" = relink; then
20630   # Fast installation is not supported
20631   enable_fast_install=no
20632 elif test "$shlibpath_overrides_runpath" = yes ||
20633      test "$enable_shared" = no; then
20634   # Fast installation is not necessary
20635   enable_fast_install=needless
20636 fi
20637
20638 striplib=
20639 old_striplib=
20640 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20641 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20642 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20643   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20644   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20645   echo "$as_me:$LINENO: result: yes" >&5
20646 echo "${ECHO_T}yes" >&6
20647 else
20648 # FIXME - insert some real tests, host_os isn't really good enough
20649   case $host_os in
20650    darwin*)
20651        if test -n "$STRIP" ; then
20652          striplib="$STRIP -x"
20653          echo "$as_me:$LINENO: result: yes" >&5
20654 echo "${ECHO_T}yes" >&6
20655        else
20656   echo "$as_me:$LINENO: result: no" >&5
20657 echo "${ECHO_T}no" >&6
20658 fi
20659        ;;
20660    *)
20661   echo "$as_me:$LINENO: result: no" >&5
20662 echo "${ECHO_T}no" >&6
20663     ;;
20664   esac
20665 fi
20666
20667
20668
20669 # The else clause should only fire when bootstrapping the
20670 # libtool distribution, otherwise you forgot to ship ltmain.sh
20671 # with your package, and you will get complaints that there are
20672 # no rules to generate ltmain.sh.
20673 if test -f "$ltmain"; then
20674   # See if we are running on zsh, and set the options which allow our commands through
20675   # without removal of \ escapes.
20676   if test -n "${ZSH_VERSION+set}" ; then
20677     setopt NO_GLOB_SUBST
20678   fi
20679   # Now quote all the things that may contain metacharacters while being
20680   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20681   # variables and quote the copies for generation of the libtool script.
20682   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20683     SED SHELL STRIP \
20684     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20685     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20686     deplibs_check_method reload_flag reload_cmds need_locks \
20687     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20688     lt_cv_sys_global_symbol_to_c_name_address \
20689     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20690     old_postinstall_cmds old_postuninstall_cmds \
20691     compiler_F77 \
20692     CC_F77 \
20693     LD_F77 \
20694     lt_prog_compiler_wl_F77 \
20695     lt_prog_compiler_pic_F77 \
20696     lt_prog_compiler_static_F77 \
20697     lt_prog_compiler_no_builtin_flag_F77 \
20698     export_dynamic_flag_spec_F77 \
20699     thread_safe_flag_spec_F77 \
20700     whole_archive_flag_spec_F77 \
20701     enable_shared_with_static_runtimes_F77 \
20702     old_archive_cmds_F77 \
20703     old_archive_from_new_cmds_F77 \
20704     predep_objects_F77 \
20705     postdep_objects_F77 \
20706     predeps_F77 \
20707     postdeps_F77 \
20708     compiler_lib_search_path_F77 \
20709     archive_cmds_F77 \
20710     archive_expsym_cmds_F77 \
20711     postinstall_cmds_F77 \
20712     postuninstall_cmds_F77 \
20713     old_archive_from_expsyms_cmds_F77 \
20714     allow_undefined_flag_F77 \
20715     no_undefined_flag_F77 \
20716     export_symbols_cmds_F77 \
20717     hardcode_libdir_flag_spec_F77 \
20718     hardcode_libdir_flag_spec_ld_F77 \
20719     hardcode_libdir_separator_F77 \
20720     hardcode_automatic_F77 \
20721     module_cmds_F77 \
20722     module_expsym_cmds_F77 \
20723     lt_cv_prog_compiler_c_o_F77 \
20724     exclude_expsyms_F77 \
20725     include_expsyms_F77; do
20726
20727     case $var in
20728     old_archive_cmds_F77 | \
20729     old_archive_from_new_cmds_F77 | \
20730     archive_cmds_F77 | \
20731     archive_expsym_cmds_F77 | \
20732     module_cmds_F77 | \
20733     module_expsym_cmds_F77 | \
20734     old_archive_from_expsyms_cmds_F77 | \
20735     export_symbols_cmds_F77 | \
20736     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20737     postinstall_cmds | postuninstall_cmds | \
20738     old_postinstall_cmds | old_postuninstall_cmds | \
20739     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20740       # Double-quote double-evaled strings.
20741       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20742       ;;
20743     *)
20744       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20745       ;;
20746     esac
20747   done
20748
20749   case $lt_echo in
20750   *'\$0 --fallback-echo"')
20751     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20752     ;;
20753   esac
20754
20755 cfgfile="$ofile"
20756
20757   cat <<__EOF__ >> "$cfgfile"
20758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20759
20760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20761
20762 # Shell to use when invoking shell scripts.
20763 SHELL=$lt_SHELL
20764
20765 # Whether or not to build shared libraries.
20766 build_libtool_libs=$enable_shared
20767
20768 # Whether or not to build static libraries.
20769 build_old_libs=$enable_static
20770
20771 # Whether or not to add -lc for building shared libraries.
20772 build_libtool_need_lc=$archive_cmds_need_lc_F77
20773
20774 # Whether or not to disallow shared libs when runtime libs are static
20775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20776
20777 # Whether or not to optimize for fast installation.
20778 fast_install=$enable_fast_install
20779
20780 # The host system.
20781 host_alias=$host_alias
20782 host=$host
20783
20784 # An echo program that does not interpret backslashes.
20785 echo=$lt_echo
20786
20787 # The archiver.
20788 AR=$lt_AR
20789 AR_FLAGS=$lt_AR_FLAGS
20790
20791 # A C compiler.
20792 LTCC=$lt_LTCC
20793
20794 # A language-specific compiler.
20795 CC=$lt_compiler_F77
20796
20797 # Is the compiler the GNU C compiler?
20798 with_gcc=$GCC_F77
20799
20800 # An ERE matcher.
20801 EGREP=$lt_EGREP
20802
20803 # The linker used to build libraries.
20804 LD=$lt_LD_F77
20805
20806 # Whether we need hard or soft links.
20807 LN_S=$lt_LN_S
20808
20809 # A BSD-compatible nm program.
20810 NM=$lt_NM
20811
20812 # A symbol stripping program
20813 STRIP=$lt_STRIP
20814
20815 # Used to examine libraries when file_magic_cmd begins "file"
20816 MAGIC_CMD=$MAGIC_CMD
20817
20818 # Used on cygwin: DLL creation program.
20819 DLLTOOL="$DLLTOOL"
20820
20821 # Used on cygwin: object dumper.
20822 OBJDUMP="$OBJDUMP"
20823
20824 # Used on cygwin: assembler.
20825 AS="$AS"
20826
20827 # The name of the directory that contains temporary libtool files.
20828 objdir=$objdir
20829
20830 # How to create reloadable object files.
20831 reload_flag=$lt_reload_flag
20832 reload_cmds=$lt_reload_cmds
20833
20834 # How to pass a linker flag through the compiler.
20835 wl=$lt_lt_prog_compiler_wl_F77
20836
20837 # Object file suffix (normally "o").
20838 objext="$ac_objext"
20839
20840 # Old archive suffix (normally "a").
20841 libext="$libext"
20842
20843 # Shared library suffix (normally ".so").
20844 shrext_cmds='$shrext_cmds'
20845
20846 # Executable file suffix (normally "").
20847 exeext="$exeext"
20848
20849 # Additional compiler flags for building library objects.
20850 pic_flag=$lt_lt_prog_compiler_pic_F77
20851 pic_mode=$pic_mode
20852
20853 # What is the maximum length of a command?
20854 max_cmd_len=$lt_cv_sys_max_cmd_len
20855
20856 # Does compiler simultaneously support -c and -o options?
20857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20858
20859 # Must we lock files when doing compilation ?
20860 need_locks=$lt_need_locks
20861
20862 # Do we need the lib prefix for modules?
20863 need_lib_prefix=$need_lib_prefix
20864
20865 # Do we need a version for libraries?
20866 need_version=$need_version
20867
20868 # Whether dlopen is supported.
20869 dlopen_support=$enable_dlopen
20870
20871 # Whether dlopen of programs is supported.
20872 dlopen_self=$enable_dlopen_self
20873
20874 # Whether dlopen of statically linked programs is supported.
20875 dlopen_self_static=$enable_dlopen_self_static
20876
20877 # Compiler flag to prevent dynamic linking.
20878 link_static_flag=$lt_lt_prog_compiler_static_F77
20879
20880 # Compiler flag to turn off builtin functions.
20881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20882
20883 # Compiler flag to allow reflexive dlopens.
20884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20885
20886 # Compiler flag to generate shared objects directly from archives.
20887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20888
20889 # Compiler flag to generate thread-safe objects.
20890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20891
20892 # Library versioning type.
20893 version_type=$version_type
20894
20895 # Format of library name prefix.
20896 libname_spec=$lt_libname_spec
20897
20898 # List of archive names.  First name is the real one, the rest are links.
20899 # The last name is the one that the linker finds with -lNAME.
20900 library_names_spec=$lt_library_names_spec
20901
20902 # The coded name of the library, if different from the real name.
20903 soname_spec=$lt_soname_spec
20904
20905 # Commands used to build and install an old-style archive.
20906 RANLIB=$lt_RANLIB
20907 old_archive_cmds=$lt_old_archive_cmds_F77
20908 old_postinstall_cmds=$lt_old_postinstall_cmds
20909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20910
20911 # Create an old-style archive from a shared archive.
20912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20913
20914 # Create a temporary old-style archive to link instead of a shared archive.
20915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20916
20917 # Commands used to build and install a shared archive.
20918 archive_cmds=$lt_archive_cmds_F77
20919 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20920 postinstall_cmds=$lt_postinstall_cmds
20921 postuninstall_cmds=$lt_postuninstall_cmds
20922
20923 # Commands used to build a loadable module (assumed same as above if empty)
20924 module_cmds=$lt_module_cmds_F77
20925 module_expsym_cmds=$lt_module_expsym_cmds_F77
20926
20927 # Commands to strip libraries.
20928 old_striplib=$lt_old_striplib
20929 striplib=$lt_striplib
20930
20931 # Dependencies to place before the objects being linked to create a
20932 # shared library.
20933 predep_objects=$lt_predep_objects_F77
20934
20935 # Dependencies to place after the objects being linked to create a
20936 # shared library.
20937 postdep_objects=$lt_postdep_objects_F77
20938
20939 # Dependencies to place before the objects being linked to create a
20940 # shared library.
20941 predeps=$lt_predeps_F77
20942
20943 # Dependencies to place after the objects being linked to create a
20944 # shared library.
20945 postdeps=$lt_postdeps_F77
20946
20947 # The library search path used internally by the compiler when linking
20948 # a shared library.
20949 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20950
20951 # Method to check whether dependent libraries are shared objects.
20952 deplibs_check_method=$lt_deplibs_check_method
20953
20954 # Command to use when deplibs_check_method == file_magic.
20955 file_magic_cmd=$lt_file_magic_cmd
20956
20957 # Flag that allows shared libraries with undefined symbols to be built.
20958 allow_undefined_flag=$lt_allow_undefined_flag_F77
20959
20960 # Flag that forces no undefined symbols.
20961 no_undefined_flag=$lt_no_undefined_flag_F77
20962
20963 # Commands used to finish a libtool library installation in a directory.
20964 finish_cmds=$lt_finish_cmds
20965
20966 # Same as above, but a single script fragment to be evaled but not shown.
20967 finish_eval=$lt_finish_eval
20968
20969 # Take the output of nm and produce a listing of raw symbols and C names.
20970 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20971
20972 # Transform the output of nm in a proper C declaration
20973 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20974
20975 # Transform the output of nm in a C name address pair
20976 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20977
20978 # This is the shared library runtime path variable.
20979 runpath_var=$runpath_var
20980
20981 # This is the shared library path variable.
20982 shlibpath_var=$shlibpath_var
20983
20984 # Is shlibpath searched before the hard-coded library search path?
20985 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20986
20987 # How to hardcode a shared library path into an executable.
20988 hardcode_action=$hardcode_action_F77
20989
20990 # Whether we should hardcode library paths into libraries.
20991 hardcode_into_libs=$hardcode_into_libs
20992
20993 # Flag to hardcode \$libdir into a binary during linking.
20994 # This must work even if \$libdir does not exist.
20995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20996
20997 # If ld is used when linking, flag to hardcode \$libdir into
20998 # a binary during linking. This must work even if \$libdir does
20999 # not exist.
21000 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21001
21002 # Whether we need a single -rpath flag with a separated argument.
21003 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21004
21005 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21006 # resulting binary.
21007 hardcode_direct=$hardcode_direct_F77
21008
21009 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21010 # resulting binary.
21011 hardcode_minus_L=$hardcode_minus_L_F77
21012
21013 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21014 # the resulting binary.
21015 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21016
21017 # Set to yes if building a shared library automatically hardcodes DIR into the library
21018 # and all subsequent libraries and executables linked against it.
21019 hardcode_automatic=$hardcode_automatic_F77
21020
21021 # Variables whose values should be saved in libtool wrapper scripts and
21022 # restored at relink time.
21023 variables_saved_for_relink="$variables_saved_for_relink"
21024
21025 # Whether libtool must link a program against all its dependency libraries.
21026 link_all_deplibs=$link_all_deplibs_F77
21027
21028 # Compile-time system search path for libraries
21029 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21030
21031 # Run-time system search path for libraries
21032 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21033
21034 # Fix the shell variable \$srcfile for the compiler.
21035 fix_srcfile_path="$fix_srcfile_path_F77"
21036
21037 # Set to yes if exported symbols are required.
21038 always_export_symbols=$always_export_symbols_F77
21039
21040 # The commands to list exported symbols.
21041 export_symbols_cmds=$lt_export_symbols_cmds_F77
21042
21043 # The commands to extract the exported symbol list from a shared archive.
21044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21045
21046 # Symbols that should not be listed in the preloaded symbols.
21047 exclude_expsyms=$lt_exclude_expsyms_F77
21048
21049 # Symbols that must always be exported.
21050 include_expsyms=$lt_include_expsyms_F77
21051
21052 # ### END LIBTOOL TAG CONFIG: $tagname
21053
21054 __EOF__
21055
21056
21057 else
21058   # If there is no Makefile yet, we rely on a make rule to execute
21059   # `config.status --recheck' to rerun these tests and create the
21060   # libtool script then.
21061   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21062   if test -f "$ltmain_in"; then
21063     test -f Makefile && make "$ltmain"
21064   fi
21065 fi
21066
21067
21068 ac_ext=c
21069 ac_cpp='$CPP $CPPFLAGS'
21070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21073
21074 CC="$lt_save_CC"
21075
21076         else
21077           tagname=""
21078         fi
21079         ;;
21080
21081       GCJ)
21082         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21083           ac_ext=c
21084 ac_cpp='$CPP $CPPFLAGS'
21085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21088
21089
21090 # Source file extension for Java test sources.
21091 ac_ext=java
21092
21093 # Object file extension for compiled Java test sources.
21094 objext=o
21095 objext_GCJ=$objext
21096
21097 # Code to be used in simple compile tests
21098 lt_simple_compile_test_code="class foo {}\n"
21099
21100 # Code to be used in simple link tests
21101 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21102
21103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21104
21105 # If no C compiler was specified, use CC.
21106 LTCC=${LTCC-"$CC"}
21107
21108 # Allow CC to be a program name with arguments.
21109 compiler=$CC
21110
21111
21112 # Allow CC to be a program name with arguments.
21113 lt_save_CC="$CC"
21114 CC=${GCJ-"gcj"}
21115 compiler=$CC
21116 compiler_GCJ=$CC
21117
21118 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21119 archive_cmds_need_lc_GCJ=no
21120
21121
21122 lt_prog_compiler_no_builtin_flag_GCJ=
21123
21124 if test "$GCC" = yes; then
21125   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21126
21127
21128 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133   lt_cv_prog_compiler_rtti_exceptions=no
21134   ac_outfile=conftest.$ac_objext
21135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21136    lt_compiler_flag="-fno-rtti -fno-exceptions"
21137    # Insert the option either (1) after the last *FLAGS variable, or
21138    # (2) before a word containing "conftest.", or (3) at the end.
21139    # Note that $ac_compile itself does not contain backslashes and begins
21140    # with a dollar sign (not a hyphen), so the echo should work correctly.
21141    # The option is referenced via a variable to avoid confusing sed.
21142    lt_compile=`echo "$ac_compile" | $SED \
21143    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21145    -e 's:$: $lt_compiler_flag:'`
21146    (eval echo "\"\$as_me:21146: $lt_compile\"" >&5)
21147    (eval "$lt_compile" 2>conftest.err)
21148    ac_status=$?
21149    cat conftest.err >&5
21150    echo "$as_me:21150: \$? = $ac_status" >&5
21151    if (exit $ac_status) && test -s "$ac_outfile"; then
21152      # The compiler can only warn and ignore the option if not recognized
21153      # So say no if there are warnings
21154      if test ! -s conftest.err; then
21155        lt_cv_prog_compiler_rtti_exceptions=yes
21156      fi
21157    fi
21158    $rm conftest*
21159
21160 fi
21161 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21162 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21163
21164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21165     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21166 else
21167     :
21168 fi
21169
21170 fi
21171
21172 lt_prog_compiler_wl_GCJ=
21173 lt_prog_compiler_pic_GCJ=
21174 lt_prog_compiler_static_GCJ=
21175
21176 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21177 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21178
21179   if test "$GCC" = yes; then
21180     lt_prog_compiler_wl_GCJ='-Wl,'
21181     lt_prog_compiler_static_GCJ='-static'
21182
21183     case $host_os in
21184       aix*)
21185       # All AIX code is PIC.
21186       if test "$host_cpu" = ia64; then
21187         # AIX 5 now supports IA64 processor
21188         lt_prog_compiler_static_GCJ='-Bstatic'
21189       fi
21190       ;;
21191
21192     amigaos*)
21193       # FIXME: we need at least 68020 code to build shared libraries, but
21194       # adding the `-m68020' flag to GCC prevents building anything better,
21195       # like `-m68040'.
21196       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21197       ;;
21198
21199     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21200       # PIC is the default for these OSes.
21201       ;;
21202
21203     mingw* | pw32* | os2*)
21204       # This hack is so that the source file can tell whether it is being
21205       # built for inclusion in a dll (and should export symbols for example).
21206       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21207       ;;
21208
21209     darwin* | rhapsody*)
21210       # PIC is the default on this platform
21211       # Common symbols not allowed in MH_DYLIB files
21212       lt_prog_compiler_pic_GCJ='-fno-common'
21213       ;;
21214
21215     msdosdjgpp*)
21216       # Just because we use GCC doesn't mean we suddenly get shared libraries
21217       # on systems that don't support them.
21218       lt_prog_compiler_can_build_shared_GCJ=no
21219       enable_shared=no
21220       ;;
21221
21222     sysv4*MP*)
21223       if test -d /usr/nec; then
21224         lt_prog_compiler_pic_GCJ=-Kconform_pic
21225       fi
21226       ;;
21227
21228     hpux*)
21229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21230       # not for PA HP-UX.
21231       case "$host_cpu" in
21232       hppa*64*|ia64*)
21233         # +Z the default
21234         ;;
21235       *)
21236         lt_prog_compiler_pic_GCJ='-fPIC'
21237         ;;
21238       esac
21239       ;;
21240
21241     *)
21242       lt_prog_compiler_pic_GCJ='-fPIC'
21243       ;;
21244     esac
21245   else
21246     # PORTME Check for flag to pass linker flags through the system compiler.
21247     case $host_os in
21248     aix*)
21249       lt_prog_compiler_wl_GCJ='-Wl,'
21250       if test "$host_cpu" = ia64; then
21251         # AIX 5 now supports IA64 processor
21252         lt_prog_compiler_static_GCJ='-Bstatic'
21253       else
21254         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21255       fi
21256       ;;
21257       darwin*)
21258         # PIC is the default on this platform
21259         # Common symbols not allowed in MH_DYLIB files
21260        case "$cc_basename" in
21261          xlc*)
21262          lt_prog_compiler_pic_GCJ='-qnocommon'
21263          lt_prog_compiler_wl_GCJ='-Wl,'
21264          ;;
21265        esac
21266        ;;
21267
21268     mingw* | pw32* | os2*)
21269       # This hack is so that the source file can tell whether it is being
21270       # built for inclusion in a dll (and should export symbols for example).
21271       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21272       ;;
21273
21274     hpux9* | hpux10* | hpux11*)
21275       lt_prog_compiler_wl_GCJ='-Wl,'
21276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21277       # not for PA HP-UX.
21278       case "$host_cpu" in
21279       hppa*64*|ia64*)
21280         # +Z the default
21281         ;;
21282       *)
21283         lt_prog_compiler_pic_GCJ='+Z'
21284         ;;
21285       esac
21286       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21287       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21288       ;;
21289
21290     irix5* | irix6* | nonstopux*)
21291       lt_prog_compiler_wl_GCJ='-Wl,'
21292       # PIC (with -KPIC) is the default.
21293       lt_prog_compiler_static_GCJ='-non_shared'
21294       ;;
21295
21296     newsos6)
21297       lt_prog_compiler_pic_GCJ='-KPIC'
21298       lt_prog_compiler_static_GCJ='-Bstatic'
21299       ;;
21300
21301     linux*)
21302       case $CC in
21303       icc* | ecc*)
21304         lt_prog_compiler_wl_GCJ='-Wl,'
21305         lt_prog_compiler_pic_GCJ='-KPIC'
21306         lt_prog_compiler_static_GCJ='-static'
21307         ;;
21308       ccc*)
21309         lt_prog_compiler_wl_GCJ='-Wl,'
21310         # All Alpha code is PIC.
21311         lt_prog_compiler_static_GCJ='-non_shared'
21312         ;;
21313       esac
21314       ;;
21315
21316     osf3* | osf4* | osf5*)
21317       lt_prog_compiler_wl_GCJ='-Wl,'
21318       # All OSF/1 code is PIC.
21319       lt_prog_compiler_static_GCJ='-non_shared'
21320       ;;
21321
21322     sco3.2v5*)
21323       lt_prog_compiler_pic_GCJ='-Kpic'
21324       lt_prog_compiler_static_GCJ='-dn'
21325       ;;
21326
21327     solaris*)
21328       lt_prog_compiler_wl_GCJ='-Wl,'
21329       lt_prog_compiler_pic_GCJ='-KPIC'
21330       lt_prog_compiler_static_GCJ='-Bstatic'
21331       ;;
21332
21333     sunos4*)
21334       lt_prog_compiler_wl_GCJ='-Qoption ld '
21335       lt_prog_compiler_pic_GCJ='-PIC'
21336       lt_prog_compiler_static_GCJ='-Bstatic'
21337       ;;
21338
21339     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21340       lt_prog_compiler_wl_GCJ='-Wl,'
21341       lt_prog_compiler_pic_GCJ='-KPIC'
21342       lt_prog_compiler_static_GCJ='-Bstatic'
21343       ;;
21344
21345     sysv4*MP*)
21346       if test -d /usr/nec ;then
21347         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21348         lt_prog_compiler_static_GCJ='-Bstatic'
21349       fi
21350       ;;
21351
21352     uts4*)
21353       lt_prog_compiler_pic_GCJ='-pic'
21354       lt_prog_compiler_static_GCJ='-Bstatic'
21355       ;;
21356
21357     *)
21358       lt_prog_compiler_can_build_shared_GCJ=no
21359       ;;
21360     esac
21361   fi
21362
21363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21364 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21365
21366 #
21367 # Check to make sure the PIC flag actually works.
21368 #
21369 if test -n "$lt_prog_compiler_pic_GCJ"; then
21370
21371 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21372 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21373 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21374   echo $ECHO_N "(cached) $ECHO_C" >&6
21375 else
21376   lt_prog_compiler_pic_works_GCJ=no
21377   ac_outfile=conftest.$ac_objext
21378    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21379    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21380    # Insert the option either (1) after the last *FLAGS variable, or
21381    # (2) before a word containing "conftest.", or (3) at the end.
21382    # Note that $ac_compile itself does not contain backslashes and begins
21383    # with a dollar sign (not a hyphen), so the echo should work correctly.
21384    # The option is referenced via a variable to avoid confusing sed.
21385    lt_compile=`echo "$ac_compile" | $SED \
21386    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21388    -e 's:$: $lt_compiler_flag:'`
21389    (eval echo "\"\$as_me:21389: $lt_compile\"" >&5)
21390    (eval "$lt_compile" 2>conftest.err)
21391    ac_status=$?
21392    cat conftest.err >&5
21393    echo "$as_me:21393: \$? = $ac_status" >&5
21394    if (exit $ac_status) && test -s "$ac_outfile"; then
21395      # The compiler can only warn and ignore the option if not recognized
21396      # So say no if there are warnings
21397      if test ! -s conftest.err; then
21398        lt_prog_compiler_pic_works_GCJ=yes
21399      fi
21400    fi
21401    $rm conftest*
21402
21403 fi
21404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21405 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21406
21407 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21408     case $lt_prog_compiler_pic_GCJ in
21409      "" | " "*) ;;
21410      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21411      esac
21412 else
21413     lt_prog_compiler_pic_GCJ=
21414      lt_prog_compiler_can_build_shared_GCJ=no
21415 fi
21416
21417 fi
21418 case "$host_os" in
21419   # For platforms which do not support PIC, -DPIC is meaningless:
21420   *djgpp*)
21421     lt_prog_compiler_pic_GCJ=
21422     ;;
21423   *)
21424     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21425     ;;
21426 esac
21427
21428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21430 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21431   echo $ECHO_N "(cached) $ECHO_C" >&6
21432 else
21433   lt_cv_prog_compiler_c_o_GCJ=no
21434    $rm -r conftest 2>/dev/null
21435    mkdir conftest
21436    cd conftest
21437    mkdir out
21438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21439
21440    lt_compiler_flag="-o out/conftest2.$ac_objext"
21441    # Insert the option either (1) after the last *FLAGS variable, or
21442    # (2) before a word containing "conftest.", or (3) at the end.
21443    # Note that $ac_compile itself does not contain backslashes and begins
21444    # with a dollar sign (not a hyphen), so the echo should work correctly.
21445    lt_compile=`echo "$ac_compile" | $SED \
21446    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21448    -e 's:$: $lt_compiler_flag:'`
21449    (eval echo "\"\$as_me:21449: $lt_compile\"" >&5)
21450    (eval "$lt_compile" 2>out/conftest.err)
21451    ac_status=$?
21452    cat out/conftest.err >&5
21453    echo "$as_me:21453: \$? = $ac_status" >&5
21454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21455    then
21456      # The compiler can only warn and ignore the option if not recognized
21457      # So say no if there are warnings
21458      if test ! -s out/conftest.err; then
21459        lt_cv_prog_compiler_c_o_GCJ=yes
21460      fi
21461    fi
21462    chmod u+w .
21463    $rm conftest*
21464    # SGI C++ compiler will create directory out/ii_files/ for
21465    # template instantiation
21466    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21467    $rm out/* && rmdir out
21468    cd ..
21469    rmdir conftest
21470    $rm conftest*
21471
21472 fi
21473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21475
21476
21477 hard_links="nottested"
21478 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21479   # do not overwrite the value of need_locks provided by the user
21480   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21482   hard_links=yes
21483   $rm conftest*
21484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21485   touch conftest.a
21486   ln conftest.a conftest.b 2>&5 || hard_links=no
21487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21488   echo "$as_me:$LINENO: result: $hard_links" >&5
21489 echo "${ECHO_T}$hard_links" >&6
21490   if test "$hard_links" = no; then
21491     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21493     need_locks=warn
21494   fi
21495 else
21496   need_locks=no
21497 fi
21498
21499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21501
21502   runpath_var=
21503   allow_undefined_flag_GCJ=
21504   enable_shared_with_static_runtimes_GCJ=no
21505   archive_cmds_GCJ=
21506   archive_expsym_cmds_GCJ=
21507   old_archive_From_new_cmds_GCJ=
21508   old_archive_from_expsyms_cmds_GCJ=
21509   export_dynamic_flag_spec_GCJ=
21510   whole_archive_flag_spec_GCJ=
21511   thread_safe_flag_spec_GCJ=
21512   hardcode_libdir_flag_spec_GCJ=
21513   hardcode_libdir_flag_spec_ld_GCJ=
21514   hardcode_libdir_separator_GCJ=
21515   hardcode_direct_GCJ=no
21516   hardcode_minus_L_GCJ=no
21517   hardcode_shlibpath_var_GCJ=unsupported
21518   link_all_deplibs_GCJ=unknown
21519   hardcode_automatic_GCJ=no
21520   module_cmds_GCJ=
21521   module_expsym_cmds_GCJ=
21522   always_export_symbols_GCJ=no
21523   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21524   # include_expsyms should be a list of space-separated symbols to be *always*
21525   # included in the symbol list
21526   include_expsyms_GCJ=
21527   # exclude_expsyms can be an extended regexp of symbols to exclude
21528   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21529   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21530   # as well as any symbol that contains `d'.
21531   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21532   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21533   # platforms (ab)use it in PIC code, but their linkers get confused if
21534   # the symbol is explicitly referenced.  Since portable code cannot
21535   # rely on this symbol name, it's probably fine to never include it in
21536   # preloaded symbol tables.
21537   extract_expsyms_cmds=
21538
21539   case $host_os in
21540   cygwin* | mingw* | pw32*)
21541     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21542     # When not using gcc, we currently assume that we are using
21543     # Microsoft Visual C++.
21544     if test "$GCC" != yes; then
21545       with_gnu_ld=no
21546     fi
21547     ;;
21548   openbsd*)
21549     with_gnu_ld=no
21550     ;;
21551   esac
21552
21553   ld_shlibs_GCJ=yes
21554   if test "$with_gnu_ld" = yes; then
21555     # If archive_cmds runs LD, not CC, wlarc should be empty
21556     wlarc='${wl}'
21557
21558     # See if GNU ld supports shared libraries.
21559     case $host_os in
21560     aix3* | aix4* | aix5*)
21561       # On AIX/PPC, the GNU linker is very broken
21562       if test "$host_cpu" != ia64; then
21563         ld_shlibs_GCJ=no
21564         cat <<EOF 1>&2
21565
21566 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21567 *** to be unable to reliably create shared libraries on AIX.
21568 *** Therefore, libtool is disabling shared libraries support.  If you
21569 *** really care for shared libraries, you may want to modify your PATH
21570 *** so that a non-GNU linker is found, and then restart.
21571
21572 EOF
21573       fi
21574       ;;
21575
21576     amigaos*)
21577       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)'
21578       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21579       hardcode_minus_L_GCJ=yes
21580
21581       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21582       # that the semantics of dynamic libraries on AmigaOS, at least up
21583       # to version 4, is to share data among multiple programs linked
21584       # with the same dynamic library.  Since this doesn't match the
21585       # behavior of shared libraries on other platforms, we can't use
21586       # them.
21587       ld_shlibs_GCJ=no
21588       ;;
21589
21590     beos*)
21591       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21592         allow_undefined_flag_GCJ=unsupported
21593         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21594         # support --undefined.  This deserves some investigation.  FIXME
21595         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21596       else
21597         ld_shlibs_GCJ=no
21598       fi
21599       ;;
21600
21601     cygwin* | mingw* | pw32*)
21602       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21603       # as there is no search path for DLLs.
21604       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21605       allow_undefined_flag_GCJ=unsupported
21606       always_export_symbols_GCJ=no
21607       enable_shared_with_static_runtimes_GCJ=yes
21608       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21609
21610       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21611         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21612         # If the export-symbols file already is a .def file (1st line
21613         # is EXPORTS), use it as is; otherwise, prepend...
21614         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21615           cp $export_symbols $output_objdir/$soname.def;
21616         else
21617           echo EXPORTS > $output_objdir/$soname.def;
21618           cat $export_symbols >> $output_objdir/$soname.def;
21619         fi~
21620         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21621       else
21622         ld_shlibs=no
21623       fi
21624       ;;
21625
21626     netbsd*)
21627       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21628         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21629         wlarc=
21630       else
21631         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21632         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21633       fi
21634       ;;
21635
21636     solaris* | sysv5*)
21637       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21638         ld_shlibs_GCJ=no
21639         cat <<EOF 1>&2
21640
21641 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21642 *** create shared libraries on Solaris systems.  Therefore, libtool
21643 *** is disabling shared libraries support.  We urge you to upgrade GNU
21644 *** binutils to release 2.9.1 or newer.  Another option is to modify
21645 *** your PATH or compiler configuration so that the native linker is
21646 *** used, and then restart.
21647
21648 EOF
21649       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21650         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21651         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21652       else
21653         ld_shlibs_GCJ=no
21654       fi
21655       ;;
21656
21657     sunos4*)
21658       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21659       wlarc=
21660       hardcode_direct_GCJ=yes
21661       hardcode_shlibpath_var_GCJ=no
21662       ;;
21663
21664   linux*)
21665     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21666         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21667         archive_cmds_GCJ="$tmp_archive_cmds"
21668       supports_anon_versioning=no
21669       case `$LD -v 2>/dev/null` in
21670         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21671         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21672         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21673         *\ 2.11.*) ;; # other 2.11 versions
21674         *) supports_anon_versioning=yes ;;
21675       esac
21676       if test $supports_anon_versioning = yes; then
21677         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21679 $echo "local: *; };" >> $output_objdir/$libname.ver~
21680         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21681       else
21682         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21683       fi
21684     else
21685       ld_shlibs_GCJ=no
21686     fi
21687     ;;
21688
21689     *)
21690       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21691         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21692         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21693       else
21694         ld_shlibs_GCJ=no
21695       fi
21696       ;;
21697     esac
21698
21699     if test "$ld_shlibs_GCJ" = yes; then
21700       runpath_var=LD_RUN_PATH
21701       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21702       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21703       # ancient GNU ld didn't support --whole-archive et. al.
21704       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21705         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21706       else
21707         whole_archive_flag_spec_GCJ=
21708       fi
21709     fi
21710   else
21711     # PORTME fill in a description of your system's linker (not GNU ld)
21712     case $host_os in
21713     aix3*)
21714       allow_undefined_flag_GCJ=unsupported
21715       always_export_symbols_GCJ=yes
21716       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'
21717       # Note: this linker hardcodes the directories in LIBPATH if there
21718       # are no directories specified by -L.
21719       hardcode_minus_L_GCJ=yes
21720       if test "$GCC" = yes && test -z "$link_static_flag"; then
21721         # Neither direct hardcoding nor static linking is supported with a
21722         # broken collect2.
21723         hardcode_direct_GCJ=unsupported
21724       fi
21725       ;;
21726
21727     aix4* | aix5*)
21728       if test "$host_cpu" = ia64; then
21729         # On IA64, the linker does run time linking by default, so we don't
21730         # have to do anything special.
21731         aix_use_runtimelinking=no
21732         exp_sym_flag='-Bexport'
21733         no_entry_flag=""
21734       else
21735         # If we're using GNU nm, then we don't want the "-C" option.
21736         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21737         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21738           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'
21739         else
21740           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'
21741         fi
21742         aix_use_runtimelinking=no
21743
21744         # Test if we are trying to use run time linking or normal
21745         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21746         # need to do runtime linking.
21747         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21748           for ld_flag in $LDFLAGS; do
21749           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21750             aix_use_runtimelinking=yes
21751             break
21752           fi
21753           done
21754         esac
21755
21756         exp_sym_flag='-bexport'
21757         no_entry_flag='-bnoentry'
21758       fi
21759
21760       # When large executables or shared objects are built, AIX ld can
21761       # have problems creating the table of contents.  If linking a library
21762       # or program results in "error TOC overflow" add -mminimal-toc to
21763       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21764       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21765
21766       archive_cmds_GCJ=''
21767       hardcode_direct_GCJ=yes
21768       hardcode_libdir_separator_GCJ=':'
21769       link_all_deplibs_GCJ=yes
21770
21771       if test "$GCC" = yes; then
21772         case $host_os in aix4.012|aix4.012.*)
21773         # We only want to do this on AIX 4.2 and lower, the check
21774         # below for broken collect2 doesn't work under 4.3+
21775           collect2name=`${CC} -print-prog-name=collect2`
21776           if test -f "$collect2name" && \
21777            strings "$collect2name" | grep resolve_lib_name >/dev/null
21778           then
21779           # We have reworked collect2
21780           hardcode_direct_GCJ=yes
21781           else
21782           # We have old collect2
21783           hardcode_direct_GCJ=unsupported
21784           # It fails to find uninstalled libraries when the uninstalled
21785           # path is not listed in the libpath.  Setting hardcode_minus_L
21786           # to unsupported forces relinking
21787           hardcode_minus_L_GCJ=yes
21788           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789           hardcode_libdir_separator_GCJ=
21790           fi
21791         esac
21792         shared_flag='-shared'
21793       else
21794         # not using gcc
21795         if test "$host_cpu" = ia64; then
21796         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21797         # chokes on -Wl,-G. The following line is correct:
21798           shared_flag='-G'
21799         else
21800         if test "$aix_use_runtimelinking" = yes; then
21801             shared_flag='${wl}-G'
21802           else
21803             shared_flag='${wl}-bM:SRE'
21804         fi
21805         fi
21806       fi
21807
21808       # It seems that -bexpall does not export symbols beginning with
21809       # underscore (_), so it is better to generate a list of symbols to export.
21810       always_export_symbols_GCJ=yes
21811       if test "$aix_use_runtimelinking" = yes; then
21812         # Warning - without using the other runtime loading flags (-brtl),
21813         # -berok will link without error, but may produce a broken library.
21814         allow_undefined_flag_GCJ='-berok'
21815        # Determine the default libpath from the value encoded in an empty executable.
21816        cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h.  */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h.  */
21822
21823 int
21824 main ()
21825 {
21826
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21833   (eval $ac_link) 2>conftest.er1
21834   ac_status=$?
21835   grep -v '^ *+' conftest.er1 >conftest.err
21836   rm -f conftest.er1
21837   cat conftest.err >&5
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } &&
21840          { ac_try='test -z "$ac_c_werror_flag"
21841                          || test ! -s conftest.err'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; } &&
21847          { ac_try='test -s conftest$ac_exeext'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853
21854 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21855 }'`
21856 # Check for a 64-bit object if we didn't find anything.
21857 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; }
21858 }'`; fi
21859 else
21860   echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863 fi
21864 rm -f conftest.err conftest.$ac_objext \
21865       conftest$ac_exeext conftest.$ac_ext
21866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21867
21868        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21869         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"
21870        else
21871         if test "$host_cpu" = ia64; then
21872           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21873           allow_undefined_flag_GCJ="-z nodefs"
21874           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"
21875         else
21876          # Determine the default libpath from the value encoded in an empty executable.
21877          cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h.  */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h.  */
21883
21884 int
21885 main ()
21886 {
21887
21888   ;
21889   return 0;
21890 }
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894   (eval $ac_link) 2>conftest.er1
21895   ac_status=$?
21896   grep -v '^ *+' conftest.er1 >conftest.err
21897   rm -f conftest.er1
21898   cat conftest.err >&5
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } &&
21901          { ac_try='test -z "$ac_c_werror_flag"
21902                          || test ! -s conftest.err'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; } &&
21908          { ac_try='test -s conftest$ac_exeext'
21909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910   (eval $ac_try) 2>&5
21911   ac_status=$?
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); }; }; then
21914
21915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21916 }'`
21917 # Check for a 64-bit object if we didn't find anything.
21918 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; }
21919 }'`; fi
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 fi
21925 rm -f conftest.err conftest.$ac_objext \
21926       conftest$ac_exeext conftest.$ac_ext
21927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21928
21929          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21930           # Warning - without using the other run time loading flags,
21931           # -berok will link without error, but may produce a broken library.
21932           no_undefined_flag_GCJ=' ${wl}-bernotok'
21933           allow_undefined_flag_GCJ=' ${wl}-berok'
21934           # -bexpall does not export symbols beginning with underscore (_)
21935           always_export_symbols_GCJ=yes
21936           # Exported symbols can be pulled into shared objects from archives
21937           whole_archive_flag_spec_GCJ=' '
21938           archive_cmds_need_lc_GCJ=yes
21939           # This is similar to how AIX traditionally builds it's shared libraries.
21940           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'
21941         fi
21942       fi
21943       ;;
21944
21945     amigaos*)
21946       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)'
21947       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21948       hardcode_minus_L_GCJ=yes
21949       # see comment about different semantics on the GNU ld section
21950       ld_shlibs_GCJ=no
21951       ;;
21952
21953     bsdi[45]*)
21954       export_dynamic_flag_spec_GCJ=-rdynamic
21955       ;;
21956
21957     cygwin* | mingw* | pw32*)
21958       # When not using gcc, we currently assume that we are using
21959       # Microsoft Visual C++.
21960       # hardcode_libdir_flag_spec is actually meaningless, as there is
21961       # no search path for DLLs.
21962       hardcode_libdir_flag_spec_GCJ=' '
21963       allow_undefined_flag_GCJ=unsupported
21964       # Tell ltmain to make .lib files, not .a files.
21965       libext=lib
21966       # Tell ltmain to make .dll files, not .so files.
21967       shrext_cmds=".dll"
21968       # FIXME: Setting linknames here is a bad hack.
21969       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21970       # The linker will automatically build a .lib file if we build a DLL.
21971       old_archive_From_new_cmds_GCJ='true'
21972       # FIXME: Should let the user specify the lib program.
21973       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21974       fix_srcfile_path='`cygpath -w "$srcfile"`'
21975       enable_shared_with_static_runtimes_GCJ=yes
21976       ;;
21977
21978     darwin* | rhapsody*)
21979       case "$host_os" in
21980         rhapsody* | darwin1.[012])
21981          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21982          ;;
21983        *) # Darwin 1.3 on
21984          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21985            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21986          else
21987            case ${MACOSX_DEPLOYMENT_TARGET} in
21988              10.[012])
21989                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21990                ;;
21991              10.*)
21992                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21993                ;;
21994            esac
21995          fi
21996          ;;
21997       esac
21998       archive_cmds_need_lc_GCJ=no
21999       hardcode_direct_GCJ=no
22000       hardcode_automatic_GCJ=yes
22001       hardcode_shlibpath_var_GCJ=unsupported
22002       whole_archive_flag_spec_GCJ=''
22003       link_all_deplibs_GCJ=yes
22004     if test "$GCC" = yes ; then
22005         output_verbose_link_cmd='echo'
22006         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22007       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22008       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22009       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}'
22010       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}'
22011     else
22012       case "$cc_basename" in
22013         xlc*)
22014          output_verbose_link_cmd='echo'
22015          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22016          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22017           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22018          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}'
22019           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}'
22020           ;;
22021        *)
22022          ld_shlibs_GCJ=no
22023           ;;
22024       esac
22025     fi
22026       ;;
22027
22028     dgux*)
22029       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22030       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22031       hardcode_shlibpath_var_GCJ=no
22032       ;;
22033
22034     freebsd1*)
22035       ld_shlibs_GCJ=no
22036       ;;
22037
22038     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22039     # support.  Future versions do this automatically, but an explicit c++rt0.o
22040     # does not break anything, and helps significantly (at the cost of a little
22041     # extra space).
22042     freebsd2.2*)
22043       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22044       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22045       hardcode_direct_GCJ=yes
22046       hardcode_shlibpath_var_GCJ=no
22047       ;;
22048
22049     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22050     freebsd2*)
22051       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22052       hardcode_direct_GCJ=yes
22053       hardcode_minus_L_GCJ=yes
22054       hardcode_shlibpath_var_GCJ=no
22055       ;;
22056
22057     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22058     freebsd* | kfreebsd*-gnu)
22059       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22060       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22061       hardcode_direct_GCJ=yes
22062       hardcode_shlibpath_var_GCJ=no
22063       ;;
22064
22065     hpux9*)
22066       if test "$GCC" = yes; then
22067         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'
22068       else
22069         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'
22070       fi
22071       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22072       hardcode_libdir_separator_GCJ=:
22073       hardcode_direct_GCJ=yes
22074
22075       # hardcode_minus_L: Not really in the search PATH,
22076       # but as the default location of the library.
22077       hardcode_minus_L_GCJ=yes
22078       export_dynamic_flag_spec_GCJ='${wl}-E'
22079       ;;
22080
22081     hpux10* | hpux11*)
22082       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22083         case "$host_cpu" in
22084         hppa*64*|ia64*)
22085           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22086           ;;
22087         *)
22088           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22089           ;;
22090         esac
22091       else
22092         case "$host_cpu" in
22093         hppa*64*|ia64*)
22094           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22095           ;;
22096         *)
22097           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22098           ;;
22099         esac
22100       fi
22101       if test "$with_gnu_ld" = no; then
22102         case "$host_cpu" in
22103         hppa*64*)
22104           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22105           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22106           hardcode_libdir_separator_GCJ=:
22107           hardcode_direct_GCJ=no
22108           hardcode_shlibpath_var_GCJ=no
22109           ;;
22110         ia64*)
22111           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22112           hardcode_direct_GCJ=no
22113           hardcode_shlibpath_var_GCJ=no
22114
22115           # hardcode_minus_L: Not really in the search PATH,
22116           # but as the default location of the library.
22117           hardcode_minus_L_GCJ=yes
22118           ;;
22119         *)
22120           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22121           hardcode_libdir_separator_GCJ=:
22122           hardcode_direct_GCJ=yes
22123           export_dynamic_flag_spec_GCJ='${wl}-E'
22124
22125           # hardcode_minus_L: Not really in the search PATH,
22126           # but as the default location of the library.
22127           hardcode_minus_L_GCJ=yes
22128           ;;
22129         esac
22130       fi
22131       ;;
22132
22133     irix5* | irix6* | nonstopux*)
22134       if test "$GCC" = yes; then
22135         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'
22136       else
22137         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'
22138         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22139       fi
22140       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22141       hardcode_libdir_separator_GCJ=:
22142       link_all_deplibs_GCJ=yes
22143       ;;
22144
22145     netbsd*)
22146       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22147         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22148       else
22149         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22150       fi
22151       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22152       hardcode_direct_GCJ=yes
22153       hardcode_shlibpath_var_GCJ=no
22154       ;;
22155
22156     newsos6)
22157       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158       hardcode_direct_GCJ=yes
22159       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22160       hardcode_libdir_separator_GCJ=:
22161       hardcode_shlibpath_var_GCJ=no
22162       ;;
22163
22164     openbsd*)
22165       hardcode_direct_GCJ=yes
22166       hardcode_shlibpath_var_GCJ=no
22167       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22168         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22169         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22170         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22171         export_dynamic_flag_spec_GCJ='${wl}-E'
22172       else
22173        case $host_os in
22174          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22175            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22176            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22177            ;;
22178          *)
22179            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22180            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22181            ;;
22182        esac
22183       fi
22184       ;;
22185
22186     os2*)
22187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22188       hardcode_minus_L_GCJ=yes
22189       allow_undefined_flag_GCJ=unsupported
22190       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'
22191       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22192       ;;
22193
22194     osf3*)
22195       if test "$GCC" = yes; then
22196         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22197         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'
22198       else
22199         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22200         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'
22201       fi
22202       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22203       hardcode_libdir_separator_GCJ=:
22204       ;;
22205
22206     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22207       if test "$GCC" = yes; then
22208         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22209         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'
22210         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22211       else
22212         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22213         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'
22214         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~
22215         $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'
22216
22217         # Both c and cxx compiler support -rpath directly
22218         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22219       fi
22220       hardcode_libdir_separator_GCJ=:
22221       ;;
22222
22223     sco3.2v5*)
22224       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225       hardcode_shlibpath_var_GCJ=no
22226       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22227       runpath_var=LD_RUN_PATH
22228       hardcode_runpath_var=yes
22229       ;;
22230
22231     solaris*)
22232       no_undefined_flag_GCJ=' -z text'
22233       if test "$GCC" = yes; then
22234         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22236           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22237       else
22238         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22239         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22240         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22241       fi
22242       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22243       hardcode_shlibpath_var_GCJ=no
22244       case $host_os in
22245       solaris2.[0-5] | solaris2.[0-5].*) ;;
22246       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22247         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22248       esac
22249       link_all_deplibs_GCJ=yes
22250       ;;
22251
22252     sunos4*)
22253       if test "x$host_vendor" = xsequent; then
22254         # Use $CC to link under sequent, because it throws in some extra .o
22255         # files that make .init and .fini sections work.
22256         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22257       else
22258         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22259       fi
22260       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22261       hardcode_direct_GCJ=yes
22262       hardcode_minus_L_GCJ=yes
22263       hardcode_shlibpath_var_GCJ=no
22264       ;;
22265
22266     sysv4)
22267       case $host_vendor in
22268         sni)
22269           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270           hardcode_direct_GCJ=yes # is this really true???
22271         ;;
22272         siemens)
22273           ## LD is ld it makes a PLAMLIB
22274           ## CC just makes a GrossModule.
22275           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22276           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22277           hardcode_direct_GCJ=no
22278         ;;
22279         motorola)
22280           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22281           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22282         ;;
22283       esac
22284       runpath_var='LD_RUN_PATH'
22285       hardcode_shlibpath_var_GCJ=no
22286       ;;
22287
22288     sysv4.3*)
22289       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22290       hardcode_shlibpath_var_GCJ=no
22291       export_dynamic_flag_spec_GCJ='-Bexport'
22292       ;;
22293
22294     sysv4*MP*)
22295       if test -d /usr/nec; then
22296         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22297         hardcode_shlibpath_var_GCJ=no
22298         runpath_var=LD_RUN_PATH
22299         hardcode_runpath_var=yes
22300         ld_shlibs_GCJ=yes
22301       fi
22302       ;;
22303
22304     sysv4.2uw2*)
22305       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22306       hardcode_direct_GCJ=yes
22307       hardcode_minus_L_GCJ=no
22308       hardcode_shlibpath_var_GCJ=no
22309       hardcode_runpath_var=yes
22310       runpath_var=LD_RUN_PATH
22311       ;;
22312
22313    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22314       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22315       if test "$GCC" = yes; then
22316         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22317       else
22318         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22319       fi
22320       runpath_var='LD_RUN_PATH'
22321       hardcode_shlibpath_var_GCJ=no
22322       ;;
22323
22324     sysv5*)
22325       no_undefined_flag_GCJ=' -z text'
22326       # $CC -shared without GNU ld will not create a library from C++
22327       # object files and a static libstdc++, better avoid it by now
22328       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22329       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22330                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22331       hardcode_libdir_flag_spec_GCJ=
22332       hardcode_shlibpath_var_GCJ=no
22333       runpath_var='LD_RUN_PATH'
22334       ;;
22335
22336     uts4*)
22337       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22338       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22339       hardcode_shlibpath_var_GCJ=no
22340       ;;
22341
22342     *)
22343       ld_shlibs_GCJ=no
22344       ;;
22345     esac
22346   fi
22347
22348 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22349 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22350 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22351
22352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22353 if test "$GCC" = yes; then
22354   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22355 fi
22356
22357 #
22358 # Do we need to explicitly link libc?
22359 #
22360 case "x$archive_cmds_need_lc_GCJ" in
22361 x|xyes)
22362   # Assume -lc should be added
22363   archive_cmds_need_lc_GCJ=yes
22364
22365   if test "$enable_shared" = yes && test "$GCC" = yes; then
22366     case $archive_cmds_GCJ in
22367     *'~'*)
22368       # FIXME: we may have to deal with multi-command sequences.
22369       ;;
22370     '$CC '*)
22371       # Test whether the compiler implicitly links with -lc since on some
22372       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22373       # to ld, don't add -lc before -lgcc.
22374       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22375 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22376       $rm conftest*
22377       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22378
22379       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22380   (eval $ac_compile) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } 2>conftest.err; then
22384         soname=conftest
22385         lib=conftest
22386         libobjs=conftest.$ac_objext
22387         deplibs=
22388         wl=$lt_prog_compiler_wl_GCJ
22389         compiler_flags=-v
22390         linker_flags=-v
22391         verstring=
22392         output_objdir=.
22393         libname=conftest
22394         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22395         allow_undefined_flag_GCJ=
22396         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22397   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); }
22401         then
22402           archive_cmds_need_lc_GCJ=no
22403         else
22404           archive_cmds_need_lc_GCJ=yes
22405         fi
22406         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22407       else
22408         cat conftest.err 1>&5
22409       fi
22410       $rm conftest*
22411       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22412 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22413       ;;
22414     esac
22415   fi
22416   ;;
22417 esac
22418
22419 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22420 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22421 library_names_spec=
22422 libname_spec='lib$name'
22423 soname_spec=
22424 shrext_cmds=".so"
22425 postinstall_cmds=
22426 postuninstall_cmds=
22427 finish_cmds=
22428 finish_eval=
22429 shlibpath_var=
22430 shlibpath_overrides_runpath=unknown
22431 version_type=none
22432 dynamic_linker="$host_os ld.so"
22433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22434 if test "$GCC" = yes; then
22435   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22436   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22437     # if the path contains ";" then we assume it to be the separator
22438     # otherwise default to the standard path separator (i.e. ":") - it is
22439     # assumed that no part of a normal pathname contains ";" but that should
22440     # okay in the real world where ";" in dirpaths is itself problematic.
22441     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22442   else
22443     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22444   fi
22445 else
22446   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22447 fi
22448 need_lib_prefix=unknown
22449 hardcode_into_libs=no
22450
22451 # when you set need_version to no, make sure it does not cause -set_version
22452 # flags to be left without arguments
22453 need_version=unknown
22454
22455 case $host_os in
22456 aix3*)
22457   version_type=linux
22458   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22459   shlibpath_var=LIBPATH
22460
22461   # AIX 3 has no versioning support, so we append a major version to the name.
22462   soname_spec='${libname}${release}${shared_ext}$major'
22463   ;;
22464
22465 aix4* | aix5*)
22466   version_type=linux
22467   need_lib_prefix=no
22468   need_version=no
22469   hardcode_into_libs=yes
22470   if test "$host_cpu" = ia64; then
22471     # AIX 5 supports IA64
22472     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22473     shlibpath_var=LD_LIBRARY_PATH
22474   else
22475     # With GCC up to 2.95.x, collect2 would create an import file
22476     # for dependence libraries.  The import file would start with
22477     # the line `#! .'.  This would cause the generated library to
22478     # depend on `.', always an invalid library.  This was fixed in
22479     # development snapshots of GCC prior to 3.0.
22480     case $host_os in
22481       aix4 | aix4.[01] | aix4.[01].*)
22482       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22483            echo ' yes '
22484            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22485         :
22486       else
22487         can_build_shared=no
22488       fi
22489       ;;
22490     esac
22491     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22492     # soname into executable. Probably we can add versioning support to
22493     # collect2, so additional links can be useful in future.
22494     if test "$aix_use_runtimelinking" = yes; then
22495       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22496       # instead of lib<name>.a to let people know that these are not
22497       # typical AIX shared libraries.
22498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22499     else
22500       # We preserve .a as extension for shared libraries through AIX4.2
22501       # and later when we are not doing run time linking.
22502       library_names_spec='${libname}${release}.a $libname.a'
22503       soname_spec='${libname}${release}${shared_ext}$major'
22504     fi
22505     shlibpath_var=LIBPATH
22506   fi
22507   ;;
22508
22509 amigaos*)
22510   library_names_spec='$libname.ixlibrary $libname.a'
22511   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22512   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'
22513   ;;
22514
22515 beos*)
22516   library_names_spec='${libname}${shared_ext}'
22517   dynamic_linker="$host_os ld.so"
22518   shlibpath_var=LIBRARY_PATH
22519   ;;
22520
22521 bsdi[45]*)
22522   version_type=linux
22523   need_version=no
22524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22525   soname_spec='${libname}${release}${shared_ext}$major'
22526   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22527   shlibpath_var=LD_LIBRARY_PATH
22528   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22529   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22530   # the default ld.so.conf also contains /usr/contrib/lib and
22531   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22532   # libtool to hard-code these into programs
22533   ;;
22534
22535 cygwin* | mingw* | pw32*)
22536   version_type=windows
22537   shrext_cmds=".dll"
22538   need_version=no
22539   need_lib_prefix=no
22540
22541   case $GCC,$host_os in
22542   yes,cygwin* | yes,mingw* | yes,pw32*)
22543     library_names_spec='$libname.dll.a'
22544     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22545     postinstall_cmds='base_file=`basename \${file}`~
22546       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22547       dldir=$destdir/`dirname \$dlpath`~
22548       test -d \$dldir || mkdir -p \$dldir~
22549       $install_prog $dir/$dlname \$dldir/$dlname'
22550     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22551       dlpath=$dir/\$dldll~
22552        $rm \$dlpath'
22553     shlibpath_overrides_runpath=yes
22554
22555     case $host_os in
22556     cygwin*)
22557       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22558       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22559       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22560       ;;
22561     mingw*)
22562       # MinGW DLLs use traditional 'lib' prefix
22563       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22564       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22565       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22566         # It is most probably a Windows format PATH printed by
22567         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22568         # path with ; separators, and with drive letters. We can handle the
22569         # drive letters (cygwin fileutils understands them), so leave them,
22570         # especially as we might pass files found there to a mingw objdump,
22571         # which wouldn't understand a cygwinified path. Ahh.
22572         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22573       else
22574         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22575       fi
22576       ;;
22577     pw32*)
22578       # pw32 DLLs use 'pw' prefix rather than 'lib'
22579       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22580       ;;
22581     esac
22582     ;;
22583
22584   *)
22585     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22586     ;;
22587   esac
22588   dynamic_linker='Win32 ld.exe'
22589   # FIXME: first we should search . and the directory the executable is in
22590   shlibpath_var=PATH
22591   ;;
22592
22593 darwin* | rhapsody*)
22594   dynamic_linker="$host_os dyld"
22595   version_type=darwin
22596   need_lib_prefix=no
22597   need_version=no
22598   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22599   soname_spec='${libname}${release}${major}$shared_ext'
22600   shlibpath_overrides_runpath=yes
22601   shlibpath_var=DYLD_LIBRARY_PATH
22602   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22603   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22604   if test "$GCC" = yes; then
22605     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"`
22606   else
22607     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22608   fi
22609   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22610   ;;
22611
22612 dgux*)
22613   version_type=linux
22614   need_lib_prefix=no
22615   need_version=no
22616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22617   soname_spec='${libname}${release}${shared_ext}$major'
22618   shlibpath_var=LD_LIBRARY_PATH
22619   ;;
22620
22621 freebsd1*)
22622   dynamic_linker=no
22623   ;;
22624
22625 kfreebsd*-gnu)
22626   version_type=linux
22627   need_lib_prefix=no
22628   need_version=no
22629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22630   soname_spec='${libname}${release}${shared_ext}$major'
22631   shlibpath_var=LD_LIBRARY_PATH
22632   shlibpath_overrides_runpath=no
22633   hardcode_into_libs=yes
22634   dynamic_linker='GNU ld.so'
22635   ;;
22636
22637 freebsd*)
22638   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22639   version_type=freebsd-$objformat
22640   case $version_type in
22641     freebsd-elf*)
22642       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22643       need_version=no
22644       need_lib_prefix=no
22645       ;;
22646     freebsd-*)
22647       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22648       need_version=yes
22649       ;;
22650   esac
22651   shlibpath_var=LD_LIBRARY_PATH
22652   case $host_os in
22653   freebsd2*)
22654     shlibpath_overrides_runpath=yes
22655     ;;
22656   freebsd3.01* | freebsdelf3.01*)
22657     shlibpath_overrides_runpath=yes
22658     hardcode_into_libs=yes
22659     ;;
22660   *) # from 3.2 on
22661     shlibpath_overrides_runpath=no
22662     hardcode_into_libs=yes
22663     ;;
22664   esac
22665   ;;
22666
22667 gnu*)
22668   version_type=linux
22669   need_lib_prefix=no
22670   need_version=no
22671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22672   soname_spec='${libname}${release}${shared_ext}$major'
22673   shlibpath_var=LD_LIBRARY_PATH
22674   hardcode_into_libs=yes
22675   ;;
22676
22677 hpux9* | hpux10* | hpux11*)
22678   # Give a soname corresponding to the major version so that dld.sl refuses to
22679   # link against other versions.
22680   version_type=sunos
22681   need_lib_prefix=no
22682   need_version=no
22683   case "$host_cpu" in
22684   ia64*)
22685     shrext_cmds='.so'
22686     hardcode_into_libs=yes
22687     dynamic_linker="$host_os dld.so"
22688     shlibpath_var=LD_LIBRARY_PATH
22689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691     soname_spec='${libname}${release}${shared_ext}$major'
22692     if test "X$HPUX_IA64_MODE" = X32; then
22693       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22694     else
22695       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22696     fi
22697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22698     ;;
22699    hppa*64*)
22700      shrext_cmds='.sl'
22701      hardcode_into_libs=yes
22702      dynamic_linker="$host_os dld.sl"
22703      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22704      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22705      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706      soname_spec='${libname}${release}${shared_ext}$major'
22707      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22708      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22709      ;;
22710    *)
22711     shrext_cmds='.sl'
22712     dynamic_linker="$host_os dld.sl"
22713     shlibpath_var=SHLIB_PATH
22714     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22716     soname_spec='${libname}${release}${shared_ext}$major'
22717     ;;
22718   esac
22719   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22720   postinstall_cmds='chmod 555 $lib'
22721   ;;
22722
22723 irix5* | irix6* | nonstopux*)
22724   case $host_os in
22725     nonstopux*) version_type=nonstopux ;;
22726     *)
22727         if test "$lt_cv_prog_gnu_ld" = yes; then
22728                 version_type=linux
22729         else
22730                 version_type=irix
22731         fi ;;
22732   esac
22733   need_lib_prefix=no
22734   need_version=no
22735   soname_spec='${libname}${release}${shared_ext}$major'
22736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22737   case $host_os in
22738   irix5* | nonstopux*)
22739     libsuff= shlibsuff=
22740     ;;
22741   *)
22742     case $LD in # libtool.m4 will add one of these switches to LD
22743     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22744       libsuff= shlibsuff= libmagic=32-bit;;
22745     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22746       libsuff=32 shlibsuff=N32 libmagic=N32;;
22747     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22748       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22749     *) libsuff= shlibsuff= libmagic=never-match;;
22750     esac
22751     ;;
22752   esac
22753   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22754   shlibpath_overrides_runpath=no
22755   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22756   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22757   hardcode_into_libs=yes
22758   ;;
22759
22760 # No shared lib support for Linux oldld, aout, or coff.
22761 linux*oldld* | linux*aout* | linux*coff*)
22762   dynamic_linker=no
22763   ;;
22764
22765 # This must be Linux ELF.
22766 linux*)
22767   version_type=linux
22768   need_lib_prefix=no
22769   need_version=no
22770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771   soname_spec='${libname}${release}${shared_ext}$major'
22772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22773   shlibpath_var=LD_LIBRARY_PATH
22774   shlibpath_overrides_runpath=no
22775   # This implies no fast_install, which is unacceptable.
22776   # Some rework will be needed to allow for fast_install
22777   # before this can be enabled.
22778   hardcode_into_libs=yes
22779
22780   # Append ld.so.conf contents to the search path
22781   if test -f /etc/ld.so.conf; then
22782     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22783     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22784   fi
22785
22786   # We used to test for /lib/ld.so.1 and disable shared libraries on
22787   # powerpc, because MkLinux only supported shared libraries with the
22788   # GNU dynamic linker.  Since this was broken with cross compilers,
22789   # most powerpc-linux boxes support dynamic linking these days and
22790   # people can always --disable-shared, the test was removed, and we
22791   # assume the GNU/Linux dynamic linker is in use.
22792   dynamic_linker='GNU/Linux ld.so'
22793   ;;
22794
22795 knetbsd*-gnu)
22796   version_type=linux
22797   need_lib_prefix=no
22798   need_version=no
22799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22800   soname_spec='${libname}${release}${shared_ext}$major'
22801   shlibpath_var=LD_LIBRARY_PATH
22802   shlibpath_overrides_runpath=no
22803   hardcode_into_libs=yes
22804   dynamic_linker='GNU ld.so'
22805   ;;
22806
22807 netbsd*)
22808   version_type=sunos
22809   need_lib_prefix=no
22810   need_version=no
22811   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22814     dynamic_linker='NetBSD (a.out) ld.so'
22815   else
22816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22817     soname_spec='${libname}${release}${shared_ext}$major'
22818     dynamic_linker='NetBSD ld.elf_so'
22819   fi
22820   shlibpath_var=LD_LIBRARY_PATH
22821   shlibpath_overrides_runpath=yes
22822   hardcode_into_libs=yes
22823   ;;
22824
22825 newsos6)
22826   version_type=linux
22827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22828   shlibpath_var=LD_LIBRARY_PATH
22829   shlibpath_overrides_runpath=yes
22830   ;;
22831
22832 nto-qnx*)
22833   version_type=linux
22834   need_lib_prefix=no
22835   need_version=no
22836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837   soname_spec='${libname}${release}${shared_ext}$major'
22838   shlibpath_var=LD_LIBRARY_PATH
22839   shlibpath_overrides_runpath=yes
22840   ;;
22841
22842 openbsd*)
22843   version_type=sunos
22844   need_lib_prefix=no
22845   need_version=no
22846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22847   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22848   shlibpath_var=LD_LIBRARY_PATH
22849   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22850     case $host_os in
22851       openbsd2.[89] | openbsd2.[89].*)
22852         shlibpath_overrides_runpath=no
22853         ;;
22854       *)
22855         shlibpath_overrides_runpath=yes
22856         ;;
22857       esac
22858   else
22859     shlibpath_overrides_runpath=yes
22860   fi
22861   ;;
22862
22863 os2*)
22864   libname_spec='$name'
22865   shrext_cmds=".dll"
22866   need_lib_prefix=no
22867   library_names_spec='$libname${shared_ext} $libname.a'
22868   dynamic_linker='OS/2 ld.exe'
22869   shlibpath_var=LIBPATH
22870   ;;
22871
22872 osf3* | osf4* | osf5*)
22873   version_type=osf
22874   need_lib_prefix=no
22875   need_version=no
22876   soname_spec='${libname}${release}${shared_ext}$major'
22877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878   shlibpath_var=LD_LIBRARY_PATH
22879   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22880   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22881   ;;
22882
22883 sco3.2v5*)
22884   version_type=osf
22885   soname_spec='${libname}${release}${shared_ext}$major'
22886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887   shlibpath_var=LD_LIBRARY_PATH
22888   ;;
22889
22890 solaris*)
22891   version_type=linux
22892   need_lib_prefix=no
22893   need_version=no
22894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895   soname_spec='${libname}${release}${shared_ext}$major'
22896   shlibpath_var=LD_LIBRARY_PATH
22897   shlibpath_overrides_runpath=yes
22898   hardcode_into_libs=yes
22899   # ldd complains unless libraries are executable
22900   postinstall_cmds='chmod +x $lib'
22901   ;;
22902
22903 sunos4*)
22904   version_type=sunos
22905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22907   shlibpath_var=LD_LIBRARY_PATH
22908   shlibpath_overrides_runpath=yes
22909   if test "$with_gnu_ld" = yes; then
22910     need_lib_prefix=no
22911   fi
22912   need_version=yes
22913   ;;
22914
22915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22916   version_type=linux
22917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918   soname_spec='${libname}${release}${shared_ext}$major'
22919   shlibpath_var=LD_LIBRARY_PATH
22920   case $host_vendor in
22921     sni)
22922       shlibpath_overrides_runpath=no
22923       need_lib_prefix=no
22924       export_dynamic_flag_spec='${wl}-Blargedynsym'
22925       runpath_var=LD_RUN_PATH
22926       ;;
22927     siemens)
22928       need_lib_prefix=no
22929       ;;
22930     motorola)
22931       need_lib_prefix=no
22932       need_version=no
22933       shlibpath_overrides_runpath=no
22934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22935       ;;
22936   esac
22937   ;;
22938
22939 sysv4*MP*)
22940   if test -d /usr/nec ;then
22941     version_type=linux
22942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22943     soname_spec='$libname${shared_ext}.$major'
22944     shlibpath_var=LD_LIBRARY_PATH
22945   fi
22946   ;;
22947
22948 uts4*)
22949   version_type=linux
22950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22951   soname_spec='${libname}${release}${shared_ext}$major'
22952   shlibpath_var=LD_LIBRARY_PATH
22953   ;;
22954
22955 *)
22956   dynamic_linker=no
22957   ;;
22958 esac
22959 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22960 echo "${ECHO_T}$dynamic_linker" >&6
22961 test "$dynamic_linker" = no && can_build_shared=no
22962
22963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22964 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22965 hardcode_action_GCJ=
22966 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22967    test -n "$runpath_var_GCJ" || \
22968    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22969
22970   # We can hardcode non-existant directories.
22971   if test "$hardcode_direct_GCJ" != no &&
22972      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22973      # have to relink, otherwise we might link with an installed library
22974      # when we should be linking with a yet-to-be-installed one
22975      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22976      test "$hardcode_minus_L_GCJ" != no; then
22977     # Linking always hardcodes the temporary library directory.
22978     hardcode_action_GCJ=relink
22979   else
22980     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22981     hardcode_action_GCJ=immediate
22982   fi
22983 else
22984   # We cannot hardcode anything, or else we can only hardcode existing
22985   # directories.
22986   hardcode_action_GCJ=unsupported
22987 fi
22988 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22989 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22990
22991 if test "$hardcode_action_GCJ" = relink; then
22992   # Fast installation is not supported
22993   enable_fast_install=no
22994 elif test "$shlibpath_overrides_runpath" = yes ||
22995      test "$enable_shared" = no; then
22996   # Fast installation is not necessary
22997   enable_fast_install=needless
22998 fi
22999
23000 striplib=
23001 old_striplib=
23002 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23003 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23004 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23005   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23006   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23007   echo "$as_me:$LINENO: result: yes" >&5
23008 echo "${ECHO_T}yes" >&6
23009 else
23010 # FIXME - insert some real tests, host_os isn't really good enough
23011   case $host_os in
23012    darwin*)
23013        if test -n "$STRIP" ; then
23014          striplib="$STRIP -x"
23015          echo "$as_me:$LINENO: result: yes" >&5
23016 echo "${ECHO_T}yes" >&6
23017        else
23018   echo "$as_me:$LINENO: result: no" >&5
23019 echo "${ECHO_T}no" >&6
23020 fi
23021        ;;
23022    *)
23023   echo "$as_me:$LINENO: result: no" >&5
23024 echo "${ECHO_T}no" >&6
23025     ;;
23026   esac
23027 fi
23028
23029 if test "x$enable_dlopen" != xyes; then
23030   enable_dlopen=unknown
23031   enable_dlopen_self=unknown
23032   enable_dlopen_self_static=unknown
23033 else
23034   lt_cv_dlopen=no
23035   lt_cv_dlopen_libs=
23036
23037   case $host_os in
23038   beos*)
23039     lt_cv_dlopen="load_add_on"
23040     lt_cv_dlopen_libs=
23041     lt_cv_dlopen_self=yes
23042     ;;
23043
23044   mingw* | pw32*)
23045     lt_cv_dlopen="LoadLibrary"
23046     lt_cv_dlopen_libs=
23047    ;;
23048
23049   cygwin*)
23050     lt_cv_dlopen="dlopen"
23051     lt_cv_dlopen_libs=
23052    ;;
23053
23054   darwin*)
23055   # if libdl is installed we need to link against it
23056     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23057 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23058 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23059   echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061   ac_check_lib_save_LIBS=$LIBS
23062 LIBS="-ldl  $LIBS"
23063 cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h.  */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h.  */
23069
23070 /* Override any gcc2 internal prototype to avoid an error.  */
23071 #ifdef __cplusplus
23072 extern "C"
23073 #endif
23074 /* We use char because int might match the return type of a gcc2
23075    builtin and then its argument prototype would still apply.  */
23076 char dlopen ();
23077 int
23078 main ()
23079 {
23080 dlopen ();
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23087   (eval $ac_link) 2>conftest.er1
23088   ac_status=$?
23089   grep -v '^ *+' conftest.er1 >conftest.err
23090   rm -f conftest.er1
23091   cat conftest.err >&5
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); } &&
23094          { ac_try='test -z "$ac_c_werror_flag"
23095                          || test ! -s conftest.err'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; } &&
23101          { ac_try='test -s conftest$ac_exeext'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; }; then
23107   ac_cv_lib_dl_dlopen=yes
23108 else
23109   echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112 ac_cv_lib_dl_dlopen=no
23113 fi
23114 rm -f conftest.err conftest.$ac_objext \
23115       conftest$ac_exeext conftest.$ac_ext
23116 LIBS=$ac_check_lib_save_LIBS
23117 fi
23118 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23119 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23120 if test $ac_cv_lib_dl_dlopen = yes; then
23121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23122 else
23123
23124     lt_cv_dlopen="dyld"
23125     lt_cv_dlopen_libs=
23126     lt_cv_dlopen_self=yes
23127
23128 fi
23129
23130    ;;
23131
23132   *)
23133     echo "$as_me:$LINENO: checking for shl_load" >&5
23134 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23135 if test "${ac_cv_func_shl_load+set}" = set; then
23136   echo $ECHO_N "(cached) $ECHO_C" >&6
23137 else
23138   cat >conftest.$ac_ext <<_ACEOF
23139 /* confdefs.h.  */
23140 _ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h.  */
23144 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23146 #define shl_load innocuous_shl_load
23147
23148 /* System header to define __stub macros and hopefully few prototypes,
23149     which can conflict with char shl_load (); below.
23150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23151     <limits.h> exists even on freestanding compilers.  */
23152
23153 #ifdef __STDC__
23154 # include <limits.h>
23155 #else
23156 # include <assert.h>
23157 #endif
23158
23159 #undef shl_load
23160
23161 /* Override any gcc2 internal prototype to avoid an error.  */
23162 #ifdef __cplusplus
23163 extern "C"
23164 {
23165 #endif
23166 /* We use char because int might match the return type of a gcc2
23167    builtin and then its argument prototype would still apply.  */
23168 char shl_load ();
23169 /* The GNU C library defines this for functions which it implements
23170     to always fail with ENOSYS.  Some functions are actually named
23171     something starting with __ and the normal name is an alias.  */
23172 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23173 choke me
23174 #else
23175 char (*f) () = shl_load;
23176 #endif
23177 #ifdef __cplusplus
23178 }
23179 #endif
23180
23181 int
23182 main ()
23183 {
23184 return f != shl_load;
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23191   (eval $ac_link) 2>conftest.er1
23192   ac_status=$?
23193   grep -v '^ *+' conftest.er1 >conftest.err
23194   rm -f conftest.er1
23195   cat conftest.err >&5
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } &&
23198          { ac_try='test -z "$ac_c_werror_flag"
23199                          || test ! -s conftest.err'
23200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201   (eval $ac_try) 2>&5
23202   ac_status=$?
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); }; } &&
23205          { ac_try='test -s conftest$ac_exeext'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; }; then
23211   ac_cv_func_shl_load=yes
23212 else
23213   echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 ac_cv_func_shl_load=no
23217 fi
23218 rm -f conftest.err conftest.$ac_objext \
23219       conftest$ac_exeext conftest.$ac_ext
23220 fi
23221 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23222 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23223 if test $ac_cv_func_shl_load = yes; then
23224   lt_cv_dlopen="shl_load"
23225 else
23226   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23227 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23229   echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231   ac_check_lib_save_LIBS=$LIBS
23232 LIBS="-ldld  $LIBS"
23233 cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h.  */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h.  */
23239
23240 /* Override any gcc2 internal prototype to avoid an error.  */
23241 #ifdef __cplusplus
23242 extern "C"
23243 #endif
23244 /* We use char because int might match the return type of a gcc2
23245    builtin and then its argument prototype would still apply.  */
23246 char shl_load ();
23247 int
23248 main ()
23249 {
23250 shl_load ();
23251   ;
23252   return 0;
23253 }
23254 _ACEOF
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23257   (eval $ac_link) 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } &&
23264          { ac_try='test -z "$ac_c_werror_flag"
23265                          || test ! -s conftest.err'
23266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267   (eval $ac_try) 2>&5
23268   ac_status=$?
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); }; } &&
23271          { ac_try='test -s conftest$ac_exeext'
23272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); }; }; then
23277   ac_cv_lib_dld_shl_load=yes
23278 else
23279   echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23281
23282 ac_cv_lib_dld_shl_load=no
23283 fi
23284 rm -f conftest.err conftest.$ac_objext \
23285       conftest$ac_exeext conftest.$ac_ext
23286 LIBS=$ac_check_lib_save_LIBS
23287 fi
23288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23289 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23290 if test $ac_cv_lib_dld_shl_load = yes; then
23291   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23292 else
23293   echo "$as_me:$LINENO: checking for dlopen" >&5
23294 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23295 if test "${ac_cv_func_dlopen+set}" = set; then
23296   echo $ECHO_N "(cached) $ECHO_C" >&6
23297 else
23298   cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h.  */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h.  */
23304 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23306 #define dlopen innocuous_dlopen
23307
23308 /* System header to define __stub macros and hopefully few prototypes,
23309     which can conflict with char dlopen (); below.
23310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23311     <limits.h> exists even on freestanding compilers.  */
23312
23313 #ifdef __STDC__
23314 # include <limits.h>
23315 #else
23316 # include <assert.h>
23317 #endif
23318
23319 #undef dlopen
23320
23321 /* Override any gcc2 internal prototype to avoid an error.  */
23322 #ifdef __cplusplus
23323 extern "C"
23324 {
23325 #endif
23326 /* We use char because int might match the return type of a gcc2
23327    builtin and then its argument prototype would still apply.  */
23328 char dlopen ();
23329 /* The GNU C library defines this for functions which it implements
23330     to always fail with ENOSYS.  Some functions are actually named
23331     something starting with __ and the normal name is an alias.  */
23332 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23333 choke me
23334 #else
23335 char (*f) () = dlopen;
23336 #endif
23337 #ifdef __cplusplus
23338 }
23339 #endif
23340
23341 int
23342 main ()
23343 {
23344 return f != dlopen;
23345   ;
23346   return 0;
23347 }
23348 _ACEOF
23349 rm -f conftest.$ac_objext conftest$ac_exeext
23350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23351   (eval $ac_link) 2>conftest.er1
23352   ac_status=$?
23353   grep -v '^ *+' conftest.er1 >conftest.err
23354   rm -f conftest.er1
23355   cat conftest.err >&5
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); } &&
23358          { ac_try='test -z "$ac_c_werror_flag"
23359                          || test ! -s conftest.err'
23360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361   (eval $ac_try) 2>&5
23362   ac_status=$?
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); }; } &&
23365          { ac_try='test -s conftest$ac_exeext'
23366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367   (eval $ac_try) 2>&5
23368   ac_status=$?
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); }; }; then
23371   ac_cv_func_dlopen=yes
23372 else
23373   echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23375
23376 ac_cv_func_dlopen=no
23377 fi
23378 rm -f conftest.err conftest.$ac_objext \
23379       conftest$ac_exeext conftest.$ac_ext
23380 fi
23381 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23382 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23383 if test $ac_cv_func_dlopen = yes; then
23384   lt_cv_dlopen="dlopen"
23385 else
23386   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23387 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23389   echo $ECHO_N "(cached) $ECHO_C" >&6
23390 else
23391   ac_check_lib_save_LIBS=$LIBS
23392 LIBS="-ldl  $LIBS"
23393 cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h.  */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h.  */
23399
23400 /* Override any gcc2 internal prototype to avoid an error.  */
23401 #ifdef __cplusplus
23402 extern "C"
23403 #endif
23404 /* We use char because int might match the return type of a gcc2
23405    builtin and then its argument prototype would still apply.  */
23406 char dlopen ();
23407 int
23408 main ()
23409 {
23410 dlopen ();
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 rm -f conftest.$ac_objext conftest$ac_exeext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417   (eval $ac_link) 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } &&
23424          { ac_try='test -z "$ac_c_werror_flag"
23425                          || test ! -s conftest.err'
23426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427   (eval $ac_try) 2>&5
23428   ac_status=$?
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); }; } &&
23431          { ac_try='test -s conftest$ac_exeext'
23432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433   (eval $ac_try) 2>&5
23434   ac_status=$?
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); }; }; then
23437   ac_cv_lib_dl_dlopen=yes
23438 else
23439   echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23441
23442 ac_cv_lib_dl_dlopen=no
23443 fi
23444 rm -f conftest.err conftest.$ac_objext \
23445       conftest$ac_exeext conftest.$ac_ext
23446 LIBS=$ac_check_lib_save_LIBS
23447 fi
23448 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23449 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23450 if test $ac_cv_lib_dl_dlopen = yes; then
23451   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23452 else
23453   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23454 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23455 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23456   echo $ECHO_N "(cached) $ECHO_C" >&6
23457 else
23458   ac_check_lib_save_LIBS=$LIBS
23459 LIBS="-lsvld  $LIBS"
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466
23467 /* Override any gcc2 internal prototype to avoid an error.  */
23468 #ifdef __cplusplus
23469 extern "C"
23470 #endif
23471 /* We use char because int might match the return type of a gcc2
23472    builtin and then its argument prototype would still apply.  */
23473 char dlopen ();
23474 int
23475 main ()
23476 {
23477 dlopen ();
23478   ;
23479   return 0;
23480 }
23481 _ACEOF
23482 rm -f conftest.$ac_objext conftest$ac_exeext
23483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23484   (eval $ac_link) 2>conftest.er1
23485   ac_status=$?
23486   grep -v '^ *+' conftest.er1 >conftest.err
23487   rm -f conftest.er1
23488   cat conftest.err >&5
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); } &&
23491          { ac_try='test -z "$ac_c_werror_flag"
23492                          || test ! -s conftest.err'
23493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494   (eval $ac_try) 2>&5
23495   ac_status=$?
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); }; } &&
23498          { ac_try='test -s conftest$ac_exeext'
23499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500   (eval $ac_try) 2>&5
23501   ac_status=$?
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); }; }; then
23504   ac_cv_lib_svld_dlopen=yes
23505 else
23506   echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509 ac_cv_lib_svld_dlopen=no
23510 fi
23511 rm -f conftest.err conftest.$ac_objext \
23512       conftest$ac_exeext conftest.$ac_ext
23513 LIBS=$ac_check_lib_save_LIBS
23514 fi
23515 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23517 if test $ac_cv_lib_svld_dlopen = yes; then
23518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23519 else
23520   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23523   echo $ECHO_N "(cached) $ECHO_C" >&6
23524 else
23525   ac_check_lib_save_LIBS=$LIBS
23526 LIBS="-ldld  $LIBS"
23527 cat >conftest.$ac_ext <<_ACEOF
23528 /* confdefs.h.  */
23529 _ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h.  */
23533
23534 /* Override any gcc2 internal prototype to avoid an error.  */
23535 #ifdef __cplusplus
23536 extern "C"
23537 #endif
23538 /* We use char because int might match the return type of a gcc2
23539    builtin and then its argument prototype would still apply.  */
23540 char dld_link ();
23541 int
23542 main ()
23543 {
23544 dld_link ();
23545   ;
23546   return 0;
23547 }
23548 _ACEOF
23549 rm -f conftest.$ac_objext conftest$ac_exeext
23550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23551   (eval $ac_link) 2>conftest.er1
23552   ac_status=$?
23553   grep -v '^ *+' conftest.er1 >conftest.err
23554   rm -f conftest.er1
23555   cat conftest.err >&5
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); } &&
23558          { ac_try='test -z "$ac_c_werror_flag"
23559                          || test ! -s conftest.err'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; } &&
23565          { ac_try='test -s conftest$ac_exeext'
23566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567   (eval $ac_try) 2>&5
23568   ac_status=$?
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); }; }; then
23571   ac_cv_lib_dld_dld_link=yes
23572 else
23573   echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23575
23576 ac_cv_lib_dld_dld_link=no
23577 fi
23578 rm -f conftest.err conftest.$ac_objext \
23579       conftest$ac_exeext conftest.$ac_ext
23580 LIBS=$ac_check_lib_save_LIBS
23581 fi
23582 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23584 if test $ac_cv_lib_dld_dld_link = yes; then
23585   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23586 fi
23587
23588
23589 fi
23590
23591
23592 fi
23593
23594
23595 fi
23596
23597
23598 fi
23599
23600
23601 fi
23602
23603     ;;
23604   esac
23605
23606   if test "x$lt_cv_dlopen" != xno; then
23607     enable_dlopen=yes
23608   else
23609     enable_dlopen=no
23610   fi
23611
23612   case $lt_cv_dlopen in
23613   dlopen)
23614     save_CPPFLAGS="$CPPFLAGS"
23615     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23616
23617     save_LDFLAGS="$LDFLAGS"
23618     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23619
23620     save_LIBS="$LIBS"
23621     LIBS="$lt_cv_dlopen_libs $LIBS"
23622
23623     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23624 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23625 if test "${lt_cv_dlopen_self+set}" = set; then
23626   echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23628           if test "$cross_compiling" = yes; then :
23629   lt_cv_dlopen_self=cross
23630 else
23631   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23632   lt_status=$lt_dlunknown
23633   cat > conftest.$ac_ext <<EOF
23634 #line 23634 "configure"
23635 #include "confdefs.h"
23636
23637 #if HAVE_DLFCN_H
23638 #include <dlfcn.h>
23639 #endif
23640
23641 #include <stdio.h>
23642
23643 #ifdef RTLD_GLOBAL
23644 #  define LT_DLGLOBAL           RTLD_GLOBAL
23645 #else
23646 #  ifdef DL_GLOBAL
23647 #    define LT_DLGLOBAL         DL_GLOBAL
23648 #  else
23649 #    define LT_DLGLOBAL         0
23650 #  endif
23651 #endif
23652
23653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23654    find out it does not work in some platform. */
23655 #ifndef LT_DLLAZY_OR_NOW
23656 #  ifdef RTLD_LAZY
23657 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23658 #  else
23659 #    ifdef DL_LAZY
23660 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23661 #    else
23662 #      ifdef RTLD_NOW
23663 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23664 #      else
23665 #        ifdef DL_NOW
23666 #          define LT_DLLAZY_OR_NOW      DL_NOW
23667 #        else
23668 #          define LT_DLLAZY_OR_NOW      0
23669 #        endif
23670 #      endif
23671 #    endif
23672 #  endif
23673 #endif
23674
23675 #ifdef __cplusplus
23676 extern "C" void exit (int);
23677 #endif
23678
23679 void fnord() { int i=42;}
23680 int main ()
23681 {
23682   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23683   int status = $lt_dlunknown;
23684
23685   if (self)
23686     {
23687       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23688       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23689       /* dlclose (self); */
23690     }
23691
23692     exit (status);
23693 }
23694 EOF
23695   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23696   (eval $ac_link) 2>&5
23697   ac_status=$?
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23700     (./conftest; exit; ) 2>/dev/null
23701     lt_status=$?
23702     case x$lt_status in
23703       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23704       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23705       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23706     esac
23707   else :
23708     # compilation failed
23709     lt_cv_dlopen_self=no
23710   fi
23711 fi
23712 rm -fr conftest*
23713
23714
23715 fi
23716 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23717 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23718
23719     if test "x$lt_cv_dlopen_self" = xyes; then
23720       LDFLAGS="$LDFLAGS $link_static_flag"
23721       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23722 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23723 if test "${lt_cv_dlopen_self_static+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726           if test "$cross_compiling" = yes; then :
23727   lt_cv_dlopen_self_static=cross
23728 else
23729   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23730   lt_status=$lt_dlunknown
23731   cat > conftest.$ac_ext <<EOF
23732 #line 23732 "configure"
23733 #include "confdefs.h"
23734
23735 #if HAVE_DLFCN_H
23736 #include <dlfcn.h>
23737 #endif
23738
23739 #include <stdio.h>
23740
23741 #ifdef RTLD_GLOBAL
23742 #  define LT_DLGLOBAL           RTLD_GLOBAL
23743 #else
23744 #  ifdef DL_GLOBAL
23745 #    define LT_DLGLOBAL         DL_GLOBAL
23746 #  else
23747 #    define LT_DLGLOBAL         0
23748 #  endif
23749 #endif
23750
23751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23752    find out it does not work in some platform. */
23753 #ifndef LT_DLLAZY_OR_NOW
23754 #  ifdef RTLD_LAZY
23755 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23756 #  else
23757 #    ifdef DL_LAZY
23758 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23759 #    else
23760 #      ifdef RTLD_NOW
23761 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23762 #      else
23763 #        ifdef DL_NOW
23764 #          define LT_DLLAZY_OR_NOW      DL_NOW
23765 #        else
23766 #          define LT_DLLAZY_OR_NOW      0
23767 #        endif
23768 #      endif
23769 #    endif
23770 #  endif
23771 #endif
23772
23773 #ifdef __cplusplus
23774 extern "C" void exit (int);
23775 #endif
23776
23777 void fnord() { int i=42;}
23778 int main ()
23779 {
23780   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23781   int status = $lt_dlunknown;
23782
23783   if (self)
23784     {
23785       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23786       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23787       /* dlclose (self); */
23788     }
23789
23790     exit (status);
23791 }
23792 EOF
23793   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23794   (eval $ac_link) 2>&5
23795   ac_status=$?
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23798     (./conftest; exit; ) 2>/dev/null
23799     lt_status=$?
23800     case x$lt_status in
23801       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23802       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23803       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23804     esac
23805   else :
23806     # compilation failed
23807     lt_cv_dlopen_self_static=no
23808   fi
23809 fi
23810 rm -fr conftest*
23811
23812
23813 fi
23814 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23816     fi
23817
23818     CPPFLAGS="$save_CPPFLAGS"
23819     LDFLAGS="$save_LDFLAGS"
23820     LIBS="$save_LIBS"
23821     ;;
23822   esac
23823
23824   case $lt_cv_dlopen_self in
23825   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23826   *) enable_dlopen_self=unknown ;;
23827   esac
23828
23829   case $lt_cv_dlopen_self_static in
23830   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23831   *) enable_dlopen_self_static=unknown ;;
23832   esac
23833 fi
23834
23835
23836 # The else clause should only fire when bootstrapping the
23837 # libtool distribution, otherwise you forgot to ship ltmain.sh
23838 # with your package, and you will get complaints that there are
23839 # no rules to generate ltmain.sh.
23840 if test -f "$ltmain"; then
23841   # See if we are running on zsh, and set the options which allow our commands through
23842   # without removal of \ escapes.
23843   if test -n "${ZSH_VERSION+set}" ; then
23844     setopt NO_GLOB_SUBST
23845   fi
23846   # Now quote all the things that may contain metacharacters while being
23847   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23848   # variables and quote the copies for generation of the libtool script.
23849   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23850     SED SHELL STRIP \
23851     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23852     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23853     deplibs_check_method reload_flag reload_cmds need_locks \
23854     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23855     lt_cv_sys_global_symbol_to_c_name_address \
23856     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23857     old_postinstall_cmds old_postuninstall_cmds \
23858     compiler_GCJ \
23859     CC_GCJ \
23860     LD_GCJ \
23861     lt_prog_compiler_wl_GCJ \
23862     lt_prog_compiler_pic_GCJ \
23863     lt_prog_compiler_static_GCJ \
23864     lt_prog_compiler_no_builtin_flag_GCJ \
23865     export_dynamic_flag_spec_GCJ \
23866     thread_safe_flag_spec_GCJ \
23867     whole_archive_flag_spec_GCJ \
23868     enable_shared_with_static_runtimes_GCJ \
23869     old_archive_cmds_GCJ \
23870     old_archive_from_new_cmds_GCJ \
23871     predep_objects_GCJ \
23872     postdep_objects_GCJ \
23873     predeps_GCJ \
23874     postdeps_GCJ \
23875     compiler_lib_search_path_GCJ \
23876     archive_cmds_GCJ \
23877     archive_expsym_cmds_GCJ \
23878     postinstall_cmds_GCJ \
23879     postuninstall_cmds_GCJ \
23880     old_archive_from_expsyms_cmds_GCJ \
23881     allow_undefined_flag_GCJ \
23882     no_undefined_flag_GCJ \
23883     export_symbols_cmds_GCJ \
23884     hardcode_libdir_flag_spec_GCJ \
23885     hardcode_libdir_flag_spec_ld_GCJ \
23886     hardcode_libdir_separator_GCJ \
23887     hardcode_automatic_GCJ \
23888     module_cmds_GCJ \
23889     module_expsym_cmds_GCJ \
23890     lt_cv_prog_compiler_c_o_GCJ \
23891     exclude_expsyms_GCJ \
23892     include_expsyms_GCJ; do
23893
23894     case $var in
23895     old_archive_cmds_GCJ | \
23896     old_archive_from_new_cmds_GCJ | \
23897     archive_cmds_GCJ | \
23898     archive_expsym_cmds_GCJ | \
23899     module_cmds_GCJ | \
23900     module_expsym_cmds_GCJ | \
23901     old_archive_from_expsyms_cmds_GCJ | \
23902     export_symbols_cmds_GCJ | \
23903     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23904     postinstall_cmds | postuninstall_cmds | \
23905     old_postinstall_cmds | old_postuninstall_cmds | \
23906     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23907       # Double-quote double-evaled strings.
23908       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23909       ;;
23910     *)
23911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23912       ;;
23913     esac
23914   done
23915
23916   case $lt_echo in
23917   *'\$0 --fallback-echo"')
23918     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23919     ;;
23920   esac
23921
23922 cfgfile="$ofile"
23923
23924   cat <<__EOF__ >> "$cfgfile"
23925 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23926
23927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23928
23929 # Shell to use when invoking shell scripts.
23930 SHELL=$lt_SHELL
23931
23932 # Whether or not to build shared libraries.
23933 build_libtool_libs=$enable_shared
23934
23935 # Whether or not to build static libraries.
23936 build_old_libs=$enable_static
23937
23938 # Whether or not to add -lc for building shared libraries.
23939 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23940
23941 # Whether or not to disallow shared libs when runtime libs are static
23942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23943
23944 # Whether or not to optimize for fast installation.
23945 fast_install=$enable_fast_install
23946
23947 # The host system.
23948 host_alias=$host_alias
23949 host=$host
23950
23951 # An echo program that does not interpret backslashes.
23952 echo=$lt_echo
23953
23954 # The archiver.
23955 AR=$lt_AR
23956 AR_FLAGS=$lt_AR_FLAGS
23957
23958 # A C compiler.
23959 LTCC=$lt_LTCC
23960
23961 # A language-specific compiler.
23962 CC=$lt_compiler_GCJ
23963
23964 # Is the compiler the GNU C compiler?
23965 with_gcc=$GCC_GCJ
23966
23967 # An ERE matcher.
23968 EGREP=$lt_EGREP
23969
23970 # The linker used to build libraries.
23971 LD=$lt_LD_GCJ
23972
23973 # Whether we need hard or soft links.
23974 LN_S=$lt_LN_S
23975
23976 # A BSD-compatible nm program.
23977 NM=$lt_NM
23978
23979 # A symbol stripping program
23980 STRIP=$lt_STRIP
23981
23982 # Used to examine libraries when file_magic_cmd begins "file"
23983 MAGIC_CMD=$MAGIC_CMD
23984
23985 # Used on cygwin: DLL creation program.
23986 DLLTOOL="$DLLTOOL"
23987
23988 # Used on cygwin: object dumper.
23989 OBJDUMP="$OBJDUMP"
23990
23991 # Used on cygwin: assembler.
23992 AS="$AS"
23993
23994 # The name of the directory that contains temporary libtool files.
23995 objdir=$objdir
23996
23997 # How to create reloadable object files.
23998 reload_flag=$lt_reload_flag
23999 reload_cmds=$lt_reload_cmds
24000
24001 # How to pass a linker flag through the compiler.
24002 wl=$lt_lt_prog_compiler_wl_GCJ
24003
24004 # Object file suffix (normally "o").
24005 objext="$ac_objext"
24006
24007 # Old archive suffix (normally "a").
24008 libext="$libext"
24009
24010 # Shared library suffix (normally ".so").
24011 shrext_cmds='$shrext_cmds'
24012
24013 # Executable file suffix (normally "").
24014 exeext="$exeext"
24015
24016 # Additional compiler flags for building library objects.
24017 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24018 pic_mode=$pic_mode
24019
24020 # What is the maximum length of a command?
24021 max_cmd_len=$lt_cv_sys_max_cmd_len
24022
24023 # Does compiler simultaneously support -c and -o options?
24024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24025
24026 # Must we lock files when doing compilation ?
24027 need_locks=$lt_need_locks
24028
24029 # Do we need the lib prefix for modules?
24030 need_lib_prefix=$need_lib_prefix
24031
24032 # Do we need a version for libraries?
24033 need_version=$need_version
24034
24035 # Whether dlopen is supported.
24036 dlopen_support=$enable_dlopen
24037
24038 # Whether dlopen of programs is supported.
24039 dlopen_self=$enable_dlopen_self
24040
24041 # Whether dlopen of statically linked programs is supported.
24042 dlopen_self_static=$enable_dlopen_self_static
24043
24044 # Compiler flag to prevent dynamic linking.
24045 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24046
24047 # Compiler flag to turn off builtin functions.
24048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24049
24050 # Compiler flag to allow reflexive dlopens.
24051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24052
24053 # Compiler flag to generate shared objects directly from archives.
24054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24055
24056 # Compiler flag to generate thread-safe objects.
24057 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24058
24059 # Library versioning type.
24060 version_type=$version_type
24061
24062 # Format of library name prefix.
24063 libname_spec=$lt_libname_spec
24064
24065 # List of archive names.  First name is the real one, the rest are links.
24066 # The last name is the one that the linker finds with -lNAME.
24067 library_names_spec=$lt_library_names_spec
24068
24069 # The coded name of the library, if different from the real name.
24070 soname_spec=$lt_soname_spec
24071
24072 # Commands used to build and install an old-style archive.
24073 RANLIB=$lt_RANLIB
24074 old_archive_cmds=$lt_old_archive_cmds_GCJ
24075 old_postinstall_cmds=$lt_old_postinstall_cmds
24076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24077
24078 # Create an old-style archive from a shared archive.
24079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24080
24081 # Create a temporary old-style archive to link instead of a shared archive.
24082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24083
24084 # Commands used to build and install a shared archive.
24085 archive_cmds=$lt_archive_cmds_GCJ
24086 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24087 postinstall_cmds=$lt_postinstall_cmds
24088 postuninstall_cmds=$lt_postuninstall_cmds
24089
24090 # Commands used to build a loadable module (assumed same as above if empty)
24091 module_cmds=$lt_module_cmds_GCJ
24092 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24093
24094 # Commands to strip libraries.
24095 old_striplib=$lt_old_striplib
24096 striplib=$lt_striplib
24097
24098 # Dependencies to place before the objects being linked to create a
24099 # shared library.
24100 predep_objects=$lt_predep_objects_GCJ
24101
24102 # Dependencies to place after the objects being linked to create a
24103 # shared library.
24104 postdep_objects=$lt_postdep_objects_GCJ
24105
24106 # Dependencies to place before the objects being linked to create a
24107 # shared library.
24108 predeps=$lt_predeps_GCJ
24109
24110 # Dependencies to place after the objects being linked to create a
24111 # shared library.
24112 postdeps=$lt_postdeps_GCJ
24113
24114 # The library search path used internally by the compiler when linking
24115 # a shared library.
24116 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24117
24118 # Method to check whether dependent libraries are shared objects.
24119 deplibs_check_method=$lt_deplibs_check_method
24120
24121 # Command to use when deplibs_check_method == file_magic.
24122 file_magic_cmd=$lt_file_magic_cmd
24123
24124 # Flag that allows shared libraries with undefined symbols to be built.
24125 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24126
24127 # Flag that forces no undefined symbols.
24128 no_undefined_flag=$lt_no_undefined_flag_GCJ
24129
24130 # Commands used to finish a libtool library installation in a directory.
24131 finish_cmds=$lt_finish_cmds
24132
24133 # Same as above, but a single script fragment to be evaled but not shown.
24134 finish_eval=$lt_finish_eval
24135
24136 # Take the output of nm and produce a listing of raw symbols and C names.
24137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24138
24139 # Transform the output of nm in a proper C declaration
24140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24141
24142 # Transform the output of nm in a C name address pair
24143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24144
24145 # This is the shared library runtime path variable.
24146 runpath_var=$runpath_var
24147
24148 # This is the shared library path variable.
24149 shlibpath_var=$shlibpath_var
24150
24151 # Is shlibpath searched before the hard-coded library search path?
24152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24153
24154 # How to hardcode a shared library path into an executable.
24155 hardcode_action=$hardcode_action_GCJ
24156
24157 # Whether we should hardcode library paths into libraries.
24158 hardcode_into_libs=$hardcode_into_libs
24159
24160 # Flag to hardcode \$libdir into a binary during linking.
24161 # This must work even if \$libdir does not exist.
24162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24163
24164 # If ld is used when linking, flag to hardcode \$libdir into
24165 # a binary during linking. This must work even if \$libdir does
24166 # not exist.
24167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24168
24169 # Whether we need a single -rpath flag with a separated argument.
24170 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24171
24172 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24173 # resulting binary.
24174 hardcode_direct=$hardcode_direct_GCJ
24175
24176 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24177 # resulting binary.
24178 hardcode_minus_L=$hardcode_minus_L_GCJ
24179
24180 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24181 # the resulting binary.
24182 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24183
24184 # Set to yes if building a shared library automatically hardcodes DIR into the library
24185 # and all subsequent libraries and executables linked against it.
24186 hardcode_automatic=$hardcode_automatic_GCJ
24187
24188 # Variables whose values should be saved in libtool wrapper scripts and
24189 # restored at relink time.
24190 variables_saved_for_relink="$variables_saved_for_relink"
24191
24192 # Whether libtool must link a program against all its dependency libraries.
24193 link_all_deplibs=$link_all_deplibs_GCJ
24194
24195 # Compile-time system search path for libraries
24196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24197
24198 # Run-time system search path for libraries
24199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24200
24201 # Fix the shell variable \$srcfile for the compiler.
24202 fix_srcfile_path="$fix_srcfile_path_GCJ"
24203
24204 # Set to yes if exported symbols are required.
24205 always_export_symbols=$always_export_symbols_GCJ
24206
24207 # The commands to list exported symbols.
24208 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24209
24210 # The commands to extract the exported symbol list from a shared archive.
24211 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24212
24213 # Symbols that should not be listed in the preloaded symbols.
24214 exclude_expsyms=$lt_exclude_expsyms_GCJ
24215
24216 # Symbols that must always be exported.
24217 include_expsyms=$lt_include_expsyms_GCJ
24218
24219 # ### END LIBTOOL TAG CONFIG: $tagname
24220
24221 __EOF__
24222
24223
24224 else
24225   # If there is no Makefile yet, we rely on a make rule to execute
24226   # `config.status --recheck' to rerun these tests and create the
24227   # libtool script then.
24228   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24229   if test -f "$ltmain_in"; then
24230     test -f Makefile && make "$ltmain"
24231   fi
24232 fi
24233
24234
24235 ac_ext=c
24236 ac_cpp='$CPP $CPPFLAGS'
24237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24240
24241 CC="$lt_save_CC"
24242
24243         else
24244           tagname=""
24245         fi
24246         ;;
24247
24248       RC)
24249         ac_ext=c
24250 ac_cpp='$CPP $CPPFLAGS'
24251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24254
24255
24256 # Source file extension for RC test sources.
24257 ac_ext=rc
24258
24259 # Object file extension for compiled RC test sources.
24260 objext=o
24261 objext_RC=$objext
24262
24263 # Code to be used in simple compile tests
24264 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24265
24266 # Code to be used in simple link tests
24267 lt_simple_link_test_code="$lt_simple_compile_test_code"
24268
24269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24270
24271 # If no C compiler was specified, use CC.
24272 LTCC=${LTCC-"$CC"}
24273
24274 # Allow CC to be a program name with arguments.
24275 compiler=$CC
24276
24277
24278 # Allow CC to be a program name with arguments.
24279 lt_save_CC="$CC"
24280 CC=${RC-"windres"}
24281 compiler=$CC
24282 compiler_RC=$CC
24283 lt_cv_prog_compiler_c_o_RC=yes
24284
24285 # The else clause should only fire when bootstrapping the
24286 # libtool distribution, otherwise you forgot to ship ltmain.sh
24287 # with your package, and you will get complaints that there are
24288 # no rules to generate ltmain.sh.
24289 if test -f "$ltmain"; then
24290   # See if we are running on zsh, and set the options which allow our commands through
24291   # without removal of \ escapes.
24292   if test -n "${ZSH_VERSION+set}" ; then
24293     setopt NO_GLOB_SUBST
24294   fi
24295   # Now quote all the things that may contain metacharacters while being
24296   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24297   # variables and quote the copies for generation of the libtool script.
24298   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24299     SED SHELL STRIP \
24300     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24301     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24302     deplibs_check_method reload_flag reload_cmds need_locks \
24303     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24304     lt_cv_sys_global_symbol_to_c_name_address \
24305     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24306     old_postinstall_cmds old_postuninstall_cmds \
24307     compiler_RC \
24308     CC_RC \
24309     LD_RC \
24310     lt_prog_compiler_wl_RC \
24311     lt_prog_compiler_pic_RC \
24312     lt_prog_compiler_static_RC \
24313     lt_prog_compiler_no_builtin_flag_RC \
24314     export_dynamic_flag_spec_RC \
24315     thread_safe_flag_spec_RC \
24316     whole_archive_flag_spec_RC \
24317     enable_shared_with_static_runtimes_RC \
24318     old_archive_cmds_RC \
24319     old_archive_from_new_cmds_RC \
24320     predep_objects_RC \
24321     postdep_objects_RC \
24322     predeps_RC \
24323     postdeps_RC \
24324     compiler_lib_search_path_RC \
24325     archive_cmds_RC \
24326     archive_expsym_cmds_RC \
24327     postinstall_cmds_RC \
24328     postuninstall_cmds_RC \
24329     old_archive_from_expsyms_cmds_RC \
24330     allow_undefined_flag_RC \
24331     no_undefined_flag_RC \
24332     export_symbols_cmds_RC \
24333     hardcode_libdir_flag_spec_RC \
24334     hardcode_libdir_flag_spec_ld_RC \
24335     hardcode_libdir_separator_RC \
24336     hardcode_automatic_RC \
24337     module_cmds_RC \
24338     module_expsym_cmds_RC \
24339     lt_cv_prog_compiler_c_o_RC \
24340     exclude_expsyms_RC \
24341     include_expsyms_RC; do
24342
24343     case $var in
24344     old_archive_cmds_RC | \
24345     old_archive_from_new_cmds_RC | \
24346     archive_cmds_RC | \
24347     archive_expsym_cmds_RC | \
24348     module_cmds_RC | \
24349     module_expsym_cmds_RC | \
24350     old_archive_from_expsyms_cmds_RC | \
24351     export_symbols_cmds_RC | \
24352     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24353     postinstall_cmds | postuninstall_cmds | \
24354     old_postinstall_cmds | old_postuninstall_cmds | \
24355     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24356       # Double-quote double-evaled strings.
24357       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24358       ;;
24359     *)
24360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24361       ;;
24362     esac
24363   done
24364
24365   case $lt_echo in
24366   *'\$0 --fallback-echo"')
24367     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24368     ;;
24369   esac
24370
24371 cfgfile="$ofile"
24372
24373   cat <<__EOF__ >> "$cfgfile"
24374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24375
24376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24377
24378 # Shell to use when invoking shell scripts.
24379 SHELL=$lt_SHELL
24380
24381 # Whether or not to build shared libraries.
24382 build_libtool_libs=$enable_shared
24383
24384 # Whether or not to build static libraries.
24385 build_old_libs=$enable_static
24386
24387 # Whether or not to add -lc for building shared libraries.
24388 build_libtool_need_lc=$archive_cmds_need_lc_RC
24389
24390 # Whether or not to disallow shared libs when runtime libs are static
24391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24392
24393 # Whether or not to optimize for fast installation.
24394 fast_install=$enable_fast_install
24395
24396 # The host system.
24397 host_alias=$host_alias
24398 host=$host
24399
24400 # An echo program that does not interpret backslashes.
24401 echo=$lt_echo
24402
24403 # The archiver.
24404 AR=$lt_AR
24405 AR_FLAGS=$lt_AR_FLAGS
24406
24407 # A C compiler.
24408 LTCC=$lt_LTCC
24409
24410 # A language-specific compiler.
24411 CC=$lt_compiler_RC
24412
24413 # Is the compiler the GNU C compiler?
24414 with_gcc=$GCC_RC
24415
24416 # An ERE matcher.
24417 EGREP=$lt_EGREP
24418
24419 # The linker used to build libraries.
24420 LD=$lt_LD_RC
24421
24422 # Whether we need hard or soft links.
24423 LN_S=$lt_LN_S
24424
24425 # A BSD-compatible nm program.
24426 NM=$lt_NM
24427
24428 # A symbol stripping program
24429 STRIP=$lt_STRIP
24430
24431 # Used to examine libraries when file_magic_cmd begins "file"
24432 MAGIC_CMD=$MAGIC_CMD
24433
24434 # Used on cygwin: DLL creation program.
24435 DLLTOOL="$DLLTOOL"
24436
24437 # Used on cygwin: object dumper.
24438 OBJDUMP="$OBJDUMP"
24439
24440 # Used on cygwin: assembler.
24441 AS="$AS"
24442
24443 # The name of the directory that contains temporary libtool files.
24444 objdir=$objdir
24445
24446 # How to create reloadable object files.
24447 reload_flag=$lt_reload_flag
24448 reload_cmds=$lt_reload_cmds
24449
24450 # How to pass a linker flag through the compiler.
24451 wl=$lt_lt_prog_compiler_wl_RC
24452
24453 # Object file suffix (normally "o").
24454 objext="$ac_objext"
24455
24456 # Old archive suffix (normally "a").
24457 libext="$libext"
24458
24459 # Shared library suffix (normally ".so").
24460 shrext_cmds='$shrext_cmds'
24461
24462 # Executable file suffix (normally "").
24463 exeext="$exeext"
24464
24465 # Additional compiler flags for building library objects.
24466 pic_flag=$lt_lt_prog_compiler_pic_RC
24467 pic_mode=$pic_mode
24468
24469 # What is the maximum length of a command?
24470 max_cmd_len=$lt_cv_sys_max_cmd_len
24471
24472 # Does compiler simultaneously support -c and -o options?
24473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24474
24475 # Must we lock files when doing compilation ?
24476 need_locks=$lt_need_locks
24477
24478 # Do we need the lib prefix for modules?
24479 need_lib_prefix=$need_lib_prefix
24480
24481 # Do we need a version for libraries?
24482 need_version=$need_version
24483
24484 # Whether dlopen is supported.
24485 dlopen_support=$enable_dlopen
24486
24487 # Whether dlopen of programs is supported.
24488 dlopen_self=$enable_dlopen_self
24489
24490 # Whether dlopen of statically linked programs is supported.
24491 dlopen_self_static=$enable_dlopen_self_static
24492
24493 # Compiler flag to prevent dynamic linking.
24494 link_static_flag=$lt_lt_prog_compiler_static_RC
24495
24496 # Compiler flag to turn off builtin functions.
24497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24498
24499 # Compiler flag to allow reflexive dlopens.
24500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24501
24502 # Compiler flag to generate shared objects directly from archives.
24503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24504
24505 # Compiler flag to generate thread-safe objects.
24506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24507
24508 # Library versioning type.
24509 version_type=$version_type
24510
24511 # Format of library name prefix.
24512 libname_spec=$lt_libname_spec
24513
24514 # List of archive names.  First name is the real one, the rest are links.
24515 # The last name is the one that the linker finds with -lNAME.
24516 library_names_spec=$lt_library_names_spec
24517
24518 # The coded name of the library, if different from the real name.
24519 soname_spec=$lt_soname_spec
24520
24521 # Commands used to build and install an old-style archive.
24522 RANLIB=$lt_RANLIB
24523 old_archive_cmds=$lt_old_archive_cmds_RC
24524 old_postinstall_cmds=$lt_old_postinstall_cmds
24525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24526
24527 # Create an old-style archive from a shared archive.
24528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24529
24530 # Create a temporary old-style archive to link instead of a shared archive.
24531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24532
24533 # Commands used to build and install a shared archive.
24534 archive_cmds=$lt_archive_cmds_RC
24535 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24536 postinstall_cmds=$lt_postinstall_cmds
24537 postuninstall_cmds=$lt_postuninstall_cmds
24538
24539 # Commands used to build a loadable module (assumed same as above if empty)
24540 module_cmds=$lt_module_cmds_RC
24541 module_expsym_cmds=$lt_module_expsym_cmds_RC
24542
24543 # Commands to strip libraries.
24544 old_striplib=$lt_old_striplib
24545 striplib=$lt_striplib
24546
24547 # Dependencies to place before the objects being linked to create a
24548 # shared library.
24549 predep_objects=$lt_predep_objects_RC
24550
24551 # Dependencies to place after the objects being linked to create a
24552 # shared library.
24553 postdep_objects=$lt_postdep_objects_RC
24554
24555 # Dependencies to place before the objects being linked to create a
24556 # shared library.
24557 predeps=$lt_predeps_RC
24558
24559 # Dependencies to place after the objects being linked to create a
24560 # shared library.
24561 postdeps=$lt_postdeps_RC
24562
24563 # The library search path used internally by the compiler when linking
24564 # a shared library.
24565 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24566
24567 # Method to check whether dependent libraries are shared objects.
24568 deplibs_check_method=$lt_deplibs_check_method
24569
24570 # Command to use when deplibs_check_method == file_magic.
24571 file_magic_cmd=$lt_file_magic_cmd
24572
24573 # Flag that allows shared libraries with undefined symbols to be built.
24574 allow_undefined_flag=$lt_allow_undefined_flag_RC
24575
24576 # Flag that forces no undefined symbols.
24577 no_undefined_flag=$lt_no_undefined_flag_RC
24578
24579 # Commands used to finish a libtool library installation in a directory.
24580 finish_cmds=$lt_finish_cmds
24581
24582 # Same as above, but a single script fragment to be evaled but not shown.
24583 finish_eval=$lt_finish_eval
24584
24585 # Take the output of nm and produce a listing of raw symbols and C names.
24586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24587
24588 # Transform the output of nm in a proper C declaration
24589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24590
24591 # Transform the output of nm in a C name address pair
24592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24593
24594 # This is the shared library runtime path variable.
24595 runpath_var=$runpath_var
24596
24597 # This is the shared library path variable.
24598 shlibpath_var=$shlibpath_var
24599
24600 # Is shlibpath searched before the hard-coded library search path?
24601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24602
24603 # How to hardcode a shared library path into an executable.
24604 hardcode_action=$hardcode_action_RC
24605
24606 # Whether we should hardcode library paths into libraries.
24607 hardcode_into_libs=$hardcode_into_libs
24608
24609 # Flag to hardcode \$libdir into a binary during linking.
24610 # This must work even if \$libdir does not exist.
24611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24612
24613 # If ld is used when linking, flag to hardcode \$libdir into
24614 # a binary during linking. This must work even if \$libdir does
24615 # not exist.
24616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24617
24618 # Whether we need a single -rpath flag with a separated argument.
24619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24620
24621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24622 # resulting binary.
24623 hardcode_direct=$hardcode_direct_RC
24624
24625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24626 # resulting binary.
24627 hardcode_minus_L=$hardcode_minus_L_RC
24628
24629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24630 # the resulting binary.
24631 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24632
24633 # Set to yes if building a shared library automatically hardcodes DIR into the library
24634 # and all subsequent libraries and executables linked against it.
24635 hardcode_automatic=$hardcode_automatic_RC
24636
24637 # Variables whose values should be saved in libtool wrapper scripts and
24638 # restored at relink time.
24639 variables_saved_for_relink="$variables_saved_for_relink"
24640
24641 # Whether libtool must link a program against all its dependency libraries.
24642 link_all_deplibs=$link_all_deplibs_RC
24643
24644 # Compile-time system search path for libraries
24645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24646
24647 # Run-time system search path for libraries
24648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24649
24650 # Fix the shell variable \$srcfile for the compiler.
24651 fix_srcfile_path="$fix_srcfile_path_RC"
24652
24653 # Set to yes if exported symbols are required.
24654 always_export_symbols=$always_export_symbols_RC
24655
24656 # The commands to list exported symbols.
24657 export_symbols_cmds=$lt_export_symbols_cmds_RC
24658
24659 # The commands to extract the exported symbol list from a shared archive.
24660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24661
24662 # Symbols that should not be listed in the preloaded symbols.
24663 exclude_expsyms=$lt_exclude_expsyms_RC
24664
24665 # Symbols that must always be exported.
24666 include_expsyms=$lt_include_expsyms_RC
24667
24668 # ### END LIBTOOL TAG CONFIG: $tagname
24669
24670 __EOF__
24671
24672
24673 else
24674   # If there is no Makefile yet, we rely on a make rule to execute
24675   # `config.status --recheck' to rerun these tests and create the
24676   # libtool script then.
24677   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24678   if test -f "$ltmain_in"; then
24679     test -f Makefile && make "$ltmain"
24680   fi
24681 fi
24682
24683
24684 ac_ext=c
24685 ac_cpp='$CPP $CPPFLAGS'
24686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24689
24690 CC="$lt_save_CC"
24691
24692         ;;
24693
24694       *)
24695         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24696 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24697    { (exit 1); exit 1; }; }
24698         ;;
24699       esac
24700
24701       # Append the new tag name to the list of available tags.
24702       if test -n "$tagname" ; then
24703       available_tags="$available_tags $tagname"
24704     fi
24705     fi
24706   done
24707   IFS="$lt_save_ifs"
24708
24709   # Now substitute the updated list of available tags.
24710   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24711     mv "${ofile}T" "$ofile"
24712     chmod +x "$ofile"
24713   else
24714     rm -f "${ofile}T"
24715     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24716 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24717    { (exit 1); exit 1; }; }
24718   fi
24719 fi
24720
24721
24722
24723 # This can be used to rebuild libtool when needed
24724 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24725
24726 # Always use our own libtool.
24727 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24728
24729 # Prevent multiple expansion
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751 if test "$lt_cv_dlopen_self" = "yes" ; then
24752
24753 cat >>confdefs.h <<\_ACEOF
24754 #define CAN_DLOPEN_SELF 1
24755 _ACEOF
24756
24757 fi
24758
24759 etags_version=`$ETAGS --version 2>&1`
24760 case "$etags_version" in
24761         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24762         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24763         *) ETAGSFLAGS="" ;;
24764 esac
24765 ETAGSFLAGS=$ETAGSFLAGS
24766
24767
24768 if test "$WITH_LLVMGCCDIR" = "default" ; then
24769   LLVMGCC="llvm-gcc${EXEEXT}"
24770   LLVMGXX="llvm-g++${EXEEXT}"
24771   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24772 set dummy $LLVMGCC; ac_word=$2
24773 echo "$as_me:$LINENO: checking for $ac_word" >&5
24774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24775 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24776   echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778   case $LLVMGCC in
24779   [\\/]* | ?:[\\/]*)
24780   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24781   ;;
24782   *)
24783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24784 for as_dir in $PATH
24785 do
24786   IFS=$as_save_IFS
24787   test -z "$as_dir" && as_dir=.
24788   for ac_exec_ext in '' $ac_executable_extensions; do
24789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24790     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24792     break 2
24793   fi
24794 done
24795 done
24796
24797   ;;
24798 esac
24799 fi
24800 LLVMGCC=$ac_cv_path_LLVMGCC
24801
24802 if test -n "$LLVMGCC"; then
24803   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24804 echo "${ECHO_T}$LLVMGCC" >&6
24805 else
24806   echo "$as_me:$LINENO: result: no" >&5
24807 echo "${ECHO_T}no" >&6
24808 fi
24809
24810   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24811 set dummy $LLVMGXX; ac_word=$2
24812 echo "$as_me:$LINENO: checking for $ac_word" >&5
24813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24814 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24815   echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817   case $LLVMGXX in
24818   [\\/]* | ?:[\\/]*)
24819   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24820   ;;
24821   *)
24822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24823 for as_dir in $PATH
24824 do
24825   IFS=$as_save_IFS
24826   test -z "$as_dir" && as_dir=.
24827   for ac_exec_ext in '' $ac_executable_extensions; do
24828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24829     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24831     break 2
24832   fi
24833 done
24834 done
24835
24836   ;;
24837 esac
24838 fi
24839 LLVMGXX=$ac_cv_path_LLVMGXX
24840
24841 if test -n "$LLVMGXX"; then
24842   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24843 echo "${ECHO_T}$LLVMGXX" >&6
24844 else
24845   echo "$as_me:$LINENO: result: no" >&5
24846 echo "${ECHO_T}no" >&6
24847 fi
24848
24849 else
24850   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24851   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24852   LLVMGCC=$LLVMGCC
24853
24854   LLVMGXX=$LLVMGXX
24855
24856 fi
24857
24858 echo "$as_me:$LINENO: checking tool compatibility" >&5
24859 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24860
24861 ICC=no
24862 IXX=no
24863 case $CC in
24864   icc*|icpc*)
24865     ICC=yes
24866     IXX=yes
24867     ;;
24868    *)
24869     ;;
24870 esac
24871
24872 if test "$GCC" != "yes" && test "$ICC" != "yes"
24873 then
24874   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24875 echo "$as_me: error: gcc|icc required but not found" >&2;}
24876    { (exit 1); exit 1; }; }
24877 fi
24878
24879 if test "$GXX" != "yes" && test "$IXX" != "yes"
24880 then
24881   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24882 echo "$as_me: error: g++|icc required but not found" >&2;}
24883    { (exit 1); exit 1; }; }
24884 fi
24885
24886 if test "$GCC" = "yes"
24887 then
24888   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24889   if test "$gccmajor" -lt "3"
24890   then
24891     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24892 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24893    { (exit 1); exit 1; }; }
24894   fi
24895 fi
24896
24897 if test -z "$llvm_cv_gnu_make_command"
24898 then
24899   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24900 echo "$as_me: error: GNU Make required but not found" >&2;}
24901    { (exit 1); exit 1; }; }
24902 fi
24903
24904 echo "$as_me:$LINENO: result: ok" >&5
24905 echo "${ECHO_T}ok" >&6
24906
24907
24908
24909 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24910 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24911 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24912   echo $ECHO_N "(cached) $ECHO_C" >&6
24913 else
24914   ac_check_lib_save_LIBS=$LIBS
24915 LIBS="-lelf  $LIBS"
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922
24923 /* Override any gcc2 internal prototype to avoid an error.  */
24924 #ifdef __cplusplus
24925 extern "C"
24926 #endif
24927 /* We use char because int might match the return type of a gcc2
24928    builtin and then its argument prototype would still apply.  */
24929 char elf_begin ();
24930 int
24931 main ()
24932 {
24933 elf_begin ();
24934   ;
24935   return 0;
24936 }
24937 _ACEOF
24938 rm -f conftest.$ac_objext conftest$ac_exeext
24939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24940   (eval $ac_link) 2>conftest.er1
24941   ac_status=$?
24942   grep -v '^ *+' conftest.er1 >conftest.err
24943   rm -f conftest.er1
24944   cat conftest.err >&5
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); } &&
24947          { ac_try='test -z "$ac_c_werror_flag"
24948                          || test ! -s conftest.err'
24949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950   (eval $ac_try) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; } &&
24954          { ac_try='test -s conftest$ac_exeext'
24955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956   (eval $ac_try) 2>&5
24957   ac_status=$?
24958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959   (exit $ac_status); }; }; then
24960   ac_cv_lib_elf_elf_begin=yes
24961 else
24962   echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24964
24965 ac_cv_lib_elf_elf_begin=no
24966 fi
24967 rm -f conftest.err conftest.$ac_objext \
24968       conftest$ac_exeext conftest.$ac_ext
24969 LIBS=$ac_check_lib_save_LIBS
24970 fi
24971 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24972 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24973 if test $ac_cv_lib_elf_elf_begin = yes; then
24974   cat >>confdefs.h <<_ACEOF
24975 #define HAVE_LIBELF 1
24976 _ACEOF
24977
24978   LIBS="-lelf $LIBS"
24979
24980 fi
24981
24982
24983 echo "$as_me:$LINENO: checking for sin in -lm" >&5
24984 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24985 if test "${ac_cv_lib_m_sin+set}" = set; then
24986   echo $ECHO_N "(cached) $ECHO_C" >&6
24987 else
24988   ac_check_lib_save_LIBS=$LIBS
24989 LIBS="-lm  $LIBS"
24990 cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h.  */
24996
24997 /* Override any gcc2 internal prototype to avoid an error.  */
24998 #ifdef __cplusplus
24999 extern "C"
25000 #endif
25001 /* We use char because int might match the return type of a gcc2
25002    builtin and then its argument prototype would still apply.  */
25003 char sin ();
25004 int
25005 main ()
25006 {
25007 sin ();
25008   ;
25009   return 0;
25010 }
25011 _ACEOF
25012 rm -f conftest.$ac_objext conftest$ac_exeext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25014   (eval $ac_link) 2>conftest.er1
25015   ac_status=$?
25016   grep -v '^ *+' conftest.er1 >conftest.err
25017   rm -f conftest.er1
25018   cat conftest.err >&5
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); } &&
25021          { ac_try='test -z "$ac_c_werror_flag"
25022                          || test ! -s conftest.err'
25023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25024   (eval $ac_try) 2>&5
25025   ac_status=$?
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); }; } &&
25028          { ac_try='test -s conftest$ac_exeext'
25029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25030   (eval $ac_try) 2>&5
25031   ac_status=$?
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); }; }; then
25034   ac_cv_lib_m_sin=yes
25035 else
25036   echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25038
25039 ac_cv_lib_m_sin=no
25040 fi
25041 rm -f conftest.err conftest.$ac_objext \
25042       conftest$ac_exeext conftest.$ac_ext
25043 LIBS=$ac_check_lib_save_LIBS
25044 fi
25045 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25046 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25047 if test $ac_cv_lib_m_sin = yes; then
25048   cat >>confdefs.h <<_ACEOF
25049 #define HAVE_LIBM 1
25050 _ACEOF
25051
25052   LIBS="-lm $LIBS"
25053
25054 fi
25055
25056
25057 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25058 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25059 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25060   echo $ECHO_N "(cached) $ECHO_C" >&6
25061 else
25062   ac_func_search_save_LIBS=$LIBS
25063 ac_cv_search_lt_dlopen=no
25064 cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h.  */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h.  */
25070
25071 /* Override any gcc2 internal prototype to avoid an error.  */
25072 #ifdef __cplusplus
25073 extern "C"
25074 #endif
25075 /* We use char because int might match the return type of a gcc2
25076    builtin and then its argument prototype would still apply.  */
25077 char lt_dlopen ();
25078 int
25079 main ()
25080 {
25081 lt_dlopen ();
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext conftest$ac_exeext
25087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25088   (eval $ac_link) 2>conftest.er1
25089   ac_status=$?
25090   grep -v '^ *+' conftest.er1 >conftest.err
25091   rm -f conftest.er1
25092   cat conftest.err >&5
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); } &&
25095          { ac_try='test -z "$ac_c_werror_flag"
25096                          || test ! -s conftest.err'
25097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098   (eval $ac_try) 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; } &&
25102          { ac_try='test -s conftest$ac_exeext'
25103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104   (eval $ac_try) 2>&5
25105   ac_status=$?
25106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107   (exit $ac_status); }; }; then
25108   ac_cv_search_lt_dlopen="none required"
25109 else
25110   echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25112
25113 fi
25114 rm -f conftest.err conftest.$ac_objext \
25115       conftest$ac_exeext conftest.$ac_ext
25116 if test "$ac_cv_search_lt_dlopen" = no; then
25117   for ac_lib in ltdl; do
25118     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25119     cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h.  */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h.  */
25125
25126 /* Override any gcc2 internal prototype to avoid an error.  */
25127 #ifdef __cplusplus
25128 extern "C"
25129 #endif
25130 /* We use char because int might match the return type of a gcc2
25131    builtin and then its argument prototype would still apply.  */
25132 char lt_dlopen ();
25133 int
25134 main ()
25135 {
25136 lt_dlopen ();
25137   ;
25138   return 0;
25139 }
25140 _ACEOF
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25143   (eval $ac_link) 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } &&
25150          { ac_try='test -z "$ac_c_werror_flag"
25151                          || test ! -s conftest.err'
25152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153   (eval $ac_try) 2>&5
25154   ac_status=$?
25155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156   (exit $ac_status); }; } &&
25157          { ac_try='test -s conftest$ac_exeext'
25158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159   (eval $ac_try) 2>&5
25160   ac_status=$?
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); }; }; then
25163   ac_cv_search_lt_dlopen="-l$ac_lib"
25164 break
25165 else
25166   echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 fi
25170 rm -f conftest.err conftest.$ac_objext \
25171       conftest$ac_exeext conftest.$ac_ext
25172   done
25173 fi
25174 LIBS=$ac_func_search_save_LIBS
25175 fi
25176 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25177 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25178 if test "$ac_cv_search_lt_dlopen" != no; then
25179   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25180
25181 cat >>confdefs.h <<\_ACEOF
25182 #define HAVE_LT_DLOPEN 1
25183 _ACEOF
25184
25185 else
25186   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25187                            not be available" >&5
25188 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25189                            not be available" >&2;}
25190 fi
25191
25192
25193 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25194 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25195 if test "${ac_cv_search_dlopen+set}" = set; then
25196   echo $ECHO_N "(cached) $ECHO_C" >&6
25197 else
25198   ac_func_search_save_LIBS=$LIBS
25199 ac_cv_search_dlopen=no
25200 cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206
25207 /* Override any gcc2 internal prototype to avoid an error.  */
25208 #ifdef __cplusplus
25209 extern "C"
25210 #endif
25211 /* We use char because int might match the return type of a gcc2
25212    builtin and then its argument prototype would still apply.  */
25213 char dlopen ();
25214 int
25215 main ()
25216 {
25217 dlopen ();
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 rm -f conftest.$ac_objext conftest$ac_exeext
25223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25224   (eval $ac_link) 2>conftest.er1
25225   ac_status=$?
25226   grep -v '^ *+' conftest.er1 >conftest.err
25227   rm -f conftest.er1
25228   cat conftest.err >&5
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); } &&
25231          { ac_try='test -z "$ac_c_werror_flag"
25232                          || test ! -s conftest.err'
25233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234   (eval $ac_try) 2>&5
25235   ac_status=$?
25236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); }; } &&
25238          { ac_try='test -s conftest$ac_exeext'
25239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240   (eval $ac_try) 2>&5
25241   ac_status=$?
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); }; }; then
25244   ac_cv_search_dlopen="none required"
25245 else
25246   echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25248
25249 fi
25250 rm -f conftest.err conftest.$ac_objext \
25251       conftest$ac_exeext conftest.$ac_ext
25252 if test "$ac_cv_search_dlopen" = no; then
25253   for ac_lib in dl; do
25254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25255     cat >conftest.$ac_ext <<_ACEOF
25256 /* confdefs.h.  */
25257 _ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h.  */
25261
25262 /* Override any gcc2 internal prototype to avoid an error.  */
25263 #ifdef __cplusplus
25264 extern "C"
25265 #endif
25266 /* We use char because int might match the return type of a gcc2
25267    builtin and then its argument prototype would still apply.  */
25268 char dlopen ();
25269 int
25270 main ()
25271 {
25272 dlopen ();
25273   ;
25274   return 0;
25275 }
25276 _ACEOF
25277 rm -f conftest.$ac_objext conftest$ac_exeext
25278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25279   (eval $ac_link) 2>conftest.er1
25280   ac_status=$?
25281   grep -v '^ *+' conftest.er1 >conftest.err
25282   rm -f conftest.er1
25283   cat conftest.err >&5
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); } &&
25286          { ac_try='test -z "$ac_c_werror_flag"
25287                          || test ! -s conftest.err'
25288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289   (eval $ac_try) 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; } &&
25293          { ac_try='test -s conftest$ac_exeext'
25294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295   (eval $ac_try) 2>&5
25296   ac_status=$?
25297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298   (exit $ac_status); }; }; then
25299   ac_cv_search_dlopen="-l$ac_lib"
25300 break
25301 else
25302   echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25304
25305 fi
25306 rm -f conftest.err conftest.$ac_objext \
25307       conftest$ac_exeext conftest.$ac_ext
25308   done
25309 fi
25310 LIBS=$ac_func_search_save_LIBS
25311 fi
25312 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25313 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25314 if test "$ac_cv_search_dlopen" != no; then
25315   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25316
25317 cat >>confdefs.h <<\_ACEOF
25318 #define HAVE_DLOPEN 1
25319 _ACEOF
25320
25321 else
25322   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25323 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25324 fi
25325
25326
25327 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25328 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25329 if test "${ac_cv_search_mallinfo+set}" = set; then
25330   echo $ECHO_N "(cached) $ECHO_C" >&6
25331 else
25332   ac_func_search_save_LIBS=$LIBS
25333 ac_cv_search_mallinfo=no
25334 cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340
25341 /* Override any gcc2 internal prototype to avoid an error.  */
25342 #ifdef __cplusplus
25343 extern "C"
25344 #endif
25345 /* We use char because int might match the return type of a gcc2
25346    builtin and then its argument prototype would still apply.  */
25347 char mallinfo ();
25348 int
25349 main ()
25350 {
25351 mallinfo ();
25352   ;
25353   return 0;
25354 }
25355 _ACEOF
25356 rm -f conftest.$ac_objext conftest$ac_exeext
25357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25358   (eval $ac_link) 2>conftest.er1
25359   ac_status=$?
25360   grep -v '^ *+' conftest.er1 >conftest.err
25361   rm -f conftest.er1
25362   cat conftest.err >&5
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); } &&
25365          { ac_try='test -z "$ac_c_werror_flag"
25366                          || test ! -s conftest.err'
25367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368   (eval $ac_try) 2>&5
25369   ac_status=$?
25370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371   (exit $ac_status); }; } &&
25372          { ac_try='test -s conftest$ac_exeext'
25373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374   (eval $ac_try) 2>&5
25375   ac_status=$?
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); }; }; then
25378   ac_cv_search_mallinfo="none required"
25379 else
25380   echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25382
25383 fi
25384 rm -f conftest.err conftest.$ac_objext \
25385       conftest$ac_exeext conftest.$ac_ext
25386 if test "$ac_cv_search_mallinfo" = no; then
25387   for ac_lib in malloc; do
25388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25389     cat >conftest.$ac_ext <<_ACEOF
25390 /* confdefs.h.  */
25391 _ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h.  */
25395
25396 /* Override any gcc2 internal prototype to avoid an error.  */
25397 #ifdef __cplusplus
25398 extern "C"
25399 #endif
25400 /* We use char because int might match the return type of a gcc2
25401    builtin and then its argument prototype would still apply.  */
25402 char mallinfo ();
25403 int
25404 main ()
25405 {
25406 mallinfo ();
25407   ;
25408   return 0;
25409 }
25410 _ACEOF
25411 rm -f conftest.$ac_objext conftest$ac_exeext
25412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25413   (eval $ac_link) 2>conftest.er1
25414   ac_status=$?
25415   grep -v '^ *+' conftest.er1 >conftest.err
25416   rm -f conftest.er1
25417   cat conftest.err >&5
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); } &&
25420          { ac_try='test -z "$ac_c_werror_flag"
25421                          || test ! -s conftest.err'
25422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423   (eval $ac_try) 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; } &&
25427          { ac_try='test -s conftest$ac_exeext'
25428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429   (eval $ac_try) 2>&5
25430   ac_status=$?
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); }; }; then
25433   ac_cv_search_mallinfo="-l$ac_lib"
25434 break
25435 else
25436   echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25438
25439 fi
25440 rm -f conftest.err conftest.$ac_objext \
25441       conftest$ac_exeext conftest.$ac_ext
25442   done
25443 fi
25444 LIBS=$ac_func_search_save_LIBS
25445 fi
25446 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25447 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25448 if test "$ac_cv_search_mallinfo" != no; then
25449   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25450
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_MALLINFO 1
25453 _ACEOF
25454
25455 fi
25456
25457
25458 if test "$ENABLE_THREADS" -eq 1 ; then
25459
25460 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25461 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25462 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   ac_check_lib_save_LIBS=$LIBS
25466 LIBS="-lpthread  $LIBS"
25467 cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473
25474 /* Override any gcc2 internal prototype to avoid an error.  */
25475 #ifdef __cplusplus
25476 extern "C"
25477 #endif
25478 /* We use char because int might match the return type of a gcc2
25479    builtin and then its argument prototype would still apply.  */
25480 char pthread_mutex_init ();
25481 int
25482 main ()
25483 {
25484 pthread_mutex_init ();
25485   ;
25486   return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest.$ac_objext conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491   (eval $ac_link) 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } &&
25498          { ac_try='test -z "$ac_c_werror_flag"
25499                          || test ! -s conftest.err'
25500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501   (eval $ac_try) 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); }; } &&
25505          { ac_try='test -s conftest$ac_exeext'
25506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507   (eval $ac_try) 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); }; }; then
25511   ac_cv_lib_pthread_pthread_mutex_init=yes
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516 ac_cv_lib_pthread_pthread_mutex_init=no
25517 fi
25518 rm -f conftest.err conftest.$ac_objext \
25519       conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25521 fi
25522 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25523 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25524 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25525   cat >>confdefs.h <<_ACEOF
25526 #define HAVE_LIBPTHREAD 1
25527 _ACEOF
25528
25529   LIBS="-lpthread $LIBS"
25530
25531 fi
25532
25533   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25534 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25535 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25536   echo $ECHO_N "(cached) $ECHO_C" >&6
25537 else
25538   ac_func_search_save_LIBS=$LIBS
25539 ac_cv_search_pthread_mutex_lock=no
25540 cat >conftest.$ac_ext <<_ACEOF
25541 /* confdefs.h.  */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h.  */
25546
25547 /* Override any gcc2 internal prototype to avoid an error.  */
25548 #ifdef __cplusplus
25549 extern "C"
25550 #endif
25551 /* We use char because int might match the return type of a gcc2
25552    builtin and then its argument prototype would still apply.  */
25553 char pthread_mutex_lock ();
25554 int
25555 main ()
25556 {
25557 pthread_mutex_lock ();
25558   ;
25559   return 0;
25560 }
25561 _ACEOF
25562 rm -f conftest.$ac_objext conftest$ac_exeext
25563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25564   (eval $ac_link) 2>conftest.er1
25565   ac_status=$?
25566   grep -v '^ *+' conftest.er1 >conftest.err
25567   rm -f conftest.er1
25568   cat conftest.err >&5
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); } &&
25571          { ac_try='test -z "$ac_c_werror_flag"
25572                          || test ! -s conftest.err'
25573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574   (eval $ac_try) 2>&5
25575   ac_status=$?
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); }; } &&
25578          { ac_try='test -s conftest$ac_exeext'
25579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580   (eval $ac_try) 2>&5
25581   ac_status=$?
25582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); }; }; then
25584   ac_cv_search_pthread_mutex_lock="none required"
25585 else
25586   echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589 fi
25590 rm -f conftest.err conftest.$ac_objext \
25591       conftest$ac_exeext conftest.$ac_ext
25592 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25593   for ac_lib in pthread; do
25594     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25595     cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601
25602 /* Override any gcc2 internal prototype to avoid an error.  */
25603 #ifdef __cplusplus
25604 extern "C"
25605 #endif
25606 /* We use char because int might match the return type of a gcc2
25607    builtin and then its argument prototype would still apply.  */
25608 char pthread_mutex_lock ();
25609 int
25610 main ()
25611 {
25612 pthread_mutex_lock ();
25613   ;
25614   return 0;
25615 }
25616 _ACEOF
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25619   (eval $ac_link) 2>conftest.er1
25620   ac_status=$?
25621   grep -v '^ *+' conftest.er1 >conftest.err
25622   rm -f conftest.er1
25623   cat conftest.err >&5
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); } &&
25626          { ac_try='test -z "$ac_c_werror_flag"
25627                          || test ! -s conftest.err'
25628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629   (eval $ac_try) 2>&5
25630   ac_status=$?
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); }; } &&
25633          { ac_try='test -s conftest$ac_exeext'
25634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635   (eval $ac_try) 2>&5
25636   ac_status=$?
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); }; }; then
25639   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25640 break
25641 else
25642   echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25644
25645 fi
25646 rm -f conftest.err conftest.$ac_objext \
25647       conftest$ac_exeext conftest.$ac_ext
25648   done
25649 fi
25650 LIBS=$ac_func_search_save_LIBS
25651 fi
25652 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25653 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25654 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25655   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25656
25657 cat >>confdefs.h <<\_ACEOF
25658 #define HAVE_PTHREAD_MUTEX_LOCK 1
25659 _ACEOF
25660
25661 fi
25662
25663 fi
25664
25665
25666
25667
25668
25669
25670
25671 ac_header_dirent=no
25672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25673   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25674 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25677   echo $ECHO_N "(cached) $ECHO_C" >&6
25678 else
25679   cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685 #include <sys/types.h>
25686 #include <$ac_hdr>
25687
25688 int
25689 main ()
25690 {
25691 if ((DIR *) 0)
25692 return 0;
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699   (eval $ac_compile) 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } &&
25706          { ac_try='test -z "$ac_c_werror_flag"
25707                          || test ! -s conftest.err'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; } &&
25713          { ac_try='test -s conftest.$ac_objext'
25714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715   (eval $ac_try) 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); }; }; then
25719   eval "$as_ac_Header=yes"
25720 else
25721   echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25723
25724 eval "$as_ac_Header=no"
25725 fi
25726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25727 fi
25728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25731   cat >>confdefs.h <<_ACEOF
25732 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25733 _ACEOF
25734
25735 ac_header_dirent=$ac_hdr; break
25736 fi
25737
25738 done
25739 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25740 if test $ac_header_dirent = dirent.h; then
25741   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25742 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25743 if test "${ac_cv_search_opendir+set}" = set; then
25744   echo $ECHO_N "(cached) $ECHO_C" >&6
25745 else
25746   ac_func_search_save_LIBS=$LIBS
25747 ac_cv_search_opendir=no
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754
25755 /* Override any gcc2 internal prototype to avoid an error.  */
25756 #ifdef __cplusplus
25757 extern "C"
25758 #endif
25759 /* We use char because int might match the return type of a gcc2
25760    builtin and then its argument prototype would still apply.  */
25761 char opendir ();
25762 int
25763 main ()
25764 {
25765 opendir ();
25766   ;
25767   return 0;
25768 }
25769 _ACEOF
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25772   (eval $ac_link) 2>conftest.er1
25773   ac_status=$?
25774   grep -v '^ *+' conftest.er1 >conftest.err
25775   rm -f conftest.er1
25776   cat conftest.err >&5
25777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778   (exit $ac_status); } &&
25779          { ac_try='test -z "$ac_c_werror_flag"
25780                          || test ! -s conftest.err'
25781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782   (eval $ac_try) 2>&5
25783   ac_status=$?
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); }; } &&
25786          { ac_try='test -s conftest$ac_exeext'
25787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788   (eval $ac_try) 2>&5
25789   ac_status=$?
25790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791   (exit $ac_status); }; }; then
25792   ac_cv_search_opendir="none required"
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797 fi
25798 rm -f conftest.err conftest.$ac_objext \
25799       conftest$ac_exeext conftest.$ac_ext
25800 if test "$ac_cv_search_opendir" = no; then
25801   for ac_lib in dir; do
25802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25803     cat >conftest.$ac_ext <<_ACEOF
25804 /* confdefs.h.  */
25805 _ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h.  */
25809
25810 /* Override any gcc2 internal prototype to avoid an error.  */
25811 #ifdef __cplusplus
25812 extern "C"
25813 #endif
25814 /* We use char because int might match the return type of a gcc2
25815    builtin and then its argument prototype would still apply.  */
25816 char opendir ();
25817 int
25818 main ()
25819 {
25820 opendir ();
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 rm -f conftest.$ac_objext conftest$ac_exeext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827   (eval $ac_link) 2>conftest.er1
25828   ac_status=$?
25829   grep -v '^ *+' conftest.er1 >conftest.err
25830   rm -f conftest.er1
25831   cat conftest.err >&5
25832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833   (exit $ac_status); } &&
25834          { ac_try='test -z "$ac_c_werror_flag"
25835                          || test ! -s conftest.err'
25836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837   (eval $ac_try) 2>&5
25838   ac_status=$?
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); }; } &&
25841          { ac_try='test -s conftest$ac_exeext'
25842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843   (eval $ac_try) 2>&5
25844   ac_status=$?
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); }; }; then
25847   ac_cv_search_opendir="-l$ac_lib"
25848 break
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853 fi
25854 rm -f conftest.err conftest.$ac_objext \
25855       conftest$ac_exeext conftest.$ac_ext
25856   done
25857 fi
25858 LIBS=$ac_func_search_save_LIBS
25859 fi
25860 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25861 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25862 if test "$ac_cv_search_opendir" != no; then
25863   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25864
25865 fi
25866
25867 else
25868   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25870 if test "${ac_cv_search_opendir+set}" = set; then
25871   echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25873   ac_func_search_save_LIBS=$LIBS
25874 ac_cv_search_opendir=no
25875 cat >conftest.$ac_ext <<_ACEOF
25876 /* confdefs.h.  */
25877 _ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h.  */
25881
25882 /* Override any gcc2 internal prototype to avoid an error.  */
25883 #ifdef __cplusplus
25884 extern "C"
25885 #endif
25886 /* We use char because int might match the return type of a gcc2
25887    builtin and then its argument prototype would still apply.  */
25888 char opendir ();
25889 int
25890 main ()
25891 {
25892 opendir ();
25893   ;
25894   return 0;
25895 }
25896 _ACEOF
25897 rm -f conftest.$ac_objext conftest$ac_exeext
25898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25899   (eval $ac_link) 2>conftest.er1
25900   ac_status=$?
25901   grep -v '^ *+' conftest.er1 >conftest.err
25902   rm -f conftest.er1
25903   cat conftest.err >&5
25904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); } &&
25906          { ac_try='test -z "$ac_c_werror_flag"
25907                          || test ! -s conftest.err'
25908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909   (eval $ac_try) 2>&5
25910   ac_status=$?
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); }; } &&
25913          { ac_try='test -s conftest$ac_exeext'
25914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915   (eval $ac_try) 2>&5
25916   ac_status=$?
25917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918   (exit $ac_status); }; }; then
25919   ac_cv_search_opendir="none required"
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924 fi
25925 rm -f conftest.err conftest.$ac_objext \
25926       conftest$ac_exeext conftest.$ac_ext
25927 if test "$ac_cv_search_opendir" = no; then
25928   for ac_lib in x; do
25929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25930     cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936
25937 /* Override any gcc2 internal prototype to avoid an error.  */
25938 #ifdef __cplusplus
25939 extern "C"
25940 #endif
25941 /* We use char because int might match the return type of a gcc2
25942    builtin and then its argument prototype would still apply.  */
25943 char opendir ();
25944 int
25945 main ()
25946 {
25947 opendir ();
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25954   (eval $ac_link) 2>conftest.er1
25955   ac_status=$?
25956   grep -v '^ *+' conftest.er1 >conftest.err
25957   rm -f conftest.er1
25958   cat conftest.err >&5
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); } &&
25961          { ac_try='test -z "$ac_c_werror_flag"
25962                          || test ! -s conftest.err'
25963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964   (eval $ac_try) 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); }; } &&
25968          { ac_try='test -s conftest$ac_exeext'
25969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970   (eval $ac_try) 2>&5
25971   ac_status=$?
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); }; }; then
25974   ac_cv_search_opendir="-l$ac_lib"
25975 break
25976 else
25977   echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 fi
25981 rm -f conftest.err conftest.$ac_objext \
25982       conftest$ac_exeext conftest.$ac_ext
25983   done
25984 fi
25985 LIBS=$ac_func_search_save_LIBS
25986 fi
25987 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25988 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25989 if test "$ac_cv_search_opendir" != no; then
25990   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25991
25992 fi
25993
25994 fi
25995
25996 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25997 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25998 if test "${ac_cv_header_mmap_anon+set}" = set; then
25999   echo $ECHO_N "(cached) $ECHO_C" >&6
26000 else
26001    ac_ext=c
26002 ac_cpp='$CPP $CPPFLAGS'
26003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26006
26007   cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h.  */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h.  */
26013 #include <sys/mman.h>
26014 #include <unistd.h>
26015 #include <fcntl.h>
26016 int
26017 main ()
26018 {
26019 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26020   ;
26021   return 0;
26022 }
26023 _ACEOF
26024 rm -f conftest.$ac_objext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026   (eval $ac_compile) 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } &&
26033          { ac_try='test -z "$ac_c_werror_flag"
26034                          || test ! -s conftest.err'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; } &&
26040          { ac_try='test -s conftest.$ac_objext'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; }; then
26046   ac_cv_header_mmap_anon=yes
26047 else
26048   echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26050
26051 ac_cv_header_mmap_anon=no
26052 fi
26053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054   ac_ext=c
26055 ac_cpp='$CPP $CPPFLAGS'
26056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26059
26060
26061 fi
26062 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26063 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26064 if test "$ac_cv_header_mmap_anon" = yes; then
26065
26066 cat >>confdefs.h <<\_ACEOF
26067 #define HAVE_MMAP_ANONYMOUS 1
26068 _ACEOF
26069
26070 fi
26071
26072 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26073 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26074 if test "${ac_cv_header_stat_broken+set}" = set; then
26075   echo $ECHO_N "(cached) $ECHO_C" >&6
26076 else
26077   cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h.  */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h.  */
26083 #include <sys/types.h>
26084 #include <sys/stat.h>
26085
26086 #if defined(S_ISBLK) && defined(S_IFDIR)
26087 # if S_ISBLK (S_IFDIR)
26088 You lose.
26089 # endif
26090 #endif
26091
26092 #if defined(S_ISBLK) && defined(S_IFCHR)
26093 # if S_ISBLK (S_IFCHR)
26094 You lose.
26095 # endif
26096 #endif
26097
26098 #if defined(S_ISLNK) && defined(S_IFREG)
26099 # if S_ISLNK (S_IFREG)
26100 You lose.
26101 # endif
26102 #endif
26103
26104 #if defined(S_ISSOCK) && defined(S_IFREG)
26105 # if S_ISSOCK (S_IFREG)
26106 You lose.
26107 # endif
26108 #endif
26109
26110 _ACEOF
26111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26112   $EGREP "You lose" >/dev/null 2>&1; then
26113   ac_cv_header_stat_broken=yes
26114 else
26115   ac_cv_header_stat_broken=no
26116 fi
26117 rm -f conftest*
26118
26119 fi
26120 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26121 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26122 if test $ac_cv_header_stat_broken = yes; then
26123
26124 cat >>confdefs.h <<\_ACEOF
26125 #define STAT_MACROS_BROKEN 1
26126 _ACEOF
26127
26128 fi
26129
26130 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26132 if test "${ac_cv_header_stdc+set}" = set; then
26133   echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26135   cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141 #include <stdlib.h>
26142 #include <stdarg.h>
26143 #include <string.h>
26144 #include <float.h>
26145
26146 int
26147 main ()
26148 {
26149
26150   ;
26151   return 0;
26152 }
26153 _ACEOF
26154 rm -f conftest.$ac_objext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156   (eval $ac_compile) 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } &&
26163          { ac_try='test -z "$ac_c_werror_flag"
26164                          || test ! -s conftest.err'
26165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166   (eval $ac_try) 2>&5
26167   ac_status=$?
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); }; } &&
26170          { ac_try='test -s conftest.$ac_objext'
26171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172   (eval $ac_try) 2>&5
26173   ac_status=$?
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; }; then
26176   ac_cv_header_stdc=yes
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181 ac_cv_header_stdc=no
26182 fi
26183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26184
26185 if test $ac_cv_header_stdc = yes; then
26186   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26187   cat >conftest.$ac_ext <<_ACEOF
26188 /* confdefs.h.  */
26189 _ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h.  */
26193 #include <string.h>
26194
26195 _ACEOF
26196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26197   $EGREP "memchr" >/dev/null 2>&1; then
26198   :
26199 else
26200   ac_cv_header_stdc=no
26201 fi
26202 rm -f conftest*
26203
26204 fi
26205
26206 if test $ac_cv_header_stdc = yes; then
26207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26208   cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h.  */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h.  */
26214 #include <stdlib.h>
26215
26216 _ACEOF
26217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26218   $EGREP "free" >/dev/null 2>&1; then
26219   :
26220 else
26221   ac_cv_header_stdc=no
26222 fi
26223 rm -f conftest*
26224
26225 fi
26226
26227 if test $ac_cv_header_stdc = yes; then
26228   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26229   if test "$cross_compiling" = yes; then
26230   :
26231 else
26232   cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 #include <ctype.h>
26239 #if ((' ' & 0x0FF) == 0x020)
26240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26242 #else
26243 # define ISLOWER(c) \
26244                    (('a' <= (c) && (c) <= 'i') \
26245                      || ('j' <= (c) && (c) <= 'r') \
26246                      || ('s' <= (c) && (c) <= 'z'))
26247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26248 #endif
26249
26250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26251 int
26252 main ()
26253 {
26254   int i;
26255   for (i = 0; i < 256; i++)
26256     if (XOR (islower (i), ISLOWER (i))
26257         || toupper (i) != TOUPPER (i))
26258       exit(2);
26259   exit (0);
26260 }
26261 _ACEOF
26262 rm -f conftest$ac_exeext
26263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26264   (eval $ac_link) 2>&5
26265   ac_status=$?
26266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269   (eval $ac_try) 2>&5
26270   ac_status=$?
26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); }; }; then
26273   :
26274 else
26275   echo "$as_me: program exited with status $ac_status" >&5
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279 ( exit $ac_status )
26280 ac_cv_header_stdc=no
26281 fi
26282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26283 fi
26284 fi
26285 fi
26286 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26287 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26288 if test $ac_cv_header_stdc = yes; then
26289
26290 cat >>confdefs.h <<\_ACEOF
26291 #define STDC_HEADERS 1
26292 _ACEOF
26293
26294 fi
26295
26296 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26297 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26298 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26299   echo $ECHO_N "(cached) $ECHO_C" >&6
26300 else
26301   cat >conftest.$ac_ext <<_ACEOF
26302 /* confdefs.h.  */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h.  */
26307 #include <sys/types.h>
26308 #include <sys/wait.h>
26309 #ifndef WEXITSTATUS
26310 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26311 #endif
26312 #ifndef WIFEXITED
26313 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26314 #endif
26315
26316 int
26317 main ()
26318 {
26319   int s;
26320   wait (&s);
26321   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 rm -f conftest.$ac_objext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26328   (eval $ac_compile) 2>conftest.er1
26329   ac_status=$?
26330   grep -v '^ *+' conftest.er1 >conftest.err
26331   rm -f conftest.er1
26332   cat conftest.err >&5
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); } &&
26335          { ac_try='test -z "$ac_c_werror_flag"
26336                          || test ! -s conftest.err'
26337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338   (eval $ac_try) 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; } &&
26342          { ac_try='test -s conftest.$ac_objext'
26343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344   (eval $ac_try) 2>&5
26345   ac_status=$?
26346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); }; }; then
26348   ac_cv_header_sys_wait_h=yes
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353 ac_cv_header_sys_wait_h=no
26354 fi
26355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26356 fi
26357 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26358 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26359 if test $ac_cv_header_sys_wait_h = yes; then
26360
26361 cat >>confdefs.h <<\_ACEOF
26362 #define HAVE_SYS_WAIT_H 1
26363 _ACEOF
26364
26365 fi
26366
26367 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26369 if test "${ac_cv_header_time+set}" = set; then
26370   echo $ECHO_N "(cached) $ECHO_C" >&6
26371 else
26372   cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378 #include <sys/types.h>
26379 #include <sys/time.h>
26380 #include <time.h>
26381
26382 int
26383 main ()
26384 {
26385 if ((struct tm *) 0)
26386 return 0;
26387   ;
26388   return 0;
26389 }
26390 _ACEOF
26391 rm -f conftest.$ac_objext
26392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26393   (eval $ac_compile) 2>conftest.er1
26394   ac_status=$?
26395   grep -v '^ *+' conftest.er1 >conftest.err
26396   rm -f conftest.er1
26397   cat conftest.err >&5
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); } &&
26400          { ac_try='test -z "$ac_c_werror_flag"
26401                          || test ! -s conftest.err'
26402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403   (eval $ac_try) 2>&5
26404   ac_status=$?
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); }; } &&
26407          { ac_try='test -s conftest.$ac_objext'
26408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409   (eval $ac_try) 2>&5
26410   ac_status=$?
26411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); }; }; then
26413   ac_cv_header_time=yes
26414 else
26415   echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26417
26418 ac_cv_header_time=no
26419 fi
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26421 fi
26422 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26423 echo "${ECHO_T}$ac_cv_header_time" >&6
26424 if test $ac_cv_header_time = yes; then
26425
26426 cat >>confdefs.h <<\_ACEOF
26427 #define TIME_WITH_SYS_TIME 1
26428 _ACEOF
26429
26430 fi
26431
26432
26433
26434
26435
26436
26437
26438
26439 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26440 do
26441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26443   echo "$as_me:$LINENO: checking for $ac_header" >&5
26444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446   echo $ECHO_N "(cached) $ECHO_C" >&6
26447 fi
26448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26450 else
26451   # Is the header compilable?
26452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26454 cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460 $ac_includes_default
26461 #include <$ac_header>
26462 _ACEOF
26463 rm -f conftest.$ac_objext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465   (eval $ac_compile) 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } &&
26472          { ac_try='test -z "$ac_c_werror_flag"
26473                          || test ! -s conftest.err'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; } &&
26479          { ac_try='test -s conftest.$ac_objext'
26480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481   (eval $ac_try) 2>&5
26482   ac_status=$?
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); }; }; then
26485   ac_header_compiler=yes
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 ac_header_compiler=no
26491 fi
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26494 echo "${ECHO_T}$ac_header_compiler" >&6
26495
26496 # Is the header present?
26497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26499 cat >conftest.$ac_ext <<_ACEOF
26500 /* confdefs.h.  */
26501 _ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h.  */
26505 #include <$ac_header>
26506 _ACEOF
26507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26509   ac_status=$?
26510   grep -v '^ *+' conftest.er1 >conftest.err
26511   rm -f conftest.er1
26512   cat conftest.err >&5
26513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514   (exit $ac_status); } >/dev/null; then
26515   if test -s conftest.err; then
26516     ac_cpp_err=$ac_c_preproc_warn_flag
26517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26518   else
26519     ac_cpp_err=
26520   fi
26521 else
26522   ac_cpp_err=yes
26523 fi
26524 if test -z "$ac_cpp_err"; then
26525   ac_header_preproc=yes
26526 else
26527   echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26529
26530   ac_header_preproc=no
26531 fi
26532 rm -f conftest.err conftest.$ac_ext
26533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26534 echo "${ECHO_T}$ac_header_preproc" >&6
26535
26536 # So?  What about this header?
26537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26538   yes:no: )
26539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26543     ac_header_preproc=yes
26544     ;;
26545   no:yes:* )
26546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26558     (
26559       cat <<\_ASBOX
26560 ## ----------------------------------- ##
26561 ## Report this to llvmbugs@cs.uiuc.edu ##
26562 ## ----------------------------------- ##
26563 _ASBOX
26564     ) |
26565       sed "s/^/$as_me: WARNING:     /" >&2
26566     ;;
26567 esac
26568 echo "$as_me:$LINENO: checking for $ac_header" >&5
26569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26571   echo $ECHO_N "(cached) $ECHO_C" >&6
26572 else
26573   eval "$as_ac_Header=\$ac_header_preproc"
26574 fi
26575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26577
26578 fi
26579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26580   cat >>confdefs.h <<_ACEOF
26581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26582 _ACEOF
26583
26584 fi
26585
26586 done
26587
26588
26589
26590
26591
26592
26593
26594 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26595 do
26596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26598   echo "$as_me:$LINENO: checking for $ac_header" >&5
26599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26601   echo $ECHO_N "(cached) $ECHO_C" >&6
26602 fi
26603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26605 else
26606   # Is the header compilable?
26607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26609 cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615 $ac_includes_default
26616 #include <$ac_header>
26617 _ACEOF
26618 rm -f conftest.$ac_objext
26619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26620   (eval $ac_compile) 2>conftest.er1
26621   ac_status=$?
26622   grep -v '^ *+' conftest.er1 >conftest.err
26623   rm -f conftest.er1
26624   cat conftest.err >&5
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); } &&
26627          { ac_try='test -z "$ac_c_werror_flag"
26628                          || test ! -s conftest.err'
26629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630   (eval $ac_try) 2>&5
26631   ac_status=$?
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); }; } &&
26634          { ac_try='test -s conftest.$ac_objext'
26635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636   (eval $ac_try) 2>&5
26637   ac_status=$?
26638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639   (exit $ac_status); }; }; then
26640   ac_header_compiler=yes
26641 else
26642   echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26644
26645 ac_header_compiler=no
26646 fi
26647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26649 echo "${ECHO_T}$ac_header_compiler" >&6
26650
26651 # Is the header present?
26652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26654 cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h.  */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h.  */
26660 #include <$ac_header>
26661 _ACEOF
26662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26664   ac_status=$?
26665   grep -v '^ *+' conftest.er1 >conftest.err
26666   rm -f conftest.er1
26667   cat conftest.err >&5
26668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669   (exit $ac_status); } >/dev/null; then
26670   if test -s conftest.err; then
26671     ac_cpp_err=$ac_c_preproc_warn_flag
26672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26673   else
26674     ac_cpp_err=
26675   fi
26676 else
26677   ac_cpp_err=yes
26678 fi
26679 if test -z "$ac_cpp_err"; then
26680   ac_header_preproc=yes
26681 else
26682   echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26684
26685   ac_header_preproc=no
26686 fi
26687 rm -f conftest.err conftest.$ac_ext
26688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26689 echo "${ECHO_T}$ac_header_preproc" >&6
26690
26691 # So?  What about this header?
26692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26693   yes:no: )
26694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26698     ac_header_preproc=yes
26699     ;;
26700   no:yes:* )
26701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26713     (
26714       cat <<\_ASBOX
26715 ## ----------------------------------- ##
26716 ## Report this to llvmbugs@cs.uiuc.edu ##
26717 ## ----------------------------------- ##
26718 _ASBOX
26719     ) |
26720       sed "s/^/$as_me: WARNING:     /" >&2
26721     ;;
26722 esac
26723 echo "$as_me:$LINENO: checking for $ac_header" >&5
26724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26726   echo $ECHO_N "(cached) $ECHO_C" >&6
26727 else
26728   eval "$as_ac_Header=\$ac_header_preproc"
26729 fi
26730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26732
26733 fi
26734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26735   cat >>confdefs.h <<_ACEOF
26736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26737 _ACEOF
26738
26739 fi
26740
26741 done
26742
26743
26744
26745
26746
26747
26748 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26749 do
26750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26752   echo "$as_me:$LINENO: checking for $ac_header" >&5
26753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755   echo $ECHO_N "(cached) $ECHO_C" >&6
26756 fi
26757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26759 else
26760   # Is the header compilable?
26761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26763 cat >conftest.$ac_ext <<_ACEOF
26764 /* confdefs.h.  */
26765 _ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h.  */
26769 $ac_includes_default
26770 #include <$ac_header>
26771 _ACEOF
26772 rm -f conftest.$ac_objext
26773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26774   (eval $ac_compile) 2>conftest.er1
26775   ac_status=$?
26776   grep -v '^ *+' conftest.er1 >conftest.err
26777   rm -f conftest.er1
26778   cat conftest.err >&5
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); } &&
26781          { ac_try='test -z "$ac_c_werror_flag"
26782                          || test ! -s conftest.err'
26783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784   (eval $ac_try) 2>&5
26785   ac_status=$?
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); }; } &&
26788          { ac_try='test -s conftest.$ac_objext'
26789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790   (eval $ac_try) 2>&5
26791   ac_status=$?
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); }; }; then
26794   ac_header_compiler=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799 ac_header_compiler=no
26800 fi
26801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26803 echo "${ECHO_T}$ac_header_compiler" >&6
26804
26805 # Is the header present?
26806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26808 cat >conftest.$ac_ext <<_ACEOF
26809 /* confdefs.h.  */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h.  */
26814 #include <$ac_header>
26815 _ACEOF
26816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26818   ac_status=$?
26819   grep -v '^ *+' conftest.er1 >conftest.err
26820   rm -f conftest.er1
26821   cat conftest.err >&5
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); } >/dev/null; then
26824   if test -s conftest.err; then
26825     ac_cpp_err=$ac_c_preproc_warn_flag
26826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26827   else
26828     ac_cpp_err=
26829   fi
26830 else
26831   ac_cpp_err=yes
26832 fi
26833 if test -z "$ac_cpp_err"; then
26834   ac_header_preproc=yes
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839   ac_header_preproc=no
26840 fi
26841 rm -f conftest.err conftest.$ac_ext
26842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26843 echo "${ECHO_T}$ac_header_preproc" >&6
26844
26845 # So?  What about this header?
26846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26847   yes:no: )
26848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26852     ac_header_preproc=yes
26853     ;;
26854   no:yes:* )
26855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26867     (
26868       cat <<\_ASBOX
26869 ## ----------------------------------- ##
26870 ## Report this to llvmbugs@cs.uiuc.edu ##
26871 ## ----------------------------------- ##
26872 _ASBOX
26873     ) |
26874       sed "s/^/$as_me: WARNING:     /" >&2
26875     ;;
26876 esac
26877 echo "$as_me:$LINENO: checking for $ac_header" >&5
26878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26880   echo $ECHO_N "(cached) $ECHO_C" >&6
26881 else
26882   eval "$as_ac_Header=\$ac_header_preproc"
26883 fi
26884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26886
26887 fi
26888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26889   cat >>confdefs.h <<_ACEOF
26890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26891 _ACEOF
26892
26893 fi
26894
26895 done
26896
26897
26898 for ac_header in malloc/malloc.h
26899 do
26900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26902   echo "$as_me:$LINENO: checking for $ac_header" >&5
26903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26905   echo $ECHO_N "(cached) $ECHO_C" >&6
26906 fi
26907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26909 else
26910   # Is the header compilable?
26911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26913 cat >conftest.$ac_ext <<_ACEOF
26914 /* confdefs.h.  */
26915 _ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h.  */
26919 $ac_includes_default
26920 #include <$ac_header>
26921 _ACEOF
26922 rm -f conftest.$ac_objext
26923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26924   (eval $ac_compile) 2>conftest.er1
26925   ac_status=$?
26926   grep -v '^ *+' conftest.er1 >conftest.err
26927   rm -f conftest.er1
26928   cat conftest.err >&5
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); } &&
26931          { ac_try='test -z "$ac_c_werror_flag"
26932                          || test ! -s conftest.err'
26933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934   (eval $ac_try) 2>&5
26935   ac_status=$?
26936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937   (exit $ac_status); }; } &&
26938          { ac_try='test -s conftest.$ac_objext'
26939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940   (eval $ac_try) 2>&5
26941   ac_status=$?
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); }; }; then
26944   ac_header_compiler=yes
26945 else
26946   echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949 ac_header_compiler=no
26950 fi
26951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26953 echo "${ECHO_T}$ac_header_compiler" >&6
26954
26955 # Is the header present?
26956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26958 cat >conftest.$ac_ext <<_ACEOF
26959 /* confdefs.h.  */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h.  */
26964 #include <$ac_header>
26965 _ACEOF
26966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26968   ac_status=$?
26969   grep -v '^ *+' conftest.er1 >conftest.err
26970   rm -f conftest.er1
26971   cat conftest.err >&5
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); } >/dev/null; then
26974   if test -s conftest.err; then
26975     ac_cpp_err=$ac_c_preproc_warn_flag
26976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26977   else
26978     ac_cpp_err=
26979   fi
26980 else
26981   ac_cpp_err=yes
26982 fi
26983 if test -z "$ac_cpp_err"; then
26984   ac_header_preproc=yes
26985 else
26986   echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26988
26989   ac_header_preproc=no
26990 fi
26991 rm -f conftest.err conftest.$ac_ext
26992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26993 echo "${ECHO_T}$ac_header_preproc" >&6
26994
26995 # So?  What about this header?
26996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26997   yes:no: )
26998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27002     ac_header_preproc=yes
27003     ;;
27004   no:yes:* )
27005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27017     (
27018       cat <<\_ASBOX
27019 ## ----------------------------------- ##
27020 ## Report this to llvmbugs@cs.uiuc.edu ##
27021 ## ----------------------------------- ##
27022 _ASBOX
27023     ) |
27024       sed "s/^/$as_me: WARNING:     /" >&2
27025     ;;
27026 esac
27027 echo "$as_me:$LINENO: checking for $ac_header" >&5
27028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27030   echo $ECHO_N "(cached) $ECHO_C" >&6
27031 else
27032   eval "$as_ac_Header=\$ac_header_preproc"
27033 fi
27034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27036
27037 fi
27038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27039   cat >>confdefs.h <<_ACEOF
27040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27041 _ACEOF
27042
27043 fi
27044
27045 done
27046
27047 if test "$ENABLE_THREADS" -eq 1 ; then
27048
27049 for ac_header in pthread.h
27050 do
27051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27053   echo "$as_me:$LINENO: checking for $ac_header" >&5
27054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27056   echo $ECHO_N "(cached) $ECHO_C" >&6
27057 fi
27058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27060 else
27061   # Is the header compilable?
27062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27064 cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070 $ac_includes_default
27071 #include <$ac_header>
27072 _ACEOF
27073 rm -f conftest.$ac_objext
27074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27075   (eval $ac_compile) 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } &&
27082          { ac_try='test -z "$ac_c_werror_flag"
27083                          || test ! -s conftest.err'
27084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085   (eval $ac_try) 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; } &&
27089          { ac_try='test -s conftest.$ac_objext'
27090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091   (eval $ac_try) 2>&5
27092   ac_status=$?
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); }; }; then
27095   ac_header_compiler=yes
27096 else
27097   echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27099
27100 ac_header_compiler=no
27101 fi
27102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27104 echo "${ECHO_T}$ac_header_compiler" >&6
27105
27106 # Is the header present?
27107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27109 cat >conftest.$ac_ext <<_ACEOF
27110 /* confdefs.h.  */
27111 _ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h.  */
27115 #include <$ac_header>
27116 _ACEOF
27117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27119   ac_status=$?
27120   grep -v '^ *+' conftest.er1 >conftest.err
27121   rm -f conftest.er1
27122   cat conftest.err >&5
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); } >/dev/null; then
27125   if test -s conftest.err; then
27126     ac_cpp_err=$ac_c_preproc_warn_flag
27127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27128   else
27129     ac_cpp_err=
27130   fi
27131 else
27132   ac_cpp_err=yes
27133 fi
27134 if test -z "$ac_cpp_err"; then
27135   ac_header_preproc=yes
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140   ac_header_preproc=no
27141 fi
27142 rm -f conftest.err conftest.$ac_ext
27143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27144 echo "${ECHO_T}$ac_header_preproc" >&6
27145
27146 # So?  What about this header?
27147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27148   yes:no: )
27149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27153     ac_header_preproc=yes
27154     ;;
27155   no:yes:* )
27156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27168     (
27169       cat <<\_ASBOX
27170 ## ----------------------------------- ##
27171 ## Report this to llvmbugs@cs.uiuc.edu ##
27172 ## ----------------------------------- ##
27173 _ASBOX
27174     ) |
27175       sed "s/^/$as_me: WARNING:     /" >&2
27176     ;;
27177 esac
27178 echo "$as_me:$LINENO: checking for $ac_header" >&5
27179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27181   echo $ECHO_N "(cached) $ECHO_C" >&6
27182 else
27183   eval "$as_ac_Header=\$ac_header_preproc"
27184 fi
27185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27187
27188 fi
27189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27190   cat >>confdefs.h <<_ACEOF
27191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27192 _ACEOF
27193
27194 fi
27195
27196 done
27197
27198 fi
27199
27200
27201 echo "$as_me:$LINENO: checking for pid_t" >&5
27202 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27203 if test "${ac_cv_type_pid_t+set}" = set; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   cat >conftest.$ac_ext <<_ACEOF
27207 /* confdefs.h.  */
27208 _ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h.  */
27212 $ac_includes_default
27213 int
27214 main ()
27215 {
27216 if ((pid_t *) 0)
27217   return 0;
27218 if (sizeof (pid_t))
27219   return 0;
27220   ;
27221   return 0;
27222 }
27223 _ACEOF
27224 rm -f conftest.$ac_objext
27225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27226   (eval $ac_compile) 2>conftest.er1
27227   ac_status=$?
27228   grep -v '^ *+' conftest.er1 >conftest.err
27229   rm -f conftest.er1
27230   cat conftest.err >&5
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); } &&
27233          { ac_try='test -z "$ac_c_werror_flag"
27234                          || test ! -s conftest.err'
27235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236   (eval $ac_try) 2>&5
27237   ac_status=$?
27238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239   (exit $ac_status); }; } &&
27240          { ac_try='test -s conftest.$ac_objext'
27241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242   (eval $ac_try) 2>&5
27243   ac_status=$?
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); }; }; then
27246   ac_cv_type_pid_t=yes
27247 else
27248   echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251 ac_cv_type_pid_t=no
27252 fi
27253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27254 fi
27255 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27256 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27257 if test $ac_cv_type_pid_t = yes; then
27258   :
27259 else
27260
27261 cat >>confdefs.h <<_ACEOF
27262 #define pid_t int
27263 _ACEOF
27264
27265 fi
27266
27267 echo "$as_me:$LINENO: checking for size_t" >&5
27268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27269 if test "${ac_cv_type_size_t+set}" = set; then
27270   echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272   cat >conftest.$ac_ext <<_ACEOF
27273 /* confdefs.h.  */
27274 _ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h.  */
27278 $ac_includes_default
27279 int
27280 main ()
27281 {
27282 if ((size_t *) 0)
27283   return 0;
27284 if (sizeof (size_t))
27285   return 0;
27286   ;
27287   return 0;
27288 }
27289 _ACEOF
27290 rm -f conftest.$ac_objext
27291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27292   (eval $ac_compile) 2>conftest.er1
27293   ac_status=$?
27294   grep -v '^ *+' conftest.er1 >conftest.err
27295   rm -f conftest.er1
27296   cat conftest.err >&5
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); } &&
27299          { ac_try='test -z "$ac_c_werror_flag"
27300                          || test ! -s conftest.err'
27301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302   (eval $ac_try) 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); }; } &&
27306          { ac_try='test -s conftest.$ac_objext'
27307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308   (eval $ac_try) 2>&5
27309   ac_status=$?
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); }; }; then
27312   ac_cv_type_size_t=yes
27313 else
27314   echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317 ac_cv_type_size_t=no
27318 fi
27319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27320 fi
27321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27323 if test $ac_cv_type_size_t = yes; then
27324   :
27325 else
27326
27327 cat >>confdefs.h <<_ACEOF
27328 #define size_t unsigned
27329 _ACEOF
27330
27331 fi
27332
27333 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27334 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27335 if test "${ac_cv_type_signal+set}" = set; then
27336   echo $ECHO_N "(cached) $ECHO_C" >&6
27337 else
27338   cat >conftest.$ac_ext <<_ACEOF
27339 /* confdefs.h.  */
27340 _ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h.  */
27344 #include <sys/types.h>
27345 #include <signal.h>
27346 #ifdef signal
27347 # undef signal
27348 #endif
27349 #ifdef __cplusplus
27350 extern "C" void (*signal (int, void (*)(int)))(int);
27351 #else
27352 void (*signal ()) ();
27353 #endif
27354
27355 int
27356 main ()
27357 {
27358 int i;
27359   ;
27360   return 0;
27361 }
27362 _ACEOF
27363 rm -f conftest.$ac_objext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365   (eval $ac_compile) 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } &&
27372          { ac_try='test -z "$ac_c_werror_flag"
27373                          || test ! -s conftest.err'
27374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375   (eval $ac_try) 2>&5
27376   ac_status=$?
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); }; } &&
27379          { ac_try='test -s conftest.$ac_objext'
27380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381   (eval $ac_try) 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; }; then
27385   ac_cv_type_signal=void
27386 else
27387   echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390 ac_cv_type_signal=int
27391 fi
27392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27393 fi
27394 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27395 echo "${ECHO_T}$ac_cv_type_signal" >&6
27396
27397 cat >>confdefs.h <<_ACEOF
27398 #define RETSIGTYPE $ac_cv_type_signal
27399 _ACEOF
27400
27401
27402 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27403 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27404 if test "${ac_cv_struct_tm+set}" = set; then
27405   echo $ECHO_N "(cached) $ECHO_C" >&6
27406 else
27407   cat >conftest.$ac_ext <<_ACEOF
27408 /* confdefs.h.  */
27409 _ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h.  */
27413 #include <sys/types.h>
27414 #include <time.h>
27415
27416 int
27417 main ()
27418 {
27419 struct tm *tp; tp->tm_sec;
27420   ;
27421   return 0;
27422 }
27423 _ACEOF
27424 rm -f conftest.$ac_objext
27425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27426   (eval $ac_compile) 2>conftest.er1
27427   ac_status=$?
27428   grep -v '^ *+' conftest.er1 >conftest.err
27429   rm -f conftest.er1
27430   cat conftest.err >&5
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); } &&
27433          { ac_try='test -z "$ac_c_werror_flag"
27434                          || test ! -s conftest.err'
27435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436   (eval $ac_try) 2>&5
27437   ac_status=$?
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); }; } &&
27440          { ac_try='test -s conftest.$ac_objext'
27441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442   (eval $ac_try) 2>&5
27443   ac_status=$?
27444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445   (exit $ac_status); }; }; then
27446   ac_cv_struct_tm=time.h
27447 else
27448   echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27450
27451 ac_cv_struct_tm=sys/time.h
27452 fi
27453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27454 fi
27455 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27456 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27457 if test $ac_cv_struct_tm = sys/time.h; then
27458
27459 cat >>confdefs.h <<\_ACEOF
27460 #define TM_IN_SYS_TIME 1
27461 _ACEOF
27462
27463 fi
27464
27465 echo "$as_me:$LINENO: checking for int64_t" >&5
27466 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27467 if test "${ac_cv_type_int64_t+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 $ac_includes_default
27477 int
27478 main ()
27479 {
27480 if ((int64_t *) 0)
27481   return 0;
27482 if (sizeof (int64_t))
27483   return 0;
27484   ;
27485   return 0;
27486 }
27487 _ACEOF
27488 rm -f conftest.$ac_objext
27489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27490   (eval $ac_compile) 2>conftest.er1
27491   ac_status=$?
27492   grep -v '^ *+' conftest.er1 >conftest.err
27493   rm -f conftest.er1
27494   cat conftest.err >&5
27495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496   (exit $ac_status); } &&
27497          { ac_try='test -z "$ac_c_werror_flag"
27498                          || test ! -s conftest.err'
27499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500   (eval $ac_try) 2>&5
27501   ac_status=$?
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); }; } &&
27504          { ac_try='test -s conftest.$ac_objext'
27505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506   (eval $ac_try) 2>&5
27507   ac_status=$?
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); }; }; then
27510   ac_cv_type_int64_t=yes
27511 else
27512   echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27514
27515 ac_cv_type_int64_t=no
27516 fi
27517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27518 fi
27519 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27520 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27521 if test $ac_cv_type_int64_t = yes; then
27522
27523 cat >>confdefs.h <<_ACEOF
27524 #define HAVE_INT64_T 1
27525 _ACEOF
27526
27527
27528 else
27529   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27530 echo "$as_me: error: Type int64_t required but not found" >&2;}
27531    { (exit 1); exit 1; }; }
27532 fi
27533
27534 echo "$as_me:$LINENO: checking for uint64_t" >&5
27535 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27536 if test "${ac_cv_type_uint64_t+set}" = set; then
27537   echo $ECHO_N "(cached) $ECHO_C" >&6
27538 else
27539   cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h.  */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h.  */
27545 $ac_includes_default
27546 int
27547 main ()
27548 {
27549 if ((uint64_t *) 0)
27550   return 0;
27551 if (sizeof (uint64_t))
27552   return 0;
27553   ;
27554   return 0;
27555 }
27556 _ACEOF
27557 rm -f conftest.$ac_objext
27558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27559   (eval $ac_compile) 2>conftest.er1
27560   ac_status=$?
27561   grep -v '^ *+' conftest.er1 >conftest.err
27562   rm -f conftest.er1
27563   cat conftest.err >&5
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); } &&
27566          { ac_try='test -z "$ac_c_werror_flag"
27567                          || test ! -s conftest.err'
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); }; } &&
27573          { ac_try='test -s conftest.$ac_objext'
27574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575   (eval $ac_try) 2>&5
27576   ac_status=$?
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); }; }; then
27579   ac_cv_type_uint64_t=yes
27580 else
27581   echo "$as_me: failed program was:" >&5
27582 sed 's/^/| /' conftest.$ac_ext >&5
27583
27584 ac_cv_type_uint64_t=no
27585 fi
27586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27587 fi
27588 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27589 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27590 if test $ac_cv_type_uint64_t = yes; then
27591
27592 cat >>confdefs.h <<_ACEOF
27593 #define HAVE_UINT64_T 1
27594 _ACEOF
27595
27596
27597 else
27598   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27599 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27600 if test "${ac_cv_type_u_int64_t+set}" = set; then
27601   echo $ECHO_N "(cached) $ECHO_C" >&6
27602 else
27603   cat >conftest.$ac_ext <<_ACEOF
27604 /* confdefs.h.  */
27605 _ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h.  */
27609 $ac_includes_default
27610 int
27611 main ()
27612 {
27613 if ((u_int64_t *) 0)
27614   return 0;
27615 if (sizeof (u_int64_t))
27616   return 0;
27617   ;
27618   return 0;
27619 }
27620 _ACEOF
27621 rm -f conftest.$ac_objext
27622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27623   (eval $ac_compile) 2>conftest.er1
27624   ac_status=$?
27625   grep -v '^ *+' conftest.er1 >conftest.err
27626   rm -f conftest.er1
27627   cat conftest.err >&5
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); } &&
27630          { ac_try='test -z "$ac_c_werror_flag"
27631                          || test ! -s conftest.err'
27632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633   (eval $ac_try) 2>&5
27634   ac_status=$?
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); }; } &&
27637          { ac_try='test -s conftest.$ac_objext'
27638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639   (eval $ac_try) 2>&5
27640   ac_status=$?
27641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642   (exit $ac_status); }; }; then
27643   ac_cv_type_u_int64_t=yes
27644 else
27645   echo "$as_me: failed program was:" >&5
27646 sed 's/^/| /' conftest.$ac_ext >&5
27647
27648 ac_cv_type_u_int64_t=no
27649 fi
27650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27651 fi
27652 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27653 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27654 if test $ac_cv_type_u_int64_t = yes; then
27655
27656 cat >>confdefs.h <<_ACEOF
27657 #define HAVE_U_INT64_T 1
27658 _ACEOF
27659
27660
27661 else
27662   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27663 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27664    { (exit 1); exit 1; }; }
27665 fi
27666
27667 fi
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27679 do
27680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27681 echo "$as_me:$LINENO: checking for $ac_func" >&5
27682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27683 if eval "test \"\${$as_ac_var+set}\" = set"; then
27684   echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686   cat >conftest.$ac_ext <<_ACEOF
27687 /* confdefs.h.  */
27688 _ACEOF
27689 cat confdefs.h >>conftest.$ac_ext
27690 cat >>conftest.$ac_ext <<_ACEOF
27691 /* end confdefs.h.  */
27692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27694 #define $ac_func innocuous_$ac_func
27695
27696 /* System header to define __stub macros and hopefully few prototypes,
27697     which can conflict with char $ac_func (); below.
27698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27699     <limits.h> exists even on freestanding compilers.  */
27700
27701 #ifdef __STDC__
27702 # include <limits.h>
27703 #else
27704 # include <assert.h>
27705 #endif
27706
27707 #undef $ac_func
27708
27709 /* Override any gcc2 internal prototype to avoid an error.  */
27710 #ifdef __cplusplus
27711 extern "C"
27712 {
27713 #endif
27714 /* We use char because int might match the return type of a gcc2
27715    builtin and then its argument prototype would still apply.  */
27716 char $ac_func ();
27717 /* The GNU C library defines this for functions which it implements
27718     to always fail with ENOSYS.  Some functions are actually named
27719     something starting with __ and the normal name is an alias.  */
27720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27721 choke me
27722 #else
27723 char (*f) () = $ac_func;
27724 #endif
27725 #ifdef __cplusplus
27726 }
27727 #endif
27728
27729 int
27730 main ()
27731 {
27732 return f != $ac_func;
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext conftest$ac_exeext
27738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27739   (eval $ac_link) 2>conftest.er1
27740   ac_status=$?
27741   grep -v '^ *+' conftest.er1 >conftest.err
27742   rm -f conftest.er1
27743   cat conftest.err >&5
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); } &&
27746          { ac_try='test -z "$ac_c_werror_flag"
27747                          || test ! -s conftest.err'
27748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749   (eval $ac_try) 2>&5
27750   ac_status=$?
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); }; } &&
27753          { ac_try='test -s conftest$ac_exeext'
27754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755   (eval $ac_try) 2>&5
27756   ac_status=$?
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); }; }; then
27759   eval "$as_ac_var=yes"
27760 else
27761   echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764 eval "$as_ac_var=no"
27765 fi
27766 rm -f conftest.err conftest.$ac_objext \
27767       conftest$ac_exeext conftest.$ac_ext
27768 fi
27769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27771 if test `eval echo '${'$as_ac_var'}'` = yes; then
27772   cat >>confdefs.h <<_ACEOF
27773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27774 _ACEOF
27775
27776 fi
27777 done
27778
27779
27780
27781
27782
27783
27784
27785 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27786 do
27787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27788 echo "$as_me:$LINENO: checking for $ac_func" >&5
27789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27790 if eval "test \"\${$as_ac_var+set}\" = set"; then
27791   echo $ECHO_N "(cached) $ECHO_C" >&6
27792 else
27793   cat >conftest.$ac_ext <<_ACEOF
27794 /* confdefs.h.  */
27795 _ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h.  */
27799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27801 #define $ac_func innocuous_$ac_func
27802
27803 /* System header to define __stub macros and hopefully few prototypes,
27804     which can conflict with char $ac_func (); below.
27805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27806     <limits.h> exists even on freestanding compilers.  */
27807
27808 #ifdef __STDC__
27809 # include <limits.h>
27810 #else
27811 # include <assert.h>
27812 #endif
27813
27814 #undef $ac_func
27815
27816 /* Override any gcc2 internal prototype to avoid an error.  */
27817 #ifdef __cplusplus
27818 extern "C"
27819 {
27820 #endif
27821 /* We use char because int might match the return type of a gcc2
27822    builtin and then its argument prototype would still apply.  */
27823 char $ac_func ();
27824 /* The GNU C library defines this for functions which it implements
27825     to always fail with ENOSYS.  Some functions are actually named
27826     something starting with __ and the normal name is an alias.  */
27827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27828 choke me
27829 #else
27830 char (*f) () = $ac_func;
27831 #endif
27832 #ifdef __cplusplus
27833 }
27834 #endif
27835
27836 int
27837 main ()
27838 {
27839 return f != $ac_func;
27840   ;
27841   return 0;
27842 }
27843 _ACEOF
27844 rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846   (eval $ac_link) 2>conftest.er1
27847   ac_status=$?
27848   grep -v '^ *+' conftest.er1 >conftest.err
27849   rm -f conftest.er1
27850   cat conftest.err >&5
27851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } &&
27853          { ac_try='test -z "$ac_c_werror_flag"
27854                          || test ! -s conftest.err'
27855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856   (eval $ac_try) 2>&5
27857   ac_status=$?
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); }; } &&
27860          { ac_try='test -s conftest$ac_exeext'
27861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862   (eval $ac_try) 2>&5
27863   ac_status=$?
27864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865   (exit $ac_status); }; }; then
27866   eval "$as_ac_var=yes"
27867 else
27868   echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27870
27871 eval "$as_ac_var=no"
27872 fi
27873 rm -f conftest.err conftest.$ac_objext \
27874       conftest$ac_exeext conftest.$ac_ext
27875 fi
27876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27878 if test `eval echo '${'$as_ac_var'}'` = yes; then
27879   cat >>confdefs.h <<_ACEOF
27880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27881 _ACEOF
27882
27883 fi
27884 done
27885
27886
27887
27888
27889
27890
27891
27892
27893 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27894 do
27895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27896 echo "$as_me:$LINENO: checking for $ac_func" >&5
27897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27898 if eval "test \"\${$as_ac_var+set}\" = set"; then
27899   echo $ECHO_N "(cached) $ECHO_C" >&6
27900 else
27901   cat >conftest.$ac_ext <<_ACEOF
27902 /* confdefs.h.  */
27903 _ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h.  */
27907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27909 #define $ac_func innocuous_$ac_func
27910
27911 /* System header to define __stub macros and hopefully few prototypes,
27912     which can conflict with char $ac_func (); below.
27913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27914     <limits.h> exists even on freestanding compilers.  */
27915
27916 #ifdef __STDC__
27917 # include <limits.h>
27918 #else
27919 # include <assert.h>
27920 #endif
27921
27922 #undef $ac_func
27923
27924 /* Override any gcc2 internal prototype to avoid an error.  */
27925 #ifdef __cplusplus
27926 extern "C"
27927 {
27928 #endif
27929 /* We use char because int might match the return type of a gcc2
27930    builtin and then its argument prototype would still apply.  */
27931 char $ac_func ();
27932 /* The GNU C library defines this for functions which it implements
27933     to always fail with ENOSYS.  Some functions are actually named
27934     something starting with __ and the normal name is an alias.  */
27935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27936 choke me
27937 #else
27938 char (*f) () = $ac_func;
27939 #endif
27940 #ifdef __cplusplus
27941 }
27942 #endif
27943
27944 int
27945 main ()
27946 {
27947 return f != $ac_func;
27948   ;
27949   return 0;
27950 }
27951 _ACEOF
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27954   (eval $ac_link) 2>conftest.er1
27955   ac_status=$?
27956   grep -v '^ *+' conftest.er1 >conftest.err
27957   rm -f conftest.er1
27958   cat conftest.err >&5
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); } &&
27961          { ac_try='test -z "$ac_c_werror_flag"
27962                          || test ! -s conftest.err'
27963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964   (eval $ac_try) 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; } &&
27968          { ac_try='test -s conftest$ac_exeext'
27969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970   (eval $ac_try) 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; }; then
27974   eval "$as_ac_var=yes"
27975 else
27976   echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979 eval "$as_ac_var=no"
27980 fi
27981 rm -f conftest.err conftest.$ac_objext \
27982       conftest$ac_exeext conftest.$ac_ext
27983 fi
27984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27986 if test `eval echo '${'$as_ac_var'}'` = yes; then
27987   cat >>confdefs.h <<_ACEOF
27988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27989 _ACEOF
27990
27991 fi
27992 done
27993
27994
27995
27996
27997
27998 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
27999 do
28000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28001 echo "$as_me:$LINENO: checking for $ac_func" >&5
28002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28003 if eval "test \"\${$as_ac_var+set}\" = set"; then
28004   echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006   cat >conftest.$ac_ext <<_ACEOF
28007 /* confdefs.h.  */
28008 _ACEOF
28009 cat confdefs.h >>conftest.$ac_ext
28010 cat >>conftest.$ac_ext <<_ACEOF
28011 /* end confdefs.h.  */
28012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28014 #define $ac_func innocuous_$ac_func
28015
28016 /* System header to define __stub macros and hopefully few prototypes,
28017     which can conflict with char $ac_func (); below.
28018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28019     <limits.h> exists even on freestanding compilers.  */
28020
28021 #ifdef __STDC__
28022 # include <limits.h>
28023 #else
28024 # include <assert.h>
28025 #endif
28026
28027 #undef $ac_func
28028
28029 /* Override any gcc2 internal prototype to avoid an error.  */
28030 #ifdef __cplusplus
28031 extern "C"
28032 {
28033 #endif
28034 /* We use char because int might match the return type of a gcc2
28035    builtin and then its argument prototype would still apply.  */
28036 char $ac_func ();
28037 /* The GNU C library defines this for functions which it implements
28038     to always fail with ENOSYS.  Some functions are actually named
28039     something starting with __ and the normal name is an alias.  */
28040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28041 choke me
28042 #else
28043 char (*f) () = $ac_func;
28044 #endif
28045 #ifdef __cplusplus
28046 }
28047 #endif
28048
28049 int
28050 main ()
28051 {
28052 return f != $ac_func;
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059   (eval $ac_link) 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag"
28067                          || test ! -s conftest.err'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; } &&
28073          { ac_try='test -s conftest$ac_exeext'
28074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075   (eval $ac_try) 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; }; then
28079   eval "$as_ac_var=yes"
28080 else
28081   echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28083
28084 eval "$as_ac_var=no"
28085 fi
28086 rm -f conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 fi
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28091 if test `eval echo '${'$as_ac_var'}'` = yes; then
28092   cat >>confdefs.h <<_ACEOF
28093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28094 _ACEOF
28095
28096 fi
28097 done
28098
28099 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28100 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28101 if test "${llvm_cv_c_printf_a+set}" = set; then
28102   echo $ECHO_N "(cached) $ECHO_C" >&6
28103 else
28104   ac_ext=c
28105 ac_cpp='$CPP $CPPFLAGS'
28106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28109
28110  if test "$cross_compiling" = yes; then
28111   llvmac_cv_c_printf_a=no
28112 else
28113   cat >conftest.$ac_ext <<_ACEOF
28114
28115   /* confdefs.h.  */
28116 _ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h.  */
28120
28121 #include <stdio.h>
28122 #include <stdlib.h>
28123
28124 int
28125 main ()
28126 {
28127
28128 volatile double A, B;
28129 char Buffer[100];
28130 A = 1;
28131 A /= 10.0;
28132 sprintf(Buffer, "%a", A);
28133 B = atof(Buffer);
28134 if (A != B)
28135   return (1);
28136 if (A != 0x1.999999999999ap-4)
28137   return (1);
28138 return (0);
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 rm -f conftest$ac_exeext
28144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28145   (eval $ac_link) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150   (eval $ac_try) 2>&5
28151   ac_status=$?
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); }; }; then
28154   llvm_cv_c_printf_a=yes
28155 else
28156   echo "$as_me: program exited with status $ac_status" >&5
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28159
28160 ( exit $ac_status )
28161 llvmac_cv_c_printf_a=no
28162 fi
28163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28164 fi
28165  ac_ext=c
28166 ac_cpp='$CPP $CPPFLAGS'
28167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28170
28171 fi
28172 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28173 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28174  if test "$llvm_cv_c_printf_a" = "yes"; then
28175
28176 cat >>confdefs.h <<\_ACEOF
28177 #define HAVE_PRINTF_A 1
28178 _ACEOF
28179
28180  fi
28181
28182 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28183 # for constant arguments.  Useless!
28184 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28185 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28186 if test "${ac_cv_working_alloca_h+set}" = set; then
28187   echo $ECHO_N "(cached) $ECHO_C" >&6
28188 else
28189   cat >conftest.$ac_ext <<_ACEOF
28190 /* confdefs.h.  */
28191 _ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h.  */
28195 #include <alloca.h>
28196 int
28197 main ()
28198 {
28199 char *p = (char *) alloca (2 * sizeof (int));
28200   ;
28201   return 0;
28202 }
28203 _ACEOF
28204 rm -f conftest.$ac_objext conftest$ac_exeext
28205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28206   (eval $ac_link) 2>conftest.er1
28207   ac_status=$?
28208   grep -v '^ *+' conftest.er1 >conftest.err
28209   rm -f conftest.er1
28210   cat conftest.err >&5
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); } &&
28213          { ac_try='test -z "$ac_c_werror_flag"
28214                          || test ! -s conftest.err'
28215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216   (eval $ac_try) 2>&5
28217   ac_status=$?
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); }; } &&
28220          { ac_try='test -s conftest$ac_exeext'
28221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222   (eval $ac_try) 2>&5
28223   ac_status=$?
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); }; }; then
28226   ac_cv_working_alloca_h=yes
28227 else
28228   echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28230
28231 ac_cv_working_alloca_h=no
28232 fi
28233 rm -f conftest.err conftest.$ac_objext \
28234       conftest$ac_exeext conftest.$ac_ext
28235 fi
28236 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28237 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28238 if test $ac_cv_working_alloca_h = yes; then
28239
28240 cat >>confdefs.h <<\_ACEOF
28241 #define HAVE_ALLOCA_H 1
28242 _ACEOF
28243
28244 fi
28245
28246 echo "$as_me:$LINENO: checking for alloca" >&5
28247 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28248 if test "${ac_cv_func_alloca_works+set}" = set; then
28249   echo $ECHO_N "(cached) $ECHO_C" >&6
28250 else
28251   cat >conftest.$ac_ext <<_ACEOF
28252 /* confdefs.h.  */
28253 _ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h.  */
28257 #ifdef __GNUC__
28258 # define alloca __builtin_alloca
28259 #else
28260 # ifdef _MSC_VER
28261 #  include <malloc.h>
28262 #  define alloca _alloca
28263 # else
28264 #  if HAVE_ALLOCA_H
28265 #   include <alloca.h>
28266 #  else
28267 #   ifdef _AIX
28268  #pragma alloca
28269 #   else
28270 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28271 char *alloca ();
28272 #    endif
28273 #   endif
28274 #  endif
28275 # endif
28276 #endif
28277
28278 int
28279 main ()
28280 {
28281 char *p = (char *) alloca (1);
28282   ;
28283   return 0;
28284 }
28285 _ACEOF
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28288   (eval $ac_link) 2>conftest.er1
28289   ac_status=$?
28290   grep -v '^ *+' conftest.er1 >conftest.err
28291   rm -f conftest.er1
28292   cat conftest.err >&5
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); } &&
28295          { ac_try='test -z "$ac_c_werror_flag"
28296                          || test ! -s conftest.err'
28297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298   (eval $ac_try) 2>&5
28299   ac_status=$?
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); }; } &&
28302          { ac_try='test -s conftest$ac_exeext'
28303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304   (eval $ac_try) 2>&5
28305   ac_status=$?
28306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307   (exit $ac_status); }; }; then
28308   ac_cv_func_alloca_works=yes
28309 else
28310   echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28312
28313 ac_cv_func_alloca_works=no
28314 fi
28315 rm -f conftest.err conftest.$ac_objext \
28316       conftest$ac_exeext conftest.$ac_ext
28317 fi
28318 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28319 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28320
28321 if test $ac_cv_func_alloca_works = yes; then
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_ALLOCA 1
28325 _ACEOF
28326
28327 else
28328   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28329 # that cause trouble.  Some versions do not even contain alloca or
28330 # contain a buggy version.  If you still want to use their alloca,
28331 # use ar to extract alloca.o from them instead of compiling alloca.c.
28332
28333 ALLOCA=alloca.$ac_objext
28334
28335 cat >>confdefs.h <<\_ACEOF
28336 #define C_ALLOCA 1
28337 _ACEOF
28338
28339
28340 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28341 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28342 if test "${ac_cv_os_cray+set}" = set; then
28343   echo $ECHO_N "(cached) $ECHO_C" >&6
28344 else
28345   cat >conftest.$ac_ext <<_ACEOF
28346 /* confdefs.h.  */
28347 _ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h.  */
28351 #if defined(CRAY) && ! defined(CRAY2)
28352 webecray
28353 #else
28354 wenotbecray
28355 #endif
28356
28357 _ACEOF
28358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359   $EGREP "webecray" >/dev/null 2>&1; then
28360   ac_cv_os_cray=yes
28361 else
28362   ac_cv_os_cray=no
28363 fi
28364 rm -f conftest*
28365
28366 fi
28367 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28368 echo "${ECHO_T}$ac_cv_os_cray" >&6
28369 if test $ac_cv_os_cray = yes; then
28370   for ac_func in _getb67 GETB67 getb67; do
28371     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28372 echo "$as_me:$LINENO: checking for $ac_func" >&5
28373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28374 if eval "test \"\${$as_ac_var+set}\" = set"; then
28375   echo $ECHO_N "(cached) $ECHO_C" >&6
28376 else
28377   cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h.  */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h.  */
28383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28385 #define $ac_func innocuous_$ac_func
28386
28387 /* System header to define __stub macros and hopefully few prototypes,
28388     which can conflict with char $ac_func (); below.
28389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28390     <limits.h> exists even on freestanding compilers.  */
28391
28392 #ifdef __STDC__
28393 # include <limits.h>
28394 #else
28395 # include <assert.h>
28396 #endif
28397
28398 #undef $ac_func
28399
28400 /* Override any gcc2 internal prototype to avoid an error.  */
28401 #ifdef __cplusplus
28402 extern "C"
28403 {
28404 #endif
28405 /* We use char because int might match the return type of a gcc2
28406    builtin and then its argument prototype would still apply.  */
28407 char $ac_func ();
28408 /* The GNU C library defines this for functions which it implements
28409     to always fail with ENOSYS.  Some functions are actually named
28410     something starting with __ and the normal name is an alias.  */
28411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28412 choke me
28413 #else
28414 char (*f) () = $ac_func;
28415 #endif
28416 #ifdef __cplusplus
28417 }
28418 #endif
28419
28420 int
28421 main ()
28422 {
28423 return f != $ac_func;
28424   ;
28425   return 0;
28426 }
28427 _ACEOF
28428 rm -f conftest.$ac_objext conftest$ac_exeext
28429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28430   (eval $ac_link) 2>conftest.er1
28431   ac_status=$?
28432   grep -v '^ *+' conftest.er1 >conftest.err
28433   rm -f conftest.er1
28434   cat conftest.err >&5
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); } &&
28437          { ac_try='test -z "$ac_c_werror_flag"
28438                          || test ! -s conftest.err'
28439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440   (eval $ac_try) 2>&5
28441   ac_status=$?
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); }; } &&
28444          { ac_try='test -s conftest$ac_exeext'
28445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446   (eval $ac_try) 2>&5
28447   ac_status=$?
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); }; }; then
28450   eval "$as_ac_var=yes"
28451 else
28452   echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28454
28455 eval "$as_ac_var=no"
28456 fi
28457 rm -f conftest.err conftest.$ac_objext \
28458       conftest$ac_exeext conftest.$ac_ext
28459 fi
28460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28462 if test `eval echo '${'$as_ac_var'}'` = yes; then
28463
28464 cat >>confdefs.h <<_ACEOF
28465 #define CRAY_STACKSEG_END $ac_func
28466 _ACEOF
28467
28468     break
28469 fi
28470
28471   done
28472 fi
28473
28474 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28475 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28476 if test "${ac_cv_c_stack_direction+set}" = set; then
28477   echo $ECHO_N "(cached) $ECHO_C" >&6
28478 else
28479   if test "$cross_compiling" = yes; then
28480   ac_cv_c_stack_direction=0
28481 else
28482   cat >conftest.$ac_ext <<_ACEOF
28483 /* confdefs.h.  */
28484 _ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h.  */
28488 int
28489 find_stack_direction ()
28490 {
28491   static char *addr = 0;
28492   auto char dummy;
28493   if (addr == 0)
28494     {
28495       addr = &dummy;
28496       return find_stack_direction ();
28497     }
28498   else
28499     return (&dummy > addr) ? 1 : -1;
28500 }
28501
28502 int
28503 main ()
28504 {
28505   exit (find_stack_direction () < 0);
28506 }
28507 _ACEOF
28508 rm -f conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510   (eval $ac_link) 2>&5
28511   ac_status=$?
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515   (eval $ac_try) 2>&5
28516   ac_status=$?
28517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518   (exit $ac_status); }; }; then
28519   ac_cv_c_stack_direction=1
28520 else
28521   echo "$as_me: program exited with status $ac_status" >&5
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525 ( exit $ac_status )
28526 ac_cv_c_stack_direction=-1
28527 fi
28528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28529 fi
28530 fi
28531 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28532 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28533
28534 cat >>confdefs.h <<_ACEOF
28535 #define STACK_DIRECTION $ac_cv_c_stack_direction
28536 _ACEOF
28537
28538
28539 fi
28540
28541
28542 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28543 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28544 if test "${ac_cv_func_rand48+set}" = set; then
28545   echo $ECHO_N "(cached) $ECHO_C" >&6
28546 else
28547   ac_ext=cc
28548 ac_cpp='$CXXCPP $CPPFLAGS'
28549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28552
28553    cat >conftest.$ac_ext <<_ACEOF
28554 /* confdefs.h.  */
28555 _ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h.  */
28559 #include <stdlib.h>
28560 int
28561 main ()
28562 {
28563 srand48(0);lrand48();drand48();
28564   ;
28565   return 0;
28566 }
28567 _ACEOF
28568 rm -f conftest.$ac_objext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28570   (eval $ac_compile) 2>conftest.er1
28571   ac_status=$?
28572   grep -v '^ *+' conftest.er1 >conftest.err
28573   rm -f conftest.er1
28574   cat conftest.err >&5
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } &&
28577          { ac_try='test -z "$ac_cxx_werror_flag"
28578                          || test ! -s conftest.err'
28579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580   (eval $ac_try) 2>&5
28581   ac_status=$?
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); }; } &&
28584          { ac_try='test -s conftest.$ac_objext'
28585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586   (eval $ac_try) 2>&5
28587   ac_status=$?
28588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589   (exit $ac_status); }; }; then
28590   ac_cv_func_rand48=yes
28591 else
28592   echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28594
28595 ac_cv_func_rand48=no
28596 fi
28597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28598   ac_ext=c
28599 ac_cpp='$CPP $CPPFLAGS'
28600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28603
28604 fi
28605 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28606 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28607
28608 if test "$ac_cv_func_rand48" = "yes" ; then
28609
28610 cat >>confdefs.h <<\_ACEOF
28611 #define HAVE_RAND48 1
28612 _ACEOF
28613
28614 fi
28615
28616
28617 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28618 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28619 if test "${ac_cv_cxx_namespaces+set}" = set; then
28620   echo $ECHO_N "(cached) $ECHO_C" >&6
28621 else
28622   ac_ext=cc
28623 ac_cpp='$CXXCPP $CPPFLAGS'
28624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28627
28628  cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h.  */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h.  */
28634 namespace Outer { namespace Inner { int i = 0; }}
28635 int
28636 main ()
28637 {
28638 using namespace Outer::Inner; return i;
28639   ;
28640   return 0;
28641 }
28642 _ACEOF
28643 rm -f conftest.$ac_objext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28645   (eval $ac_compile) 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } &&
28652          { ac_try='test -z "$ac_cxx_werror_flag"
28653                          || test ! -s conftest.err'
28654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655   (eval $ac_try) 2>&5
28656   ac_status=$?
28657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658   (exit $ac_status); }; } &&
28659          { ac_try='test -s conftest.$ac_objext'
28660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661   (eval $ac_try) 2>&5
28662   ac_status=$?
28663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664   (exit $ac_status); }; }; then
28665   ac_cv_cxx_namespaces=yes
28666 else
28667   echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670 ac_cv_cxx_namespaces=no
28671 fi
28672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28673  ac_ext=c
28674 ac_cpp='$CPP $CPPFLAGS'
28675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28678
28679
28680 fi
28681 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28682 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28683 if test "$ac_cv_cxx_namespaces" = yes; then
28684
28685 cat >>confdefs.h <<\_ACEOF
28686 #define HAVE_NAMESPACES
28687 _ACEOF
28688
28689 fi
28690
28691 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28692 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28693 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28694   echo $ECHO_N "(cached) $ECHO_C" >&6
28695 else
28696
28697   ac_ext=cc
28698 ac_cpp='$CXXCPP $CPPFLAGS'
28699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28702
28703   cat >conftest.$ac_ext <<_ACEOF
28704 /* confdefs.h.  */
28705 _ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h.  */
28709 #include <ext/hash_map>
28710 #ifdef HAVE_NAMESPACES
28711 using namespace std;
28712 #endif
28713 int
28714 main ()
28715 {
28716 hash_map<int, int> t;
28717   ;
28718   return 0;
28719 }
28720 _ACEOF
28721 rm -f conftest.$ac_objext
28722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28723   (eval $ac_compile) 2>conftest.er1
28724   ac_status=$?
28725   grep -v '^ *+' conftest.er1 >conftest.err
28726   rm -f conftest.er1
28727   cat conftest.err >&5
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); } &&
28730          { ac_try='test -z "$ac_cxx_werror_flag"
28731                          || test ! -s conftest.err'
28732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733   (eval $ac_try) 2>&5
28734   ac_status=$?
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); }; } &&
28737          { ac_try='test -s conftest.$ac_objext'
28738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739   (eval $ac_try) 2>&5
28740   ac_status=$?
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); }; }; then
28743   ac_cv_cxx_have_std_ext_hash_map=yes
28744 else
28745   echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28747
28748 ac_cv_cxx_have_std_ext_hash_map=no
28749 fi
28750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28751   ac_ext=c
28752 ac_cpp='$CPP $CPPFLAGS'
28753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28756
28757 fi
28758 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28759 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28760  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28761  then
28762
28763 cat >>confdefs.h <<\_ACEOF
28764 #define HAVE_STD_EXT_HASH_MAP 1
28765 _ACEOF
28766
28767  else
28768
28769 cat >>confdefs.h <<\_ACEOF
28770 #define HAVE_STD_EXT_HASH_MAP 0
28771 _ACEOF
28772
28773  fi
28774
28775  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28776 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28777 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28778   echo $ECHO_N "(cached) $ECHO_C" >&6
28779 else
28780
28781   ac_ext=cc
28782 ac_cpp='$CXXCPP $CPPFLAGS'
28783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28786
28787   cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h.  */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h.  */
28793 #include <ext/hash_map>
28794 #ifdef HAVE_NAMESPACES
28795 using namespace __gnu_cxx;
28796 #endif
28797 int
28798 main ()
28799 {
28800 hash_map<int,int> t;
28801   ;
28802   return 0;
28803 }
28804 _ACEOF
28805 rm -f conftest.$ac_objext
28806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28807   (eval $ac_compile) 2>conftest.er1
28808   ac_status=$?
28809   grep -v '^ *+' conftest.er1 >conftest.err
28810   rm -f conftest.er1
28811   cat conftest.err >&5
28812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813   (exit $ac_status); } &&
28814          { ac_try='test -z "$ac_cxx_werror_flag"
28815                          || test ! -s conftest.err'
28816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817   (eval $ac_try) 2>&5
28818   ac_status=$?
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; } &&
28821          { ac_try='test -s conftest.$ac_objext'
28822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823   (eval $ac_try) 2>&5
28824   ac_status=$?
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); }; }; then
28827   ac_cv_cxx_have_gnu_ext_hash_map=yes
28828 else
28829   echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28831
28832 ac_cv_cxx_have_gnu_ext_hash_map=no
28833 fi
28834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28835   ac_ext=c
28836 ac_cpp='$CPP $CPPFLAGS'
28837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28840
28841 fi
28842 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28843 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28844  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28845  then
28846
28847 cat >>confdefs.h <<\_ACEOF
28848 #define HAVE_GNU_EXT_HASH_MAP 1
28849 _ACEOF
28850
28851  else
28852
28853 cat >>confdefs.h <<\_ACEOF
28854 #define HAVE_GNU_EXT_HASH_MAP 0
28855 _ACEOF
28856
28857  fi
28858
28859  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28860 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28861 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28862   echo $ECHO_N "(cached) $ECHO_C" >&6
28863 else
28864
28865   ac_ext=cc
28866 ac_cpp='$CXXCPP $CPPFLAGS'
28867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28870
28871   cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877 #include <hash_map>
28878 int
28879 main ()
28880 {
28881 hash_map<int,int> t;
28882   ;
28883   return 0;
28884 }
28885 _ACEOF
28886 rm -f conftest.$ac_objext
28887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28888   (eval $ac_compile) 2>conftest.er1
28889   ac_status=$?
28890   grep -v '^ *+' conftest.er1 >conftest.err
28891   rm -f conftest.er1
28892   cat conftest.err >&5
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } &&
28895          { ac_try='test -z "$ac_cxx_werror_flag"
28896                          || test ! -s conftest.err'
28897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898   (eval $ac_try) 2>&5
28899   ac_status=$?
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); }; } &&
28902          { ac_try='test -s conftest.$ac_objext'
28903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904   (eval $ac_try) 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); }; }; then
28908   ac_cv_cxx_have_global_hash_map=yes
28909 else
28910   echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28912
28913 ac_cv_cxx_have_global_hash_map=no
28914 fi
28915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28916   ac_ext=c
28917 ac_cpp='$CPP $CPPFLAGS'
28918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28921
28922 fi
28923 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28924 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28925  if test "$ac_cv_cxx_have_global_hash_map" = yes
28926  then
28927
28928 cat >>confdefs.h <<\_ACEOF
28929 #define HAVE_GLOBAL_HASH_MAP 1
28930 _ACEOF
28931
28932  else
28933
28934 cat >>confdefs.h <<\_ACEOF
28935 #define HAVE_GLOBAL_HASH_MAP 0
28936 _ACEOF
28937
28938  fi
28939
28940 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28941 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28942 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28943   echo $ECHO_N "(cached) $ECHO_C" >&6
28944 else
28945
28946   ac_ext=cc
28947 ac_cpp='$CXXCPP $CPPFLAGS'
28948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28951
28952   cat >conftest.$ac_ext <<_ACEOF
28953 /* confdefs.h.  */
28954 _ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h.  */
28958 #include <ext/hash_set>
28959 #ifdef HAVE_NAMESPACES
28960 using namespace std;
28961 #endif
28962 int
28963 main ()
28964 {
28965 hash_set<int> t;
28966   ;
28967   return 0;
28968 }
28969 _ACEOF
28970 rm -f conftest.$ac_objext
28971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28972   (eval $ac_compile) 2>conftest.er1
28973   ac_status=$?
28974   grep -v '^ *+' conftest.er1 >conftest.err
28975   rm -f conftest.er1
28976   cat conftest.err >&5
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); } &&
28979          { ac_try='test -z "$ac_cxx_werror_flag"
28980                          || test ! -s conftest.err'
28981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982   (eval $ac_try) 2>&5
28983   ac_status=$?
28984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985   (exit $ac_status); }; } &&
28986          { ac_try='test -s conftest.$ac_objext'
28987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988   (eval $ac_try) 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); }; }; then
28992   ac_cv_cxx_have_std_ext_hash_set=yes
28993 else
28994   echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28996
28997 ac_cv_cxx_have_std_ext_hash_set=no
28998 fi
28999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29000   ac_ext=c
29001 ac_cpp='$CPP $CPPFLAGS'
29002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29005
29006 fi
29007 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29008 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29009  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29010  then
29011
29012 cat >>confdefs.h <<\_ACEOF
29013 #define HAVE_STD_EXT_HASH_SET 1
29014 _ACEOF
29015
29016  else
29017
29018 cat >>confdefs.h <<\_ACEOF
29019 #define HAVE_STD_EXT_HASH_SET 0
29020 _ACEOF
29021
29022  fi
29023
29024  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29025 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29026 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29027   echo $ECHO_N "(cached) $ECHO_C" >&6
29028 else
29029
29030   ac_ext=cc
29031 ac_cpp='$CXXCPP $CPPFLAGS'
29032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29035
29036   cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h.  */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h.  */
29042 #include <ext/hash_set>
29043 #ifdef HAVE_NAMESPACES
29044 using namespace __gnu_cxx;
29045 #endif
29046 int
29047 main ()
29048 {
29049 hash_set<int> t;
29050   ;
29051   return 0;
29052 }
29053 _ACEOF
29054 rm -f conftest.$ac_objext
29055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29056   (eval $ac_compile) 2>conftest.er1
29057   ac_status=$?
29058   grep -v '^ *+' conftest.er1 >conftest.err
29059   rm -f conftest.er1
29060   cat conftest.err >&5
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); } &&
29063          { ac_try='test -z "$ac_cxx_werror_flag"
29064                          || test ! -s conftest.err'
29065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066   (eval $ac_try) 2>&5
29067   ac_status=$?
29068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069   (exit $ac_status); }; } &&
29070          { ac_try='test -s conftest.$ac_objext'
29071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072   (eval $ac_try) 2>&5
29073   ac_status=$?
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); }; }; then
29076   ac_cv_cxx_have_gnu_ext_hash_set=yes
29077 else
29078   echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29080
29081 ac_cv_cxx_have_gnu_ext_hash_set=no
29082 fi
29083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29084   ac_ext=c
29085 ac_cpp='$CPP $CPPFLAGS'
29086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29089
29090 fi
29091 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29092 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29093  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29094  then
29095
29096 cat >>confdefs.h <<\_ACEOF
29097 #define HAVE_GNU_EXT_HASH_SET 1
29098 _ACEOF
29099
29100  else
29101
29102 cat >>confdefs.h <<\_ACEOF
29103 #define HAVE_GNU_EXT_HASH_SET 0
29104 _ACEOF
29105
29106  fi
29107
29108  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29109 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29110 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29111   echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113
29114   ac_ext=cc
29115 ac_cpp='$CXXCPP $CPPFLAGS'
29116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29119
29120   cat >conftest.$ac_ext <<_ACEOF
29121 /* confdefs.h.  */
29122 _ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h.  */
29126 #include <hash_set>
29127 int
29128 main ()
29129 {
29130 hash_set<int> t; return 0;
29131   ;
29132   return 0;
29133 }
29134 _ACEOF
29135 rm -f conftest.$ac_objext
29136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29137   (eval $ac_compile) 2>conftest.er1
29138   ac_status=$?
29139   grep -v '^ *+' conftest.er1 >conftest.err
29140   rm -f conftest.er1
29141   cat conftest.err >&5
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); } &&
29144          { ac_try='test -z "$ac_cxx_werror_flag"
29145                          || test ! -s conftest.err'
29146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29147   (eval $ac_try) 2>&5
29148   ac_status=$?
29149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150   (exit $ac_status); }; } &&
29151          { ac_try='test -s conftest.$ac_objext'
29152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153   (eval $ac_try) 2>&5
29154   ac_status=$?
29155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156   (exit $ac_status); }; }; then
29157   ac_cv_cxx_have_global_hash_set=yes
29158 else
29159   echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29161
29162 ac_cv_cxx_have_global_hash_set=no
29163 fi
29164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29165   ac_ext=c
29166 ac_cpp='$CPP $CPPFLAGS'
29167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29170
29171 fi
29172 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29173 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29174  if test "$ac_cv_cxx_have_global_hash_set" = yes
29175  then
29176
29177 cat >>confdefs.h <<\_ACEOF
29178 #define HAVE_GLOBAL_HASH_SET 1
29179 _ACEOF
29180
29181  else
29182
29183 cat >>confdefs.h <<\_ACEOF
29184 #define HAVE_GLOBAL_HASH_SET 0
29185 _ACEOF
29186
29187  fi
29188
29189 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29190 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29191 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194
29195   ac_ext=cc
29196 ac_cpp='$CXXCPP $CPPFLAGS'
29197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29200
29201   cat >conftest.$ac_ext <<_ACEOF
29202 /* confdefs.h.  */
29203 _ACEOF
29204 cat confdefs.h >>conftest.$ac_ext
29205 cat >>conftest.$ac_ext <<_ACEOF
29206 /* end confdefs.h.  */
29207 #include <iterator>
29208 #ifdef HAVE_NAMESPACES
29209 using namespace std;
29210 #endif
29211 int
29212 main ()
29213 {
29214 iterator<int,int,int> t; return 0;
29215   ;
29216   return 0;
29217 }
29218 _ACEOF
29219 rm -f conftest.$ac_objext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29221   (eval $ac_compile) 2>conftest.er1
29222   ac_status=$?
29223   grep -v '^ *+' conftest.er1 >conftest.err
29224   rm -f conftest.er1
29225   cat conftest.err >&5
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); } &&
29228          { ac_try='test -z "$ac_cxx_werror_flag"
29229                          || test ! -s conftest.err'
29230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231   (eval $ac_try) 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; } &&
29235          { ac_try='test -s conftest.$ac_objext'
29236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237   (eval $ac_try) 2>&5
29238   ac_status=$?
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); }; }; then
29241   ac_cv_cxx_have_std_iterator=yes
29242 else
29243   echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29245
29246 ac_cv_cxx_have_std_iterator=no
29247 fi
29248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29249   ac_ext=c
29250 ac_cpp='$CPP $CPPFLAGS'
29251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29254
29255
29256 fi
29257 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29258 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29259 if test "$ac_cv_cxx_have_std_iterator" = yes
29260 then
29261
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_STD_ITERATOR 1
29264 _ACEOF
29265
29266 else
29267
29268 cat >>confdefs.h <<\_ACEOF
29269 #define HAVE_STD_ITERATOR 0
29270 _ACEOF
29271
29272 fi
29273
29274 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29275 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29276 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29277   echo $ECHO_N "(cached) $ECHO_C" >&6
29278 else
29279
29280   ac_ext=cc
29281 ac_cpp='$CXXCPP $CPPFLAGS'
29282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29285
29286   cat >conftest.$ac_ext <<_ACEOF
29287 /* confdefs.h.  */
29288 _ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h.  */
29292 #include <iterator>
29293 #ifdef HAVE_NAMESPACES
29294 using namespace std;
29295 #endif
29296 int
29297 main ()
29298 {
29299 bidirectional_iterator<int,int> t; return 0;
29300   ;
29301   return 0;
29302 }
29303 _ACEOF
29304 rm -f conftest.$ac_objext
29305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29306   (eval $ac_compile) 2>conftest.er1
29307   ac_status=$?
29308   grep -v '^ *+' conftest.er1 >conftest.err
29309   rm -f conftest.er1
29310   cat conftest.err >&5
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); } &&
29313          { ac_try='test -z "$ac_cxx_werror_flag"
29314                          || test ! -s conftest.err'
29315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316   (eval $ac_try) 2>&5
29317   ac_status=$?
29318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319   (exit $ac_status); }; } &&
29320          { ac_try='test -s conftest.$ac_objext'
29321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322   (eval $ac_try) 2>&5
29323   ac_status=$?
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); }; }; then
29326   ac_cv_cxx_have_bi_iterator=yes
29327 else
29328   echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29330
29331 ac_cv_cxx_have_bi_iterator=no
29332 fi
29333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29334   ac_ext=c
29335 ac_cpp='$CPP $CPPFLAGS'
29336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29339
29340
29341 fi
29342 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29343 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29344 if test "$ac_cv_cxx_have_bi_iterator" = yes
29345 then
29346
29347 cat >>confdefs.h <<\_ACEOF
29348 #define HAVE_BI_ITERATOR 1
29349 _ACEOF
29350
29351 else
29352
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_BI_ITERATOR 0
29355 _ACEOF
29356
29357 fi
29358
29359 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29360 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29361 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29362   echo $ECHO_N "(cached) $ECHO_C" >&6
29363 else
29364
29365   ac_ext=cc
29366 ac_cpp='$CXXCPP $CPPFLAGS'
29367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29370
29371   cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377 #include <iterator>
29378 #ifdef HAVE_NAMESPACES
29379 using namespace std;
29380 #endif
29381 int
29382 main ()
29383 {
29384 forward_iterator<int,int> t; return 0;
29385   ;
29386   return 0;
29387 }
29388 _ACEOF
29389 rm -f conftest.$ac_objext
29390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29391   (eval $ac_compile) 2>conftest.er1
29392   ac_status=$?
29393   grep -v '^ *+' conftest.er1 >conftest.err
29394   rm -f conftest.er1
29395   cat conftest.err >&5
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); } &&
29398          { ac_try='test -z "$ac_cxx_werror_flag"
29399                          || test ! -s conftest.err'
29400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401   (eval $ac_try) 2>&5
29402   ac_status=$?
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); }; } &&
29405          { ac_try='test -s conftest.$ac_objext'
29406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407   (eval $ac_try) 2>&5
29408   ac_status=$?
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); }; }; then
29411   ac_cv_cxx_have_fwd_iterator=yes
29412 else
29413   echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416 ac_cv_cxx_have_fwd_iterator=no
29417 fi
29418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29419   ac_ext=c
29420 ac_cpp='$CPP $CPPFLAGS'
29421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29424
29425
29426 fi
29427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29428 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29429 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29430 then
29431
29432 cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_FWD_ITERATOR 1
29434 _ACEOF
29435
29436 else
29437
29438 cat >>confdefs.h <<\_ACEOF
29439 #define HAVE_FWD_ITERATOR 0
29440 _ACEOF
29441
29442 fi
29443
29444
29445 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29446 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29447 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29448   echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450   ac_ext=cc
29451 ac_cpp='$CXXCPP $CPPFLAGS'
29452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29455
29456    cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462 #include <math.h>
29463 int
29464 main ()
29465 {
29466 float f; isnan(f);
29467   ;
29468   return 0;
29469 }
29470 _ACEOF
29471 rm -f conftest.$ac_objext
29472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29473   (eval $ac_compile) 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } &&
29480          { ac_try='test -z "$ac_cxx_werror_flag"
29481                          || test ! -s conftest.err'
29482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483   (eval $ac_try) 2>&5
29484   ac_status=$?
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); }; } &&
29487          { ac_try='test -s conftest.$ac_objext'
29488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489   (eval $ac_try) 2>&5
29490   ac_status=$?
29491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492   (exit $ac_status); }; }; then
29493   ac_cv_func_isnan_in_math_h=yes
29494 else
29495   echo "$as_me: failed program was:" >&5
29496 sed 's/^/| /' conftest.$ac_ext >&5
29497
29498 ac_cv_func_isnan_in_math_h=no
29499 fi
29500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29501   ac_ext=c
29502 ac_cpp='$CPP $CPPFLAGS'
29503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29506
29507 fi
29508 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29509 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29510
29511
29512 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29513
29514 cat >>confdefs.h <<\_ACEOF
29515 #define HAVE_ISNAN_IN_MATH_H 1
29516 _ACEOF
29517
29518 fi
29519
29520 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29521 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29522 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29523   echo $ECHO_N "(cached) $ECHO_C" >&6
29524 else
29525   ac_ext=cc
29526 ac_cpp='$CXXCPP $CPPFLAGS'
29527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29530
29531    cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537 #include <cmath>
29538 int
29539 main ()
29540 {
29541 float f; isnan(f);
29542   ;
29543   return 0;
29544 }
29545 _ACEOF
29546 rm -f conftest.$ac_objext
29547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29548   (eval $ac_compile) 2>conftest.er1
29549   ac_status=$?
29550   grep -v '^ *+' conftest.er1 >conftest.err
29551   rm -f conftest.er1
29552   cat conftest.err >&5
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } &&
29555          { ac_try='test -z "$ac_cxx_werror_flag"
29556                          || test ! -s conftest.err'
29557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558   (eval $ac_try) 2>&5
29559   ac_status=$?
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); }; } &&
29562          { ac_try='test -s conftest.$ac_objext'
29563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564   (eval $ac_try) 2>&5
29565   ac_status=$?
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); }; }; then
29568   ac_cv_func_isnan_in_cmath=yes
29569 else
29570   echo "$as_me: failed program was:" >&5
29571 sed 's/^/| /' conftest.$ac_ext >&5
29572
29573 ac_cv_func_isnan_in_cmath=no
29574 fi
29575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29576   ac_ext=c
29577 ac_cpp='$CPP $CPPFLAGS'
29578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29581
29582 fi
29583 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29584 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29585
29586 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29587
29588 cat >>confdefs.h <<\_ACEOF
29589 #define HAVE_ISNAN_IN_CMATH 1
29590 _ACEOF
29591
29592 fi
29593
29594 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29595 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29596 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599   ac_ext=cc
29600 ac_cpp='$CXXCPP $CPPFLAGS'
29601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29604
29605    cat >conftest.$ac_ext <<_ACEOF
29606 /* confdefs.h.  */
29607 _ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h.  */
29611 #include <cmath>
29612 int
29613 main ()
29614 {
29615 float f; std::isnan(f);
29616   ;
29617   return 0;
29618 }
29619 _ACEOF
29620 rm -f conftest.$ac_objext
29621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29622   (eval $ac_compile) 2>conftest.er1
29623   ac_status=$?
29624   grep -v '^ *+' conftest.er1 >conftest.err
29625   rm -f conftest.er1
29626   cat conftest.err >&5
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); } &&
29629          { ac_try='test -z "$ac_cxx_werror_flag"
29630                          || test ! -s conftest.err'
29631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632   (eval $ac_try) 2>&5
29633   ac_status=$?
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); }; } &&
29636          { ac_try='test -s conftest.$ac_objext'
29637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638   (eval $ac_try) 2>&5
29639   ac_status=$?
29640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641   (exit $ac_status); }; }; then
29642   ac_cv_func_std_isnan_in_cmath=yes
29643 else
29644   echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29646
29647 ac_cv_func_std_isnan_in_cmath=no
29648 fi
29649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29650   ac_ext=c
29651 ac_cpp='$CPP $CPPFLAGS'
29652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29655
29656 fi
29657 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29658 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29659
29660 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29661
29662 cat >>confdefs.h <<\_ACEOF
29663 #define HAVE_STD_ISNAN_IN_CMATH 1
29664 _ACEOF
29665
29666 fi
29667
29668
29669 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29670 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29671 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29672   echo $ECHO_N "(cached) $ECHO_C" >&6
29673 else
29674   ac_ext=cc
29675 ac_cpp='$CXXCPP $CPPFLAGS'
29676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29679
29680    cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h.  */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h.  */
29686 #include <math.h>
29687 int
29688 main ()
29689 {
29690 float f; isinf(f);
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29697   (eval $ac_compile) 2>conftest.er1
29698   ac_status=$?
29699   grep -v '^ *+' conftest.er1 >conftest.err
29700   rm -f conftest.er1
29701   cat conftest.err >&5
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); } &&
29704          { ac_try='test -z "$ac_cxx_werror_flag"
29705                          || test ! -s conftest.err'
29706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707   (eval $ac_try) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); }; } &&
29711          { ac_try='test -s conftest.$ac_objext'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; }; then
29717   ac_cv_func_isinf_in_math_h=yes
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 ac_cv_func_isinf_in_math_h=no
29723 fi
29724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29725   ac_ext=c
29726 ac_cpp='$CPP $CPPFLAGS'
29727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29730
29731 fi
29732 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29733 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29734
29735 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29736
29737 cat >>confdefs.h <<\_ACEOF
29738 #define HAVE_ISINF_IN_MATH_H 1
29739 _ACEOF
29740
29741 fi
29742
29743 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29744 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29745 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29746   echo $ECHO_N "(cached) $ECHO_C" >&6
29747 else
29748   ac_ext=cc
29749 ac_cpp='$CXXCPP $CPPFLAGS'
29750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29753
29754    cat >conftest.$ac_ext <<_ACEOF
29755 /* confdefs.h.  */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h.  */
29760 #include <cmath>
29761 int
29762 main ()
29763 {
29764 float f; isinf(f);
29765   ;
29766   return 0;
29767 }
29768 _ACEOF
29769 rm -f conftest.$ac_objext
29770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29771   (eval $ac_compile) 2>conftest.er1
29772   ac_status=$?
29773   grep -v '^ *+' conftest.er1 >conftest.err
29774   rm -f conftest.er1
29775   cat conftest.err >&5
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); } &&
29778          { ac_try='test -z "$ac_cxx_werror_flag"
29779                          || test ! -s conftest.err'
29780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781   (eval $ac_try) 2>&5
29782   ac_status=$?
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); }; } &&
29785          { ac_try='test -s conftest.$ac_objext'
29786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787   (eval $ac_try) 2>&5
29788   ac_status=$?
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); }; }; then
29791   ac_cv_func_isinf_in_cmath=yes
29792 else
29793   echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796 ac_cv_func_isinf_in_cmath=no
29797 fi
29798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29799   ac_ext=c
29800 ac_cpp='$CPP $CPPFLAGS'
29801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29804
29805 fi
29806 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29807 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29808
29809 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29810
29811 cat >>confdefs.h <<\_ACEOF
29812 #define HAVE_ISINF_IN_CMATH 1
29813 _ACEOF
29814
29815 fi
29816
29817 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29818 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29819 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29820   echo $ECHO_N "(cached) $ECHO_C" >&6
29821 else
29822   ac_ext=cc
29823 ac_cpp='$CXXCPP $CPPFLAGS'
29824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29827
29828    cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834 #include <cmath>
29835 int
29836 main ()
29837 {
29838 float f; std::isinf(f)}
29839   ;
29840   return 0;
29841 }
29842 _ACEOF
29843 rm -f conftest.$ac_objext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29845   (eval $ac_compile) 2>conftest.er1
29846   ac_status=$?
29847   grep -v '^ *+' conftest.er1 >conftest.err
29848   rm -f conftest.er1
29849   cat conftest.err >&5
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); } &&
29852          { ac_try='test -z "$ac_cxx_werror_flag"
29853                          || test ! -s conftest.err'
29854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855   (eval $ac_try) 2>&5
29856   ac_status=$?
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); }; } &&
29859          { ac_try='test -s conftest.$ac_objext'
29860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861   (eval $ac_try) 2>&5
29862   ac_status=$?
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); }; }; then
29865   ac_cv_func_std_isinf_in_cmath=yes
29866 else
29867   echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29869
29870 ac_cv_func_std_isinf_in_cmath=no
29871 fi
29872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29873   ac_ext=c
29874 ac_cpp='$CPP $CPPFLAGS'
29875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29878
29879 fi
29880 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29881 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29882
29883 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29884
29885 cat >>confdefs.h <<\_ACEOF
29886 #define HAVE_STD_ISINF_IN_CMATH 1
29887 _ACEOF
29888
29889 fi
29890
29891 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29892 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29893 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29894   echo $ECHO_N "(cached) $ECHO_C" >&6
29895 else
29896   ac_ext=cc
29897 ac_cpp='$CXXCPP $CPPFLAGS'
29898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29901
29902    cat >conftest.$ac_ext <<_ACEOF
29903 /* confdefs.h.  */
29904 _ACEOF
29905 cat confdefs.h >>conftest.$ac_ext
29906 cat >>conftest.$ac_ext <<_ACEOF
29907 /* end confdefs.h.  */
29908 #include <ieeefp.h>
29909 int
29910 main ()
29911 {
29912 float f; finite(f);
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29919   (eval $ac_compile) 2>conftest.er1
29920   ac_status=$?
29921   grep -v '^ *+' conftest.er1 >conftest.err
29922   rm -f conftest.er1
29923   cat conftest.err >&5
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); } &&
29926          { ac_try='test -z "$ac_cxx_werror_flag"
29927                          || test ! -s conftest.err'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; } &&
29933          { ac_try='test -s conftest.$ac_objext'
29934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935   (eval $ac_try) 2>&5
29936   ac_status=$?
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); }; }; then
29939   ac_cv_func_finite_in_ieeefp_h=yes
29940 else
29941   echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29943
29944 ac_cv_func_finite_in_ieeefp_h=no
29945 fi
29946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29947   ac_ext=c
29948 ac_cpp='$CPP $CPPFLAGS'
29949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29952
29953 fi
29954 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29955 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29956
29957 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29958
29959 cat >>confdefs.h <<\_ACEOF
29960 #define HAVE_FINITE_IN_IEEEFP_H 1
29961 _ACEOF
29962
29963 fi
29964
29965
29966
29967
29968
29969 for ac_header in stdlib.h unistd.h
29970 do
29971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29973   echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29976   echo $ECHO_N "(cached) $ECHO_C" >&6
29977 fi
29978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29980 else
29981   # Is the header compilable?
29982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29984 cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990 $ac_includes_default
29991 #include <$ac_header>
29992 _ACEOF
29993 rm -f conftest.$ac_objext
29994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29995   (eval $ac_compile) 2>conftest.er1
29996   ac_status=$?
29997   grep -v '^ *+' conftest.er1 >conftest.err
29998   rm -f conftest.er1
29999   cat conftest.err >&5
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); } &&
30002          { ac_try='test -z "$ac_c_werror_flag"
30003                          || test ! -s conftest.err'
30004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005   (eval $ac_try) 2>&5
30006   ac_status=$?
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); }; } &&
30009          { ac_try='test -s conftest.$ac_objext'
30010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011   (eval $ac_try) 2>&5
30012   ac_status=$?
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); }; }; then
30015   ac_header_compiler=yes
30016 else
30017   echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30019
30020 ac_header_compiler=no
30021 fi
30022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30024 echo "${ECHO_T}$ac_header_compiler" >&6
30025
30026 # Is the header present?
30027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30029 cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035 #include <$ac_header>
30036 _ACEOF
30037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } >/dev/null; then
30045   if test -s conftest.err; then
30046     ac_cpp_err=$ac_c_preproc_warn_flag
30047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30048   else
30049     ac_cpp_err=
30050   fi
30051 else
30052   ac_cpp_err=yes
30053 fi
30054 if test -z "$ac_cpp_err"; then
30055   ac_header_preproc=yes
30056 else
30057   echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30059
30060   ac_header_preproc=no
30061 fi
30062 rm -f conftest.err conftest.$ac_ext
30063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30064 echo "${ECHO_T}$ac_header_preproc" >&6
30065
30066 # So?  What about this header?
30067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30068   yes:no: )
30069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30073     ac_header_preproc=yes
30074     ;;
30075   no:yes:* )
30076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30088     (
30089       cat <<\_ASBOX
30090 ## ----------------------------------- ##
30091 ## Report this to llvmbugs@cs.uiuc.edu ##
30092 ## ----------------------------------- ##
30093 _ASBOX
30094     ) |
30095       sed "s/^/$as_me: WARNING:     /" >&2
30096     ;;
30097 esac
30098 echo "$as_me:$LINENO: checking for $ac_header" >&5
30099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30101   echo $ECHO_N "(cached) $ECHO_C" >&6
30102 else
30103   eval "$as_ac_Header=\$ac_header_preproc"
30104 fi
30105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30107
30108 fi
30109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30110   cat >>confdefs.h <<_ACEOF
30111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30112 _ACEOF
30113
30114 fi
30115
30116 done
30117
30118
30119 for ac_func in getpagesize
30120 do
30121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30122 echo "$as_me:$LINENO: checking for $ac_func" >&5
30123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30124 if eval "test \"\${$as_ac_var+set}\" = set"; then
30125   echo $ECHO_N "(cached) $ECHO_C" >&6
30126 else
30127   cat >conftest.$ac_ext <<_ACEOF
30128 /* confdefs.h.  */
30129 _ACEOF
30130 cat confdefs.h >>conftest.$ac_ext
30131 cat >>conftest.$ac_ext <<_ACEOF
30132 /* end confdefs.h.  */
30133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30135 #define $ac_func innocuous_$ac_func
30136
30137 /* System header to define __stub macros and hopefully few prototypes,
30138     which can conflict with char $ac_func (); below.
30139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30140     <limits.h> exists even on freestanding compilers.  */
30141
30142 #ifdef __STDC__
30143 # include <limits.h>
30144 #else
30145 # include <assert.h>
30146 #endif
30147
30148 #undef $ac_func
30149
30150 /* Override any gcc2 internal prototype to avoid an error.  */
30151 #ifdef __cplusplus
30152 extern "C"
30153 {
30154 #endif
30155 /* We use char because int might match the return type of a gcc2
30156    builtin and then its argument prototype would still apply.  */
30157 char $ac_func ();
30158 /* The GNU C library defines this for functions which it implements
30159     to always fail with ENOSYS.  Some functions are actually named
30160     something starting with __ and the normal name is an alias.  */
30161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30162 choke me
30163 #else
30164 char (*f) () = $ac_func;
30165 #endif
30166 #ifdef __cplusplus
30167 }
30168 #endif
30169
30170 int
30171 main ()
30172 {
30173 return f != $ac_func;
30174   ;
30175   return 0;
30176 }
30177 _ACEOF
30178 rm -f conftest.$ac_objext conftest$ac_exeext
30179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30180   (eval $ac_link) 2>conftest.er1
30181   ac_status=$?
30182   grep -v '^ *+' conftest.er1 >conftest.err
30183   rm -f conftest.er1
30184   cat conftest.err >&5
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); } &&
30187          { ac_try='test -z "$ac_c_werror_flag"
30188                          || test ! -s conftest.err'
30189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190   (eval $ac_try) 2>&5
30191   ac_status=$?
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); }; } &&
30194          { ac_try='test -s conftest$ac_exeext'
30195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196   (eval $ac_try) 2>&5
30197   ac_status=$?
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); }; }; then
30200   eval "$as_ac_var=yes"
30201 else
30202   echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30204
30205 eval "$as_ac_var=no"
30206 fi
30207 rm -f conftest.err conftest.$ac_objext \
30208       conftest$ac_exeext conftest.$ac_ext
30209 fi
30210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30212 if test `eval echo '${'$as_ac_var'}'` = yes; then
30213   cat >>confdefs.h <<_ACEOF
30214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30215 _ACEOF
30216
30217 fi
30218 done
30219
30220 echo "$as_me:$LINENO: checking for working mmap" >&5
30221 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30222 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30223   echo $ECHO_N "(cached) $ECHO_C" >&6
30224 else
30225   if test "$cross_compiling" = yes; then
30226   ac_cv_func_mmap_fixed_mapped=no
30227 else
30228   cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h.  */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h.  */
30234 $ac_includes_default
30235 /* malloc might have been renamed as rpl_malloc. */
30236 #undef malloc
30237
30238 /* Thanks to Mike Haertel and Jim Avera for this test.
30239    Here is a matrix of mmap possibilities:
30240         mmap private not fixed
30241         mmap private fixed at somewhere currently unmapped
30242         mmap private fixed at somewhere already mapped
30243         mmap shared not fixed
30244         mmap shared fixed at somewhere currently unmapped
30245         mmap shared fixed at somewhere already mapped
30246    For private mappings, we should verify that changes cannot be read()
30247    back from the file, nor mmap's back from the file at a different
30248    address.  (There have been systems where private was not correctly
30249    implemented like the infamous i386 svr4.0, and systems where the
30250    VM page cache was not coherent with the file system buffer cache
30251    like early versions of FreeBSD and possibly contemporary NetBSD.)
30252    For shared mappings, we should conversely verify that changes get
30253    propagated back to all the places they're supposed to be.
30254
30255    Grep wants private fixed already mapped.
30256    The main things grep needs to know about mmap are:
30257    * does it exist and is it safe to write into the mmap'd area
30258    * how to use it (BSD variants)  */
30259
30260 #include <fcntl.h>
30261 #include <sys/mman.h>
30262
30263 #if !STDC_HEADERS && !HAVE_STDLIB_H
30264 char *malloc ();
30265 #endif
30266
30267 /* This mess was copied from the GNU getpagesize.h.  */
30268 #if !HAVE_GETPAGESIZE
30269 /* Assume that all systems that can run configure have sys/param.h.  */
30270 # if !HAVE_SYS_PARAM_H
30271 #  define HAVE_SYS_PARAM_H 1
30272 # endif
30273
30274 # ifdef _SC_PAGESIZE
30275 #  define getpagesize() sysconf(_SC_PAGESIZE)
30276 # else /* no _SC_PAGESIZE */
30277 #  if HAVE_SYS_PARAM_H
30278 #   include <sys/param.h>
30279 #   ifdef EXEC_PAGESIZE
30280 #    define getpagesize() EXEC_PAGESIZE
30281 #   else /* no EXEC_PAGESIZE */
30282 #    ifdef NBPG
30283 #     define getpagesize() NBPG * CLSIZE
30284 #     ifndef CLSIZE
30285 #      define CLSIZE 1
30286 #     endif /* no CLSIZE */
30287 #    else /* no NBPG */
30288 #     ifdef NBPC
30289 #      define getpagesize() NBPC
30290 #     else /* no NBPC */
30291 #      ifdef PAGESIZE
30292 #       define getpagesize() PAGESIZE
30293 #      endif /* PAGESIZE */
30294 #     endif /* no NBPC */
30295 #    endif /* no NBPG */
30296 #   endif /* no EXEC_PAGESIZE */
30297 #  else /* no HAVE_SYS_PARAM_H */
30298 #   define getpagesize() 8192   /* punt totally */
30299 #  endif /* no HAVE_SYS_PARAM_H */
30300 # endif /* no _SC_PAGESIZE */
30301
30302 #endif /* no HAVE_GETPAGESIZE */
30303
30304 int
30305 main ()
30306 {
30307   char *data, *data2, *data3;
30308   int i, pagesize;
30309   int fd;
30310
30311   pagesize = getpagesize ();
30312
30313   /* First, make a file with some known garbage in it. */
30314   data = (char *) malloc (pagesize);
30315   if (!data)
30316     exit (1);
30317   for (i = 0; i < pagesize; ++i)
30318     *(data + i) = rand ();
30319   umask (0);
30320   fd = creat ("conftest.mmap", 0600);
30321   if (fd < 0)
30322     exit (1);
30323   if (write (fd, data, pagesize) != pagesize)
30324     exit (1);
30325   close (fd);
30326
30327   /* Next, try to mmap the file at a fixed address which already has
30328      something else allocated at it.  If we can, also make sure that
30329      we see the same garbage.  */
30330   fd = open ("conftest.mmap", O_RDWR);
30331   if (fd < 0)
30332     exit (1);
30333   data2 = (char *) malloc (2 * pagesize);
30334   if (!data2)
30335     exit (1);
30336   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30337   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30338                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30339     exit (1);
30340   for (i = 0; i < pagesize; ++i)
30341     if (*(data + i) != *(data2 + i))
30342       exit (1);
30343
30344   /* Finally, make sure that changes to the mapped area do not
30345      percolate back to the file as seen by read().  (This is a bug on
30346      some variants of i386 svr4.0.)  */
30347   for (i = 0; i < pagesize; ++i)
30348     *(data2 + i) = *(data2 + i) + 1;
30349   data3 = (char *) malloc (pagesize);
30350   if (!data3)
30351     exit (1);
30352   if (read (fd, data3, pagesize) != pagesize)
30353     exit (1);
30354   for (i = 0; i < pagesize; ++i)
30355     if (*(data + i) != *(data3 + i))
30356       exit (1);
30357   close (fd);
30358   exit (0);
30359 }
30360 _ACEOF
30361 rm -f conftest$ac_exeext
30362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30363   (eval $ac_link) 2>&5
30364   ac_status=$?
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368   (eval $ac_try) 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; }; then
30372   ac_cv_func_mmap_fixed_mapped=yes
30373 else
30374   echo "$as_me: program exited with status $ac_status" >&5
30375 echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.$ac_ext >&5
30377
30378 ( exit $ac_status )
30379 ac_cv_func_mmap_fixed_mapped=no
30380 fi
30381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30382 fi
30383 fi
30384 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30385 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30386 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30387
30388 cat >>confdefs.h <<\_ACEOF
30389 #define HAVE_MMAP 1
30390 _ACEOF
30391
30392 fi
30393 rm -f conftest.mmap
30394
30395 echo "$as_me:$LINENO: checking for mmap of files" >&5
30396 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30397 if test "${ac_cv_func_mmap_file+set}" = set; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400    ac_ext=c
30401 ac_cpp='$CPP $CPPFLAGS'
30402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30405
30406   if test "$cross_compiling" = yes; then
30407   ac_cv_func_mmap_file=no
30408 else
30409   cat >conftest.$ac_ext <<_ACEOF
30410
30411     /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416
30417 #include <sys/types.h>
30418 #include <sys/mman.h>
30419 #include <fcntl.h>
30420
30421 int
30422 main ()
30423 {
30424
30425   int fd;
30426   fd = creat ("foo",0777);
30427   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30428   unlink ("foo");
30429   return (fd != (int) MAP_FAILED);
30430   ;
30431   return 0;
30432 }
30433 _ACEOF
30434 rm -f conftest$ac_exeext
30435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30436   (eval $ac_link) 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441   (eval $ac_try) 2>&5
30442   ac_status=$?
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); }; }; then
30445   ac_cv_func_mmap_file=yes
30446 else
30447   echo "$as_me: program exited with status $ac_status" >&5
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451 ( exit $ac_status )
30452 ac_cv_func_mmap_file=no
30453 fi
30454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30455 fi
30456   ac_ext=c
30457 ac_cpp='$CPP $CPPFLAGS'
30458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30461
30462
30463 fi
30464 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30465 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30466 if test "$ac_cv_func_mmap_file" = yes; then
30467
30468 cat >>confdefs.h <<\_ACEOF
30469 #define HAVE_MMAP_FILE
30470 _ACEOF
30471
30472    MMAP_FILE=yes
30473
30474 fi
30475
30476 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30477 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30478 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30479   echo $ECHO_N "(cached) $ECHO_C" >&6
30480 else
30481   if test "$llvm_cv_os_type" = "Interix" ; then
30482    ac_cv_need_dev_zero_for_mmap=yes
30483  else
30484    ac_cv_need_dev_zero_for_mmap=no
30485  fi
30486
30487 fi
30488 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30489 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30490 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30491
30492 cat >>confdefs.h <<\_ACEOF
30493 #define NEED_DEV_ZERO_FOR_MMAP 1
30494 _ACEOF
30495
30496 fi
30497 echo "$as_me:$LINENO: checking for mprotect" >&5
30498 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30499 if test "${ac_cv_func_mprotect+set}" = set; then
30500   echo $ECHO_N "(cached) $ECHO_C" >&6
30501 else
30502   cat >conftest.$ac_ext <<_ACEOF
30503 /* confdefs.h.  */
30504 _ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h.  */
30508 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30510 #define mprotect innocuous_mprotect
30511
30512 /* System header to define __stub macros and hopefully few prototypes,
30513     which can conflict with char mprotect (); below.
30514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30515     <limits.h> exists even on freestanding compilers.  */
30516
30517 #ifdef __STDC__
30518 # include <limits.h>
30519 #else
30520 # include <assert.h>
30521 #endif
30522
30523 #undef mprotect
30524
30525 /* Override any gcc2 internal prototype to avoid an error.  */
30526 #ifdef __cplusplus
30527 extern "C"
30528 {
30529 #endif
30530 /* We use char because int might match the return type of a gcc2
30531    builtin and then its argument prototype would still apply.  */
30532 char mprotect ();
30533 /* The GNU C library defines this for functions which it implements
30534     to always fail with ENOSYS.  Some functions are actually named
30535     something starting with __ and the normal name is an alias.  */
30536 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30537 choke me
30538 #else
30539 char (*f) () = mprotect;
30540 #endif
30541 #ifdef __cplusplus
30542 }
30543 #endif
30544
30545 int
30546 main ()
30547 {
30548 return f != mprotect;
30549   ;
30550   return 0;
30551 }
30552 _ACEOF
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30555   (eval $ac_link) 2>conftest.er1
30556   ac_status=$?
30557   grep -v '^ *+' conftest.er1 >conftest.err
30558   rm -f conftest.er1
30559   cat conftest.err >&5
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); } &&
30562          { ac_try='test -z "$ac_c_werror_flag"
30563                          || test ! -s conftest.err'
30564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565   (eval $ac_try) 2>&5
30566   ac_status=$?
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); }; } &&
30569          { ac_try='test -s conftest$ac_exeext'
30570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571   (eval $ac_try) 2>&5
30572   ac_status=$?
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); }; }; then
30575   ac_cv_func_mprotect=yes
30576 else
30577   echo "$as_me: failed program was:" >&5
30578 sed 's/^/| /' conftest.$ac_ext >&5
30579
30580 ac_cv_func_mprotect=no
30581 fi
30582 rm -f conftest.err conftest.$ac_objext \
30583       conftest$ac_exeext conftest.$ac_ext
30584 fi
30585 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30586 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30587 if test $ac_cv_func_mprotect = yes; then
30588   :
30589 else
30590   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30591 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30592    { (exit 1); exit 1; }; }
30593 fi
30594
30595
30596 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30597 then
30598   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30599 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30600 fi
30601 if test "$ac_cv_func_mmap_file" = "no"
30602 then
30603   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30604 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30605 fi
30606
30607
30608 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30609 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30610 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30611   echo $ECHO_N "(cached) $ECHO_C" >&6
30612 else
30613   llvm_cv_llvmgcc_sanity="no"
30614 if test -x "$LLVMGCC" ; then
30615   cp /dev/null conftest.c
30616   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30617   if test $? -eq 0 ; then
30618     llvm_cv_llvmgcc_sanity="yes"
30619   fi
30620   rm conftest.c
30621 fi
30622 fi
30623 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30624 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30625
30626 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30627   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30628   LLVMCC1=$llvmcc1path
30629
30630   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30631   LLVMCC1PLUS=$llvmcc1pluspath
30632
30633   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30634   LLVMGCCDIR=$llvmgccdir
30635
30636 fi
30637
30638 SHLIBEXT=$libltdl_cv_shlibext
30639
30640
30641 # Translate the various configuration directories and other basic
30642 # information into substitutions that will end up in Makefile.config.in
30643 # that these configured values can be used by the makefiles
30644 eval LLVM_PREFIX="${prefix}";
30645 eval LLVM_BINDIR="${prefix}/bin";
30646 eval LLVM_LIBDIR="${prefix}/lib";
30647 eval LLVM_DATADIR="${prefix}/share/llvm";
30648 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30649 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30650 eval LLVM_INCLUDEDIR="${prefix}/include";
30651 eval LLVM_INFODIR="${prefix}/info";
30652 eval LLVM_MANDIR="${prefix}/man";
30653 LLVM_CONFIGTIME=`date`
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665 # Place the various directores into the config.h file as #defines so that we
30666 # can know about the installation paths within LLVM.
30667
30668 cat >>confdefs.h <<_ACEOF
30669 #define LLVM_PREFIX "$LLVM_PREFIX"
30670 _ACEOF
30671
30672
30673 cat >>confdefs.h <<_ACEOF
30674 #define LLVM_BINDIR "$LLVM_BINDIR"
30675 _ACEOF
30676
30677
30678 cat >>confdefs.h <<_ACEOF
30679 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30680 _ACEOF
30681
30682
30683 cat >>confdefs.h <<_ACEOF
30684 #define LLVM_DATADIR "$LLVM_DATADIR"
30685 _ACEOF
30686
30687
30688 cat >>confdefs.h <<_ACEOF
30689 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30690 _ACEOF
30691
30692
30693 cat >>confdefs.h <<_ACEOF
30694 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30695 _ACEOF
30696
30697
30698 cat >>confdefs.h <<_ACEOF
30699 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30700 _ACEOF
30701
30702
30703 cat >>confdefs.h <<_ACEOF
30704 #define LLVM_INFODIR "$LLVM_INFODIR"
30705 _ACEOF
30706
30707
30708 cat >>confdefs.h <<_ACEOF
30709 #define LLVM_MANDIR "$LLVM_MANDIR"
30710 _ACEOF
30711
30712
30713 cat >>confdefs.h <<_ACEOF
30714 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30715 _ACEOF
30716
30717
30718
30719           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30720
30721           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30722
30723           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30724
30725           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30726
30727           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30728
30729
30730           ac_config_files="$ac_config_files Makefile.config"
30731
30732
30733           ac_config_files="$ac_config_files docs/doxygen.cfg"
30734
30735
30736           ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30737
30738
30739           ac_config_commands="$ac_config_commands setup"
30740
30741           ac_config_commands="$ac_config_commands Makefile"
30742
30743
30744           ac_config_commands="$ac_config_commands Makefile.common"
30745
30746
30747           ac_config_commands="$ac_config_commands examples/Makefile"
30748
30749
30750           ac_config_commands="$ac_config_commands lib/Makefile"
30751
30752
30753           ac_config_commands="$ac_config_commands runtime/Makefile"
30754
30755
30756           ac_config_commands="$ac_config_commands test/Makefile"
30757
30758
30759           ac_config_commands="$ac_config_commands test/Makefile.tests"
30760
30761
30762           ac_config_commands="$ac_config_commands tools/Makefile"
30763
30764
30765           ac_config_commands="$ac_config_commands utils/Makefile"
30766
30767
30768           ac_config_commands="$ac_config_commands projects/Makefile"
30769
30770
30771
30772 cat >confcache <<\_ACEOF
30773 # This file is a shell script that caches the results of configure
30774 # tests run on this system so they can be shared between configure
30775 # scripts and configure runs, see configure's option --config-cache.
30776 # It is not useful on other systems.  If it contains results you don't
30777 # want to keep, you may remove or edit it.
30778 #
30779 # config.status only pays attention to the cache file if you give it
30780 # the --recheck option to rerun configure.
30781 #
30782 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30784 # following values.
30785
30786 _ACEOF
30787
30788 # The following way of writing the cache mishandles newlines in values,
30789 # but we know of no workaround that is simple, portable, and efficient.
30790 # So, don't put newlines in cache variables' values.
30791 # Ultrix sh set writes to stderr and can't be redirected directly,
30792 # and sets the high bit in the cache file unless we assign to the vars.
30793 {
30794   (set) 2>&1 |
30795     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30796     *ac_space=\ *)
30797       # `set' does not quote correctly, so add quotes (double-quote
30798       # substitution turns \\\\ into \\, and sed turns \\ into \).
30799       sed -n \
30800         "s/'/'\\\\''/g;
30801           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30802       ;;
30803     *)
30804       # `set' quotes correctly as required by POSIX, so do not add quotes.
30805       sed -n \
30806         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30807       ;;
30808     esac;
30809 } |
30810   sed '
30811      t clear
30812      : clear
30813      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30814      t end
30815      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30816      : end' >>confcache
30817 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30818   if test -w $cache_file; then
30819     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30820     cat confcache >$cache_file
30821   else
30822     echo "not updating unwritable cache $cache_file"
30823   fi
30824 fi
30825 rm -f confcache
30826
30827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30828 # Let make expand exec_prefix.
30829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30830
30831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30833 # trailing colons and then remove the whole line if VPATH becomes empty
30834 # (actually we leave an empty line to preserve line numbers).
30835 if test "x$srcdir" = x.; then
30836   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30837 s/:*\$(srcdir):*/:/;
30838 s/:*\${srcdir}:*/:/;
30839 s/:*@srcdir@:*/:/;
30840 s/^\([^=]*=[     ]*\):*/\1/;
30841 s/:*$//;
30842 s/^[^=]*=[       ]*$//;
30843 }'
30844 fi
30845
30846 DEFS=-DHAVE_CONFIG_H
30847
30848 ac_libobjs=
30849 ac_ltlibobjs=
30850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30851   # 1. Remove the extension, and $U if already installed.
30852   ac_i=`echo "$ac_i" |
30853          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30854   # 2. Add them.
30855   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30856   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30857 done
30858 LIBOBJS=$ac_libobjs
30859
30860 LTLIBOBJS=$ac_ltlibobjs
30861
30862
30863 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30864   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30865 Usually this means the macro was only invoked conditionally." >&5
30866 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30867 Usually this means the macro was only invoked conditionally." >&2;}
30868    { (exit 1); exit 1; }; }
30869 fi
30870 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30871   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30872 Usually this means the macro was only invoked conditionally." >&5
30873 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30874 Usually this means the macro was only invoked conditionally." >&2;}
30875    { (exit 1); exit 1; }; }
30876 fi
30877
30878 : ${CONFIG_STATUS=./config.status}
30879 ac_clean_files_save=$ac_clean_files
30880 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30881 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30882 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30883 cat >$CONFIG_STATUS <<_ACEOF
30884 #! $SHELL
30885 # Generated by $as_me.
30886 # Run this file to recreate the current configuration.
30887 # Compiler output produced by configure, useful for debugging
30888 # configure, is in config.log if it exists.
30889
30890 debug=false
30891 ac_cs_recheck=false
30892 ac_cs_silent=false
30893 SHELL=\${CONFIG_SHELL-$SHELL}
30894 _ACEOF
30895
30896 cat >>$CONFIG_STATUS <<\_ACEOF
30897 ## --------------------- ##
30898 ## M4sh Initialization.  ##
30899 ## --------------------- ##
30900
30901 # Be Bourne compatible
30902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30903   emulate sh
30904   NULLCMD=:
30905   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30906   # is contrary to our usage.  Disable this feature.
30907   alias -g '${1+"$@"}'='"$@"'
30908 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30909   set -o posix
30910 fi
30911 DUALCASE=1; export DUALCASE # for MKS sh
30912
30913 # Support unset when possible.
30914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30915   as_unset=unset
30916 else
30917   as_unset=false
30918 fi
30919
30920
30921 # Work around bugs in pre-3.0 UWIN ksh.
30922 $as_unset ENV MAIL MAILPATH
30923 PS1='$ '
30924 PS2='> '
30925 PS4='+ '
30926
30927 # NLS nuisances.
30928 for as_var in \
30929   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30930   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30931   LC_TELEPHONE LC_TIME
30932 do
30933   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30934     eval $as_var=C; export $as_var
30935   else
30936     $as_unset $as_var
30937   fi
30938 done
30939
30940 # Required to use basename.
30941 if expr a : '\(a\)' >/dev/null 2>&1; then
30942   as_expr=expr
30943 else
30944   as_expr=false
30945 fi
30946
30947 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30948   as_basename=basename
30949 else
30950   as_basename=false
30951 fi
30952
30953
30954 # Name of the executable.
30955 as_me=`$as_basename "$0" ||
30956 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30957          X"$0" : 'X\(//\)$' \| \
30958          X"$0" : 'X\(/\)$' \| \
30959          .     : '\(.\)' 2>/dev/null ||
30960 echo X/"$0" |
30961     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30962           /^X\/\(\/\/\)$/{ s//\1/; q; }
30963           /^X\/\(\/\).*/{ s//\1/; q; }
30964           s/.*/./; q'`
30965
30966
30967 # PATH needs CR, and LINENO needs CR and PATH.
30968 # Avoid depending upon Character Ranges.
30969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30972 as_cr_digits='0123456789'
30973 as_cr_alnum=$as_cr_Letters$as_cr_digits
30974
30975 # The user is always right.
30976 if test "${PATH_SEPARATOR+set}" != set; then
30977   echo "#! /bin/sh" >conf$$.sh
30978   echo  "exit 0"   >>conf$$.sh
30979   chmod +x conf$$.sh
30980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30981     PATH_SEPARATOR=';'
30982   else
30983     PATH_SEPARATOR=:
30984   fi
30985   rm -f conf$$.sh
30986 fi
30987
30988
30989   as_lineno_1=$LINENO
30990   as_lineno_2=$LINENO
30991   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30992   test "x$as_lineno_1" != "x$as_lineno_2" &&
30993   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30994   # Find who we are.  Look in the path if we contain no path at all
30995   # relative or not.
30996   case $0 in
30997     *[\\/]* ) as_myself=$0 ;;
30998     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30999 for as_dir in $PATH
31000 do
31001   IFS=$as_save_IFS
31002   test -z "$as_dir" && as_dir=.
31003   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31004 done
31005
31006        ;;
31007   esac
31008   # We did not find ourselves, most probably we were run as `sh COMMAND'
31009   # in which case we are not to be found in the path.
31010   if test "x$as_myself" = x; then
31011     as_myself=$0
31012   fi
31013   if test ! -f "$as_myself"; then
31014     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31015 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31016    { (exit 1); exit 1; }; }
31017   fi
31018   case $CONFIG_SHELL in
31019   '')
31020     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31021 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31022 do
31023   IFS=$as_save_IFS
31024   test -z "$as_dir" && as_dir=.
31025   for as_base in sh bash ksh sh5; do
31026          case $as_dir in
31027          /*)
31028            if ("$as_dir/$as_base" -c '
31029   as_lineno_1=$LINENO
31030   as_lineno_2=$LINENO
31031   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31032   test "x$as_lineno_1" != "x$as_lineno_2" &&
31033   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31034              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31035              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31036              CONFIG_SHELL=$as_dir/$as_base
31037              export CONFIG_SHELL
31038              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31039            fi;;
31040          esac
31041        done
31042 done
31043 ;;
31044   esac
31045
31046   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31047   # uniformly replaced by the line number.  The first 'sed' inserts a
31048   # line-number line before each line; the second 'sed' does the real
31049   # work.  The second script uses 'N' to pair each line-number line
31050   # with the numbered line, and appends trailing '-' during
31051   # substitution so that $LINENO is not a special case at line end.
31052   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31053   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31054   sed '=' <$as_myself |
31055     sed '
31056       N
31057       s,$,-,
31058       : loop
31059       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31060       t loop
31061       s,-$,,
31062       s,^['$as_cr_digits']*\n,,
31063     ' >$as_me.lineno &&
31064   chmod +x $as_me.lineno ||
31065     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31066 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31067    { (exit 1); exit 1; }; }
31068
31069   # Don't try to exec as it changes $[0], causing all sort of problems
31070   # (the dirname of $[0] is not the place where we might find the
31071   # original and so on.  Autoconf is especially sensible to this).
31072   . ./$as_me.lineno
31073   # Exit status is that of the last command.
31074   exit
31075 }
31076
31077
31078 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31079   *c*,-n*) ECHO_N= ECHO_C='
31080 ' ECHO_T='      ' ;;
31081   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31082   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31083 esac
31084
31085 if expr a : '\(a\)' >/dev/null 2>&1; then
31086   as_expr=expr
31087 else
31088   as_expr=false
31089 fi
31090
31091 rm -f conf$$ conf$$.exe conf$$.file
31092 echo >conf$$.file
31093 if ln -s conf$$.file conf$$ 2>/dev/null; then
31094   # We could just check for DJGPP; but this test a) works b) is more generic
31095   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31096   if test -f conf$$.exe; then
31097     # Don't use ln at all; we don't have any links
31098     as_ln_s='cp -p'
31099   else
31100     as_ln_s='ln -s'
31101   fi
31102 elif ln conf$$.file conf$$ 2>/dev/null; then
31103   as_ln_s=ln
31104 else
31105   as_ln_s='cp -p'
31106 fi
31107 rm -f conf$$ conf$$.exe conf$$.file
31108
31109 if mkdir -p . 2>/dev/null; then
31110   as_mkdir_p=:
31111 else
31112   test -d ./-p && rmdir ./-p
31113   as_mkdir_p=false
31114 fi
31115
31116 as_executable_p="test -f"
31117
31118 # Sed expression to map a string onto a valid CPP name.
31119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31120
31121 # Sed expression to map a string onto a valid variable name.
31122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31123
31124
31125 # IFS
31126 # We need space, tab and new line, in precisely that order.
31127 as_nl='
31128 '
31129 IFS="   $as_nl"
31130
31131 # CDPATH.
31132 $as_unset CDPATH
31133
31134 exec 6>&1
31135
31136 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31137 # report actual input values of CONFIG_FILES etc. instead of their
31138 # values after options handling.  Logging --version etc. is OK.
31139 exec 5>>config.log
31140 {
31141   echo
31142   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31143 ## Running $as_me. ##
31144 _ASBOX
31145 } >&5
31146 cat >&5 <<_CSEOF
31147
31148 This file was extended by llvm $as_me 1.7cvs, which was
31149 generated by GNU Autoconf 2.59.  Invocation command line was
31150
31151   CONFIG_FILES    = $CONFIG_FILES
31152   CONFIG_HEADERS  = $CONFIG_HEADERS
31153   CONFIG_LINKS    = $CONFIG_LINKS
31154   CONFIG_COMMANDS = $CONFIG_COMMANDS
31155   $ $0 $@
31156
31157 _CSEOF
31158 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31159 echo >&5
31160 _ACEOF
31161
31162 # Files that config.status was made for.
31163 if test -n "$ac_config_files"; then
31164   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31165 fi
31166
31167 if test -n "$ac_config_headers"; then
31168   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31169 fi
31170
31171 if test -n "$ac_config_links"; then
31172   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31173 fi
31174
31175 if test -n "$ac_config_commands"; then
31176   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31177 fi
31178
31179 cat >>$CONFIG_STATUS <<\_ACEOF
31180
31181 ac_cs_usage="\
31182 \`$as_me' instantiates files from templates according to the
31183 current configuration.
31184
31185 Usage: $0 [OPTIONS] [FILE]...
31186
31187   -h, --help       print this help, then exit
31188   -V, --version    print version number, then exit
31189   -q, --quiet      do not print progress messages
31190   -d, --debug      don't remove temporary files
31191       --recheck    update $as_me by reconfiguring in the same conditions
31192   --file=FILE[:TEMPLATE]
31193                    instantiate the configuration file FILE
31194   --header=FILE[:TEMPLATE]
31195                    instantiate the configuration header FILE
31196
31197 Configuration files:
31198 $config_files
31199
31200 Configuration headers:
31201 $config_headers
31202
31203 Configuration commands:
31204 $config_commands
31205
31206 Report bugs to <bug-autoconf@gnu.org>."
31207 _ACEOF
31208
31209 cat >>$CONFIG_STATUS <<_ACEOF
31210 ac_cs_version="\\
31211 llvm config.status 1.7cvs
31212 configured by $0, generated by GNU Autoconf 2.59,
31213   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31214
31215 Copyright (C) 2003 Free Software Foundation, Inc.
31216 This config.status script is free software; the Free Software Foundation
31217 gives unlimited permission to copy, distribute and modify it."
31218 srcdir=$srcdir
31219 INSTALL="$INSTALL"
31220 _ACEOF
31221
31222 cat >>$CONFIG_STATUS <<\_ACEOF
31223 # If no file are specified by the user, then we need to provide default
31224 # value.  By we need to know if files were specified by the user.
31225 ac_need_defaults=:
31226 while test $# != 0
31227 do
31228   case $1 in
31229   --*=*)
31230     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31231     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31232     ac_shift=:
31233     ;;
31234   -*)
31235     ac_option=$1
31236     ac_optarg=$2
31237     ac_shift=shift
31238     ;;
31239   *) # This is not an option, so the user has probably given explicit
31240      # arguments.
31241      ac_option=$1
31242      ac_need_defaults=false;;
31243   esac
31244
31245   case $ac_option in
31246   # Handling of the options.
31247 _ACEOF
31248 cat >>$CONFIG_STATUS <<\_ACEOF
31249   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31250     ac_cs_recheck=: ;;
31251   --version | --vers* | -V )
31252     echo "$ac_cs_version"; exit 0 ;;
31253   --he | --h)
31254     # Conflict between --help and --header
31255     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31256 Try \`$0 --help' for more information." >&5
31257 echo "$as_me: error: ambiguous option: $1
31258 Try \`$0 --help' for more information." >&2;}
31259    { (exit 1); exit 1; }; };;
31260   --help | --hel | -h )
31261     echo "$ac_cs_usage"; exit 0 ;;
31262   --debug | --d* | -d )
31263     debug=: ;;
31264   --file | --fil | --fi | --f )
31265     $ac_shift
31266     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31267     ac_need_defaults=false;;
31268   --header | --heade | --head | --hea )
31269     $ac_shift
31270     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31271     ac_need_defaults=false;;
31272   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31273   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31274     ac_cs_silent=: ;;
31275
31276   # This is an error.
31277   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31278 Try \`$0 --help' for more information." >&5
31279 echo "$as_me: error: unrecognized option: $1
31280 Try \`$0 --help' for more information." >&2;}
31281    { (exit 1); exit 1; }; } ;;
31282
31283   *) ac_config_targets="$ac_config_targets $1" ;;
31284
31285   esac
31286   shift
31287 done
31288
31289 ac_configure_extra_args=
31290
31291 if $ac_cs_silent; then
31292   exec 6>/dev/null
31293   ac_configure_extra_args="$ac_configure_extra_args --silent"
31294 fi
31295
31296 _ACEOF
31297 cat >>$CONFIG_STATUS <<_ACEOF
31298 if \$ac_cs_recheck; then
31299   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31300   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31301 fi
31302
31303 _ACEOF
31304
31305 cat >>$CONFIG_STATUS <<_ACEOF
31306 #
31307 # INIT-COMMANDS section.
31308 #
31309
31310 llvm_src="${srcdir}"
31311
31312 _ACEOF
31313
31314
31315
31316 cat >>$CONFIG_STATUS <<\_ACEOF
31317 for ac_config_target in $ac_config_targets
31318 do
31319   case "$ac_config_target" in
31320   # Handling of arguments.
31321   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31322   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31323   "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
31324   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31325   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31326   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31327   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31328   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31329   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31330   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31331   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31332   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31333   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31334   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31335   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31336   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31337   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31338   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31339   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31340   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31341 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31342    { (exit 1); exit 1; }; };;
31343   esac
31344 done
31345
31346 # If the user did not use the arguments to specify the items to instantiate,
31347 # then the envvar interface is used.  Set only those that are not.
31348 # We use the long form for the default assignment because of an extremely
31349 # bizarre bug on SunOS 4.1.3.
31350 if $ac_need_defaults; then
31351   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31352   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31353   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31354 fi
31355
31356 # Have a temporary directory for convenience.  Make it in the build tree
31357 # simply because there is no reason to put it here, and in addition,
31358 # creating and moving files from /tmp can sometimes cause problems.
31359 # Create a temporary directory, and hook for its removal unless debugging.
31360 $debug ||
31361 {
31362   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31363   trap '{ (exit 1); exit 1; }' 1 2 13 15
31364 }
31365
31366 # Create a (secure) tmp directory for tmp files.
31367
31368 {
31369   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31370   test -n "$tmp" && test -d "$tmp"
31371 }  ||
31372 {
31373   tmp=./confstat$$-$RANDOM
31374   (umask 077 && mkdir $tmp)
31375 } ||
31376 {
31377    echo "$me: cannot create a temporary directory in ." >&2
31378    { (exit 1); exit 1; }
31379 }
31380
31381 _ACEOF
31382
31383 cat >>$CONFIG_STATUS <<_ACEOF
31384
31385 #
31386 # CONFIG_FILES section.
31387 #
31388
31389 # No need to generate the scripts if there are no CONFIG_FILES.
31390 # This happens for instance when ./config.status config.h
31391 if test -n "\$CONFIG_FILES"; then
31392   # Protect against being on the right side of a sed subst in config.status.
31393   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31394    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31395 s,@SHELL@,$SHELL,;t t
31396 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31397 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31398 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31399 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31400 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31401 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31402 s,@exec_prefix@,$exec_prefix,;t t
31403 s,@prefix@,$prefix,;t t
31404 s,@program_transform_name@,$program_transform_name,;t t
31405 s,@bindir@,$bindir,;t t
31406 s,@sbindir@,$sbindir,;t t
31407 s,@libexecdir@,$libexecdir,;t t
31408 s,@datadir@,$datadir,;t t
31409 s,@sysconfdir@,$sysconfdir,;t t
31410 s,@sharedstatedir@,$sharedstatedir,;t t
31411 s,@localstatedir@,$localstatedir,;t t
31412 s,@libdir@,$libdir,;t t
31413 s,@includedir@,$includedir,;t t
31414 s,@oldincludedir@,$oldincludedir,;t t
31415 s,@infodir@,$infodir,;t t
31416 s,@mandir@,$mandir,;t t
31417 s,@build_alias@,$build_alias,;t t
31418 s,@host_alias@,$host_alias,;t t
31419 s,@target_alias@,$target_alias,;t t
31420 s,@DEFS@,$DEFS,;t t
31421 s,@ECHO_C@,$ECHO_C,;t t
31422 s,@ECHO_N@,$ECHO_N,;t t
31423 s,@ECHO_T@,$ECHO_T,;t t
31424 s,@LIBS@,$LIBS,;t t
31425 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31426 s,@subdirs@,$subdirs,;t t
31427 s,@build@,$build,;t t
31428 s,@build_cpu@,$build_cpu,;t t
31429 s,@build_vendor@,$build_vendor,;t t
31430 s,@build_os@,$build_os,;t t
31431 s,@host@,$host,;t t
31432 s,@host_cpu@,$host_cpu,;t t
31433 s,@host_vendor@,$host_vendor,;t t
31434 s,@host_os@,$host_os,;t t
31435 s,@target@,$target,;t t
31436 s,@target_cpu@,$target_cpu,;t t
31437 s,@target_vendor@,$target_vendor,;t t
31438 s,@target_os@,$target_os,;t t
31439 s,@OS@,$OS,;t t
31440 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31441 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31442 s,@ARCH@,$ARCH,;t t
31443 s,@ENDIAN@,$ENDIAN,;t t
31444 s,@CC@,$CC,;t t
31445 s,@CFLAGS@,$CFLAGS,;t t
31446 s,@LDFLAGS@,$LDFLAGS,;t t
31447 s,@CPPFLAGS@,$CPPFLAGS,;t t
31448 s,@ac_ct_CC@,$ac_ct_CC,;t t
31449 s,@EXEEXT@,$EXEEXT,;t t
31450 s,@OBJEXT@,$OBJEXT,;t t
31451 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31452 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31453 s,@JIT@,$JIT,;t t
31454 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31455 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31456 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31457 s,@CPP@,$CPP,;t t
31458 s,@CXX@,$CXX,;t t
31459 s,@CXXFLAGS@,$CXXFLAGS,;t t
31460 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31461 s,@LEX@,$LEX,;t t
31462 s,@LEXLIB@,$LEXLIB,;t t
31463 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31464 s,@FLEX@,$FLEX,;t t
31465 s,@YACC@,$YACC,;t t
31466 s,@BISON@,$BISON,;t t
31467 s,@ifGNUmake@,$ifGNUmake,;t t
31468 s,@LN_S@,$LN_S,;t t
31469 s,@CMP@,$CMP,;t t
31470 s,@CP@,$CP,;t t
31471 s,@DATE@,$DATE,;t t
31472 s,@FIND@,$FIND,;t t
31473 s,@GREP@,$GREP,;t t
31474 s,@MKDIR@,$MKDIR,;t t
31475 s,@MV@,$MV,;t t
31476 s,@RANLIB@,$RANLIB,;t t
31477 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31478 s,@RM@,$RM,;t t
31479 s,@SED@,$SED,;t t
31480 s,@TAR@,$TAR,;t t
31481 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31482 s,@GV@,$GV,;t t
31483 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31484 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31485 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31486 s,@BZIP2@,$BZIP2,;t t
31487 s,@DOT@,$DOT,;t t
31488 s,@DOXYGEN@,$DOXYGEN,;t t
31489 s,@ETAGS@,$ETAGS,;t t
31490 s,@GROFF@,$GROFF,;t t
31491 s,@GZIP@,$GZIP,;t t
31492 s,@POD2HTML@,$POD2HTML,;t t
31493 s,@POD2MAN@,$POD2MAN,;t t
31494 s,@RUNTEST@,$RUNTEST,;t t
31495 s,@TCLSH@,$TCLSH,;t t
31496 s,@ZIP@,$ZIP,;t t
31497 s,@EGREP@,$EGREP,;t t
31498 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31499 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31500 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31501 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31502 s,@LIBADD_DL@,$LIBADD_DL,;t t
31503 s,@ECHO@,$ECHO,;t t
31504 s,@AR@,$AR,;t t
31505 s,@ac_ct_AR@,$ac_ct_AR,;t t
31506 s,@STRIP@,$STRIP,;t t
31507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31508 s,@CXXCPP@,$CXXCPP,;t t
31509 s,@F77@,$F77,;t t
31510 s,@FFLAGS@,$FFLAGS,;t t
31511 s,@ac_ct_F77@,$ac_ct_F77,;t t
31512 s,@LIBTOOL@,$LIBTOOL,;t t
31513 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31514 s,@LLVMGCC@,$LLVMGCC,;t t
31515 s,@LLVMGXX@,$LLVMGXX,;t t
31516 s,@ALLOCA@,$ALLOCA,;t t
31517 s,@MMAP_FILE@,$MMAP_FILE,;t t
31518 s,@LLVMCC1@,$LLVMCC1,;t t
31519 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31520 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31521 s,@SHLIBEXT@,$SHLIBEXT,;t t
31522 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31523 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31524 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31525 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31526 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31527 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31528 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31529 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31530 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31531 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31532 s,@LIBOBJS@,$LIBOBJS,;t t
31533 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31534 CEOF
31535
31536 _ACEOF
31537
31538   cat >>$CONFIG_STATUS <<\_ACEOF
31539   # Split the substitutions into bite-sized pieces for seds with
31540   # small command number limits, like on Digital OSF/1 and HP-UX.
31541   ac_max_sed_lines=48
31542   ac_sed_frag=1 # Number of current file.
31543   ac_beg=1 # First line for current file.
31544   ac_end=$ac_max_sed_lines # Line after last line for current file.
31545   ac_more_lines=:
31546   ac_sed_cmds=
31547   while $ac_more_lines; do
31548     if test $ac_beg -gt 1; then
31549       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31550     else
31551       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31552     fi
31553     if test ! -s $tmp/subs.frag; then
31554       ac_more_lines=false
31555     else
31556       # The purpose of the label and of the branching condition is to
31557       # speed up the sed processing (if there are no `@' at all, there
31558       # is no need to browse any of the substitutions).
31559       # These are the two extra sed commands mentioned above.
31560       (echo ':t
31561   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31562       if test -z "$ac_sed_cmds"; then
31563         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31564       else
31565         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31566       fi
31567       ac_sed_frag=`expr $ac_sed_frag + 1`
31568       ac_beg=$ac_end
31569       ac_end=`expr $ac_end + $ac_max_sed_lines`
31570     fi
31571   done
31572   if test -z "$ac_sed_cmds"; then
31573     ac_sed_cmds=cat
31574   fi
31575 fi # test -n "$CONFIG_FILES"
31576
31577 _ACEOF
31578 cat >>$CONFIG_STATUS <<\_ACEOF
31579 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31580   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31581   case $ac_file in
31582   - | *:- | *:-:* ) # input from stdin
31583         cat >$tmp/stdin
31584         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31585         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31586   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31587         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31588   * )   ac_file_in=$ac_file.in ;;
31589   esac
31590
31591   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31592   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31594          X"$ac_file" : 'X\(//\)[^/]' \| \
31595          X"$ac_file" : 'X\(//\)$' \| \
31596          X"$ac_file" : 'X\(/\)' \| \
31597          .     : '\(.\)' 2>/dev/null ||
31598 echo X"$ac_file" |
31599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31601           /^X\(\/\/\)$/{ s//\1/; q; }
31602           /^X\(\/\).*/{ s//\1/; q; }
31603           s/.*/./; q'`
31604   { if $as_mkdir_p; then
31605     mkdir -p "$ac_dir"
31606   else
31607     as_dir="$ac_dir"
31608     as_dirs=
31609     while test ! -d "$as_dir"; do
31610       as_dirs="$as_dir $as_dirs"
31611       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31613          X"$as_dir" : 'X\(//\)[^/]' \| \
31614          X"$as_dir" : 'X\(//\)$' \| \
31615          X"$as_dir" : 'X\(/\)' \| \
31616          .     : '\(.\)' 2>/dev/null ||
31617 echo X"$as_dir" |
31618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31619           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31620           /^X\(\/\/\)$/{ s//\1/; q; }
31621           /^X\(\/\).*/{ s//\1/; q; }
31622           s/.*/./; q'`
31623     done
31624     test ! -n "$as_dirs" || mkdir $as_dirs
31625   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31626 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31627    { (exit 1); exit 1; }; }; }
31628
31629   ac_builddir=.
31630
31631 if test "$ac_dir" != .; then
31632   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31633   # A "../" for each directory in $ac_dir_suffix.
31634   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31635 else
31636   ac_dir_suffix= ac_top_builddir=
31637 fi
31638
31639 case $srcdir in
31640   .)  # No --srcdir option.  We are building in place.
31641     ac_srcdir=.
31642     if test -z "$ac_top_builddir"; then
31643        ac_top_srcdir=.
31644     else
31645        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31646     fi ;;
31647   [\\/]* | ?:[\\/]* )  # Absolute path.
31648     ac_srcdir=$srcdir$ac_dir_suffix;
31649     ac_top_srcdir=$srcdir ;;
31650   *) # Relative path.
31651     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31652     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31653 esac
31654
31655 # Do not use `cd foo && pwd` to compute absolute paths, because
31656 # the directories may not exist.
31657 case `pwd` in
31658 .) ac_abs_builddir="$ac_dir";;
31659 *)
31660   case "$ac_dir" in
31661   .) ac_abs_builddir=`pwd`;;
31662   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31663   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31664   esac;;
31665 esac
31666 case $ac_abs_builddir in
31667 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31668 *)
31669   case ${ac_top_builddir}. in
31670   .) ac_abs_top_builddir=$ac_abs_builddir;;
31671   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31672   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31673   esac;;
31674 esac
31675 case $ac_abs_builddir in
31676 .) ac_abs_srcdir=$ac_srcdir;;
31677 *)
31678   case $ac_srcdir in
31679   .) ac_abs_srcdir=$ac_abs_builddir;;
31680   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31681   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31682   esac;;
31683 esac
31684 case $ac_abs_builddir in
31685 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31686 *)
31687   case $ac_top_srcdir in
31688   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31689   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31690   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31691   esac;;
31692 esac
31693
31694
31695   case $INSTALL in
31696   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31697   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31698   esac
31699
31700   if test x"$ac_file" != x-; then
31701     { echo "$as_me:$LINENO: creating $ac_file" >&5
31702 echo "$as_me: creating $ac_file" >&6;}
31703     rm -f "$ac_file"
31704   fi
31705   # Let's still pretend it is `configure' which instantiates (i.e., don't
31706   # use $as_me), people would be surprised to read:
31707   #    /* config.h.  Generated by config.status.  */
31708   if test x"$ac_file" = x-; then
31709     configure_input=
31710   else
31711     configure_input="$ac_file.  "
31712   fi
31713   configure_input=$configure_input"Generated from `echo $ac_file_in |
31714                                      sed 's,.*/,,'` by configure."
31715
31716   # First look for the input files in the build tree, otherwise in the
31717   # src tree.
31718   ac_file_inputs=`IFS=:
31719     for f in $ac_file_in; do
31720       case $f in
31721       -) echo $tmp/stdin ;;
31722       [\\/$]*)
31723          # Absolute (can't be DOS-style, as IFS=:)
31724          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31725 echo "$as_me: error: cannot find input file: $f" >&2;}
31726    { (exit 1); exit 1; }; }
31727          echo "$f";;
31728       *) # Relative
31729          if test -f "$f"; then
31730            # Build tree
31731            echo "$f"
31732          elif test -f "$srcdir/$f"; then
31733            # Source tree
31734            echo "$srcdir/$f"
31735          else
31736            # /dev/null tree
31737            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31738 echo "$as_me: error: cannot find input file: $f" >&2;}
31739    { (exit 1); exit 1; }; }
31740          fi;;
31741       esac
31742     done` || { (exit 1); exit 1; }
31743 _ACEOF
31744 cat >>$CONFIG_STATUS <<_ACEOF
31745   sed "$ac_vpsub
31746 $extrasub
31747 _ACEOF
31748 cat >>$CONFIG_STATUS <<\_ACEOF
31749 :t
31750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31751 s,@configure_input@,$configure_input,;t t
31752 s,@srcdir@,$ac_srcdir,;t t
31753 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31754 s,@top_srcdir@,$ac_top_srcdir,;t t
31755 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31756 s,@builddir@,$ac_builddir,;t t
31757 s,@abs_builddir@,$ac_abs_builddir,;t t
31758 s,@top_builddir@,$ac_top_builddir,;t t
31759 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31760 s,@INSTALL@,$ac_INSTALL,;t t
31761 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31762   rm -f $tmp/stdin
31763   if test x"$ac_file" != x-; then
31764     mv $tmp/out $ac_file
31765   else
31766     cat $tmp/out
31767     rm -f $tmp/out
31768   fi
31769
31770 done
31771 _ACEOF
31772 cat >>$CONFIG_STATUS <<\_ACEOF
31773
31774 #
31775 # CONFIG_HEADER section.
31776 #
31777
31778 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31779 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31780 #
31781 # ac_d sets the value in "#define NAME VALUE" lines.
31782 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31783 ac_dB='[         ].*$,\1#\2'
31784 ac_dC=' '
31785 ac_dD=',;t'
31786 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31787 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31788 ac_uB='$,\1#\2define\3'
31789 ac_uC=' '
31790 ac_uD=',;t'
31791
31792 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31793   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31794   case $ac_file in
31795   - | *:- | *:-:* ) # input from stdin
31796         cat >$tmp/stdin
31797         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31798         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31799   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31800         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31801   * )   ac_file_in=$ac_file.in ;;
31802   esac
31803
31804   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31805 echo "$as_me: creating $ac_file" >&6;}
31806
31807   # First look for the input files in the build tree, otherwise in the
31808   # src tree.
31809   ac_file_inputs=`IFS=:
31810     for f in $ac_file_in; do
31811       case $f in
31812       -) echo $tmp/stdin ;;
31813       [\\/$]*)
31814          # Absolute (can't be DOS-style, as IFS=:)
31815          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31816 echo "$as_me: error: cannot find input file: $f" >&2;}
31817    { (exit 1); exit 1; }; }
31818          # Do quote $f, to prevent DOS paths from being IFS'd.
31819          echo "$f";;
31820       *) # Relative
31821          if test -f "$f"; then
31822            # Build tree
31823            echo "$f"
31824          elif test -f "$srcdir/$f"; then
31825            # Source tree
31826            echo "$srcdir/$f"
31827          else
31828            # /dev/null tree
31829            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31830 echo "$as_me: error: cannot find input file: $f" >&2;}
31831    { (exit 1); exit 1; }; }
31832          fi;;
31833       esac
31834     done` || { (exit 1); exit 1; }
31835   # Remove the trailing spaces.
31836   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31837
31838 _ACEOF
31839
31840 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31841 # `conftest.undefs', that substitutes the proper values into
31842 # config.h.in to produce config.h.  The first handles `#define'
31843 # templates, and the second `#undef' templates.
31844 # And first: Protect against being on the right side of a sed subst in
31845 # config.status.  Protect against being in an unquoted here document
31846 # in config.status.
31847 rm -f conftest.defines conftest.undefs
31848 # Using a here document instead of a string reduces the quoting nightmare.
31849 # Putting comments in sed scripts is not portable.
31850 #
31851 # `end' is used to avoid that the second main sed command (meant for
31852 # 0-ary CPP macros) applies to n-ary macro definitions.
31853 # See the Autoconf documentation for `clear'.
31854 cat >confdef2sed.sed <<\_ACEOF
31855 s/[\\&,]/\\&/g
31856 s,[\\$`],\\&,g
31857 t clear
31858 : clear
31859 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31860 t end
31861 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31862 : end
31863 _ACEOF
31864 # If some macros were called several times there might be several times
31865 # the same #defines, which is useless.  Nevertheless, we may not want to
31866 # sort them, since we want the *last* AC-DEFINE to be honored.
31867 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31868 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31869 rm -f confdef2sed.sed
31870
31871 # This sed command replaces #undef with comments.  This is necessary, for
31872 # example, in the case of _POSIX_SOURCE, which is predefined and required
31873 # on some systems where configure will not decide to define it.
31874 cat >>conftest.undefs <<\_ACEOF
31875 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31876 _ACEOF
31877
31878 # Break up conftest.defines because some shells have a limit on the size
31879 # of here documents, and old seds have small limits too (100 cmds).
31880 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31881 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31882 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31883 echo '  :' >>$CONFIG_STATUS
31884 rm -f conftest.tail
31885 while grep . conftest.defines >/dev/null
31886 do
31887   # Write a limited-size here document to $tmp/defines.sed.
31888   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31889   # Speed up: don't consider the non `#define' lines.
31890   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31891   # Work around the forget-to-reset-the-flag bug.
31892   echo 't clr' >>$CONFIG_STATUS
31893   echo ': clr' >>$CONFIG_STATUS
31894   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31895   echo 'CEOF
31896   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31897   rm -f $tmp/in
31898   mv $tmp/out $tmp/in
31899 ' >>$CONFIG_STATUS
31900   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31901   rm -f conftest.defines
31902   mv conftest.tail conftest.defines
31903 done
31904 rm -f conftest.defines
31905 echo '  fi # grep' >>$CONFIG_STATUS
31906 echo >>$CONFIG_STATUS
31907
31908 # Break up conftest.undefs because some shells have a limit on the size
31909 # of here documents, and old seds have small limits too (100 cmds).
31910 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31911 rm -f conftest.tail
31912 while grep . conftest.undefs >/dev/null
31913 do
31914   # Write a limited-size here document to $tmp/undefs.sed.
31915   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31916   # Speed up: don't consider the non `#undef'
31917   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31918   # Work around the forget-to-reset-the-flag bug.
31919   echo 't clr' >>$CONFIG_STATUS
31920   echo ': clr' >>$CONFIG_STATUS
31921   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31922   echo 'CEOF
31923   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31924   rm -f $tmp/in
31925   mv $tmp/out $tmp/in
31926 ' >>$CONFIG_STATUS
31927   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31928   rm -f conftest.undefs
31929   mv conftest.tail conftest.undefs
31930 done
31931 rm -f conftest.undefs
31932
31933 cat >>$CONFIG_STATUS <<\_ACEOF
31934   # Let's still pretend it is `configure' which instantiates (i.e., don't
31935   # use $as_me), people would be surprised to read:
31936   #    /* config.h.  Generated by config.status.  */
31937   if test x"$ac_file" = x-; then
31938     echo "/* Generated by configure.  */" >$tmp/config.h
31939   else
31940     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31941   fi
31942   cat $tmp/in >>$tmp/config.h
31943   rm -f $tmp/in
31944   if test x"$ac_file" != x-; then
31945     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31946       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31947 echo "$as_me: $ac_file is unchanged" >&6;}
31948     else
31949       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31951          X"$ac_file" : 'X\(//\)[^/]' \| \
31952          X"$ac_file" : 'X\(//\)$' \| \
31953          X"$ac_file" : 'X\(/\)' \| \
31954          .     : '\(.\)' 2>/dev/null ||
31955 echo X"$ac_file" |
31956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31958           /^X\(\/\/\)$/{ s//\1/; q; }
31959           /^X\(\/\).*/{ s//\1/; q; }
31960           s/.*/./; q'`
31961       { if $as_mkdir_p; then
31962     mkdir -p "$ac_dir"
31963   else
31964     as_dir="$ac_dir"
31965     as_dirs=
31966     while test ! -d "$as_dir"; do
31967       as_dirs="$as_dir $as_dirs"
31968       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31970          X"$as_dir" : 'X\(//\)[^/]' \| \
31971          X"$as_dir" : 'X\(//\)$' \| \
31972          X"$as_dir" : 'X\(/\)' \| \
31973          .     : '\(.\)' 2>/dev/null ||
31974 echo X"$as_dir" |
31975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31976           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31977           /^X\(\/\/\)$/{ s//\1/; q; }
31978           /^X\(\/\).*/{ s//\1/; q; }
31979           s/.*/./; q'`
31980     done
31981     test ! -n "$as_dirs" || mkdir $as_dirs
31982   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31984    { (exit 1); exit 1; }; }; }
31985
31986       rm -f $ac_file
31987       mv $tmp/config.h $ac_file
31988     fi
31989   else
31990     cat $tmp/config.h
31991     rm -f $tmp/config.h
31992   fi
31993 done
31994 _ACEOF
31995 cat >>$CONFIG_STATUS <<\_ACEOF
31996
31997 #
31998 # CONFIG_COMMANDS section.
31999 #
32000 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32001   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32002   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32003   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32004 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32005          X"$ac_dest" : 'X\(//\)[^/]' \| \
32006          X"$ac_dest" : 'X\(//\)$' \| \
32007          X"$ac_dest" : 'X\(/\)' \| \
32008          .     : '\(.\)' 2>/dev/null ||
32009 echo X"$ac_dest" |
32010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32011           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32012           /^X\(\/\/\)$/{ s//\1/; q; }
32013           /^X\(\/\).*/{ s//\1/; q; }
32014           s/.*/./; q'`
32015   { if $as_mkdir_p; then
32016     mkdir -p "$ac_dir"
32017   else
32018     as_dir="$ac_dir"
32019     as_dirs=
32020     while test ! -d "$as_dir"; do
32021       as_dirs="$as_dir $as_dirs"
32022       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32024          X"$as_dir" : 'X\(//\)[^/]' \| \
32025          X"$as_dir" : 'X\(//\)$' \| \
32026          X"$as_dir" : 'X\(/\)' \| \
32027          .     : '\(.\)' 2>/dev/null ||
32028 echo X"$as_dir" |
32029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32030           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32031           /^X\(\/\/\)$/{ s//\1/; q; }
32032           /^X\(\/\).*/{ s//\1/; q; }
32033           s/.*/./; q'`
32034     done
32035     test ! -n "$as_dirs" || mkdir $as_dirs
32036   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32038    { (exit 1); exit 1; }; }; }
32039
32040   ac_builddir=.
32041
32042 if test "$ac_dir" != .; then
32043   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32044   # A "../" for each directory in $ac_dir_suffix.
32045   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32046 else
32047   ac_dir_suffix= ac_top_builddir=
32048 fi
32049
32050 case $srcdir in
32051   .)  # No --srcdir option.  We are building in place.
32052     ac_srcdir=.
32053     if test -z "$ac_top_builddir"; then
32054        ac_top_srcdir=.
32055     else
32056        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32057     fi ;;
32058   [\\/]* | ?:[\\/]* )  # Absolute path.
32059     ac_srcdir=$srcdir$ac_dir_suffix;
32060     ac_top_srcdir=$srcdir ;;
32061   *) # Relative path.
32062     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32063     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32064 esac
32065
32066 # Do not use `cd foo && pwd` to compute absolute paths, because
32067 # the directories may not exist.
32068 case `pwd` in
32069 .) ac_abs_builddir="$ac_dir";;
32070 *)
32071   case "$ac_dir" in
32072   .) ac_abs_builddir=`pwd`;;
32073   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32074   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32075   esac;;
32076 esac
32077 case $ac_abs_builddir in
32078 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32079 *)
32080   case ${ac_top_builddir}. in
32081   .) ac_abs_top_builddir=$ac_abs_builddir;;
32082   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32083   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32084   esac;;
32085 esac
32086 case $ac_abs_builddir in
32087 .) ac_abs_srcdir=$ac_srcdir;;
32088 *)
32089   case $ac_srcdir in
32090   .) ac_abs_srcdir=$ac_abs_builddir;;
32091   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32092   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32093   esac;;
32094 esac
32095 case $ac_abs_builddir in
32096 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32097 *)
32098   case $ac_top_srcdir in
32099   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32100   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32101   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32102   esac;;
32103 esac
32104
32105
32106   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32107 echo "$as_me: executing $ac_dest commands" >&6;}
32108   case $ac_dest in
32109     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32110    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32111     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32112    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32113     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32114    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32115     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32116    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32117     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32118    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32119     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32120    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32121     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32122    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32123     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32124    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32125     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32126    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32127     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32128    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32129   esac
32130 done
32131 _ACEOF
32132
32133 cat >>$CONFIG_STATUS <<\_ACEOF
32134
32135 { (exit 0); exit 0; }
32136 _ACEOF
32137 chmod +x $CONFIG_STATUS
32138 ac_clean_files=$ac_clean_files_save
32139
32140
32141 # configure is writing to config.log, and then calls config.status.
32142 # config.status does its own redirection, appending to config.log.
32143 # Unfortunately, on DOS this fails, as config.log is still kept open
32144 # by configure, so config.status won't be able to write to it; its
32145 # output is simply discarded.  So we exec the FD to /dev/null,
32146 # effectively closing config.log, so it can be properly (re)opened and
32147 # appended to by config.status.  When coming back to configure, we
32148 # need to make the FD available again.
32149 if test "$no_create" != yes; then
32150   ac_cs_success=:
32151   ac_config_status_args=
32152   test "$silent" = yes &&
32153     ac_config_status_args="$ac_config_status_args --quiet"
32154   exec 5>/dev/null
32155   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32156   exec 5>>config.log
32157   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32158   # would make configure fail if this is the last instruction.
32159   $ac_cs_success || { (exit 1); exit 1; }
32160 fi
32161
32162 #
32163 # CONFIG_SUBDIRS section.
32164 #
32165 if test "$no_recursion" != yes; then
32166
32167   # Remove --cache-file and --srcdir arguments so they do not pile up.
32168   ac_sub_configure_args=
32169   ac_prev=
32170   for ac_arg in $ac_configure_args; do
32171     if test -n "$ac_prev"; then
32172       ac_prev=
32173       continue
32174     fi
32175     case $ac_arg in
32176     -cache-file | --cache-file | --cache-fil | --cache-fi \
32177     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32178       ac_prev=cache_file ;;
32179     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32180     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32181     | --c=*)
32182       ;;
32183     --config-cache | -C)
32184       ;;
32185     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32186       ac_prev=srcdir ;;
32187     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32188       ;;
32189     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32190       ac_prev=prefix ;;
32191     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32192       ;;
32193     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32194     esac
32195   done
32196
32197   # Always prepend --prefix to ensure using the same prefix
32198   # in subdir configurations.
32199   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32200
32201   ac_popdir=`pwd`
32202   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32203
32204     # Do not complain, so a configure script can configure whichever
32205     # parts of a large source tree are present.
32206     test -d $srcdir/$ac_dir || continue
32207
32208     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32209 echo "$as_me: configuring in $ac_dir" >&6;}
32210     { if $as_mkdir_p; then
32211     mkdir -p "$ac_dir"
32212   else
32213     as_dir="$ac_dir"
32214     as_dirs=
32215     while test ! -d "$as_dir"; do
32216       as_dirs="$as_dir $as_dirs"
32217       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32219          X"$as_dir" : 'X\(//\)[^/]' \| \
32220          X"$as_dir" : 'X\(//\)$' \| \
32221          X"$as_dir" : 'X\(/\)' \| \
32222          .     : '\(.\)' 2>/dev/null ||
32223 echo X"$as_dir" |
32224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32225           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32226           /^X\(\/\/\)$/{ s//\1/; q; }
32227           /^X\(\/\).*/{ s//\1/; q; }
32228           s/.*/./; q'`
32229     done
32230     test ! -n "$as_dirs" || mkdir $as_dirs
32231   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32232 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32233    { (exit 1); exit 1; }; }; }
32234
32235     ac_builddir=.
32236
32237 if test "$ac_dir" != .; then
32238   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32239   # A "../" for each directory in $ac_dir_suffix.
32240   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32241 else
32242   ac_dir_suffix= ac_top_builddir=
32243 fi
32244
32245 case $srcdir in
32246   .)  # No --srcdir option.  We are building in place.
32247     ac_srcdir=.
32248     if test -z "$ac_top_builddir"; then
32249        ac_top_srcdir=.
32250     else
32251        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32252     fi ;;
32253   [\\/]* | ?:[\\/]* )  # Absolute path.
32254     ac_srcdir=$srcdir$ac_dir_suffix;
32255     ac_top_srcdir=$srcdir ;;
32256   *) # Relative path.
32257     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32258     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32259 esac
32260
32261 # Do not use `cd foo && pwd` to compute absolute paths, because
32262 # the directories may not exist.
32263 case `pwd` in
32264 .) ac_abs_builddir="$ac_dir";;
32265 *)
32266   case "$ac_dir" in
32267   .) ac_abs_builddir=`pwd`;;
32268   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32269   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32270   esac;;
32271 esac
32272 case $ac_abs_builddir in
32273 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32274 *)
32275   case ${ac_top_builddir}. in
32276   .) ac_abs_top_builddir=$ac_abs_builddir;;
32277   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32278   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32279   esac;;
32280 esac
32281 case $ac_abs_builddir in
32282 .) ac_abs_srcdir=$ac_srcdir;;
32283 *)
32284   case $ac_srcdir in
32285   .) ac_abs_srcdir=$ac_abs_builddir;;
32286   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32287   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32288   esac;;
32289 esac
32290 case $ac_abs_builddir in
32291 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32292 *)
32293   case $ac_top_srcdir in
32294   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32295   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32296   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32297   esac;;
32298 esac
32299
32300
32301     cd $ac_dir
32302
32303     # Check for guested configure; otherwise get Cygnus style configure.
32304     if test -f $ac_srcdir/configure.gnu; then
32305       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32306     elif test -f $ac_srcdir/configure; then
32307       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32308     elif test -f $ac_srcdir/configure.in; then
32309       ac_sub_configure=$ac_configure
32310     else
32311       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32312 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32313       ac_sub_configure=
32314     fi
32315
32316     # The recursion is here.
32317     if test -n "$ac_sub_configure"; then
32318       # Make the cache file name correct relative to the subdirectory.
32319       case $cache_file in
32320       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32321       *) # Relative path.
32322         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32323       esac
32324
32325       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32326 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32327       # The eval makes quoting arguments work.
32328       eval $ac_sub_configure $ac_sub_configure_args \
32329            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32330         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32331 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32332    { (exit 1); exit 1; }; }
32333     fi
32334
32335     cd $ac_popdir
32336   done
32337 fi
32338
32339
32340 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32341  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32342 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32343  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32344 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32345  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32346 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32347  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32348 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32349  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32350 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32351 fi