5d3388628e612c67b41ff7fbc2a7ac1e2566c870
[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.4.
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 # $LLVM_COPYRIGHT
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.4'
429 PACKAGE_STRING='llvm 1.4'
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/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
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 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST 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 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS 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.4 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.4:";;
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-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-ltdl-install   install libltdl
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049 Optional Packages:
1050   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052   --with-llvmgccdir       Location of LLVM GCC front-end
1053   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1054   --with-pic              try to use only PIC/non-PIC objects [default=use
1055                           both]
1056   --with-tags[=TAGS]
1057                           include additional configurations [automatic]
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CPP         C preprocessor
1067   CXX         C++ compiler command
1068   CXXFLAGS    C++ compiler flags
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 Report bugs to <llvmbugs@cs.uiuc.edu>.
1077 _ACEOF
1078 fi
1079
1080 if test "$ac_init_help" = "recursive"; then
1081   # If there are subdirs, report their specific --help.
1082   ac_popdir=`pwd`
1083   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084     test -d $ac_dir || continue
1085     ac_builddir=.
1086
1087 if test "$ac_dir" != .; then
1088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089   # A "../" for each directory in $ac_dir_suffix.
1090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092   ac_dir_suffix= ac_top_builddir=
1093 fi
1094
1095 case $srcdir in
1096   .)  # No --srcdir option.  We are building in place.
1097     ac_srcdir=.
1098     if test -z "$ac_top_builddir"; then
1099        ac_top_srcdir=.
1100     else
1101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102     fi ;;
1103   [\\/]* | ?:[\\/]* )  # Absolute path.
1104     ac_srcdir=$srcdir$ac_dir_suffix;
1105     ac_top_srcdir=$srcdir ;;
1106   *) # Relative path.
1107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1110
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1113 case `pwd` in
1114 .) ac_abs_builddir="$ac_dir";;
1115 *)
1116   case "$ac_dir" in
1117   .) ac_abs_builddir=`pwd`;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *)
1125   case ${ac_top_builddir}. in
1126   .) ac_abs_top_builddir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1133 *)
1134   case $ac_srcdir in
1135   .) ac_abs_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *)
1143   case $ac_top_srcdir in
1144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147   esac;;
1148 esac
1149
1150     cd $ac_dir
1151     # Check for guested configure; otherwise get Cygnus style configure.
1152     if test -f $ac_srcdir/configure.gnu; then
1153       echo
1154       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1155     elif test -f $ac_srcdir/configure; then
1156       echo
1157       $SHELL $ac_srcdir/configure  --help=recursive
1158     elif test -f $ac_srcdir/configure.ac ||
1159            test -f $ac_srcdir/configure.in; then
1160       echo
1161       $ac_configure --help
1162     else
1163       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164     fi
1165     cd $ac_popdir
1166   done
1167 fi
1168
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1171   cat <<\_ACEOF
1172 llvm configure 1.4
1173 generated by GNU Autoconf 2.59
1174
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1178
1179 $LLVM_COPYRIGHT
1180 _ACEOF
1181   exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by llvm $as_me 1.4, which was
1189 generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191   $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222   IFS=$as_save_IFS
1223   test -z "$as_dir" && as_dir=.
1224   echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251   for ac_arg
1252   do
1253     case $ac_arg in
1254     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256     | -silent | --silent | --silen | --sile | --sil)
1257       continue ;;
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     esac
1261     case $ac_pass in
1262     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263     2)
1264       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265       if test $ac_must_keep_next = true; then
1266         ac_must_keep_next=false # Got value, back to normal.
1267       else
1268         case $ac_arg in
1269           *=* | --config-cache | -C | -disable-* | --disable-* \
1270           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272           | -with-* | --with-* | -without-* | --without-* | --x)
1273             case "$ac_configure_args0 " in
1274               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275             esac
1276             ;;
1277           -* ) ac_must_keep_next=true ;;
1278         esac
1279       fi
1280       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281       # Get rid of the leading space.
1282       ac_sep=" "
1283       ;;
1284     esac
1285   done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log.  We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296   # Save into config.log some information that might help in debugging.
1297   {
1298     echo
1299
1300     cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305     echo
1306     # The following way of writing the cache mishandles newlines in values,
1307 {
1308   (set) 2>&1 |
1309     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310     *ac_space=\ *)
1311       sed -n \
1312         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314       ;;
1315     *)
1316       sed -n \
1317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318       ;;
1319     esac;
1320 }
1321     echo
1322
1323     cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328     echo
1329     for ac_var in $ac_subst_vars
1330     do
1331       eval ac_val=$`echo $ac_var`
1332       echo "$ac_var='"'"'$ac_val'"'"'"
1333     done | sort
1334     echo
1335
1336     if test -n "$ac_subst_files"; then
1337       cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342       echo
1343       for ac_var in $ac_subst_files
1344       do
1345         eval ac_val=$`echo $ac_var`
1346         echo "$ac_var='"'"'$ac_val'"'"'"
1347       done | sort
1348       echo
1349     fi
1350
1351     if test -s confdefs.h; then
1352       cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357       echo
1358       sed "/^$/d" confdefs.h | sort
1359       echo
1360     fi
1361     test "$ac_signal" != 0 &&
1362       echo "$as_me: caught signal $ac_signal"
1363     echo "$as_me: exit $exit_status"
1364   } >&5
1365   rm -f core *.core &&
1366   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367     exit $exit_status
1368      ' 0
1369 for ac_signal in 1 2 13 15; do
1370   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409   if test "x$prefix" != xNONE; then
1410     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411   else
1412     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413   fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416   if test -r "$ac_site_file"; then
1417     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419     sed 's/^/| /' "$ac_site_file" >&5
1420     . "$ac_site_file"
1421   fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425   # Some versions of bash will fail to source /dev/null (special
1426   # files actually), so we avoid doing that.
1427   if test -f "$cache_file"; then
1428     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430     case $cache_file in
1431       [\\/]* | ?:[\\/]* ) . $cache_file;;
1432       *)                      . ./$cache_file;;
1433     esac
1434   fi
1435 else
1436   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438   >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447   eval ac_new_set=\$ac_env_${ac_var}_set
1448   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449   eval ac_new_val="\$ac_env_${ac_var}_value"
1450   case $ac_old_set,$ac_new_set in
1451     set,)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,set)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,);;
1460     *)
1461       if test "x$ac_old_val" != "x$ac_new_val"; then
1462         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465 echo "$as_me:   former value:  $ac_old_val" >&2;}
1466         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467 echo "$as_me:   current value: $ac_new_val" >&2;}
1468         ac_cache_corrupted=:
1469       fi;;
1470   esac
1471   # Pass precious variables to config.status.
1472   if test "$ac_new_set" = set; then
1473     case $ac_new_val in
1474     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476     *) ac_arg=$ac_var=$ac_new_val ;;
1477     esac
1478     case " $ac_configure_args " in
1479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481     esac
1482   fi
1483 done
1484 if $ac_cache_corrupted; then
1485   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1526
1527
1528
1529
1530
1531
1532
1533 ac_aux_dir=
1534 for ac_dir in autoconf $srcdir/autoconf; do
1535   if test -f $ac_dir/install-sh; then
1536     ac_aux_dir=$ac_dir
1537     ac_install_sh="$ac_aux_dir/install-sh -c"
1538     break
1539   elif test -f $ac_dir/install.sh; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/install.sh -c"
1542     break
1543   elif test -f $ac_dir/shtool; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/shtool install -c"
1546     break
1547   fi
1548 done
1549 if test -z "$ac_aux_dir"; then
1550   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1552    { (exit 1); exit 1; }; }
1553 fi
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
1558
1559 if test ${srcdir} != "." ; then
1560   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1562 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563    { (exit 1); exit 1; }; }
1564   fi
1565 fi
1566
1567 for i in `ls ${srcdir}/projects`
1568 do
1569   if test -d ${srcdir}/projects/${i} ; then
1570     case ${i} in
1571       "CVS") ;;
1572       "sample")
1573
1574 subdirs="$subdirs projects/sample"
1575     ;;
1576       "Stacker")
1577
1578 subdirs="$subdirs projects/Stacker"
1579    ;;
1580       "llvm-test")
1581
1582 subdirs="$subdirs projects/llvm-test"
1583  ;;
1584       "llvm-reopt")
1585
1586 subdirs="$subdirs projects/llvm-reopt"
1587 ;;
1588       "llvm-gcc")
1589
1590 subdirs="$subdirs projects/llvm-gcc"
1591   ;;
1592       "Java")
1593
1594 subdirs="$subdirs projects/Java"
1595       ;;
1596       "llvm-tv")
1597
1598 subdirs="$subdirs projects/llvm-tv"
1599    ;;
1600       "llvm-fefw")
1601
1602 subdirs="$subdirs projects/llvm-fefw"
1603  ;;
1604       "poolalloc")
1605
1606 subdirs="$subdirs projects/poolalloc"
1607  ;;
1608       *)
1609         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1611         ;;
1612     esac
1613   fi
1614 done
1615
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630   ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634    { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638    { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656   ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660    { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674   echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676   ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678   ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682    { (exit 1); exit 1; }; }
1683
1684 fi
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696   test "$program_prefix$program_suffix$program_transform_name" = \
1697     NONENONEs,x,x, &&
1698   program_prefix=${target_alias}-
1699
1700 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1701 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1702 if test "${llvm_cv_platform_type+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   case $build in
1706   *-*-aix*) llvm_cv_platform_type="AIX" ;;
1707   *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1708   *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1709   *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1710   *-*-interix*) llvm_cv_platform_type="Interix" ;;
1711   *-*-linux*) llvm_cv_platform_type="Linux" ;;
1712   *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1713   *-*-win32*) llvm_cv_platform_type="Win32" ;;
1714   *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1715   *) llvm_cv_platform_type="Unknown" ;;
1716 esac
1717 fi
1718 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1719 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1720
1721 if test "$llvm_cv_platform_type" = "Unknown" ; then
1722   { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1723 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1724    { (exit 1); exit 1; }; }
1725 fi
1726
1727 OS=$llvm_cv_platform_type
1728
1729
1730           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1731
1732
1733 case $target in
1734   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1735
1736   ;;
1737 esac
1738
1739 echo "$as_me:$LINENO: checking target architecture" >&5
1740 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1741 if test "${llvm_cv_target_arch+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   case $target in
1745   i*86-*)      llvm_cv_target_arch="x86" ;;
1746   sparc*-*)    llvm_cv_target_arch="Sparc" ;;
1747   powerpc*-*)  llvm_cv_target_arch="PowerPC" ;;
1748   *)           llvm_cv_target_arch="Unknown" ;;
1749 esac
1750 fi
1751 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1752 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1753
1754 if test "$llvm_cv_target_arch" = "Unknown" ; then
1755   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1756 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1757 fi
1758
1759 ARCH=$llvm_cv_target_arch
1760
1761
1762 ac_ext=c
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$CC"; then
1776   ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 CC=$ac_cv_prog_CC
1795 if test -n "$CC"; then
1796   echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803 fi
1804 if test -z "$ac_cv_prog_CC"; then
1805   ac_ct_CC=$CC
1806   # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$ac_ct_CC"; then
1814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_ac_ct_CC="gcc"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   CC=$ac_ct_CC
1842 else
1843   CC="$ac_cv_prog_CC"
1844 fi
1845
1846 if test -z "$CC"; then
1847   if test -n "$ac_tool_prefix"; then
1848   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$CC"; then
1856   ac_cv_prog_CC="$CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_CC="${ac_tool_prefix}cc"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 CC=$ac_cv_prog_CC
1875 if test -n "$CC"; then
1876   echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1878 else
1879   echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883 fi
1884 if test -z "$ac_cv_prog_CC"; then
1885   ac_ct_CC=$CC
1886   # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   if test -n "$ac_ct_CC"; then
1894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   for ac_exec_ext in '' $ac_executable_extensions; do
1902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903     ac_cv_prog_ac_ct_CC="cc"
1904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905     break 2
1906   fi
1907 done
1908 done
1909
1910 fi
1911 fi
1912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1916 else
1917   echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1919 fi
1920
1921   CC=$ac_ct_CC
1922 else
1923   CC="$ac_cv_prog_CC"
1924 fi
1925
1926 fi
1927 if test -z "$CC"; then
1928   # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$CC"; then
1936   ac_cv_prog_CC="$CC" # Let the user override the test.
1937 else
1938   ac_prog_rejected=no
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947        ac_prog_rejected=yes
1948        continue
1949      fi
1950     ac_cv_prog_CC="cc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 if test $ac_prog_rejected = yes; then
1958   # We found a bogon in the path, so make sure we never use it.
1959   set dummy $ac_cv_prog_CC
1960   shift
1961   if test $# != 0; then
1962     # We chose a different compiler from the bogus one.
1963     # However, it has the same basename, so the bogon will be chosen
1964     # first if we set CC to just the basename; use the full file name.
1965     shift
1966     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1967   fi
1968 fi
1969 fi
1970 fi
1971 CC=$ac_cv_prog_CC
1972 if test -n "$CC"; then
1973   echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980 fi
1981 if test -z "$CC"; then
1982   if test -n "$ac_tool_prefix"; then
1983   for ac_prog in cl
1984   do
1985     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$CC"; then
1993   ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2015 else
2016   echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020     test -n "$CC" && break
2021   done
2022 fi
2023 if test -z "$CC"; then
2024   ac_ct_CC=$CC
2025   for ac_prog in cl
2026 do
2027   # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$ac_ct_CC"; then
2035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044     ac_cv_prog_ac_ct_CC="$ac_prog"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2057 else
2058   echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2060 fi
2061
2062   test -n "$ac_ct_CC" && break
2063 done
2064
2065   CC=$ac_ct_CC
2066 fi
2067
2068 fi
2069
2070
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO:" \
2079      "checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082   (eval $ac_compiler --version </dev/null >&5) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087   (eval $ac_compiler -v </dev/null >&5) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092   (eval $ac_compiler -V </dev/null >&5) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h.  */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h.  */
2103
2104 int
2105 main ()
2106 {
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2116 # of exeext.
2117 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121   (eval $ac_link_default) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }; then
2125   # Find the output, starting from the most likely.  This scheme is
2126 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127 # resort.
2128
2129 # Be careful to initialize this variable, since it used to be cached.
2130 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131 ac_cv_exeext=
2132 # b.out is created by i960 compilers.
2133 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134 do
2135   test -f "$ac_file" || continue
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138         ;;
2139     conftest.$ac_ext )
2140         # This is the source file.
2141         ;;
2142     [ab].out )
2143         # We found the default executable, but exeext='' is most
2144         # certainly right.
2145         break;;
2146     *.* )
2147         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148         # FIXME: I believe we export ac_cv_exeext for Libtool,
2149         # but it would be cool to find out if it's true.  Does anybody
2150         # maintain Libtool? --akim.
2151         export ac_cv_exeext
2152         break;;
2153     * )
2154         break;;
2155   esac
2156 done
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165    { (exit 77); exit 77; }; }
2166 fi
2167
2168 ac_exeext=$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_file" >&5
2170 echo "${ECHO_T}$ac_file" >&6
2171
2172 # Check the compiler produces executables we can run.  If not, either
2173 # the compiler is broken, or we cross compile.
2174 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177 # If not cross compiling, check that we can run a simple program.
2178 if test "$cross_compiling" != yes; then
2179   if { ac_try='./$ac_file'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185     cross_compiling=no
2186   else
2187     if test "$cross_compiling" = maybe; then
2188         cross_compiling=yes
2189     else
2190         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&2;}
2196    { (exit 1); exit 1; }; }
2197     fi
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6
2202
2203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204 ac_clean_files=$ac_clean_files_save
2205 # Check the compiler produces executables we can run.  If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210 echo "${ECHO_T}$cross_compiling" >&6
2211
2212 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215   (eval $ac_link) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; then
2219   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2221 # work properly (i.e., refer to `conftest.exe'), while it won't with
2222 # `rm'.
2223 for ac_file in conftest.exe conftest conftest.*; do
2224   test -f "$ac_file" || continue
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228           export ac_cv_exeext
2229           break;;
2230     * ) break;;
2231   esac
2232 done
2233 else
2234   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2247 ac_exeext=$EXEEXT
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278        break;;
2279   esac
2280 done
2281 else
2282   echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289    { (exit 1); exit 1; }; }
2290 fi
2291
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2297 ac_objext=$OBJEXT
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309
2310 int
2311 main ()
2312 {
2313 #ifndef __GNUC__
2314        choke me
2315 #endif
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>conftest.er1
2324   ac_status=$?
2325   grep -v '^ *+' conftest.er1 >conftest.err
2326   rm -f conftest.er1
2327   cat conftest.err >&5
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } &&
2330          { ac_try='test -z "$ac_c_werror_flag"
2331                          || test ! -s conftest.err'
2332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333   (eval $ac_try) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; } &&
2337          { ac_try='test -s conftest.$ac_objext'
2338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339   (eval $ac_try) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; }; then
2343   ac_compiler_gnu=yes
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 ac_compiler_gnu=no
2349 fi
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2352
2353 fi
2354 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356 GCC=`test $ac_compiler_gnu = yes && echo yes`
2357 ac_test_CFLAGS=${CFLAGS+set}
2358 ac_save_CFLAGS=$CFLAGS
2359 CFLAGS="-g"
2360 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362 if test "${ac_cv_prog_cc_g+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h.  */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h.  */
2371
2372 int
2373 main ()
2374 {
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382   (eval $ac_compile) 2>conftest.er1
2383   ac_status=$?
2384   grep -v '^ *+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); } &&
2389          { ac_try='test -z "$ac_c_werror_flag"
2390                          || test ! -s conftest.err'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; } &&
2396          { ac_try='test -s conftest.$ac_objext'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; }; then
2402   ac_cv_prog_cc_g=yes
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_prog_cc_g=no
2408 fi
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 fi
2411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413 if test "$ac_test_CFLAGS" = set; then
2414   CFLAGS=$ac_save_CFLAGS
2415 elif test $ac_cv_prog_cc_g = yes; then
2416   if test "$GCC" = yes; then
2417     CFLAGS="-g -O2"
2418   else
2419     CFLAGS="-g"
2420   fi
2421 else
2422   if test "$GCC" = yes; then
2423     CFLAGS="-O2"
2424   else
2425     CFLAGS=
2426   fi
2427 fi
2428 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   ac_cv_prog_cc_stdc=no
2434 ac_save_CC=$CC
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441 #include <stdarg.h>
2442 #include <stdio.h>
2443 #include <sys/types.h>
2444 #include <sys/stat.h>
2445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2446 struct buf { int x; };
2447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448 static char *e (p, i)
2449      char **p;
2450      int i;
2451 {
2452   return p[i];
2453 }
2454 static char *f (char * (*g) (char **, int), char **p, ...)
2455 {
2456   char *s;
2457   va_list v;
2458   va_start (v,p);
2459   s = g (p, va_arg (v,int));
2460   va_end (v);
2461   return s;
2462 }
2463
2464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2465    function prototypes and stuff, but not '\xHH' hex character constants.
2466    These don't provoke an error unfortunately, instead are silently treated
2467    as 'x'.  The following induces an error, until -std1 is added to get
2468    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2469    array size at least.  It's necessary to write '\x00'==0 to get something
2470    that's true only with -std1.  */
2471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2477 int argc;
2478 char **argv;
2479 int
2480 main ()
2481 {
2482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 # Don't try gcc -ansi; that turns off useful extensions and
2488 # breaks some systems' header files.
2489 # AIX                   -qlanglvl=ansi
2490 # Ultrix and OSF/1      -std1
2491 # HP-UX 10.20 and later -Ae
2492 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2493 # SVR4                  -Xc -D__EXTENSIONS__
2494 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495 do
2496   CC="$ac_save_CC $ac_arg"
2497   rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499   (eval $ac_compile) 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag"
2507                          || test ! -s conftest.err'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.err conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2530
2531 fi
2532
2533 case "x$ac_cv_prog_cc_stdc" in
2534   x|xno)
2535     echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2537   *)
2538     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540     CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2542
2543 # Some people use a C++ compiler to compile C.  Since we use `exit',
2544 # in C++ we need to declare it.  In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549   choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>conftest.er1
2555   ac_status=$?
2556   grep -v '^ *+' conftest.er1 >conftest.err
2557   rm -f conftest.er1
2558   cat conftest.err >&5
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); } &&
2561          { ac_try='test -z "$ac_c_werror_flag"
2562                          || test ! -s conftest.err'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570   (eval $ac_try) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   for ac_declaration in \
2575    '' \
2576    'extern "C" void std::exit (int) throw (); using std::exit;' \
2577    'extern "C" void std::exit (int); using std::exit;' \
2578    'extern "C" void exit (int) throw ();' \
2579    'extern "C" void exit (int);' \
2580    'void exit (int);'
2581 do
2582   cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588 $ac_declaration
2589 #include <stdlib.h>
2590 int
2591 main ()
2592 {
2593 exit (42);
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   :
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 continue
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 $ac_declaration
2635 int
2636 main ()
2637 {
2638 exit (42);
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645   (eval $ac_compile) 2>conftest.er1
2646   ac_status=$?
2647   grep -v '^ *+' conftest.er1 >conftest.err
2648   rm -f conftest.er1
2649   cat conftest.err >&5
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); } &&
2652          { ac_try='test -z "$ac_c_werror_flag"
2653                          || test ! -s conftest.err'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   break
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 fi
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672 done
2673 rm -f conftest*
2674 if test -n "$ac_declaration"; then
2675   echo '#ifdef __cplusplus' >>confdefs.h
2676   echo $ac_declaration      >>confdefs.h
2677   echo '#endif'             >>confdefs.h
2678 fi
2679
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692
2693 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2694 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2695 if test "${ac_cv_c_bigendian+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   # See if sys/param.h defines the BYTE_ORDER macro.
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705 #include <sys/types.h>
2706 #include <sys/param.h>
2707
2708 int
2709 main ()
2710 {
2711 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2712  bogus endian macros
2713 #endif
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721   (eval $ac_compile) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -z "$ac_c_werror_flag"
2729                          || test ! -s conftest.err'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   # It does; now see whether it defined to BIG_ENDIAN or not.
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748 #include <sys/types.h>
2749 #include <sys/param.h>
2750
2751 int
2752 main ()
2753 {
2754 #if BYTE_ORDER != BIG_ENDIAN
2755  not big endian
2756 #endif
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -z "$ac_c_werror_flag"
2772                          || test ! -s conftest.err'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   ac_cv_c_bigendian=yes
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_cv_c_bigendian=no
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 # It does not; compile a test program.
2797 if test "$cross_compiling" = yes; then
2798   # try to guess the endianness by grepping values into an object file
2799   ac_cv_c_bigendian=unknown
2800   cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2807 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2808 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2809 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2810 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2811 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2812 int
2813 main ()
2814 {
2815  _ascii (); _ebcdic ();
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822   (eval $ac_compile) 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } &&
2829          { ac_try='test -z "$ac_c_werror_flag"
2830                          || test ! -s conftest.err'
2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; } &&
2836          { ac_try='test -s conftest.$ac_objext'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2843   ac_cv_c_bigendian=yes
2844 fi
2845 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2846   if test "$ac_cv_c_bigendian" = unknown; then
2847     ac_cv_c_bigendian=no
2848   else
2849     # finding both strings is unlikely to happen, but who knows?
2850     ac_cv_c_bigendian=unknown
2851   fi
2852 fi
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 fi
2858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859 else
2860   cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866 int
2867 main ()
2868 {
2869   /* Are we little or big endian?  From Harbison&Steele.  */
2870   union
2871   {
2872     long l;
2873     char c[sizeof (long)];
2874   } u;
2875   u.l = 1;
2876   exit (u.c[sizeof (long) - 1] == 1);
2877 }
2878 _ACEOF
2879 rm -f conftest$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881   (eval $ac_link) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   ac_cv_c_bigendian=no
2891 else
2892   echo "$as_me: program exited with status $ac_status" >&5
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 ( exit $ac_status )
2897 ac_cv_c_bigendian=yes
2898 fi
2899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2900 fi
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 fi
2904 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2905 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2906 case $ac_cv_c_bigendian in
2907   yes)
2908     ENDIAN=big
2909  ;;
2910   no)
2911     ENDIAN=little
2912  ;;
2913   *)
2914     { { echo "$as_me:$LINENO: error: unknown endianness
2915 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2916 echo "$as_me: error: unknown endianness
2917 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2918    { (exit 1); exit 1; }; } ;;
2919 esac
2920
2921
2922
2923 # Check whether --enable-optimized or --disable-optimized was given.
2924 if test "${enable_optimized+set}" = set; then
2925   enableval="$enable_optimized"
2926
2927 else
2928   enableval=no
2929 fi;
2930 if test ${enableval} = "no" ; then
2931   ENABLE_OPTIMIZED=
2932
2933 else
2934   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2935
2936 fi
2937
2938 # Check whether --enable-jit or --disable-jit was given.
2939 if test "${enable_jit+set}" = set; then
2940   enableval="$enable_jit"
2941
2942 else
2943   enableval=default
2944 fi;
2945 if test ${enableval} = "no"
2946 then
2947   JIT=
2948
2949 else
2950   case "$llvm_cv_target_arch" in
2951     x86)     JIT=TARGET_HAS_JIT=1
2952  ;;
2953     Sparc)   JIT=TARGET_HAS_JIT=1
2954  ;;
2955     PowerPC) JIT=TARGET_HAS_JIT=1
2956  ;;
2957     *)       JIT=
2958  ;;
2959   esac
2960 fi
2961
2962 # Check whether --enable-doxygen or --disable-doxygen was given.
2963 if test "${enable_doxygen+set}" = set; then
2964   enableval="$enable_doxygen"
2965
2966 else
2967   enableval=default
2968 fi;
2969 case "$enableval" in
2970   yes) ENABLE_DOXYGEN=1
2971  ;;
2972   no)  ENABLE_DOXYGEN=0
2973  ;;
2974   default) ENABLE_DOXYGEN=0
2975  ;;
2976   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2977 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2978    { (exit 1); exit 1; }; } ;;
2979 esac
2980
2981
2982 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2983 if test "${with_llvmgccdir+set}" = set; then
2984   withval="$with_llvmgccdir"
2985   LLVMGCCDIR=$withval
2986
2987 fi;
2988
2989 if test "x$LLVMGCCDIR" = x ; then
2990   case "$llvm_cv_platform_type" in
2991     Linux)
2992       if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2993         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2994
2995       fi
2996       ;;
2997     SunOS)
2998       if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2999         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3000
3001       fi
3002       ;;
3003   esac
3004 fi
3005
3006
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3014 # On Suns, sometimes $CPP names a directory.
3015 if test -n "$CPP" && test -d "$CPP"; then
3016   CPP=
3017 fi
3018 if test -z "$CPP"; then
3019   if test "${ac_cv_prog_CPP+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022       # Double quotes because CPP needs to be expanded
3023     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3024     do
3025       ac_preproc_ok=false
3026 for ac_c_preproc_warn_flag in '' yes
3027 do
3028   # Use a header file that comes with gcc, so configuring glibc
3029   # with a fresh cross-compiler works.
3030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031   # <limits.h> exists even on freestanding compilers.
3032   # On the NeXT, cc -E runs the code through the compiler's parser,
3033   # not just through cpp. "Syntax error" is here to catch this case.
3034   cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040 #ifdef __STDC__
3041 # include <limits.h>
3042 #else
3043 # include <assert.h>
3044 #endif
3045                      Syntax error
3046 _ACEOF
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } >/dev/null; then
3055   if test -s conftest.err; then
3056     ac_cpp_err=$ac_c_preproc_warn_flag
3057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058   else
3059     ac_cpp_err=
3060   fi
3061 else
3062   ac_cpp_err=yes
3063 fi
3064 if test -z "$ac_cpp_err"; then
3065   :
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070   # Broken: fails on valid input.
3071 continue
3072 fi
3073 rm -f conftest.err conftest.$ac_ext
3074
3075   # OK, works on sane cases.  Now check whether non-existent headers
3076   # can be detected and how.
3077   cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #include <ac_nonexistent.h>
3084 _ACEOF
3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } >/dev/null; then
3093   if test -s conftest.err; then
3094     ac_cpp_err=$ac_c_preproc_warn_flag
3095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096   else
3097     ac_cpp_err=
3098   fi
3099 else
3100   ac_cpp_err=yes
3101 fi
3102 if test -z "$ac_cpp_err"; then
3103   # Broken: success on invalid input.
3104 continue
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109   # Passes both tests.
3110 ac_preproc_ok=:
3111 break
3112 fi
3113 rm -f conftest.err conftest.$ac_ext
3114
3115 done
3116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117 rm -f conftest.err conftest.$ac_ext
3118 if $ac_preproc_ok; then
3119   break
3120 fi
3121
3122     done
3123     ac_cv_prog_CPP=$CPP
3124
3125 fi
3126   CPP=$ac_cv_prog_CPP
3127 else
3128   ac_cv_prog_CPP=$CPP
3129 fi
3130 echo "$as_me:$LINENO: result: $CPP" >&5
3131 echo "${ECHO_T}$CPP" >&6
3132 ac_preproc_ok=false
3133 for ac_c_preproc_warn_flag in '' yes
3134 do
3135   # Use a header file that comes with gcc, so configuring glibc
3136   # with a fresh cross-compiler works.
3137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3138   # <limits.h> exists even on freestanding compilers.
3139   # On the NeXT, cc -E runs the code through the compiler's parser,
3140   # not just through cpp. "Syntax error" is here to catch this case.
3141   cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147 #ifdef __STDC__
3148 # include <limits.h>
3149 #else
3150 # include <assert.h>
3151 #endif
3152                      Syntax error
3153 _ACEOF
3154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } >/dev/null; then
3162   if test -s conftest.err; then
3163     ac_cpp_err=$ac_c_preproc_warn_flag
3164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165   else
3166     ac_cpp_err=
3167   fi
3168 else
3169   ac_cpp_err=yes
3170 fi
3171 if test -z "$ac_cpp_err"; then
3172   :
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177   # Broken: fails on valid input.
3178 continue
3179 fi
3180 rm -f conftest.err conftest.$ac_ext
3181
3182   # OK, works on sane cases.  Now check whether non-existent headers
3183   # can be detected and how.
3184   cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <ac_nonexistent.h>
3191 _ACEOF
3192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } >/dev/null; then
3200   if test -s conftest.err; then
3201     ac_cpp_err=$ac_c_preproc_warn_flag
3202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3203   else
3204     ac_cpp_err=
3205   fi
3206 else
3207   ac_cpp_err=yes
3208 fi
3209 if test -z "$ac_cpp_err"; then
3210   # Broken: success on invalid input.
3211 continue
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216   # Passes both tests.
3217 ac_preproc_ok=:
3218 break
3219 fi
3220 rm -f conftest.err conftest.$ac_ext
3221
3222 done
3223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3224 rm -f conftest.err conftest.$ac_ext
3225 if $ac_preproc_ok; then
3226   :
3227 else
3228   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&2;}
3232    { (exit 1); exit 1; }; }
3233 fi
3234
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 if test -n "$ac_tool_prefix"; then
3247   for ac_prog in gcc
3248   do
3249     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_CC+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   if test -n "$CC"; then
3257   ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264   for ac_exec_ext in '' $ac_executable_extensions; do
3265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271 done
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277   echo "$as_me:$LINENO: result: $CC" >&5
3278 echo "${ECHO_T}$CC" >&6
3279 else
3280   echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284     test -n "$CC" && break
3285   done
3286 fi
3287 if test -z "$CC"; then
3288   ac_ct_CC=$CC
3289   for ac_prog in gcc
3290 do
3291   # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 echo "$as_me:$LINENO: checking for $ac_word" >&5
3294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   if test -n "$ac_ct_CC"; then
3299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306   for ac_exec_ext in '' $ac_executable_extensions; do
3307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308     ac_cv_prog_ac_ct_CC="$ac_prog"
3309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313 done
3314
3315 fi
3316 fi
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320 echo "${ECHO_T}$ac_ct_CC" >&6
3321 else
3322   echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324 fi
3325
3326   test -n "$ac_ct_CC" && break
3327 done
3328
3329   CC=$ac_ct_CC
3330 fi
3331
3332
3333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&2;}
3337    { (exit 1); exit 1; }; }
3338
3339 # Provide some information about the compiler.
3340 echo "$as_me:$LINENO:" \
3341      "checking for C compiler version" >&5
3342 ac_compiler=`set X $ac_compile; echo $2`
3343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3344   (eval $ac_compiler --version </dev/null >&5) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }
3348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3349   (eval $ac_compiler -v </dev/null >&5) 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }
3353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3354   (eval $ac_compiler -V </dev/null >&5) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }
3358
3359 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374 #ifndef __GNUC__
3375        choke me
3376 #endif
3377
3378   ;
3379   return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384   (eval $ac_compile) 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } &&
3391          { ac_try='test -z "$ac_c_werror_flag"
3392                          || test ! -s conftest.err'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; } &&
3398          { ac_try='test -s conftest.$ac_objext'
3399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400   (eval $ac_try) 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }; }; then
3404   ac_compiler_gnu=yes
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 ac_compiler_gnu=no
3410 fi
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413
3414 fi
3415 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3417 GCC=`test $ac_compiler_gnu = yes && echo yes`
3418 ac_test_CFLAGS=${CFLAGS+set}
3419 ac_save_CFLAGS=$CFLAGS
3420 CFLAGS="-g"
3421 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3423 if test "${ac_cv_prog_cc_g+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   ac_cv_prog_cc_g=yes
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 ac_cv_prog_cc_g=no
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471 fi
3472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3474 if test "$ac_test_CFLAGS" = set; then
3475   CFLAGS=$ac_save_CFLAGS
3476 elif test $ac_cv_prog_cc_g = yes; then
3477   if test "$GCC" = yes; then
3478     CFLAGS="-g -O2"
3479   else
3480     CFLAGS="-g"
3481   fi
3482 else
3483   if test "$GCC" = yes; then
3484     CFLAGS="-O2"
3485   else
3486     CFLAGS=
3487   fi
3488 fi
3489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3492   echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494   ac_cv_prog_cc_stdc=no
3495 ac_save_CC=$CC
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502 #include <stdarg.h>
3503 #include <stdio.h>
3504 #include <sys/types.h>
3505 #include <sys/stat.h>
3506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3507 struct buf { int x; };
3508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509 static char *e (p, i)
3510      char **p;
3511      int i;
3512 {
3513   return p[i];
3514 }
3515 static char *f (char * (*g) (char **, int), char **p, ...)
3516 {
3517   char *s;
3518   va_list v;
3519   va_start (v,p);
3520   s = g (p, va_arg (v,int));
3521   va_end (v);
3522   return s;
3523 }
3524
3525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3526    function prototypes and stuff, but not '\xHH' hex character constants.
3527    These don't provoke an error unfortunately, instead are silently treated
3528    as 'x'.  The following induces an error, until -std1 is added to get
3529    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3530    array size at least.  It's necessary to write '\x00'==0 to get something
3531    that's true only with -std1.  */
3532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533
3534 int test (int i, double x);
3535 struct s1 {int (*f) (int a);};
3536 struct s2 {int (*f) (double a);};
3537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3538 int argc;
3539 char **argv;
3540 int
3541 main ()
3542 {
3543 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 # Don't try gcc -ansi; that turns off useful extensions and
3549 # breaks some systems' header files.
3550 # AIX                   -qlanglvl=ansi
3551 # Ultrix and OSF/1      -std1
3552 # HP-UX 10.20 and later -Ae
3553 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3554 # SVR4                  -Xc -D__EXTENSIONS__
3555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3556 do
3557   CC="$ac_save_CC $ac_arg"
3558   rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560   (eval $ac_compile) 2>conftest.er1
3561   ac_status=$?
3562   grep -v '^ *+' conftest.er1 >conftest.err
3563   rm -f conftest.er1
3564   cat conftest.err >&5
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } &&
3567          { ac_try='test -z "$ac_c_werror_flag"
3568                          || test ! -s conftest.err'
3569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570   (eval $ac_try) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; } &&
3574          { ac_try='test -s conftest.$ac_objext'
3575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576   (eval $ac_try) 2>&5
3577   ac_status=$?
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); }; }; then
3580   ac_cv_prog_cc_stdc=$ac_arg
3581 break
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 fi
3587 rm -f conftest.err conftest.$ac_objext
3588 done
3589 rm -f conftest.$ac_ext conftest.$ac_objext
3590 CC=$ac_save_CC
3591
3592 fi
3593
3594 case "x$ac_cv_prog_cc_stdc" in
3595   x|xno)
3596     echo "$as_me:$LINENO: result: none needed" >&5
3597 echo "${ECHO_T}none needed" >&6 ;;
3598   *)
3599     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3600 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3601     CC="$CC $ac_cv_prog_cc_stdc" ;;
3602 esac
3603
3604 # Some people use a C++ compiler to compile C.  Since we use `exit',
3605 # in C++ we need to declare it.  In case someone uses the same compiler
3606 # for both compiling C and C++ we need to have the C++ compiler decide
3607 # the declaration of exit, since it's the most demanding environment.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 #ifndef __cplusplus
3610   choke me
3611 #endif
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615   (eval $ac_compile) 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -z "$ac_c_werror_flag"
3623                          || test ! -s conftest.err'
3624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625   (eval $ac_try) 2>&5
3626   ac_status=$?
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); }; } &&
3629          { ac_try='test -s conftest.$ac_objext'
3630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631   (eval $ac_try) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; }; then
3635   for ac_declaration in \
3636    '' \
3637    'extern "C" void std::exit (int) throw (); using std::exit;' \
3638    'extern "C" void std::exit (int); using std::exit;' \
3639    'extern "C" void exit (int) throw ();' \
3640    'extern "C" void exit (int);' \
3641    'void exit (int);'
3642 do
3643   cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 $ac_declaration
3650 #include <stdlib.h>
3651 int
3652 main ()
3653 {
3654 exit (42);
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661   (eval $ac_compile) 2>conftest.er1
3662   ac_status=$?
3663   grep -v '^ *+' conftest.er1 >conftest.err
3664   rm -f conftest.er1
3665   cat conftest.err >&5
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); } &&
3668          { ac_try='test -z "$ac_c_werror_flag"
3669                          || test ! -s conftest.err'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest.$ac_objext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   :
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 continue
3687 fi
3688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695 $ac_declaration
3696 int
3697 main ()
3698 {
3699 exit (42);
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706   (eval $ac_compile) 2>conftest.er1
3707   ac_status=$?
3708   grep -v '^ *+' conftest.er1 >conftest.err
3709   rm -f conftest.er1
3710   cat conftest.err >&5
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } &&
3713          { ac_try='test -z "$ac_c_werror_flag"
3714                          || test ! -s conftest.err'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; } &&
3720          { ac_try='test -s conftest.$ac_objext'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   break
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 fi
3732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733 done
3734 rm -f conftest*
3735 if test -n "$ac_declaration"; then
3736   echo '#ifdef __cplusplus' >>confdefs.h
3737   echo $ac_declaration      >>confdefs.h
3738   echo '#endif'             >>confdefs.h
3739 fi
3740
3741 else
3742   echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 fi
3746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 ac_ext=cc
3754 ac_cpp='$CXXCPP $CPPFLAGS'
3755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759   for ac_prog in $CCC g++
3760   do
3761     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_CXX+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   if test -n "$CXX"; then
3769   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776   for ac_exec_ext in '' $ac_executable_extensions; do
3777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783 done
3784
3785 fi
3786 fi
3787 CXX=$ac_cv_prog_CXX
3788 if test -n "$CXX"; then
3789   echo "$as_me:$LINENO: result: $CXX" >&5
3790 echo "${ECHO_T}$CXX" >&6
3791 else
3792   echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3794 fi
3795
3796     test -n "$CXX" && break
3797   done
3798 fi
3799 if test -z "$CXX"; then
3800   ac_ct_CXX=$CXX
3801   for ac_prog in $CCC g++
3802 do
3803   # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   if test -n "$ac_ct_CXX"; then
3811   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_ac_ct_CXX="$ac_prog"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827 fi
3828 fi
3829 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3830 if test -n "$ac_ct_CXX"; then
3831   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3832 echo "${ECHO_T}$ac_ct_CXX" >&6
3833 else
3834   echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837
3838   test -n "$ac_ct_CXX" && break
3839 done
3840 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3841
3842   CXX=$ac_ct_CXX
3843 fi
3844
3845
3846 # Provide some information about the compiler.
3847 echo "$as_me:$LINENO:" \
3848      "checking for C++ compiler version" >&5
3849 ac_compiler=`set X $ac_compile; echo $2`
3850 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3851   (eval $ac_compiler --version </dev/null >&5) 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }
3855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3856   (eval $ac_compiler -v </dev/null >&5) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }
3860 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3861   (eval $ac_compiler -V </dev/null >&5) 2>&5
3862   ac_status=$?
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); }
3865
3866 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3867 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3868 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __GNUC__
3882        choke me
3883 #endif
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891   (eval $ac_compile) 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } &&
3898          { ac_try='test -z "$ac_cxx_werror_flag"
3899                          || test ! -s conftest.err'
3900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901   (eval $ac_try) 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }; } &&
3905          { ac_try='test -s conftest.$ac_objext'
3906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907   (eval $ac_try) 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); }; }; then
3911   ac_compiler_gnu=yes
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916 ac_compiler_gnu=no
3917 fi
3918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3920
3921 fi
3922 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3923 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3924 GXX=`test $ac_compiler_gnu = yes && echo yes`
3925 ac_test_CXXFLAGS=${CXXFLAGS+set}
3926 ac_save_CXXFLAGS=$CXXFLAGS
3927 CXXFLAGS="-g"
3928 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3929 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3930 if test "${ac_cv_prog_cxx_g+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939
3940 int
3941 main ()
3942 {
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950   (eval $ac_compile) 2>conftest.er1
3951   ac_status=$?
3952   grep -v '^ *+' conftest.er1 >conftest.err
3953   rm -f conftest.er1
3954   cat conftest.err >&5
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); } &&
3957          { ac_try='test -z "$ac_cxx_werror_flag"
3958                          || test ! -s conftest.err'
3959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960   (eval $ac_try) 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); }; } &&
3964          { ac_try='test -s conftest.$ac_objext'
3965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966   (eval $ac_try) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; }; then
3970   ac_cv_prog_cxx_g=yes
3971 else
3972   echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 ac_cv_prog_cxx_g=no
3976 fi
3977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978 fi
3979 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3980 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3981 if test "$ac_test_CXXFLAGS" = set; then
3982   CXXFLAGS=$ac_save_CXXFLAGS
3983 elif test $ac_cv_prog_cxx_g = yes; then
3984   if test "$GXX" = yes; then
3985     CXXFLAGS="-g -O2"
3986   else
3987     CXXFLAGS="-g"
3988   fi
3989 else
3990   if test "$GXX" = yes; then
3991     CXXFLAGS="-O2"
3992   else
3993     CXXFLAGS=
3994   fi
3995 fi
3996 for ac_declaration in \
3997    '' \
3998    'extern "C" void std::exit (int) throw (); using std::exit;' \
3999    'extern "C" void std::exit (int); using std::exit;' \
4000    'extern "C" void exit (int) throw ();' \
4001    'extern "C" void exit (int);' \
4002    'void exit (int);'
4003 do
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 $ac_declaration
4011 #include <stdlib.h>
4012 int
4013 main ()
4014 {
4015 exit (42);
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022   (eval $ac_compile) 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -z "$ac_cxx_werror_flag"
4030                          || test ! -s conftest.err'
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); }; } &&
4036          { ac_try='test -s conftest.$ac_objext'
4037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038   (eval $ac_try) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; }; then
4042   :
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 continue
4048 fi
4049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050   cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 $ac_declaration
4057 int
4058 main ()
4059 {
4060 exit (42);
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067   (eval $ac_compile) 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_cxx_werror_flag"
4075                          || test ! -s conftest.err'
4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; } &&
4081          { ac_try='test -s conftest.$ac_objext'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; }; then
4087   break
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 fi
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 done
4095 rm -f conftest*
4096 if test -n "$ac_declaration"; then
4097   echo '#ifdef __cplusplus' >>confdefs.h
4098   echo $ac_declaration      >>confdefs.h
4099   echo '#endif'             >>confdefs.h
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108 echo "$as_me:$LINENO: checking " >&5
4109 echo $ECHO_N "checking ... $ECHO_C" >&6
4110 if test "${ac_cv_has_flex+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   for ac_prog in flex lex
4114 do
4115   # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_LEX+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$LEX"; then
4123   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_prog_LEX="$ac_prog"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139 fi
4140 fi
4141 LEX=$ac_cv_prog_LEX
4142 if test -n "$LEX"; then
4143   echo "$as_me:$LINENO: result: $LEX" >&5
4144 echo "${ECHO_T}$LEX" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150   test -n "$LEX" && break
4151 done
4152 test -n "$LEX" || LEX=":"
4153
4154 if test -z "$LEXLIB"
4155 then
4156   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4157 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4158 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   ac_check_lib_save_LIBS=$LIBS
4162 LIBS="-lfl  $LIBS"
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169
4170 /* Override any gcc2 internal prototype to avoid an error.  */
4171 #ifdef __cplusplus
4172 extern "C"
4173 #endif
4174 /* We use char because int might match the return type of a gcc2
4175    builtin and then its argument prototype would still apply.  */
4176 char yywrap ();
4177 int
4178 main ()
4179 {
4180 yywrap ();
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest.$ac_objext conftest$ac_exeext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187   (eval $ac_link) 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } &&
4194          { ac_try='test -z "$ac_c_werror_flag"
4195                          || test ! -s conftest.err'
4196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197   (eval $ac_try) 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; } &&
4201          { ac_try='test -s conftest$ac_exeext'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   ac_cv_lib_fl_yywrap=yes
4208 else
4209   echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 ac_cv_lib_fl_yywrap=no
4213 fi
4214 rm -f conftest.err conftest.$ac_objext \
4215       conftest$ac_exeext conftest.$ac_ext
4216 LIBS=$ac_check_lib_save_LIBS
4217 fi
4218 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4219 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4220 if test $ac_cv_lib_fl_yywrap = yes; then
4221   LEXLIB="-lfl"
4222 else
4223   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4224 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4225 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   ac_check_lib_save_LIBS=$LIBS
4229 LIBS="-ll  $LIBS"
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236
4237 /* Override any gcc2 internal prototype to avoid an error.  */
4238 #ifdef __cplusplus
4239 extern "C"
4240 #endif
4241 /* We use char because int might match the return type of a gcc2
4242    builtin and then its argument prototype would still apply.  */
4243 char yywrap ();
4244 int
4245 main ()
4246 {
4247 yywrap ();
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254   (eval $ac_link) 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag"
4262                          || test ! -s conftest.err'
4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; } &&
4268          { ac_try='test -s conftest$ac_exeext'
4269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270   (eval $ac_try) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   ac_cv_lib_l_yywrap=yes
4275 else
4276   echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 ac_cv_lib_l_yywrap=no
4280 fi
4281 rm -f conftest.err conftest.$ac_objext \
4282       conftest$ac_exeext conftest.$ac_ext
4283 LIBS=$ac_check_lib_save_LIBS
4284 fi
4285 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4286 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4287 if test $ac_cv_lib_l_yywrap = yes; then
4288   LEXLIB="-ll"
4289 fi
4290
4291 fi
4292
4293 fi
4294
4295 if test "x$LEX" != "x:"; then
4296   echo "$as_me:$LINENO: checking lex output file root" >&5
4297 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4298 if test "${ac_cv_prog_lex_root+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   # The minimal lex program is just a single line: %%.  But some broken lexes
4302 # (Solaris, I think it was) want two %% lines, so accommodate them.
4303 cat >conftest.l <<_ACEOF
4304 %%
4305 %%
4306 _ACEOF
4307 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4308   (eval $LEX conftest.l) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }
4312 if test -f lex.yy.c; then
4313   ac_cv_prog_lex_root=lex.yy
4314 elif test -f lexyy.c; then
4315   ac_cv_prog_lex_root=lexyy
4316 else
4317   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4318 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4319    { (exit 1); exit 1; }; }
4320 fi
4321 fi
4322 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4323 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4324 rm -f conftest.l
4325 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4326
4327 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4328 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4329 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   # POSIX says lex can declare yytext either as a pointer or an array; the
4333 # default is implementation-dependent. Figure out which it is, since
4334 # not all implementations provide the %pointer and %array declarations.
4335 ac_cv_prog_lex_yytext_pointer=no
4336 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4337 ac_save_LIBS=$LIBS
4338 LIBS="$LIBS $LEXLIB"
4339 cat >conftest.$ac_ext <<_ACEOF
4340 `cat $LEX_OUTPUT_ROOT.c`
4341 _ACEOF
4342 rm -f conftest.$ac_objext conftest$ac_exeext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344   (eval $ac_link) 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } &&
4351          { ac_try='test -z "$ac_c_werror_flag"
4352                          || test ! -s conftest.err'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; } &&
4358          { ac_try='test -s conftest$ac_exeext'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; }; then
4364   ac_cv_prog_lex_yytext_pointer=yes
4365 else
4366   echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 fi
4370 rm -f conftest.err conftest.$ac_objext \
4371       conftest$ac_exeext conftest.$ac_ext
4372 LIBS=$ac_save_LIBS
4373 rm -f "${LEX_OUTPUT_ROOT}.c"
4374
4375 fi
4376 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4377 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4378 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4379
4380 cat >>confdefs.h <<\_ACEOF
4381 #define YYTEXT_POINTER 1
4382 _ACEOF
4383
4384 fi
4385
4386 fi
4387
4388 fi
4389 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4390 echo "${ECHO_T}$ac_cv_has_flex" >&6
4391 if test "$LEX" != "flex"; then
4392   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4393 echo "$as_me: error: flex not found but required" >&2;}
4394    { (exit 1); exit 1; }; }
4395 else
4396   FLEX=flex
4397
4398 fi
4399
4400 echo "$as_me:$LINENO: checking " >&5
4401 echo $ECHO_N "checking ... $ECHO_C" >&6
4402 if test "${llvm_cv_has_bison+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   for ac_prog in 'bison -y' byacc
4406 do
4407   # Extract the first word of "$ac_prog", so it can be a program name with args.
4408 set dummy $ac_prog; ac_word=$2
4409 echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4411 if test "${ac_cv_prog_YACC+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test -n "$YACC"; then
4415   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424     ac_cv_prog_YACC="$ac_prog"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430
4431 fi
4432 fi
4433 YACC=$ac_cv_prog_YACC
4434 if test -n "$YACC"; then
4435   echo "$as_me:$LINENO: result: $YACC" >&5
4436 echo "${ECHO_T}$YACC" >&6
4437 else
4438   echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4440 fi
4441
4442   test -n "$YACC" && break
4443 done
4444 test -n "$YACC" || YACC="yacc"
4445
4446
4447 fi
4448 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4449 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4450 if test "$YACC" != "bison -y"; then
4451   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4452 echo "$as_me: error: bison not found but required" >&2;}
4453    { (exit 1); exit 1; }; }
4454 else
4455   BISON=bison
4456
4457 fi
4458
4459
4460 echo "$as_me:$LINENO: checking for GNU make" >&5
4461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462 if test "${llvm_cv_gnu_make_command+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   llvm_cv_gnu_make_command=''
4466  for a in "$MAKE" make gmake gnumake ; do
4467   if test -z "$a" ; then continue ; fi ;
4468   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4469   then
4470    llvm_cv_gnu_make_command=$a ;
4471    break;
4472   fi
4473  done
4474 fi
4475 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4478    ifGNUmake='' ;
4479  else
4480    ifGNUmake='#' ;
4481    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482 echo "${ECHO_T}\"Not found\"" >&6;
4483  fi
4484
4485
4486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4488 LN_S=$as_ln_s
4489 if test "$LN_S" = "ln -s"; then
4490   echo "$as_me:$LINENO: result: yes" >&5
4491 echo "${ECHO_T}yes" >&6
4492 else
4493   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494 echo "${ECHO_T}no, using $LN_S" >&6
4495 fi
4496
4497 # Extract the first word of "date", so it can be a program name with args.
4498 set dummy date; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_DATE+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   case $DATE in
4505   [\\/]* | ?:[\\/]*)
4506   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4507   ;;
4508   *)
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514   for ac_exec_ext in '' $ac_executable_extensions; do
4515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522
4523   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4524   ;;
4525 esac
4526 fi
4527 DATE=$ac_cv_path_DATE
4528
4529 if test -n "$DATE"; then
4530   echo "$as_me:$LINENO: result: $DATE" >&5
4531 echo "${ECHO_T}$DATE" >&6
4532 else
4533   echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537 # Extract the first word of "find", so it can be a program name with args.
4538 set dummy find; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_path_FIND+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   case $FIND in
4545   [\\/]* | ?:[\\/]*)
4546   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4547   ;;
4548   *)
4549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562
4563   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4564   ;;
4565 esac
4566 fi
4567 FIND=$ac_cv_path_FIND
4568
4569 if test -n "$FIND"; then
4570   echo "$as_me:$LINENO: result: $FIND" >&5
4571 echo "${ECHO_T}$FIND" >&6
4572 else
4573   echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4575 fi
4576
4577 # Extract the first word of "grep", so it can be a program name with args.
4578 set dummy grep; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_GREP+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   case $GREP in
4585   [\\/]* | ?:[\\/]*)
4586   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4587   ;;
4588   *)
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602
4603   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4604   ;;
4605 esac
4606 fi
4607 GREP=$ac_cv_path_GREP
4608
4609 if test -n "$GREP"; then
4610   echo "$as_me:$LINENO: result: $GREP" >&5
4611 echo "${ECHO_T}$GREP" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617 # Extract the first word of "mkdir", so it can be a program name with args.
4618 set dummy mkdir; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_MKDIR+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $MKDIR in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4644   ;;
4645 esac
4646 fi
4647 MKDIR=$ac_cv_path_MKDIR
4648
4649 if test -n "$MKDIR"; then
4650   echo "$as_me:$LINENO: result: $MKDIR" >&5
4651 echo "${ECHO_T}$MKDIR" >&6
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 fi
4656
4657 # Extract the first word of "mv", so it can be a program name with args.
4658 set dummy mv; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_MV+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   case $MV in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4684   ;;
4685 esac
4686 fi
4687 MV=$ac_cv_path_MV
4688
4689 if test -n "$MV"; then
4690   echo "$as_me:$LINENO: result: $MV" >&5
4691 echo "${ECHO_T}$MV" >&6
4692 else
4693   echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695 fi
4696
4697 # Extract the first word of "pax", so it can be a program name with args.
4698 set dummy pax; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_PAX+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $PAX in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722
4723   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4724   ;;
4725 esac
4726 fi
4727 PAX=$ac_cv_path_PAX
4728
4729 if test -n "$PAX"; then
4730   echo "$as_me:$LINENO: result: $PAX" >&5
4731 echo "${ECHO_T}$PAX" >&6
4732 else
4733   echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4735 fi
4736
4737 if test -n "$ac_tool_prefix"; then
4738   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740 echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_prog_RANLIB+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   if test -n "$RANLIB"; then
4746   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760 done
4761
4762 fi
4763 fi
4764 RANLIB=$ac_cv_prog_RANLIB
4765 if test -n "$RANLIB"; then
4766   echo "$as_me:$LINENO: result: $RANLIB" >&5
4767 echo "${ECHO_T}$RANLIB" >&6
4768 else
4769   echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4771 fi
4772
4773 fi
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775   ac_ct_RANLIB=$RANLIB
4776   # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   if test -n "$ac_ct_RANLIB"; then
4784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_prog_ac_ct_RANLIB="ranlib"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799
4800   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4801 fi
4802 fi
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4807 else
4808   echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4810 fi
4811
4812   RANLIB=$ac_ct_RANLIB
4813 else
4814   RANLIB="$ac_cv_prog_RANLIB"
4815 fi
4816
4817 # Extract the first word of "rm", so it can be a program name with args.
4818 set dummy rm; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_RM+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   case $RM in
4825   [\\/]* | ?:[\\/]*)
4826   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4827   ;;
4828   *)
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834   for ac_exec_ext in '' $ac_executable_extensions; do
4835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841 done
4842
4843   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4844   ;;
4845 esac
4846 fi
4847 RM=$ac_cv_path_RM
4848
4849 if test -n "$RM"; then
4850   echo "$as_me:$LINENO: result: $RM" >&5
4851 echo "${ECHO_T}$RM" >&6
4852 else
4853   echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4855 fi
4856
4857 # Extract the first word of "sed", so it can be a program name with args.
4858 set dummy sed; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_SED+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $SED in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882
4883   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4884   ;;
4885 esac
4886 fi
4887 SED=$ac_cv_path_SED
4888
4889 if test -n "$SED"; then
4890   echo "$as_me:$LINENO: result: $SED" >&5
4891 echo "${ECHO_T}$SED" >&6
4892 else
4893   echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4895 fi
4896
4897 # Extract the first word of "tar", so it can be a program name with args.
4898 set dummy tar; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_TAR+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   case $TAR in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922
4923   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4924   ;;
4925 esac
4926 fi
4927 TAR=$ac_cv_path_TAR
4928
4929 if test -n "$TAR"; then
4930   echo "$as_me:$LINENO: result: $TAR" >&5
4931 echo "${ECHO_T}$TAR" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937
4938 # Find a good install program.  We prefer a C program (faster),
4939 # so one script is as good as another.  But avoid the broken or
4940 # incompatible versions:
4941 # SysV /etc/install, /usr/sbin/install
4942 # SunOS /usr/etc/install
4943 # IRIX /sbin/install
4944 # AIX /bin/install
4945 # AmigaOS /C/install, which installs bootblocks on floppy discs
4946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4949 # OS/2's system install, which has a completely different semantic
4950 # ./install, which can be erroneously created by make from ./install.sh.
4951 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4952 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4953 if test -z "$INSTALL"; then
4954 if test "${ac_cv_path_install+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962   # Account for people who put trailing slashes in PATH elements.
4963 case $as_dir/ in
4964   ./ | .// | /cC/* | \
4965   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4966   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4967   /usr/ucb/* ) ;;
4968   *)
4969     # OSF1 and SCO ODT 3.0 have their own names for install.
4970     # Don't use installbsd from OSF since it installs stuff as root
4971     # by default.
4972     for ac_prog in ginstall scoinst install; do
4973       for ac_exec_ext in '' $ac_executable_extensions; do
4974         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4975           if test $ac_prog = install &&
4976             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977             # AIX install.  It has an incompatible calling convention.
4978             :
4979           elif test $ac_prog = install &&
4980             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4981             # program-specific install script used by HP pwplus--don't use.
4982             :
4983           else
4984             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4985             break 3
4986           fi
4987         fi
4988       done
4989     done
4990     ;;
4991 esac
4992 done
4993
4994
4995 fi
4996   if test "${ac_cv_path_install+set}" = set; then
4997     INSTALL=$ac_cv_path_install
4998   else
4999     # As a last resort, use the slow shell script.  We don't cache a
5000     # path for INSTALL within a source directory, because that will
5001     # break other packages using the cache if that directory is
5002     # removed, or if the path is relative.
5003     INSTALL=$ac_install_sh
5004   fi
5005 fi
5006 echo "$as_me:$LINENO: result: $INSTALL" >&5
5007 echo "${ECHO_T}$INSTALL" >&6
5008
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012
5013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5014
5015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5016
5017
5018 # Extract the first word of "bzip2", so it can be a program name with args.
5019 set dummy bzip2; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_path_BZIP2+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   case $BZIP2 in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043
5044   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5045   ;;
5046 esac
5047 fi
5048 BZIP2=$ac_cv_path_BZIP2
5049
5050 if test -n "$BZIP2"; then
5051   echo "$as_me:$LINENO: result: $BZIP2" >&5
5052 echo "${ECHO_T}$BZIP2" >&6
5053 else
5054   echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058 # Extract the first word of "dot", so it can be a program name with args.
5059 set dummy dot; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_path_DOT+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   case $DOT in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083
5084   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5085   ;;
5086 esac
5087 fi
5088 DOT=$ac_cv_path_DOT
5089
5090 if test -n "$DOT"; then
5091   echo "$as_me:$LINENO: result: $DOT" >&5
5092 echo "${ECHO_T}$DOT" >&6
5093 else
5094   echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5096 fi
5097
5098 # Extract the first word of "doxygen", so it can be a program name with args.
5099 set dummy doxygen; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   case $DOXYGEN in
5106   [\\/]* | ?:[\\/]*)
5107   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5108   ;;
5109   *)
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123
5124   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5125   ;;
5126 esac
5127 fi
5128 DOXYGEN=$ac_cv_path_DOXYGEN
5129
5130 if test -n "$DOXYGEN"; then
5131   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5132 echo "${ECHO_T}$DOXYGEN" >&6
5133 else
5134   echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5136 fi
5137
5138 # Extract the first word of "etags", so it can be a program name with args.
5139 set dummy etags; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_ETAGS+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   case $ETAGS in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5165   ;;
5166 esac
5167 fi
5168 ETAGS=$ac_cv_path_ETAGS
5169
5170 if test -n "$ETAGS"; then
5171   echo "$as_me:$LINENO: result: $ETAGS" >&5
5172 echo "${ECHO_T}$ETAGS" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178 # Extract the first word of "groff", so it can be a program name with args.
5179 set dummy groff; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_GROFF+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $GROFF in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5205   ;;
5206 esac
5207 fi
5208 GROFF=$ac_cv_path_GROFF
5209
5210 if test -n "$GROFF"; then
5211   echo "$as_me:$LINENO: result: $GROFF" >&5
5212 echo "${ECHO_T}$GROFF" >&6
5213 else
5214   echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5216 fi
5217
5218 # Extract the first word of "gzip", so it can be a program name with args.
5219 set dummy gzip; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_GZIP+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   case $GZIP in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243
5244   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5245   ;;
5246 esac
5247 fi
5248 GZIP=$ac_cv_path_GZIP
5249
5250 if test -n "$GZIP"; then
5251   echo "$as_me:$LINENO: result: $GZIP" >&5
5252 echo "${ECHO_T}$GZIP" >&6
5253 else
5254   echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258 # Extract the first word of "pod2html", so it can be a program name with args.
5259 set dummy pod2html; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_POD2HTML+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   case $POD2HTML in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for ac_exec_ext in '' $ac_executable_extensions; do
5276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282 done
5283
5284   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5285   ;;
5286 esac
5287 fi
5288 POD2HTML=$ac_cv_path_POD2HTML
5289
5290 if test -n "$POD2HTML"; then
5291   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5292 echo "${ECHO_T}$POD2HTML" >&6
5293 else
5294   echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296 fi
5297
5298 # Extract the first word of "pod2man", so it can be a program name with args.
5299 set dummy pod2man; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_POD2MAN+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   case $POD2MAN in
5306   [\\/]* | ?:[\\/]*)
5307   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5308   ;;
5309   *)
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5325   ;;
5326 esac
5327 fi
5328 POD2MAN=$ac_cv_path_POD2MAN
5329
5330 if test -n "$POD2MAN"; then
5331   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5332 echo "${ECHO_T}$POD2MAN" >&6
5333 else
5334   echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5336 fi
5337
5338 # Extract the first word of "python", so it can be a program name with args.
5339 set dummy python; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_PYTHON+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   case $PYTHON in
5346   [\\/]* | ?:[\\/]*)
5347   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5348   ;;
5349   *)
5350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355   for ac_exec_ext in '' $ac_executable_extensions; do
5356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362 done
5363
5364   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5365   ;;
5366 esac
5367 fi
5368 PYTHON=$ac_cv_path_PYTHON
5369
5370 if test -n "$PYTHON"; then
5371   echo "$as_me:$LINENO: result: $PYTHON" >&5
5372 echo "${ECHO_T}$PYTHON" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378 # Extract the first word of "qmtest", so it can be a program name with args.
5379 set dummy qmtest; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_QMTEST+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   case $QMTEST in
5386   [\\/]* | ?:[\\/]*)
5387   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5388   ;;
5389   *)
5390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5405   ;;
5406 esac
5407 fi
5408 QMTEST=$ac_cv_path_QMTEST
5409
5410 if test -n "$QMTEST"; then
5411   echo "$as_me:$LINENO: result: $QMTEST" >&5
5412 echo "${ECHO_T}$QMTEST" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418 # Extract the first word of "runtest", so it can be a program name with args.
5419 set dummy runtest; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_path_RUNTEST+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   case $RUNTEST in
5426   [\\/]* | ?:[\\/]*)
5427   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5428   ;;
5429   *)
5430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435   for ac_exec_ext in '' $ac_executable_extensions; do
5436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442 done
5443
5444   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5445   ;;
5446 esac
5447 fi
5448 RUNTEST=$ac_cv_path_RUNTEST
5449
5450 if test -n "$RUNTEST"; then
5451   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5452 echo "${ECHO_T}$RUNTEST" >&6
5453 else
5454   echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5456 fi
5457
5458 # Extract the first word of "zip", so it can be a program name with args.
5459 set dummy zip; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_path_ZIP+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   case $ZIP in
5466   [\\/]* | ?:[\\/]*)
5467   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5468   ;;
5469   *)
5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483
5484   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5485   ;;
5486 esac
5487 fi
5488 ZIP=$ac_cv_path_ZIP
5489
5490 if test -n "$ZIP"; then
5491   echo "$as_me:$LINENO: result: $ZIP" >&5
5492 echo "${ECHO_T}$ZIP" >&6
5493 else
5494   echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496 fi
5497
5498
5499 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5500 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5501 if test "${llvm_cv_link_use_r+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504    ac_ext=c
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510   oldcflags="$CFLAGS"
5511   CFLAGS="$CFLAGS -Wl,-R."
5512   cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518
5519 int
5520 main ()
5521 {
5522 int main() { return 0; }
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          { ac_try='test -z "$ac_c_werror_flag"
5537                          || test ! -s conftest.err'
5538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539   (eval $ac_try) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; } &&
5543          { ac_try='test -s conftest$ac_exeext'
5544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545   (eval $ac_try) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; }; then
5549   llvm_cv_link_use_r=yes
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 llvm_cv_link_use_r=no
5555 fi
5556 rm -f conftest.err conftest.$ac_objext \
5557       conftest$ac_exeext conftest.$ac_ext
5558   CFLAGS="$oldcflags"
5559   ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
5565
5566 fi
5567 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5568 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5569 if test "$llvm_cv_link_use_r" = yes ; then
5570
5571 cat >>confdefs.h <<\_ACEOF
5572 #define HAVE_LINK_R 1
5573 _ACEOF
5574
5575   fi
5576
5577
5578
5579
5580 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5581 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5582 if test "${ac_cv_c_const+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591
5592 int
5593 main ()
5594 {
5595 /* FIXME: Include the comments suggested by Paul. */
5596 #ifndef __cplusplus
5597   /* Ultrix mips cc rejects this.  */
5598   typedef int charset[2];
5599   const charset x;
5600   /* SunOS 4.1.1 cc rejects this.  */
5601   char const *const *ccp;
5602   char **p;
5603   /* NEC SVR4.0.2 mips cc rejects this.  */
5604   struct point {int x, y;};
5605   static struct point const zero = {0,0};
5606   /* AIX XL C 1.02.0.0 rejects this.
5607      It does not let you subtract one const X* pointer from another in
5608      an arm of an if-expression whose if-part is not a constant
5609      expression */
5610   const char *g = "string";
5611   ccp = &g + (g ? g-g : 0);
5612   /* HPUX 7.0 cc rejects these. */
5613   ++ccp;
5614   p = (char**) ccp;
5615   ccp = (char const *const *) p;
5616   { /* SCO 3.2v4 cc rejects this.  */
5617     char *t;
5618     char const *s = 0 ? (char *) 0 : (char const *) 0;
5619
5620     *t++ = 0;
5621   }
5622   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5623     int x[] = {25, 17};
5624     const int *foo = &x[0];
5625     ++foo;
5626   }
5627   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5628     typedef const int *iptr;
5629     iptr p = 0;
5630     ++p;
5631   }
5632   { /* AIX XL C 1.02.0.0 rejects this saying
5633        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5634     struct s { int j; const int *ap[3]; };
5635     struct s *b; b->j = 5;
5636   }
5637   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5638     const int foo = 10;
5639   }
5640 #endif
5641
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648   (eval $ac_compile) 2>conftest.er1
5649   ac_status=$?
5650   grep -v '^ *+' conftest.er1 >conftest.err
5651   rm -f conftest.er1
5652   cat conftest.err >&5
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } &&
5655          { ac_try='test -z "$ac_c_werror_flag"
5656                          || test ! -s conftest.err'
5657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658   (eval $ac_try) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); }; } &&
5662          { ac_try='test -s conftest.$ac_objext'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; }; then
5668   ac_cv_c_const=yes
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 ac_cv_c_const=no
5674 fi
5675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5676 fi
5677 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5678 echo "${ECHO_T}$ac_cv_c_const" >&6
5679 if test $ac_cv_c_const = no; then
5680
5681 cat >>confdefs.h <<\_ACEOF
5682 #define const
5683 _ACEOF
5684
5685 fi
5686
5687
5688 echo "$as_me:$LINENO: checking for egrep" >&5
5689 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5690 if test "${ac_cv_prog_egrep+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5694     then ac_cv_prog_egrep='grep -E'
5695     else ac_cv_prog_egrep='egrep'
5696     fi
5697 fi
5698 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5699 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5700  EGREP=$ac_cv_prog_egrep
5701
5702
5703 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5705 if test "${ac_cv_header_stdc+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h.  */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h.  */
5714 #include <stdlib.h>
5715 #include <stdarg.h>
5716 #include <string.h>
5717 #include <float.h>
5718
5719 int
5720 main ()
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729   (eval $ac_compile) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest.$ac_objext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_cv_header_stdc=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 ac_cv_header_stdc=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757
5758 if test $ac_cv_header_stdc = yes; then
5759   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5760   cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 #include <string.h>
5767
5768 _ACEOF
5769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5770   $EGREP "memchr" >/dev/null 2>&1; then
5771   :
5772 else
5773   ac_cv_header_stdc=no
5774 fi
5775 rm -f conftest*
5776
5777 fi
5778
5779 if test $ac_cv_header_stdc = yes; then
5780   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 #include <stdlib.h>
5788
5789 _ACEOF
5790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5791   $EGREP "free" >/dev/null 2>&1; then
5792   :
5793 else
5794   ac_cv_header_stdc=no
5795 fi
5796 rm -f conftest*
5797
5798 fi
5799
5800 if test $ac_cv_header_stdc = yes; then
5801   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5802   if test "$cross_compiling" = yes; then
5803   :
5804 else
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <ctype.h>
5812 #if ((' ' & 0x0FF) == 0x020)
5813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5815 #else
5816 # define ISLOWER(c) \
5817                    (('a' <= (c) && (c) <= 'i') \
5818                      || ('j' <= (c) && (c) <= 'r') \
5819                      || ('s' <= (c) && (c) <= 'z'))
5820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5821 #endif
5822
5823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5824 int
5825 main ()
5826 {
5827   int i;
5828   for (i = 0; i < 256; i++)
5829     if (XOR (islower (i), ISLOWER (i))
5830         || toupper (i) != TOUPPER (i))
5831       exit(2);
5832   exit (0);
5833 }
5834 _ACEOF
5835 rm -f conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837   (eval $ac_link) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842   (eval $ac_try) 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; }; then
5846   :
5847 else
5848   echo "$as_me: program exited with status $ac_status" >&5
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ( exit $ac_status )
5853 ac_cv_header_stdc=no
5854 fi
5855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 fi
5858 fi
5859 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5860 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5861 if test $ac_cv_header_stdc = yes; then
5862
5863 cat >>confdefs.h <<\_ACEOF
5864 #define STDC_HEADERS 1
5865 _ACEOF
5866
5867 fi
5868
5869
5870
5871
5872
5873
5874 ac_header_dirent=no
5875 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5876   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5877 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5878 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888 #include <sys/types.h>
5889 #include <$ac_hdr>
5890
5891 int
5892 main ()
5893 {
5894 if ((DIR *) 0)
5895 return 0;
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902   (eval $ac_compile) 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -z "$ac_c_werror_flag"
5910                          || test ! -s conftest.err'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; } &&
5916          { ac_try='test -s conftest.$ac_objext'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; }; then
5922   eval "$as_ac_Header=yes"
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 eval "$as_ac_Header=no"
5928 fi
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934   cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5936 _ACEOF
5937
5938 ac_header_dirent=$ac_hdr; break
5939 fi
5940
5941 done
5942 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5943 if test $ac_header_dirent = dirent.h; then
5944   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5945 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5946 if test "${ac_cv_search_opendir+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   ac_func_search_save_LIBS=$LIBS
5950 ac_cv_search_opendir=no
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957
5958 /* Override any gcc2 internal prototype to avoid an error.  */
5959 #ifdef __cplusplus
5960 extern "C"
5961 #endif
5962 /* We use char because int might match the return type of a gcc2
5963    builtin and then its argument prototype would still apply.  */
5964 char opendir ();
5965 int
5966 main ()
5967 {
5968 opendir ();
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5975   (eval $ac_link) 2>conftest.er1
5976   ac_status=$?
5977   grep -v '^ *+' conftest.er1 >conftest.err
5978   rm -f conftest.er1
5979   cat conftest.err >&5
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -z "$ac_c_werror_flag"
5983                          || test ! -s conftest.err'
5984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985   (eval $ac_try) 2>&5
5986   ac_status=$?
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); }; } &&
5989          { ac_try='test -s conftest$ac_exeext'
5990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; }; then
5995   ac_cv_search_opendir="none required"
5996 else
5997   echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 fi
6001 rm -f conftest.err conftest.$ac_objext \
6002       conftest$ac_exeext conftest.$ac_ext
6003 if test "$ac_cv_search_opendir" = no; then
6004   for ac_lib in dir; do
6005     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6006     cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h.  */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h.  */
6012
6013 /* Override any gcc2 internal prototype to avoid an error.  */
6014 #ifdef __cplusplus
6015 extern "C"
6016 #endif
6017 /* We use char because int might match the return type of a gcc2
6018    builtin and then its argument prototype would still apply.  */
6019 char opendir ();
6020 int
6021 main ()
6022 {
6023 opendir ();
6024   ;
6025   return 0;
6026 }
6027 _ACEOF
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030   (eval $ac_link) 2>conftest.er1
6031   ac_status=$?
6032   grep -v '^ *+' conftest.er1 >conftest.err
6033   rm -f conftest.er1
6034   cat conftest.err >&5
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } &&
6037          { ac_try='test -z "$ac_c_werror_flag"
6038                          || test ! -s conftest.err'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="-l$ac_lib"
6051 break
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 fi
6057 rm -f conftest.err conftest.$ac_objext \
6058       conftest$ac_exeext conftest.$ac_ext
6059   done
6060 fi
6061 LIBS=$ac_func_search_save_LIBS
6062 fi
6063 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6064 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6065 if test "$ac_cv_search_opendir" != no; then
6066   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6067
6068 fi
6069
6070 else
6071   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6072 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6073 if test "${ac_cv_search_opendir+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   ac_func_search_save_LIBS=$LIBS
6077 ac_cv_search_opendir=no
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084
6085 /* Override any gcc2 internal prototype to avoid an error.  */
6086 #ifdef __cplusplus
6087 extern "C"
6088 #endif
6089 /* We use char because int might match the return type of a gcc2
6090    builtin and then its argument prototype would still apply.  */
6091 char opendir ();
6092 int
6093 main ()
6094 {
6095 opendir ();
6096   ;
6097   return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102   (eval $ac_link) 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } &&
6109          { ac_try='test -z "$ac_c_werror_flag"
6110                          || test ! -s conftest.err'
6111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112   (eval $ac_try) 2>&5
6113   ac_status=$?
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); }; } &&
6116          { ac_try='test -s 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   ac_cv_search_opendir="none required"
6123 else
6124   echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6126
6127 fi
6128 rm -f conftest.err conftest.$ac_objext \
6129       conftest$ac_exeext conftest.$ac_ext
6130 if test "$ac_cv_search_opendir" = no; then
6131   for ac_lib in x; do
6132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6133     cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139
6140 /* Override any gcc2 internal prototype to avoid an error.  */
6141 #ifdef __cplusplus
6142 extern "C"
6143 #endif
6144 /* We use char because int might match the return type of a gcc2
6145    builtin and then its argument prototype would still apply.  */
6146 char opendir ();
6147 int
6148 main ()
6149 {
6150 opendir ();
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157   (eval $ac_link) 2>conftest.er1
6158   ac_status=$?
6159   grep -v '^ *+' conftest.er1 >conftest.err
6160   rm -f conftest.er1
6161   cat conftest.err >&5
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); } &&
6164          { ac_try='test -z "$ac_c_werror_flag"
6165                          || test ! -s conftest.err'
6166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167   (eval $ac_try) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); }; } &&
6171          { ac_try='test -s conftest$ac_exeext'
6172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173   (eval $ac_try) 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }; }; then
6177   ac_cv_search_opendir="-l$ac_lib"
6178 break
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 fi
6184 rm -f conftest.err conftest.$ac_objext \
6185       conftest$ac_exeext conftest.$ac_ext
6186   done
6187 fi
6188 LIBS=$ac_func_search_save_LIBS
6189 fi
6190 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6191 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6192 if test "$ac_cv_search_opendir" != no; then
6193   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6194
6195 fi
6196
6197 fi
6198
6199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6210                   inttypes.h stdint.h unistd.h
6211 do
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 echo "$as_me:$LINENO: checking for $ac_header" >&5
6214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 $ac_includes_default
6225
6226 #include <$ac_header>
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230   (eval $ac_compile) 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } &&
6237          { ac_try='test -z "$ac_c_werror_flag"
6238                          || test ! -s conftest.err'
6239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240   (eval $ac_try) 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; } &&
6244          { ac_try='test -s conftest.$ac_objext'
6245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246   (eval $ac_try) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; }; then
6250   eval "$as_ac_Header=yes"
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 eval "$as_ac_Header=no"
6256 fi
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262   cat >>confdefs.h <<_ACEOF
6263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264 _ACEOF
6265
6266 fi
6267
6268 done
6269
6270
6271
6272 for ac_header in dlfcn.h
6273 do
6274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276   echo "$as_me:$LINENO: checking for $ac_header" >&5
6277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279   echo $ECHO_N "(cached) $ECHO_C" >&6
6280 fi
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283 else
6284   # Is the header compilable?
6285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 $ac_includes_default
6294 #include <$ac_header>
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298   (eval $ac_compile) 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } &&
6305          { ac_try='test -z "$ac_c_werror_flag"
6306                          || test ! -s conftest.err'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; } &&
6312          { ac_try='test -s conftest.$ac_objext'
6313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314   (eval $ac_try) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); }; }; then
6318   ac_header_compiler=yes
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_header_compiler=no
6324 fi
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327 echo "${ECHO_T}$ac_header_compiler" >&6
6328
6329 # Is the header present?
6330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 #include <$ac_header>
6339 _ACEOF
6340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } >/dev/null; then
6348   if test -s conftest.err; then
6349     ac_cpp_err=$ac_c_preproc_warn_flag
6350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6351   else
6352     ac_cpp_err=
6353   fi
6354 else
6355   ac_cpp_err=yes
6356 fi
6357 if test -z "$ac_cpp_err"; then
6358   ac_header_preproc=yes
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363   ac_header_preproc=no
6364 fi
6365 rm -f conftest.err conftest.$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6367 echo "${ECHO_T}$ac_header_preproc" >&6
6368
6369 # So?  What about this header?
6370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6371   yes:no: )
6372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6376     ac_header_preproc=yes
6377     ;;
6378   no:yes:* )
6379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6391     (
6392       cat <<\_ASBOX
6393 ## ----------------------------------- ##
6394 ## Report this to llvmbugs@cs.uiuc.edu ##
6395 ## ----------------------------------- ##
6396 _ASBOX
6397     ) |
6398       sed "s/^/$as_me: WARNING:     /" >&2
6399     ;;
6400 esac
6401 echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   eval "$as_ac_Header=\$ac_header_preproc"
6407 fi
6408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6410
6411 fi
6412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6413   cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415 _ACEOF
6416
6417 fi
6418
6419 done
6420
6421 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6422 if test "${enable_ltdl_install+set}" = set; then
6423   enableval="$enable_ltdl_install"
6424
6425 fi;
6426
6427
6428
6429 if test x"${enable_ltdl_install-no}" != xno; then
6430   INSTALL_LTDL_TRUE=
6431   INSTALL_LTDL_FALSE='#'
6432 else
6433   INSTALL_LTDL_TRUE='#'
6434   INSTALL_LTDL_FALSE=
6435 fi
6436
6437
6438
6439 if test x"${enable_ltdl_convenience-no}" != xno; then
6440   CONVENIENCE_LTDL_TRUE=
6441   CONVENIENCE_LTDL_FALSE='#'
6442 else
6443   CONVENIENCE_LTDL_TRUE='#'
6444   CONVENIENCE_LTDL_FALSE=
6445 fi
6446
6447
6448 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6449 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6450 library_names_spec=
6451 libname_spec='lib$name'
6452 soname_spec=
6453 shrext_cmds=".so"
6454 postinstall_cmds=
6455 postuninstall_cmds=
6456 finish_cmds=
6457 finish_eval=
6458 shlibpath_var=
6459 shlibpath_overrides_runpath=unknown
6460 version_type=none
6461 dynamic_linker="$host_os ld.so"
6462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6463 if test "$GCC" = yes; then
6464   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6465   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6466     # if the path contains ";" then we assume it to be the separator
6467     # otherwise default to the standard path separator (i.e. ":") - it is
6468     # assumed that no part of a normal pathname contains ";" but that should
6469     # okay in the real world where ";" in dirpaths is itself problematic.
6470     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6471   else
6472     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6473   fi
6474 else
6475   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6476 fi
6477 need_lib_prefix=unknown
6478 hardcode_into_libs=no
6479
6480 # when you set need_version to no, make sure it does not cause -set_version
6481 # flags to be left without arguments
6482 need_version=unknown
6483
6484 case $host_os in
6485 aix3*)
6486   version_type=linux
6487   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6488   shlibpath_var=LIBPATH
6489
6490   # AIX 3 has no versioning support, so we append a major version to the name.
6491   soname_spec='${libname}${release}${shared_ext}$major'
6492   ;;
6493
6494 aix4* | aix5*)
6495   version_type=linux
6496   need_lib_prefix=no
6497   need_version=no
6498   hardcode_into_libs=yes
6499   if test "$host_cpu" = ia64; then
6500     # AIX 5 supports IA64
6501     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6502     shlibpath_var=LD_LIBRARY_PATH
6503   else
6504     # With GCC up to 2.95.x, collect2 would create an import file
6505     # for dependence libraries.  The import file would start with
6506     # the line `#! .'.  This would cause the generated library to
6507     # depend on `.', always an invalid library.  This was fixed in
6508     # development snapshots of GCC prior to 3.0.
6509     case $host_os in
6510       aix4 | aix4.[01] | aix4.[01].*)
6511       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6512            echo ' yes '
6513            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6514         :
6515       else
6516         can_build_shared=no
6517       fi
6518       ;;
6519     esac
6520     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6521     # soname into executable. Probably we can add versioning support to
6522     # collect2, so additional links can be useful in future.
6523     if test "$aix_use_runtimelinking" = yes; then
6524       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6525       # instead of lib<name>.a to let people know that these are not
6526       # typical AIX shared libraries.
6527       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6528     else
6529       # We preserve .a as extension for shared libraries through AIX4.2
6530       # and later when we are not doing run time linking.
6531       library_names_spec='${libname}${release}.a $libname.a'
6532       soname_spec='${libname}${release}${shared_ext}$major'
6533     fi
6534     shlibpath_var=LIBPATH
6535   fi
6536   ;;
6537
6538 amigaos*)
6539   library_names_spec='$libname.ixlibrary $libname.a'
6540   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6541   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'
6542   ;;
6543
6544 beos*)
6545   library_names_spec='${libname}${shared_ext}'
6546   dynamic_linker="$host_os ld.so"
6547   shlibpath_var=LIBRARY_PATH
6548   ;;
6549
6550 bsdi[45]*)
6551   version_type=linux
6552   need_version=no
6553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6554   soname_spec='${libname}${release}${shared_ext}$major'
6555   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6556   shlibpath_var=LD_LIBRARY_PATH
6557   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6558   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6559   # the default ld.so.conf also contains /usr/contrib/lib and
6560   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6561   # libtool to hard-code these into programs
6562   ;;
6563
6564 cygwin* | mingw* | pw32*)
6565   version_type=windows
6566   shrext_cmds=".dll"
6567   need_version=no
6568   need_lib_prefix=no
6569
6570   case $GCC,$host_os in
6571   yes,cygwin* | yes,mingw* | yes,pw32*)
6572     library_names_spec='$libname.dll.a'
6573     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6574     postinstall_cmds='base_file=`basename \${file}`~
6575       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6576       dldir=$destdir/`dirname \$dlpath`~
6577       test -d \$dldir || mkdir -p \$dldir~
6578       $install_prog $dir/$dlname \$dldir/$dlname'
6579     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6580       dlpath=$dir/\$dldll~
6581        $rm \$dlpath'
6582     shlibpath_overrides_runpath=yes
6583
6584     case $host_os in
6585     cygwin*)
6586       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6587       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6588       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6589       ;;
6590     mingw*)
6591       # MinGW DLLs use traditional 'lib' prefix
6592       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6593       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6594       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6595         # It is most probably a Windows format PATH printed by
6596         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6597         # path with ; separators, and with drive letters. We can handle the
6598         # drive letters (cygwin fileutils understands them), so leave them,
6599         # especially as we might pass files found there to a mingw objdump,
6600         # which wouldn't understand a cygwinified path. Ahh.
6601         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6602       else
6603         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6604       fi
6605       ;;
6606     pw32*)
6607       # pw32 DLLs use 'pw' prefix rather than 'lib'
6608       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6609       ;;
6610     esac
6611     ;;
6612
6613   *)
6614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6615     ;;
6616   esac
6617   dynamic_linker='Win32 ld.exe'
6618   # FIXME: first we should search . and the directory the executable is in
6619   shlibpath_var=PATH
6620   ;;
6621
6622 darwin* | rhapsody*)
6623   dynamic_linker="$host_os dyld"
6624   version_type=darwin
6625   need_lib_prefix=no
6626   need_version=no
6627   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6628   soname_spec='${libname}${release}${major}$shared_ext'
6629   shlibpath_overrides_runpath=yes
6630   shlibpath_var=DYLD_LIBRARY_PATH
6631   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6632   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6633   if test "$GCC" = yes; then
6634     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"`
6635   else
6636     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6637   fi
6638   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6639   ;;
6640
6641 dgux*)
6642   version_type=linux
6643   need_lib_prefix=no
6644   need_version=no
6645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6646   soname_spec='${libname}${release}${shared_ext}$major'
6647   shlibpath_var=LD_LIBRARY_PATH
6648   ;;
6649
6650 freebsd1*)
6651   dynamic_linker=no
6652   ;;
6653
6654 kfreebsd*-gnu)
6655   version_type=linux
6656   need_lib_prefix=no
6657   need_version=no
6658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6659   soname_spec='${libname}${release}${shared_ext}$major'
6660   shlibpath_var=LD_LIBRARY_PATH
6661   shlibpath_overrides_runpath=no
6662   hardcode_into_libs=yes
6663   dynamic_linker='GNU ld.so'
6664   ;;
6665
6666 freebsd*)
6667   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6668   version_type=freebsd-$objformat
6669   case $version_type in
6670     freebsd-elf*)
6671       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6672       need_version=no
6673       need_lib_prefix=no
6674       ;;
6675     freebsd-*)
6676       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6677       need_version=yes
6678       ;;
6679   esac
6680   shlibpath_var=LD_LIBRARY_PATH
6681   case $host_os in
6682   freebsd2*)
6683     shlibpath_overrides_runpath=yes
6684     ;;
6685   freebsd3.01* | freebsdelf3.01*)
6686     shlibpath_overrides_runpath=yes
6687     hardcode_into_libs=yes
6688     ;;
6689   *) # from 3.2 on
6690     shlibpath_overrides_runpath=no
6691     hardcode_into_libs=yes
6692     ;;
6693   esac
6694   ;;
6695
6696 gnu*)
6697   version_type=linux
6698   need_lib_prefix=no
6699   need_version=no
6700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6701   soname_spec='${libname}${release}${shared_ext}$major'
6702   shlibpath_var=LD_LIBRARY_PATH
6703   hardcode_into_libs=yes
6704   ;;
6705
6706 hpux9* | hpux10* | hpux11*)
6707   # Give a soname corresponding to the major version so that dld.sl refuses to
6708   # link against other versions.
6709   version_type=sunos
6710   need_lib_prefix=no
6711   need_version=no
6712   case "$host_cpu" in
6713   ia64*)
6714     shrext_cmds='.so'
6715     hardcode_into_libs=yes
6716     dynamic_linker="$host_os dld.so"
6717     shlibpath_var=LD_LIBRARY_PATH
6718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6720     soname_spec='${libname}${release}${shared_ext}$major'
6721     if test "X$HPUX_IA64_MODE" = X32; then
6722       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6723     else
6724       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6725     fi
6726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6727     ;;
6728    hppa*64*)
6729      shrext_cmds='.sl'
6730      hardcode_into_libs=yes
6731      dynamic_linker="$host_os dld.sl"
6732      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6733      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6735      soname_spec='${libname}${release}${shared_ext}$major'
6736      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6737      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6738      ;;
6739    *)
6740     shrext_cmds='.sl'
6741     dynamic_linker="$host_os dld.sl"
6742     shlibpath_var=SHLIB_PATH
6743     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6745     soname_spec='${libname}${release}${shared_ext}$major'
6746     ;;
6747   esac
6748   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6749   postinstall_cmds='chmod 555 $lib'
6750   ;;
6751
6752 irix5* | irix6* | nonstopux*)
6753   case $host_os in
6754     nonstopux*) version_type=nonstopux ;;
6755     *)
6756         if test "$lt_cv_prog_gnu_ld" = yes; then
6757                 version_type=linux
6758         else
6759                 version_type=irix
6760         fi ;;
6761   esac
6762   need_lib_prefix=no
6763   need_version=no
6764   soname_spec='${libname}${release}${shared_ext}$major'
6765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6766   case $host_os in
6767   irix5* | nonstopux*)
6768     libsuff= shlibsuff=
6769     ;;
6770   *)
6771     case $LD in # libtool.m4 will add one of these switches to LD
6772     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6773       libsuff= shlibsuff= libmagic=32-bit;;
6774     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6775       libsuff=32 shlibsuff=N32 libmagic=N32;;
6776     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6777       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6778     *) libsuff= shlibsuff= libmagic=never-match;;
6779     esac
6780     ;;
6781   esac
6782   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6783   shlibpath_overrides_runpath=no
6784   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6785   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6786   hardcode_into_libs=yes
6787   ;;
6788
6789 # No shared lib support for Linux oldld, aout, or coff.
6790 linux*oldld* | linux*aout* | linux*coff*)
6791   dynamic_linker=no
6792   ;;
6793
6794 # This must be Linux ELF.
6795 linux*)
6796   version_type=linux
6797   need_lib_prefix=no
6798   need_version=no
6799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6800   soname_spec='${libname}${release}${shared_ext}$major'
6801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6802   shlibpath_var=LD_LIBRARY_PATH
6803   shlibpath_overrides_runpath=no
6804   # This implies no fast_install, which is unacceptable.
6805   # Some rework will be needed to allow for fast_install
6806   # before this can be enabled.
6807   hardcode_into_libs=yes
6808
6809   # Append ld.so.conf contents to the search path
6810   if test -f /etc/ld.so.conf; then
6811     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6812     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6813   fi
6814
6815   # We used to test for /lib/ld.so.1 and disable shared libraries on
6816   # powerpc, because MkLinux only supported shared libraries with the
6817   # GNU dynamic linker.  Since this was broken with cross compilers,
6818   # most powerpc-linux boxes support dynamic linking these days and
6819   # people can always --disable-shared, the test was removed, and we
6820   # assume the GNU/Linux dynamic linker is in use.
6821   dynamic_linker='GNU/Linux ld.so'
6822   ;;
6823
6824 knetbsd*-gnu)
6825   version_type=linux
6826   need_lib_prefix=no
6827   need_version=no
6828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6829   soname_spec='${libname}${release}${shared_ext}$major'
6830   shlibpath_var=LD_LIBRARY_PATH
6831   shlibpath_overrides_runpath=no
6832   hardcode_into_libs=yes
6833   dynamic_linker='GNU ld.so'
6834   ;;
6835
6836 netbsd*)
6837   version_type=sunos
6838   need_lib_prefix=no
6839   need_version=no
6840   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6842     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6843     dynamic_linker='NetBSD (a.out) ld.so'
6844   else
6845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6846     soname_spec='${libname}${release}${shared_ext}$major'
6847     dynamic_linker='NetBSD ld.elf_so'
6848   fi
6849   shlibpath_var=LD_LIBRARY_PATH
6850   shlibpath_overrides_runpath=yes
6851   hardcode_into_libs=yes
6852   ;;
6853
6854 newsos6)
6855   version_type=linux
6856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6857   shlibpath_var=LD_LIBRARY_PATH
6858   shlibpath_overrides_runpath=yes
6859   ;;
6860
6861 nto-qnx*)
6862   version_type=linux
6863   need_lib_prefix=no
6864   need_version=no
6865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6866   soname_spec='${libname}${release}${shared_ext}$major'
6867   shlibpath_var=LD_LIBRARY_PATH
6868   shlibpath_overrides_runpath=yes
6869   ;;
6870
6871 openbsd*)
6872   version_type=sunos
6873   need_lib_prefix=no
6874   need_version=no
6875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6877   shlibpath_var=LD_LIBRARY_PATH
6878   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879     case $host_os in
6880       openbsd2.[89] | openbsd2.[89].*)
6881         shlibpath_overrides_runpath=no
6882         ;;
6883       *)
6884         shlibpath_overrides_runpath=yes
6885         ;;
6886       esac
6887   else
6888     shlibpath_overrides_runpath=yes
6889   fi
6890   ;;
6891
6892 os2*)
6893   libname_spec='$name'
6894   shrext_cmds=".dll"
6895   need_lib_prefix=no
6896   library_names_spec='$libname${shared_ext} $libname.a'
6897   dynamic_linker='OS/2 ld.exe'
6898   shlibpath_var=LIBPATH
6899   ;;
6900
6901 osf3* | osf4* | osf5*)
6902   version_type=osf
6903   need_lib_prefix=no
6904   need_version=no
6905   soname_spec='${libname}${release}${shared_ext}$major'
6906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6907   shlibpath_var=LD_LIBRARY_PATH
6908   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6909   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6910   ;;
6911
6912 sco3.2v5*)
6913   version_type=osf
6914   soname_spec='${libname}${release}${shared_ext}$major'
6915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916   shlibpath_var=LD_LIBRARY_PATH
6917   ;;
6918
6919 solaris*)
6920   version_type=linux
6921   need_lib_prefix=no
6922   need_version=no
6923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6924   soname_spec='${libname}${release}${shared_ext}$major'
6925   shlibpath_var=LD_LIBRARY_PATH
6926   shlibpath_overrides_runpath=yes
6927   hardcode_into_libs=yes
6928   # ldd complains unless libraries are executable
6929   postinstall_cmds='chmod +x $lib'
6930   ;;
6931
6932 sunos4*)
6933   version_type=sunos
6934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6935   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6936   shlibpath_var=LD_LIBRARY_PATH
6937   shlibpath_overrides_runpath=yes
6938   if test "$with_gnu_ld" = yes; then
6939     need_lib_prefix=no
6940   fi
6941   need_version=yes
6942   ;;
6943
6944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6945   version_type=linux
6946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6947   soname_spec='${libname}${release}${shared_ext}$major'
6948   shlibpath_var=LD_LIBRARY_PATH
6949   case $host_vendor in
6950     sni)
6951       shlibpath_overrides_runpath=no
6952       need_lib_prefix=no
6953       export_dynamic_flag_spec='${wl}-Blargedynsym'
6954       runpath_var=LD_RUN_PATH
6955       ;;
6956     siemens)
6957       need_lib_prefix=no
6958       ;;
6959     motorola)
6960       need_lib_prefix=no
6961       need_version=no
6962       shlibpath_overrides_runpath=no
6963       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6964       ;;
6965   esac
6966   ;;
6967
6968 sysv4*MP*)
6969   if test -d /usr/nec ;then
6970     version_type=linux
6971     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6972     soname_spec='$libname${shared_ext}.$major'
6973     shlibpath_var=LD_LIBRARY_PATH
6974   fi
6975   ;;
6976
6977 uts4*)
6978   version_type=linux
6979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6980   soname_spec='${libname}${release}${shared_ext}$major'
6981   shlibpath_var=LD_LIBRARY_PATH
6982   ;;
6983
6984 *)
6985   dynamic_linker=no
6986   ;;
6987 esac
6988 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6989 echo "${ECHO_T}$dynamic_linker" >&6
6990 test "$dynamic_linker" = no && can_build_shared=no
6991
6992
6993 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
6994 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
6995 if test "${libltdl_cv_shlibext+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998
6999 module=yes
7000 eval libltdl_cv_shlibext=$shrext_cmds
7001
7002 fi
7003 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7004 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7005 if test -n "$libltdl_cv_shlibext"; then
7006
7007 cat >>confdefs.h <<_ACEOF
7008 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7009 _ACEOF
7010
7011 fi
7012
7013
7014 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7015 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7016 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   libltdl_cv_shlibpath_var="$shlibpath_var"
7020 fi
7021 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7022 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7023 if test -n "$libltdl_cv_shlibpath_var"; then
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7027 _ACEOF
7028
7029 fi
7030
7031
7032 echo "$as_me:$LINENO: checking for the default library search path" >&5
7033 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7034 if test "${libltdl_cv_sys_search_path+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7038 fi
7039 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7040 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7041 if test -n "$libltdl_cv_sys_search_path"; then
7042   sys_search_path=
7043   for dir in $libltdl_cv_sys_search_path; do
7044     if test -z "$sys_search_path"; then
7045       sys_search_path="$dir"
7046     else
7047       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7048     fi
7049   done
7050
7051 cat >>confdefs.h <<_ACEOF
7052 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7053 _ACEOF
7054
7055 fi
7056
7057 echo "$as_me:$LINENO: checking for objdir" >&5
7058 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7059 if test "${libltdl_cv_objdir+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   libltdl_cv_objdir="$objdir"
7063   if test -n "$objdir"; then
7064     :
7065   else
7066     rm -f .libs 2>/dev/null
7067     mkdir .libs 2>/dev/null
7068     if test -d .libs; then
7069       libltdl_cv_objdir=.libs
7070     else
7071       # MS-DOS does not allow filenames that begin with a dot.
7072       libltdl_cv_objdir=_libs
7073     fi
7074   rmdir .libs 2>/dev/null
7075   fi
7076
7077 fi
7078 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7079 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7080
7081 cat >>confdefs.h <<_ACEOF
7082 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7083 _ACEOF
7084
7085
7086 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7087 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7088 if test "${lt_cv_path_NM+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   if test -n "$NM"; then
7092   # Let the user override the test.
7093   lt_cv_path_NM="$NM"
7094 else
7095   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7097     IFS="$lt_save_ifs"
7098     test -z "$ac_dir" && ac_dir=.
7099     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7100     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7101       # Check to see if the nm accepts a BSD-compat flag.
7102       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7103       #   nm: unknown option "B" ignored
7104       # Tru64's nm complains that /dev/null is an invalid object file
7105       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7106       */dev/null* | *'Invalid file or object type'*)
7107         lt_cv_path_NM="$tmp_nm -B"
7108         break
7109         ;;
7110       *)
7111         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7112         */dev/null*)
7113           lt_cv_path_NM="$tmp_nm -p"
7114           break
7115           ;;
7116         *)
7117           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7118           continue # so that we can try to find one that supports BSD flags
7119           ;;
7120         esac
7121       esac
7122     fi
7123   done
7124   IFS="$lt_save_ifs"
7125   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7126 fi
7127 fi
7128 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7129 echo "${ECHO_T}$lt_cv_path_NM" >&6
7130 NM="$lt_cv_path_NM"
7131
7132
7133
7134
7135
7136 # Check for command to grab the raw symbol name followed by C symbol from nm.
7137 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7138 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7139 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142
7143 # These are sane defaults that work on at least a few old systems.
7144 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7145
7146 # Character class describing NM global symbol codes.
7147 symcode='[BCDEGRST]'
7148
7149 # Regexp to match symbols that can be accessed directly from C.
7150 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7151
7152 # Transform the above into a raw symbol and a C symbol.
7153 symxfrm='\1 \2\3 \3'
7154
7155 # Transform an extracted symbol line into a proper C declaration
7156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7157
7158 # Transform an extracted symbol line into symbol name and symbol address
7159 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'"
7160
7161 # Define system-specific variables.
7162 case $host_os in
7163 aix*)
7164   symcode='[BCDT]'
7165   ;;
7166 cygwin* | mingw* | pw32*)
7167   symcode='[ABCDGISTW]'
7168   ;;
7169 hpux*) # Its linker distinguishes data from code symbols
7170   if test "$host_cpu" = ia64; then
7171     symcode='[ABCDEGRST]'
7172   fi
7173   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7174   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'"
7175   ;;
7176 linux*)
7177   if test "$host_cpu" = ia64; then
7178     symcode='[ABCDGIRSTW]'
7179     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7180     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'"
7181   fi
7182   ;;
7183 irix* | nonstopux*)
7184   symcode='[BCDEGRST]'
7185   ;;
7186 osf*)
7187   symcode='[BCDEGQRST]'
7188   ;;
7189 solaris* | sysv5*)
7190   symcode='[BDRT]'
7191   ;;
7192 sysv4)
7193   symcode='[DFNSTU]'
7194   ;;
7195 esac
7196
7197 # Handle CRLF in mingw tool chain
7198 opt_cr=
7199 case $build_os in
7200 mingw*)
7201   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7202   ;;
7203 esac
7204
7205 # If we're using GNU nm, then use its standard symbol codes.
7206 case `$NM -V 2>&1` in
7207 *GNU* | *'with BFD'*)
7208   symcode='[ABCDGIRSTW]' ;;
7209 esac
7210
7211 # Try without a prefix undercore, then with it.
7212 for ac_symprfx in "" "_"; do
7213
7214   # Write the raw and C identifiers.
7215   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7216
7217   # Check to see that the pipe works correctly.
7218   pipe_works=no
7219
7220   rm -f conftest*
7221   cat > conftest.$ac_ext <<EOF
7222 #ifdef __cplusplus
7223 extern "C" {
7224 #endif
7225 char nm_test_var;
7226 void nm_test_func(){}
7227 #ifdef __cplusplus
7228 }
7229 #endif
7230 int main(){nm_test_var='a';nm_test_func();return(0);}
7231 EOF
7232
7233   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; then
7238     # Now try to grab the symbols.
7239     nlist=conftest.nm
7240     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7241   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); } && test -s "$nlist"; then
7245       # Try sorting and uniquifying the output.
7246       if sort "$nlist" | uniq > "$nlist"T; then
7247         mv -f "$nlist"T "$nlist"
7248       else
7249         rm -f "$nlist"T
7250       fi
7251
7252       # Make sure that we snagged all the symbols we need.
7253       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7254         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7255           cat <<EOF > conftest.$ac_ext
7256 #ifdef __cplusplus
7257 extern "C" {
7258 #endif
7259
7260 EOF
7261           # Now generate the symbol file.
7262           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7263
7264           cat <<EOF >> conftest.$ac_ext
7265 #if defined (__STDC__) && __STDC__
7266 # define lt_ptr_t void *
7267 #else
7268 # define lt_ptr_t char *
7269 # define const
7270 #endif
7271
7272 /* The mapping between symbol names and symbols. */
7273 const struct {
7274   const char *name;
7275   lt_ptr_t address;
7276 }
7277 lt_preloaded_symbols[] =
7278 {
7279 EOF
7280           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7281           cat <<\EOF >> conftest.$ac_ext
7282   {0, (lt_ptr_t) 0}
7283 };
7284
7285 #ifdef __cplusplus
7286 }
7287 #endif
7288 EOF
7289           # Now try linking the two files.
7290           mv conftest.$ac_objext conftstm.$ac_objext
7291           lt_save_LIBS="$LIBS"
7292           lt_save_CFLAGS="$CFLAGS"
7293           LIBS="conftstm.$ac_objext"
7294           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7295           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296   (eval $ac_link) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7300             pipe_works=yes
7301           fi
7302           LIBS="$lt_save_LIBS"
7303           CFLAGS="$lt_save_CFLAGS"
7304         else
7305           echo "cannot find nm_test_func in $nlist" >&5
7306         fi
7307       else
7308         echo "cannot find nm_test_var in $nlist" >&5
7309       fi
7310     else
7311       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7312     fi
7313   else
7314     echo "$progname: failed program was:" >&5
7315     cat conftest.$ac_ext >&5
7316   fi
7317   rm -f conftest* conftst*
7318
7319   # Do not use the global_symbol_pipe unless it works.
7320   if test "$pipe_works" = yes; then
7321     break
7322   else
7323     lt_cv_sys_global_symbol_pipe=
7324   fi
7325 done
7326
7327 fi
7328
7329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7330   lt_cv_sys_global_symbol_to_cdecl=
7331 fi
7332 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7333   echo "$as_me:$LINENO: result: failed" >&5
7334 echo "${ECHO_T}failed" >&6
7335 else
7336   echo "$as_me:$LINENO: result: ok" >&5
7337 echo "${ECHO_T}ok" >&6
7338 fi
7339
7340
7341 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7342 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7343 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7347     libltdl_cv_preloaded_symbols=yes
7348   else
7349     libltdl_cv_preloaded_symbols=no
7350   fi
7351
7352 fi
7353 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7354 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7355 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7356
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_PRELOADED_SYMBOLS 1
7359 _ACEOF
7360
7361 fi
7362
7363 LIBADD_DL=
7364
7365 ac_ext=c
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371
7372 echo "$as_me:$LINENO: checking for shl_load" >&5
7373 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7374 if test "${ac_cv_func_shl_load+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7385 #define shl_load innocuous_shl_load
7386
7387 /* System header to define __stub macros and hopefully few prototypes,
7388     which can conflict with char shl_load (); below.
7389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390     <limits.h> exists even on freestanding compilers.  */
7391
7392 #ifdef __STDC__
7393 # include <limits.h>
7394 #else
7395 # include <assert.h>
7396 #endif
7397
7398 #undef shl_load
7399
7400 /* Override any gcc2 internal prototype to avoid an error.  */
7401 #ifdef __cplusplus
7402 extern "C"
7403 {
7404 #endif
7405 /* We use char because int might match the return type of a gcc2
7406    builtin and then its argument prototype would still apply.  */
7407 char shl_load ();
7408 /* The GNU C library defines this for functions which it implements
7409     to always fail with ENOSYS.  Some functions are actually named
7410     something starting with __ and the normal name is an alias.  */
7411 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7412 choke me
7413 #else
7414 char (*f) () = shl_load;
7415 #endif
7416 #ifdef __cplusplus
7417 }
7418 #endif
7419
7420 int
7421 main ()
7422 {
7423 return f != shl_load;
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430   (eval $ac_link) 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
7434   cat conftest.err >&5
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } &&
7437          { ac_try='test -z "$ac_c_werror_flag"
7438                          || test ! -s conftest.err'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; } &&
7444          { ac_try='test -s conftest$ac_exeext'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; }; then
7450   ac_cv_func_shl_load=yes
7451 else
7452   echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_func_shl_load=no
7456 fi
7457 rm -f conftest.err conftest.$ac_objext \
7458       conftest$ac_exeext conftest.$ac_ext
7459 fi
7460 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7461 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7462 if test $ac_cv_func_shl_load = yes; then
7463
7464 cat >>confdefs.h <<\_ACEOF
7465 #define HAVE_SHL_LOAD 1
7466 _ACEOF
7467
7468 else
7469   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7470 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7471 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7472   echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474   ac_check_lib_save_LIBS=$LIBS
7475 LIBS="-ldld  $LIBS"
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482
7483 /* Override any gcc2 internal prototype to avoid an error.  */
7484 #ifdef __cplusplus
7485 extern "C"
7486 #endif
7487 /* We use char because int might match the return type of a gcc2
7488    builtin and then its argument prototype would still apply.  */
7489 char shl_load ();
7490 int
7491 main ()
7492 {
7493 shl_load ();
7494   ;
7495   return 0;
7496 }
7497 _ACEOF
7498 rm -f conftest.$ac_objext conftest$ac_exeext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7500   (eval $ac_link) 2>conftest.er1
7501   ac_status=$?
7502   grep -v '^ *+' conftest.er1 >conftest.err
7503   rm -f conftest.er1
7504   cat conftest.err >&5
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); } &&
7507          { ac_try='test -z "$ac_c_werror_flag"
7508                          || test ! -s conftest.err'
7509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510   (eval $ac_try) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; } &&
7514          { ac_try='test -s conftest$ac_exeext'
7515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516   (eval $ac_try) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); }; }; then
7520   ac_cv_lib_dld_shl_load=yes
7521 else
7522   echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 ac_cv_lib_dld_shl_load=no
7526 fi
7527 rm -f conftest.err conftest.$ac_objext \
7528       conftest$ac_exeext conftest.$ac_ext
7529 LIBS=$ac_check_lib_save_LIBS
7530 fi
7531 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7532 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7533 if test $ac_cv_lib_dld_shl_load = yes; then
7534
7535 cat >>confdefs.h <<\_ACEOF
7536 #define HAVE_SHL_LOAD 1
7537 _ACEOF
7538
7539         LIBADD_DL="$LIBADD_DL -ldld"
7540 else
7541   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   ac_check_lib_save_LIBS=$LIBS
7547 LIBS="-ldl  $LIBS"
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554
7555 /* Override any gcc2 internal prototype to avoid an error.  */
7556 #ifdef __cplusplus
7557 extern "C"
7558 #endif
7559 /* We use char because int might match the return type of a gcc2
7560    builtin and then its argument prototype would still apply.  */
7561 char dlopen ();
7562 int
7563 main ()
7564 {
7565 dlopen ();
7566   ;
7567   return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572   (eval $ac_link) 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } &&
7579          { ac_try='test -z "$ac_c_werror_flag"
7580                          || test ! -s conftest.err'
7581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582   (eval $ac_try) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; } &&
7586          { ac_try='test -s conftest$ac_exeext'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; }; then
7592   ac_cv_lib_dl_dlopen=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 ac_cv_lib_dl_dlopen=no
7598 fi
7599 rm -f conftest.err conftest.$ac_objext \
7600       conftest$ac_exeext conftest.$ac_ext
7601 LIBS=$ac_check_lib_save_LIBS
7602 fi
7603 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7605 if test $ac_cv_lib_dl_dlopen = yes; then
7606
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_LIBDL 1
7609 _ACEOF
7610
7611                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7612 else
7613   cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619 #if HAVE_DLFCN_H
7620 #  include <dlfcn.h>
7621 #endif
7622
7623 int
7624 main ()
7625 {
7626 dlopen(0, 0);
7627   ;
7628   return 0;
7629 }
7630 _ACEOF
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633   (eval $ac_link) 2>conftest.er1
7634   ac_status=$?
7635   grep -v '^ *+' conftest.er1 >conftest.err
7636   rm -f conftest.er1
7637   cat conftest.err >&5
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); } &&
7640          { ac_try='test -z "$ac_c_werror_flag"
7641                          || test ! -s conftest.err'
7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643   (eval $ac_try) 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }; } &&
7647          { ac_try='test -s conftest$ac_exeext'
7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649   (eval $ac_try) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; }; then
7653
7654 cat >>confdefs.h <<\_ACEOF
7655 #define HAVE_LIBDL 1
7656 _ACEOF
7657  libltdl_cv_func_dlopen="yes"
7658 else
7659   echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7663 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7664 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   ac_check_lib_save_LIBS=$LIBS
7668 LIBS="-lsvld  $LIBS"
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675
7676 /* Override any gcc2 internal prototype to avoid an error.  */
7677 #ifdef __cplusplus
7678 extern "C"
7679 #endif
7680 /* We use char because int might match the return type of a gcc2
7681    builtin and then its argument prototype would still apply.  */
7682 char dlopen ();
7683 int
7684 main ()
7685 {
7686 dlopen ();
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693   (eval $ac_link) 2>conftest.er1
7694   ac_status=$?
7695   grep -v '^ *+' conftest.er1 >conftest.err
7696   rm -f conftest.er1
7697   cat conftest.err >&5
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } &&
7700          { ac_try='test -z "$ac_c_werror_flag"
7701                          || test ! -s conftest.err'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; } &&
7707          { ac_try='test -s conftest$ac_exeext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   ac_cv_lib_svld_dlopen=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_cv_lib_svld_dlopen=no
7719 fi
7720 rm -f conftest.err conftest.$ac_objext \
7721       conftest$ac_exeext conftest.$ac_ext
7722 LIBS=$ac_check_lib_save_LIBS
7723 fi
7724 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7725 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7726 if test $ac_cv_lib_svld_dlopen = yes; then
7727
7728 cat >>confdefs.h <<\_ACEOF
7729 #define HAVE_LIBDL 1
7730 _ACEOF
7731
7732                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7733 else
7734   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7735 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7736 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-ldld  $LIBS"
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h.  */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h.  */
7747
7748 /* Override any gcc2 internal prototype to avoid an error.  */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 /* We use char because int might match the return type of a gcc2
7753    builtin and then its argument prototype would still apply.  */
7754 char dld_link ();
7755 int
7756 main ()
7757 {
7758 dld_link ();
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765   (eval $ac_link) 2>conftest.er1
7766   ac_status=$?
7767   grep -v '^ *+' conftest.er1 >conftest.err
7768   rm -f conftest.er1
7769   cat conftest.err >&5
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } &&
7772          { ac_try='test -z "$ac_c_werror_flag"
7773                          || test ! -s conftest.err'
7774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775   (eval $ac_try) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; } &&
7779          { ac_try='test -s conftest$ac_exeext'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   ac_cv_lib_dld_dld_link=yes
7786 else
7787   echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7789
7790 ac_cv_lib_dld_dld_link=no
7791 fi
7792 rm -f conftest.err conftest.$ac_objext \
7793       conftest$ac_exeext conftest.$ac_ext
7794 LIBS=$ac_check_lib_save_LIBS
7795 fi
7796 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7797 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7798 if test $ac_cv_lib_dld_dld_link = yes; then
7799
7800 cat >>confdefs.h <<\_ACEOF
7801 #define HAVE_DLD 1
7802 _ACEOF
7803
7804                 LIBADD_DL="$LIBADD_DL -ldld"
7805 else
7806   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7807 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7808 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7819 #define _dyld_func_lookup innocuous__dyld_func_lookup
7820
7821 /* System header to define __stub macros and hopefully few prototypes,
7822     which can conflict with char _dyld_func_lookup (); below.
7823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7824     <limits.h> exists even on freestanding compilers.  */
7825
7826 #ifdef __STDC__
7827 # include <limits.h>
7828 #else
7829 # include <assert.h>
7830 #endif
7831
7832 #undef _dyld_func_lookup
7833
7834 /* Override any gcc2 internal prototype to avoid an error.  */
7835 #ifdef __cplusplus
7836 extern "C"
7837 {
7838 #endif
7839 /* We use char because int might match the return type of a gcc2
7840    builtin and then its argument prototype would still apply.  */
7841 char _dyld_func_lookup ();
7842 /* The GNU C library defines this for functions which it implements
7843     to always fail with ENOSYS.  Some functions are actually named
7844     something starting with __ and the normal name is an alias.  */
7845 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7846 choke me
7847 #else
7848 char (*f) () = _dyld_func_lookup;
7849 #endif
7850 #ifdef __cplusplus
7851 }
7852 #endif
7853
7854 int
7855 main ()
7856 {
7857 return f != _dyld_func_lookup;
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864   (eval $ac_link) 2>conftest.er1
7865   ac_status=$?
7866   grep -v '^ *+' conftest.er1 >conftest.err
7867   rm -f conftest.er1
7868   cat conftest.err >&5
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); } &&
7871          { ac_try='test -z "$ac_c_werror_flag"
7872                          || test ! -s conftest.err'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; } &&
7878          { ac_try='test -s conftest$ac_exeext'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   ac_cv_func__dyld_func_lookup=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889 ac_cv_func__dyld_func_lookup=no
7890 fi
7891 rm -f conftest.err conftest.$ac_objext \
7892       conftest$ac_exeext conftest.$ac_ext
7893 fi
7894 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7895 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7896 if test $ac_cv_func__dyld_func_lookup = yes; then
7897
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_DYLD 1
7900 _ACEOF
7901
7902 fi
7903
7904
7905 fi
7906
7907
7908 fi
7909
7910
7911 fi
7912 rm -f conftest.err conftest.$ac_objext \
7913       conftest$ac_exeext conftest.$ac_ext
7914
7915 fi
7916
7917
7918 fi
7919
7920
7921 fi
7922
7923
7924 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7925 then
7926   lt_save_LIBS="$LIBS"
7927   LIBS="$LIBS $LIBADD_DL"
7928
7929 for ac_func in dlerror
7930 do
7931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7932 echo "$as_me:$LINENO: checking for $ac_func" >&5
7933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7934 if eval "test \"\${$as_ac_var+set}\" = set"; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937   cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7945 #define $ac_func innocuous_$ac_func
7946
7947 /* System header to define __stub macros and hopefully few prototypes,
7948     which can conflict with char $ac_func (); below.
7949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950     <limits.h> exists even on freestanding compilers.  */
7951
7952 #ifdef __STDC__
7953 # include <limits.h>
7954 #else
7955 # include <assert.h>
7956 #endif
7957
7958 #undef $ac_func
7959
7960 /* Override any gcc2 internal prototype to avoid an error.  */
7961 #ifdef __cplusplus
7962 extern "C"
7963 {
7964 #endif
7965 /* We use char because int might match the return type of a gcc2
7966    builtin and then its argument prototype would still apply.  */
7967 char $ac_func ();
7968 /* The GNU C library defines this for functions which it implements
7969     to always fail with ENOSYS.  Some functions are actually named
7970     something starting with __ and the normal name is an alias.  */
7971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7972 choke me
7973 #else
7974 char (*f) () = $ac_func;
7975 #endif
7976 #ifdef __cplusplus
7977 }
7978 #endif
7979
7980 int
7981 main ()
7982 {
7983 return f != $ac_func;
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990   (eval $ac_link) 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -z "$ac_c_werror_flag"
7998                          || test ! -s conftest.err'
7999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000   (eval $ac_try) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; } &&
8004          { ac_try='test -s conftest$ac_exeext'
8005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006   (eval $ac_try) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; }; then
8010   eval "$as_ac_var=yes"
8011 else
8012   echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 eval "$as_ac_var=no"
8016 fi
8017 rm -f conftest.err conftest.$ac_objext \
8018       conftest$ac_exeext conftest.$ac_ext
8019 fi
8020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8022 if test `eval echo '${'$as_ac_var'}'` = yes; then
8023   cat >>confdefs.h <<_ACEOF
8024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8025 _ACEOF
8026
8027 fi
8028 done
8029
8030   LIBS="$lt_save_LIBS"
8031 fi
8032 ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037
8038
8039
8040 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8041 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8042 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   ac_cv_sys_symbol_underscore=no
8046   cat > conftest.$ac_ext <<EOF
8047 void nm_test_func(){}
8048 int main(){nm_test_func;return 0;}
8049 EOF
8050   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051   (eval $ac_compile) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; then
8055     # Now try to grab the symbols.
8056     ac_nlist=conftest.nm
8057     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8058   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } && test -s "$ac_nlist"; then
8062       # See whether the symbols have a leading underscore.
8063       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8064         ac_cv_sys_symbol_underscore=yes
8065       else
8066         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8067           :
8068         else
8069           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8070         fi
8071       fi
8072     else
8073       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8074     fi
8075   else
8076     echo "configure: failed program was:" >&5
8077     cat conftest.c >&5
8078   fi
8079   rm -rf conftest*
8080
8081 fi
8082 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8083 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8084
8085
8086 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8087   if test x"$libltdl_cv_func_dlopen" = xyes ||
8088      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8089         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8090 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8091 if test "${libltdl_cv_need_uscore+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   libltdl_cv_need_uscore=unknown
8095           save_LIBS="$LIBS"
8096           LIBS="$LIBS $LIBADD_DL"
8097           if test "$cross_compiling" = yes; then :
8098   libltdl_cv_need_uscore=cross
8099 else
8100   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8101   lt_status=$lt_dlunknown
8102   cat > conftest.$ac_ext <<EOF
8103 #line 8103 "configure"
8104 #include "confdefs.h"
8105
8106 #if HAVE_DLFCN_H
8107 #include <dlfcn.h>
8108 #endif
8109
8110 #include <stdio.h>
8111
8112 #ifdef RTLD_GLOBAL
8113 #  define LT_DLGLOBAL           RTLD_GLOBAL
8114 #else
8115 #  ifdef DL_GLOBAL
8116 #    define LT_DLGLOBAL         DL_GLOBAL
8117 #  else
8118 #    define LT_DLGLOBAL         0
8119 #  endif
8120 #endif
8121
8122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8123    find out it does not work in some platform. */
8124 #ifndef LT_DLLAZY_OR_NOW
8125 #  ifdef RTLD_LAZY
8126 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8127 #  else
8128 #    ifdef DL_LAZY
8129 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8130 #    else
8131 #      ifdef RTLD_NOW
8132 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8133 #      else
8134 #        ifdef DL_NOW
8135 #          define LT_DLLAZY_OR_NOW      DL_NOW
8136 #        else
8137 #          define LT_DLLAZY_OR_NOW      0
8138 #        endif
8139 #      endif
8140 #    endif
8141 #  endif
8142 #endif
8143
8144 #ifdef __cplusplus
8145 extern "C" void exit (int);
8146 #endif
8147
8148 void fnord() { int i=42;}
8149 int main ()
8150 {
8151   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8152   int status = $lt_dlunknown;
8153
8154   if (self)
8155     {
8156       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8157       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8158       /* dlclose (self); */
8159     }
8160
8161     exit (status);
8162 }
8163 EOF
8164   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165   (eval $ac_link) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8169     (./conftest; exit; ) 2>/dev/null
8170     lt_status=$?
8171     case x$lt_status in
8172       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8173       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8174       x$lt_unknown|x*)  ;;
8175     esac
8176   else :
8177     # compilation failed
8178
8179   fi
8180 fi
8181 rm -fr conftest*
8182
8183           LIBS="$save_LIBS"
8184
8185 fi
8186 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8187 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8188   fi
8189 fi
8190
8191 if test x"$libltdl_cv_need_uscore" = xyes; then
8192
8193 cat >>confdefs.h <<\_ACEOF
8194 #define NEED_USCORE 1
8195 _ACEOF
8196
8197 fi
8198
8199
8200 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8201 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8202 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   # PORTME does your system automatically load deplibs for dlopen?
8206   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8207   # For now, we just catch OSes we know something about -- in the
8208   # future, we'll try test this programmatically.
8209   libltdl_cv_sys_dlopen_deplibs=unknown
8210   case "$host_os" in
8211   aix3*|aix4.1.*|aix4.2.*)
8212     # Unknown whether this is true for these versions of AIX, but
8213     # we want this `case' here to explicitly catch those versions.
8214     libltdl_cv_sys_dlopen_deplibs=unknown
8215     ;;
8216   aix[45]*)
8217     libltdl_cv_sys_dlopen_deplibs=yes
8218     ;;
8219   darwin*)
8220     # Assuming the user has installed a libdl from somewhere, this is true
8221     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8222     libltdl_cv_sys_dlopen_deplibs=yes
8223     ;;
8224   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8225     # GNU and its variants, using gnu ld.so (Glibc)
8226     libltdl_cv_sys_dlopen_deplibs=yes
8227     ;;
8228   hpux10*|hpux11*)
8229     libltdl_cv_sys_dlopen_deplibs=yes
8230     ;;
8231   irix[12345]*|irix6.[01]*)
8232     # Catch all versions of IRIX before 6.2, and indicate that we don't
8233     # know how it worked for any of those versions.
8234     libltdl_cv_sys_dlopen_deplibs=unknown
8235     ;;
8236   irix*)
8237     # The case above catches anything before 6.2, and it's known that
8238     # at 6.2 and later dlopen does load deplibs.
8239     libltdl_cv_sys_dlopen_deplibs=yes
8240     ;;
8241   netbsd*)
8242     libltdl_cv_sys_dlopen_deplibs=yes
8243     ;;
8244   openbsd*)
8245     libltdl_cv_sys_dlopen_deplibs=yes
8246     ;;
8247   osf[1234]*)
8248     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8249     # it did *not* use an RPATH in a shared library to find objects the
8250     # library depends on, so we explictly say `no'.
8251     libltdl_cv_sys_dlopen_deplibs=no
8252     ;;
8253   osf5.0|osf5.0a|osf5.1)
8254     # dlopen *does* load deplibs and with the right loader patch applied
8255     # it even uses RPATH in a shared library to search for shared objects
8256     # that the library depends on, but there's no easy way to know if that
8257     # patch is installed.  Since this is the case, all we can really
8258     # say is unknown -- it depends on the patch being installed.  If
8259     # it is, this changes to `yes'.  Without it, it would be `no'.
8260     libltdl_cv_sys_dlopen_deplibs=unknown
8261     ;;
8262   osf*)
8263     # the two cases above should catch all versions of osf <= 5.1.  Read
8264     # the comments above for what we know about them.
8265     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8266     # is used to find them so we can finally say `yes'.
8267     libltdl_cv_sys_dlopen_deplibs=yes
8268     ;;
8269   solaris*)
8270     libltdl_cv_sys_dlopen_deplibs=yes
8271     ;;
8272   esac
8273
8274 fi
8275 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8276 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8277 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define LTDL_DLOPEN_DEPLIBS 1
8281 _ACEOF
8282
8283 fi
8284
8285
8286 for ac_header in argz.h
8287 do
8288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8290   echo "$as_me:$LINENO: checking for $ac_header" >&5
8291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 fi
8295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8297 else
8298   # Is the header compilable?
8299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307 $ac_includes_default
8308 #include <$ac_header>
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312   (eval $ac_compile) 2>conftest.er1
8313   ac_status=$?
8314   grep -v '^ *+' conftest.er1 >conftest.err
8315   rm -f conftest.er1
8316   cat conftest.err >&5
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); } &&
8319          { ac_try='test -z "$ac_c_werror_flag"
8320                          || test ! -s conftest.err'
8321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322   (eval $ac_try) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; } &&
8326          { ac_try='test -s conftest.$ac_objext'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   ac_header_compiler=yes
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 ac_header_compiler=no
8338 fi
8339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8341 echo "${ECHO_T}$ac_header_compiler" >&6
8342
8343 # Is the header present?
8344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352 #include <$ac_header>
8353 _ACEOF
8354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } >/dev/null; then
8362   if test -s conftest.err; then
8363     ac_cpp_err=$ac_c_preproc_warn_flag
8364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8365   else
8366     ac_cpp_err=
8367   fi
8368 else
8369   ac_cpp_err=yes
8370 fi
8371 if test -z "$ac_cpp_err"; then
8372   ac_header_preproc=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377   ac_header_preproc=no
8378 fi
8379 rm -f conftest.err conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8381 echo "${ECHO_T}$ac_header_preproc" >&6
8382
8383 # So?  What about this header?
8384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8385   yes:no: )
8386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8390     ac_header_preproc=yes
8391     ;;
8392   no:yes:* )
8393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8405     (
8406       cat <<\_ASBOX
8407 ## ----------------------------------- ##
8408 ## Report this to llvmbugs@cs.uiuc.edu ##
8409 ## ----------------------------------- ##
8410 _ASBOX
8411     ) |
8412       sed "s/^/$as_me: WARNING:     /" >&2
8413     ;;
8414 esac
8415 echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8418   echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420   eval "$as_ac_Header=\$ac_header_preproc"
8421 fi
8422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424
8425 fi
8426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8427   cat >>confdefs.h <<_ACEOF
8428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8429 _ACEOF
8430
8431 fi
8432
8433 done
8434
8435
8436 echo "$as_me:$LINENO: checking for error_t" >&5
8437 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8438 if test "${ac_cv_type_error_t+set}" = set; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441   cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447 #if HAVE_ARGZ_H
8448 #  include <argz.h>
8449 #endif
8450
8451 int
8452 main ()
8453 {
8454 if ((error_t *) 0)
8455   return 0;
8456 if (sizeof (error_t))
8457   return 0;
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464   (eval $ac_compile) 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -z "$ac_c_werror_flag"
8472                          || test ! -s conftest.err'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; } &&
8478          { ac_try='test -s conftest.$ac_objext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_type_error_t=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 ac_cv_type_error_t=no
8490 fi
8491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8494 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8495 if test $ac_cv_type_error_t = yes; then
8496
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_ERROR_T 1
8499 _ACEOF
8500
8501
8502 else
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define error_t int
8506 _ACEOF
8507
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8517 do
8518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8519 echo "$as_me:$LINENO: checking for $ac_func" >&5
8520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_var+set}\" = set"; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8532 #define $ac_func innocuous_$ac_func
8533
8534 /* System header to define __stub macros and hopefully few prototypes,
8535     which can conflict with char $ac_func (); below.
8536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537     <limits.h> exists even on freestanding compilers.  */
8538
8539 #ifdef __STDC__
8540 # include <limits.h>
8541 #else
8542 # include <assert.h>
8543 #endif
8544
8545 #undef $ac_func
8546
8547 /* Override any gcc2 internal prototype to avoid an error.  */
8548 #ifdef __cplusplus
8549 extern "C"
8550 {
8551 #endif
8552 /* We use char because int might match the return type of a gcc2
8553    builtin and then its argument prototype would still apply.  */
8554 char $ac_func ();
8555 /* The GNU C library defines this for functions which it implements
8556     to always fail with ENOSYS.  Some functions are actually named
8557     something starting with __ and the normal name is an alias.  */
8558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559 choke me
8560 #else
8561 char (*f) () = $ac_func;
8562 #endif
8563 #ifdef __cplusplus
8564 }
8565 #endif
8566
8567 int
8568 main ()
8569 {
8570 return f != $ac_func;
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577   (eval $ac_link) 2>conftest.er1
8578   ac_status=$?
8579   grep -v '^ *+' conftest.er1 >conftest.err
8580   rm -f conftest.er1
8581   cat conftest.err >&5
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -z "$ac_c_werror_flag"
8585                          || test ! -s conftest.err'
8586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587   (eval $ac_try) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; } &&
8591          { ac_try='test -s conftest$ac_exeext'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; }; then
8597   eval "$as_ac_var=yes"
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 eval "$as_ac_var=no"
8603 fi
8604 rm -f conftest.err conftest.$ac_objext \
8605       conftest$ac_exeext conftest.$ac_ext
8606 fi
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8609 if test `eval echo '${'$as_ac_var'}'` = yes; then
8610   cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8612 _ACEOF
8613
8614 fi
8615 done
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8645                   stdio.h unistd.h
8646 do
8647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649   echo "$as_me:$LINENO: checking for $ac_header" >&5
8650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 fi
8654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8656 else
8657   # Is the header compilable?
8658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 $ac_includes_default
8667 #include <$ac_header>
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671   (eval $ac_compile) 2>conftest.er1
8672   ac_status=$?
8673   grep -v '^ *+' conftest.er1 >conftest.err
8674   rm -f conftest.er1
8675   cat conftest.err >&5
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); } &&
8678          { ac_try='test -z "$ac_c_werror_flag"
8679                          || test ! -s conftest.err'
8680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; } &&
8685          { ac_try='test -s conftest.$ac_objext'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; }; then
8691   ac_header_compiler=yes
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696 ac_header_compiler=no
8697 fi
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8700 echo "${ECHO_T}$ac_header_compiler" >&6
8701
8702 # Is the header present?
8703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 #include <$ac_header>
8712 _ACEOF
8713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } >/dev/null; then
8721   if test -s conftest.err; then
8722     ac_cpp_err=$ac_c_preproc_warn_flag
8723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8724   else
8725     ac_cpp_err=
8726   fi
8727 else
8728   ac_cpp_err=yes
8729 fi
8730 if test -z "$ac_cpp_err"; then
8731   ac_header_preproc=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736   ac_header_preproc=no
8737 fi
8738 rm -f conftest.err conftest.$ac_ext
8739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8740 echo "${ECHO_T}$ac_header_preproc" >&6
8741
8742 # So?  What about this header?
8743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8744   yes:no: )
8745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8749     ac_header_preproc=yes
8750     ;;
8751   no:yes:* )
8752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8764     (
8765       cat <<\_ASBOX
8766 ## ----------------------------------- ##
8767 ## Report this to llvmbugs@cs.uiuc.edu ##
8768 ## ----------------------------------- ##
8769 _ASBOX
8770     ) |
8771       sed "s/^/$as_me: WARNING:     /" >&2
8772     ;;
8773 esac
8774 echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779   eval "$as_ac_Header=\$ac_header_preproc"
8780 fi
8781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8783
8784 fi
8785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786   cat >>confdefs.h <<_ACEOF
8787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 _ACEOF
8789
8790 fi
8791
8792 done
8793
8794
8795
8796
8797
8798 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8799 do
8800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8802   echo "$as_me:$LINENO: checking for $ac_header" >&5
8803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 fi
8807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8809 else
8810   # Is the header compilable?
8811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819 $ac_includes_default
8820 #include <$ac_header>
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824   (eval $ac_compile) 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -z "$ac_c_werror_flag"
8832                          || test ! -s conftest.err'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; } &&
8838          { ac_try='test -s conftest.$ac_objext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_header_compiler=yes
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_header_compiler=no
8850 fi
8851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8853 echo "${ECHO_T}$ac_header_compiler" >&6
8854
8855 # Is the header present?
8856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864 #include <$ac_header>
8865 _ACEOF
8866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8868   ac_status=$?
8869   grep -v '^ *+' conftest.er1 >conftest.err
8870   rm -f conftest.er1
8871   cat conftest.err >&5
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); } >/dev/null; then
8874   if test -s conftest.err; then
8875     ac_cpp_err=$ac_c_preproc_warn_flag
8876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8877   else
8878     ac_cpp_err=
8879   fi
8880 else
8881   ac_cpp_err=yes
8882 fi
8883 if test -z "$ac_cpp_err"; then
8884   ac_header_preproc=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889   ac_header_preproc=no
8890 fi
8891 rm -f conftest.err conftest.$ac_ext
8892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8893 echo "${ECHO_T}$ac_header_preproc" >&6
8894
8895 # So?  What about this header?
8896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8897   yes:no: )
8898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8902     ac_header_preproc=yes
8903     ;;
8904   no:yes:* )
8905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8917     (
8918       cat <<\_ASBOX
8919 ## ----------------------------------- ##
8920 ## Report this to llvmbugs@cs.uiuc.edu ##
8921 ## ----------------------------------- ##
8922 _ASBOX
8923     ) |
8924       sed "s/^/$as_me: WARNING:     /" >&2
8925     ;;
8926 esac
8927 echo "$as_me:$LINENO: checking for $ac_header" >&5
8928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932   eval "$as_ac_Header=\$ac_header_preproc"
8933 fi
8934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8936
8937 fi
8938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8939   cat >>confdefs.h <<_ACEOF
8940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8941 _ACEOF
8942
8943 fi
8944
8945 done
8946
8947
8948
8949 for ac_header in string.h strings.h
8950 do
8951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953   echo "$as_me:$LINENO: checking for $ac_header" >&5
8954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8956   echo $ECHO_N "(cached) $ECHO_C" >&6
8957 fi
8958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8960 else
8961   # Is the header compilable?
8962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970 $ac_includes_default
8971 #include <$ac_header>
8972 _ACEOF
8973 rm -f conftest.$ac_objext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975   (eval $ac_compile) 2>conftest.er1
8976   ac_status=$?
8977   grep -v '^ *+' conftest.er1 >conftest.err
8978   rm -f conftest.er1
8979   cat conftest.err >&5
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -z "$ac_c_werror_flag"
8983                          || test ! -s conftest.err'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; } &&
8989          { ac_try='test -s conftest.$ac_objext'
8990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991   (eval $ac_try) 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; }; then
8995   ac_header_compiler=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_header_compiler=no
9001 fi
9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9004 echo "${ECHO_T}$ac_header_compiler" >&6
9005
9006 # Is the header present?
9007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 #include <$ac_header>
9016 _ACEOF
9017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9019   ac_status=$?
9020   grep -v '^ *+' conftest.er1 >conftest.err
9021   rm -f conftest.er1
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); } >/dev/null; then
9025   if test -s conftest.err; then
9026     ac_cpp_err=$ac_c_preproc_warn_flag
9027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9028   else
9029     ac_cpp_err=
9030   fi
9031 else
9032   ac_cpp_err=yes
9033 fi
9034 if test -z "$ac_cpp_err"; then
9035   ac_header_preproc=yes
9036 else
9037   echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9039
9040   ac_header_preproc=no
9041 fi
9042 rm -f conftest.err conftest.$ac_ext
9043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044 echo "${ECHO_T}$ac_header_preproc" >&6
9045
9046 # So?  What about this header?
9047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9048   yes:no: )
9049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9053     ac_header_preproc=yes
9054     ;;
9055   no:yes:* )
9056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9068     (
9069       cat <<\_ASBOX
9070 ## ----------------------------------- ##
9071 ## Report this to llvmbugs@cs.uiuc.edu ##
9072 ## ----------------------------------- ##
9073 _ASBOX
9074     ) |
9075       sed "s/^/$as_me: WARNING:     /" >&2
9076     ;;
9077 esac
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 else
9083   eval "$as_ac_Header=\$ac_header_preproc"
9084 fi
9085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087
9088 fi
9089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9090   cat >>confdefs.h <<_ACEOF
9091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092 _ACEOF
9093  break
9094 fi
9095
9096 done
9097
9098
9099
9100
9101 for ac_func in strchr index
9102 do
9103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9104 echo "$as_me:$LINENO: checking for $ac_func" >&5
9105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_var+set}\" = set"; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9117 #define $ac_func innocuous_$ac_func
9118
9119 /* System header to define __stub macros and hopefully few prototypes,
9120     which can conflict with char $ac_func (); below.
9121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122     <limits.h> exists even on freestanding compilers.  */
9123
9124 #ifdef __STDC__
9125 # include <limits.h>
9126 #else
9127 # include <assert.h>
9128 #endif
9129
9130 #undef $ac_func
9131
9132 /* Override any gcc2 internal prototype to avoid an error.  */
9133 #ifdef __cplusplus
9134 extern "C"
9135 {
9136 #endif
9137 /* We use char because int might match the return type of a gcc2
9138    builtin and then its argument prototype would still apply.  */
9139 char $ac_func ();
9140 /* The GNU C library defines this for functions which it implements
9141     to always fail with ENOSYS.  Some functions are actually named
9142     something starting with __ and the normal name is an alias.  */
9143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9144 choke me
9145 #else
9146 char (*f) () = $ac_func;
9147 #endif
9148 #ifdef __cplusplus
9149 }
9150 #endif
9151
9152 int
9153 main ()
9154 {
9155 return f != $ac_func;
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162   (eval $ac_link) 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } &&
9169          { ac_try='test -z "$ac_c_werror_flag"
9170                          || test ! -s conftest.err'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; } &&
9176          { ac_try='test -s conftest$ac_exeext'
9177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178   (eval $ac_try) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; }; then
9182   eval "$as_ac_var=yes"
9183 else
9184   echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 eval "$as_ac_var=no"
9188 fi
9189 rm -f conftest.err conftest.$ac_objext \
9190       conftest$ac_exeext conftest.$ac_ext
9191 fi
9192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9194 if test `eval echo '${'$as_ac_var'}'` = yes; then
9195   cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9197 _ACEOF
9198  break
9199 fi
9200 done
9201
9202
9203
9204 for ac_func in strrchr rindex
9205 do
9206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9207 echo "$as_me:$LINENO: checking for $ac_func" >&5
9208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_var+set}\" = set"; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9220 #define $ac_func innocuous_$ac_func
9221
9222 /* System header to define __stub macros and hopefully few prototypes,
9223     which can conflict with char $ac_func (); below.
9224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225     <limits.h> exists even on freestanding compilers.  */
9226
9227 #ifdef __STDC__
9228 # include <limits.h>
9229 #else
9230 # include <assert.h>
9231 #endif
9232
9233 #undef $ac_func
9234
9235 /* Override any gcc2 internal prototype to avoid an error.  */
9236 #ifdef __cplusplus
9237 extern "C"
9238 {
9239 #endif
9240 /* We use char because int might match the return type of a gcc2
9241    builtin and then its argument prototype would still apply.  */
9242 char $ac_func ();
9243 /* The GNU C library defines this for functions which it implements
9244     to always fail with ENOSYS.  Some functions are actually named
9245     something starting with __ and the normal name is an alias.  */
9246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9247 choke me
9248 #else
9249 char (*f) () = $ac_func;
9250 #endif
9251 #ifdef __cplusplus
9252 }
9253 #endif
9254
9255 int
9256 main ()
9257 {
9258 return f != $ac_func;
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265   (eval $ac_link) 2>conftest.er1
9266   ac_status=$?
9267   grep -v '^ *+' conftest.er1 >conftest.err
9268   rm -f conftest.er1
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -z "$ac_c_werror_flag"
9273                          || test ! -s conftest.err'
9274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275   (eval $ac_try) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; } &&
9279          { ac_try='test -s conftest$ac_exeext'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; }; then
9285   eval "$as_ac_var=yes"
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 eval "$as_ac_var=no"
9291 fi
9292 rm -f conftest.err conftest.$ac_objext \
9293       conftest$ac_exeext conftest.$ac_ext
9294 fi
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9297 if test `eval echo '${'$as_ac_var'}'` = yes; then
9298   cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9300 _ACEOF
9301  break
9302 fi
9303 done
9304
9305
9306
9307 for ac_func in memcpy bcopy
9308 do
9309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9310 echo "$as_me:$LINENO: checking for $ac_func" >&5
9311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_var+set}\" = set"; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9323 #define $ac_func innocuous_$ac_func
9324
9325 /* System header to define __stub macros and hopefully few prototypes,
9326     which can conflict with char $ac_func (); below.
9327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328     <limits.h> exists even on freestanding compilers.  */
9329
9330 #ifdef __STDC__
9331 # include <limits.h>
9332 #else
9333 # include <assert.h>
9334 #endif
9335
9336 #undef $ac_func
9337
9338 /* Override any gcc2 internal prototype to avoid an error.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 {
9342 #endif
9343 /* We use char because int might match the return type of a gcc2
9344    builtin and then its argument prototype would still apply.  */
9345 char $ac_func ();
9346 /* The GNU C library defines this for functions which it implements
9347     to always fail with ENOSYS.  Some functions are actually named
9348     something starting with __ and the normal name is an alias.  */
9349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9350 choke me
9351 #else
9352 char (*f) () = $ac_func;
9353 #endif
9354 #ifdef __cplusplus
9355 }
9356 #endif
9357
9358 int
9359 main ()
9360 {
9361 return f != $ac_func;
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368   (eval $ac_link) 2>conftest.er1
9369   ac_status=$?
9370   grep -v '^ *+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -z "$ac_c_werror_flag"
9376                          || test ! -s conftest.err'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; } &&
9382          { ac_try='test -s conftest$ac_exeext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   eval "$as_ac_var=yes"
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 eval "$as_ac_var=no"
9394 fi
9395 rm -f conftest.err conftest.$ac_objext \
9396       conftest$ac_exeext conftest.$ac_ext
9397 fi
9398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9400 if test `eval echo '${'$as_ac_var'}'` = yes; then
9401   cat >>confdefs.h <<_ACEOF
9402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9403 _ACEOF
9404  break
9405 fi
9406 done
9407
9408
9409
9410 for ac_func in memmove strcmp
9411 do
9412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9413 echo "$as_me:$LINENO: checking for $ac_func" >&5
9414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9415 if eval "test \"\${$as_ac_var+set}\" = set"; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9426 #define $ac_func innocuous_$ac_func
9427
9428 /* System header to define __stub macros and hopefully few prototypes,
9429     which can conflict with char $ac_func (); below.
9430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431     <limits.h> exists even on freestanding compilers.  */
9432
9433 #ifdef __STDC__
9434 # include <limits.h>
9435 #else
9436 # include <assert.h>
9437 #endif
9438
9439 #undef $ac_func
9440
9441 /* Override any gcc2 internal prototype to avoid an error.  */
9442 #ifdef __cplusplus
9443 extern "C"
9444 {
9445 #endif
9446 /* We use char because int might match the return type of a gcc2
9447    builtin and then its argument prototype would still apply.  */
9448 char $ac_func ();
9449 /* The GNU C library defines this for functions which it implements
9450     to always fail with ENOSYS.  Some functions are actually named
9451     something starting with __ and the normal name is an alias.  */
9452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9453 choke me
9454 #else
9455 char (*f) () = $ac_func;
9456 #endif
9457 #ifdef __cplusplus
9458 }
9459 #endif
9460
9461 int
9462 main ()
9463 {
9464 return f != $ac_func;
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471   (eval $ac_link) 2>conftest.er1
9472   ac_status=$?
9473   grep -v '^ *+' conftest.er1 >conftest.err
9474   rm -f conftest.er1
9475   cat conftest.err >&5
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } &&
9478          { ac_try='test -z "$ac_c_werror_flag"
9479                          || test ! -s conftest.err'
9480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481   (eval $ac_try) 2>&5
9482   ac_status=$?
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); }; } &&
9485          { ac_try='test -s conftest$ac_exeext'
9486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487   (eval $ac_try) 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); }; }; then
9491   eval "$as_ac_var=yes"
9492 else
9493   echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496 eval "$as_ac_var=no"
9497 fi
9498 rm -f conftest.err conftest.$ac_objext \
9499       conftest$ac_exeext conftest.$ac_ext
9500 fi
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9503 if test `eval echo '${'$as_ac_var'}'` = yes; then
9504   cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9506 _ACEOF
9507
9508 fi
9509 done
9510
9511
9512
9513
9514 for ac_func in closedir opendir readdir
9515 do
9516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9517 echo "$as_me:$LINENO: checking for $ac_func" >&5
9518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9519 if eval "test \"\${$as_ac_var+set}\" = set"; then
9520   echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522   cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h.  */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h.  */
9528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9530 #define $ac_func innocuous_$ac_func
9531
9532 /* System header to define __stub macros and hopefully few prototypes,
9533     which can conflict with char $ac_func (); below.
9534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9535     <limits.h> exists even on freestanding compilers.  */
9536
9537 #ifdef __STDC__
9538 # include <limits.h>
9539 #else
9540 # include <assert.h>
9541 #endif
9542
9543 #undef $ac_func
9544
9545 /* Override any gcc2 internal prototype to avoid an error.  */
9546 #ifdef __cplusplus
9547 extern "C"
9548 {
9549 #endif
9550 /* We use char because int might match the return type of a gcc2
9551    builtin and then its argument prototype would still apply.  */
9552 char $ac_func ();
9553 /* The GNU C library defines this for functions which it implements
9554     to always fail with ENOSYS.  Some functions are actually named
9555     something starting with __ and the normal name is an alias.  */
9556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9557 choke me
9558 #else
9559 char (*f) () = $ac_func;
9560 #endif
9561 #ifdef __cplusplus
9562 }
9563 #endif
9564
9565 int
9566 main ()
9567 {
9568 return f != $ac_func;
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -z "$ac_c_werror_flag"
9583                          || test ! -s conftest.err'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; } &&
9589          { ac_try='test -s conftest$ac_exeext'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   eval "$as_ac_var=yes"
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 eval "$as_ac_var=no"
9601 fi
9602 rm -f conftest.err conftest.$ac_objext \
9603       conftest$ac_exeext conftest.$ac_ext
9604 fi
9605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9607 if test `eval echo '${'$as_ac_var'}'` = yes; then
9608   cat >>confdefs.h <<_ACEOF
9609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9610 _ACEOF
9611
9612 fi
9613 done
9614
9615
9616 # Check whether --enable-shared or --disable-shared was given.
9617 if test "${enable_shared+set}" = set; then
9618   enableval="$enable_shared"
9619   p=${PACKAGE-default}
9620     case $enableval in
9621     yes) enable_shared=yes ;;
9622     no) enable_shared=no ;;
9623     *)
9624       enable_shared=no
9625       # Look at the argument we got.  We use all the common list separators.
9626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9627       for pkg in $enableval; do
9628         IFS="$lt_save_ifs"
9629         if test "X$pkg" = "X$p"; then
9630           enable_shared=yes
9631         fi
9632       done
9633       IFS="$lt_save_ifs"
9634       ;;
9635     esac
9636 else
9637   enable_shared=yes
9638 fi;
9639
9640 # Check whether --enable-static or --disable-static was given.
9641 if test "${enable_static+set}" = set; then
9642   enableval="$enable_static"
9643   p=${PACKAGE-default}
9644     case $enableval in
9645     yes) enable_static=yes ;;
9646     no) enable_static=no ;;
9647     *)
9648      enable_static=no
9649       # Look at the argument we got.  We use all the common list separators.
9650       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9651       for pkg in $enableval; do
9652         IFS="$lt_save_ifs"
9653         if test "X$pkg" = "X$p"; then
9654           enable_static=yes
9655         fi
9656       done
9657       IFS="$lt_save_ifs"
9658       ;;
9659     esac
9660 else
9661   enable_static=yes
9662 fi;
9663
9664 # Check whether --enable-fast-install or --disable-fast-install was given.
9665 if test "${enable_fast_install+set}" = set; then
9666   enableval="$enable_fast_install"
9667   p=${PACKAGE-default}
9668     case $enableval in
9669     yes) enable_fast_install=yes ;;
9670     no) enable_fast_install=no ;;
9671     *)
9672       enable_fast_install=no
9673       # Look at the argument we got.  We use all the common list separators.
9674       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9675       for pkg in $enableval; do
9676         IFS="$lt_save_ifs"
9677         if test "X$pkg" = "X$p"; then
9678           enable_fast_install=yes
9679         fi
9680       done
9681       IFS="$lt_save_ifs"
9682       ;;
9683     esac
9684 else
9685   enable_fast_install=yes
9686 fi;
9687
9688 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9689 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9690 if test "${lt_cv_path_SED+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   # Loop through the user's path and test for sed and gsed.
9694 # Then use that list of sed's as ones to test for truncation.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9697 do
9698   IFS=$as_save_IFS
9699   test -z "$as_dir" && as_dir=.
9700   for lt_ac_prog in sed gsed; do
9701     for ac_exec_ext in '' $ac_executable_extensions; do
9702       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9703         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9704       fi
9705     done
9706   done
9707 done
9708 lt_ac_max=0
9709 lt_ac_count=0
9710 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9711 # along with /bin/sed that truncates output.
9712 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9713   test ! -f $lt_ac_sed && break
9714   cat /dev/null > conftest.in
9715   lt_ac_count=0
9716   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9717   # Check for GNU sed and select it if it is found.
9718   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9719     lt_cv_path_SED=$lt_ac_sed
9720     break
9721   fi
9722   while true; do
9723     cat conftest.in conftest.in >conftest.tmp
9724     mv conftest.tmp conftest.in
9725     cp conftest.in conftest.nl
9726     echo >>conftest.nl
9727     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9728     cmp -s conftest.out conftest.nl || break
9729     # 10000 chars as input seems more than enough
9730     test $lt_ac_count -gt 10 && break
9731     lt_ac_count=`expr $lt_ac_count + 1`
9732     if test $lt_ac_count -gt $lt_ac_max; then
9733       lt_ac_max=$lt_ac_count
9734       lt_cv_path_SED=$lt_ac_sed
9735     fi
9736   done
9737 done
9738
9739 fi
9740
9741 SED=$lt_cv_path_SED
9742 echo "$as_me:$LINENO: result: $SED" >&5
9743 echo "${ECHO_T}$SED" >&6
9744
9745
9746 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9747 if test "${with_gnu_ld+set}" = set; then
9748   withval="$with_gnu_ld"
9749   test "$withval" = no || with_gnu_ld=yes
9750 else
9751   with_gnu_ld=no
9752 fi;
9753 ac_prog=ld
9754 if test "$GCC" = yes; then
9755   # Check if gcc -print-prog-name=ld gives a path.
9756   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9757 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9758   case $host in
9759   *-*-mingw*)
9760     # gcc leaves a trailing carriage return which upsets mingw
9761     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9762   *)
9763     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9764   esac
9765   case $ac_prog in
9766     # Accept absolute paths.
9767     [\\/]* | ?:[\\/]*)
9768       re_direlt='/[^/][^/]*/\.\./'
9769       # Canonicalize the pathname of ld
9770       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9771       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9772         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9773       done
9774       test -z "$LD" && LD="$ac_prog"
9775       ;;
9776   "")
9777     # If it fails, then pretend we aren't using GCC.
9778     ac_prog=ld
9779     ;;
9780   *)
9781     # If it is relative, then search for the first ld in PATH.
9782     with_gnu_ld=unknown
9783     ;;
9784   esac
9785 elif test "$with_gnu_ld" = yes; then
9786   echo "$as_me:$LINENO: checking for GNU ld" >&5
9787 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9788 else
9789   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9790 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9791 fi
9792 if test "${lt_cv_path_LD+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   if test -z "$LD"; then
9796   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9797   for ac_dir in $PATH; do
9798     IFS="$lt_save_ifs"
9799     test -z "$ac_dir" && ac_dir=.
9800     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9801       lt_cv_path_LD="$ac_dir/$ac_prog"
9802       # Check to see if the program is GNU ld.  I'd rather use --version,
9803       # but apparently some GNU ld's only accept -v.
9804       # Break only if it was the GNU/non-GNU ld that we prefer.
9805       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9806       *GNU* | *'with BFD'*)
9807         test "$with_gnu_ld" != no && break
9808         ;;
9809       *)
9810         test "$with_gnu_ld" != yes && break
9811         ;;
9812       esac
9813     fi
9814   done
9815   IFS="$lt_save_ifs"
9816 else
9817   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9818 fi
9819 fi
9820
9821 LD="$lt_cv_path_LD"
9822 if test -n "$LD"; then
9823   echo "$as_me:$LINENO: result: $LD" >&5
9824 echo "${ECHO_T}$LD" >&6
9825 else
9826   echo "$as_me:$LINENO: result: no" >&5
9827 echo "${ECHO_T}no" >&6
9828 fi
9829 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9830 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9831    { (exit 1); exit 1; }; }
9832 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9833 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9834 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9838 case `$LD -v 2>&1 </dev/null` in
9839 *GNU* | *'with BFD'*)
9840   lt_cv_prog_gnu_ld=yes
9841   ;;
9842 *)
9843   lt_cv_prog_gnu_ld=no
9844   ;;
9845 esac
9846 fi
9847 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9848 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9849 with_gnu_ld=$lt_cv_prog_gnu_ld
9850
9851
9852 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9853 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9854 if test "${lt_cv_ld_reload_flag+set}" = set; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857   lt_cv_ld_reload_flag='-r'
9858 fi
9859 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9860 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9861 reload_flag=$lt_cv_ld_reload_flag
9862 case $reload_flag in
9863 "" | " "*) ;;
9864 *) reload_flag=" $reload_flag" ;;
9865 esac
9866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9867 case $host_os in
9868   darwin*)
9869     if test "$GCC" = yes; then
9870       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9871     else
9872       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9873     fi
9874     ;;
9875 esac
9876
9877 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9878 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9879 if test "${lt_cv_deplibs_check_method+set}" = set; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882   lt_cv_file_magic_cmd='$MAGIC_CMD'
9883 lt_cv_file_magic_test_file=
9884 lt_cv_deplibs_check_method='unknown'
9885 # Need to set the preceding variable on all platforms that support
9886 # interlibrary dependencies.
9887 # 'none' -- dependencies not supported.
9888 # `unknown' -- same as none, but documents that we really don't know.
9889 # 'pass_all' -- all dependencies passed with no checks.
9890 # 'test_compile' -- check by making test program.
9891 # 'file_magic [[regex]]' -- check by looking for files in library path
9892 # which responds to the $file_magic_cmd with a given extended regex.
9893 # If you have `file' or equivalent on your system and you're not sure
9894 # whether `pass_all' will *always* work, you probably want this one.
9895
9896 case $host_os in
9897 aix4* | aix5*)
9898   lt_cv_deplibs_check_method=pass_all
9899   ;;
9900
9901 beos*)
9902   lt_cv_deplibs_check_method=pass_all
9903   ;;
9904
9905 bsdi[45]*)
9906   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9907   lt_cv_file_magic_cmd='/usr/bin/file -L'
9908   lt_cv_file_magic_test_file=/shlib/libc.so
9909   ;;
9910
9911 cygwin*)
9912   # func_win32_libid is a shell function defined in ltmain.sh
9913   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9914   lt_cv_file_magic_cmd='func_win32_libid'
9915   ;;
9916
9917 mingw* | pw32*)
9918   # Base MSYS/MinGW do not provide the 'file' command needed by
9919   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9920   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9921   lt_cv_file_magic_cmd='$OBJDUMP -f'
9922   ;;
9923
9924 darwin* | rhapsody*)
9925   lt_cv_deplibs_check_method=pass_all
9926   ;;
9927
9928 freebsd* | kfreebsd*-gnu)
9929   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9930     case $host_cpu in
9931     i*86 )
9932       # Not sure whether the presence of OpenBSD here was a mistake.
9933       # Let's accept both of them until this is cleared up.
9934       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9935       lt_cv_file_magic_cmd=/usr/bin/file
9936       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9937       ;;
9938     esac
9939   else
9940     lt_cv_deplibs_check_method=pass_all
9941   fi
9942   ;;
9943
9944 gnu*)
9945   lt_cv_deplibs_check_method=pass_all
9946   ;;
9947
9948 hpux10.20* | hpux11*)
9949   lt_cv_file_magic_cmd=/usr/bin/file
9950   case "$host_cpu" in
9951   ia64*)
9952     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9953     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9954     ;;
9955   hppa*64*)
9956     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]'
9957     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9958     ;;
9959   *)
9960     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9961     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9962     ;;
9963   esac
9964   ;;
9965
9966 irix5* | irix6* | nonstopux*)
9967   case $LD in
9968   *-32|*"-32 ") libmagic=32-bit;;
9969   *-n32|*"-n32 ") libmagic=N32;;
9970   *-64|*"-64 ") libmagic=64-bit;;
9971   *) libmagic=never-match;;
9972   esac
9973   lt_cv_deplibs_check_method=pass_all
9974   ;;
9975
9976 # This must be Linux ELF.
9977 linux*)
9978   lt_cv_deplibs_check_method=pass_all
9979   ;;
9980
9981 netbsd*)
9982   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9983     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9984   else
9985     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9986   fi
9987   ;;
9988
9989 newos6*)
9990   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9991   lt_cv_file_magic_cmd=/usr/bin/file
9992   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9993   ;;
9994
9995 nto-qnx*)
9996   lt_cv_deplibs_check_method=unknown
9997   ;;
9998
9999 openbsd*)
10000   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10001     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10002   else
10003     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10004   fi
10005   ;;
10006
10007 osf3* | osf4* | osf5*)
10008   lt_cv_deplibs_check_method=pass_all
10009   ;;
10010
10011 sco3.2v5*)
10012   lt_cv_deplibs_check_method=pass_all
10013   ;;
10014
10015 solaris*)
10016   lt_cv_deplibs_check_method=pass_all
10017   ;;
10018
10019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10020   case $host_vendor in
10021   motorola)
10022     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]'
10023     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10024     ;;
10025   ncr)
10026     lt_cv_deplibs_check_method=pass_all
10027     ;;
10028   sequent)
10029     lt_cv_file_magic_cmd='/bin/file'
10030     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10031     ;;
10032   sni)
10033     lt_cv_file_magic_cmd='/bin/file'
10034     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10035     lt_cv_file_magic_test_file=/lib/libc.so
10036     ;;
10037   siemens)
10038     lt_cv_deplibs_check_method=pass_all
10039     ;;
10040   esac
10041   ;;
10042
10043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10044   lt_cv_deplibs_check_method=pass_all
10045   ;;
10046 esac
10047
10048 fi
10049 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10050 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10051 file_magic_cmd=$lt_cv_file_magic_cmd
10052 deplibs_check_method=$lt_cv_deplibs_check_method
10053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10054
10055
10056
10057 # If no C compiler was specified, use CC.
10058 LTCC=${LTCC-"$CC"}
10059
10060 # Allow CC to be a program name with arguments.
10061 compiler=$CC
10062
10063 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10064 if test "${enable_libtool_lock+set}" = set; then
10065   enableval="$enable_libtool_lock"
10066
10067 fi;
10068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10069
10070 # Some flags need to be propagated to the compiler or linker for good
10071 # libtool support.
10072 case $host in
10073 ia64-*-hpux*)
10074   # Find out which ABI we are using.
10075   echo 'int i;' > conftest.$ac_ext
10076   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077   (eval $ac_compile) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; then
10081     case `/usr/bin/file conftest.$ac_objext` in
10082     *ELF-32*)
10083       HPUX_IA64_MODE="32"
10084       ;;
10085     *ELF-64*)
10086       HPUX_IA64_MODE="64"
10087       ;;
10088     esac
10089   fi
10090   rm -rf conftest*
10091   ;;
10092 *-*-irix6*)
10093   # Find out which ABI we are using.
10094   echo '#line 10094 "configure"' > conftest.$ac_ext
10095   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096   (eval $ac_compile) 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; then
10100    if test "$lt_cv_prog_gnu_ld" = yes; then
10101     case `/usr/bin/file conftest.$ac_objext` in
10102     *32-bit*)
10103       LD="${LD-ld} -melf32bsmip"
10104       ;;
10105     *N32*)
10106       LD="${LD-ld} -melf32bmipn32"
10107       ;;
10108     *64-bit*)
10109       LD="${LD-ld} -melf64bmip"
10110       ;;
10111     esac
10112    else
10113     case `/usr/bin/file conftest.$ac_objext` in
10114     *32-bit*)
10115       LD="${LD-ld} -32"
10116       ;;
10117     *N32*)
10118       LD="${LD-ld} -n32"
10119       ;;
10120     *64-bit*)
10121       LD="${LD-ld} -64"
10122       ;;
10123     esac
10124    fi
10125   fi
10126   rm -rf conftest*
10127   ;;
10128
10129 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10130   # Find out which ABI we are using.
10131   echo 'int i;' > conftest.$ac_ext
10132   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133   (eval $ac_compile) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }; then
10137     case "`/usr/bin/file conftest.o`" in
10138     *32-bit*)
10139       case $host in
10140         x86_64-*linux*)
10141           LD="${LD-ld} -m elf_i386"
10142           ;;
10143         ppc64-*linux*|powerpc64-*linux*)
10144           LD="${LD-ld} -m elf32ppclinux"
10145           ;;
10146         s390x-*linux*)
10147           LD="${LD-ld} -m elf_s390"
10148           ;;
10149         sparc64-*linux*)
10150           LD="${LD-ld} -m elf32_sparc"
10151           ;;
10152       esac
10153       ;;
10154     *64-bit*)
10155       case $host in
10156         x86_64-*linux*)
10157           LD="${LD-ld} -m elf_x86_64"
10158           ;;
10159         ppc*-*linux*|powerpc*-*linux*)
10160           LD="${LD-ld} -m elf64ppc"
10161           ;;
10162         s390*-*linux*)
10163           LD="${LD-ld} -m elf64_s390"
10164           ;;
10165         sparc*-*linux*)
10166           LD="${LD-ld} -m elf64_sparc"
10167           ;;
10168       esac
10169       ;;
10170     esac
10171   fi
10172   rm -rf conftest*
10173   ;;
10174
10175 *-*-sco3.2v5*)
10176   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10177   SAVE_CFLAGS="$CFLAGS"
10178   CFLAGS="$CFLAGS -belf"
10179   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10180 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10181 if test "${lt_cv_cc_needs_belf+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   ac_ext=c
10185 ac_cpp='$CPP $CPPFLAGS'
10186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10189
10190      cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10196
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200   (eval $ac_link) 2>conftest.er1
10201   ac_status=$?
10202   grep -v '^ *+' conftest.er1 >conftest.err
10203   rm -f conftest.er1
10204   cat conftest.err >&5
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } &&
10207          { ac_try='test -z "$ac_c_werror_flag"
10208                          || test ! -s conftest.err'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; }; then
10220   lt_cv_cc_needs_belf=yes
10221 else
10222   echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 lt_cv_cc_needs_belf=no
10226 fi
10227 rm -f conftest.err conftest.$ac_objext \
10228       conftest$ac_exeext conftest.$ac_ext
10229      ac_ext=c
10230 ac_cpp='$CPP $CPPFLAGS'
10231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10234
10235 fi
10236 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10237 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10238   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10239     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10240     CFLAGS="$SAVE_CFLAGS"
10241   fi
10242   ;;
10243
10244 esac
10245
10246 need_locks="$enable_libtool_lock"
10247
10248
10249
10250
10251 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10252     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10253     (test "X$CXX" != "Xg++"))) ; then
10254   ac_ext=cc
10255 ac_cpp='$CXXCPP $CPPFLAGS'
10256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10259 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10260 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10261 if test -z "$CXXCPP"; then
10262   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265       # Double quotes because CXXCPP needs to be expanded
10266     for CXXCPP in "$CXX -E" "/lib/cpp"
10267     do
10268       ac_preproc_ok=false
10269 for ac_cxx_preproc_warn_flag in '' yes
10270 do
10271   # Use a header file that comes with gcc, so configuring glibc
10272   # with a fresh cross-compiler works.
10273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274   # <limits.h> exists even on freestanding compilers.
10275   # On the NeXT, cc -E runs the code through the compiler's parser,
10276   # not just through cpp. "Syntax error" is here to catch this case.
10277   cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h.  */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h.  */
10283 #ifdef __STDC__
10284 # include <limits.h>
10285 #else
10286 # include <assert.h>
10287 #endif
10288                      Syntax error
10289 _ACEOF
10290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } >/dev/null; then
10298   if test -s conftest.err; then
10299     ac_cpp_err=$ac_cxx_preproc_warn_flag
10300     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10301   else
10302     ac_cpp_err=
10303   fi
10304 else
10305   ac_cpp_err=yes
10306 fi
10307 if test -z "$ac_cpp_err"; then
10308   :
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313   # Broken: fails on valid input.
10314 continue
10315 fi
10316 rm -f conftest.err conftest.$ac_ext
10317
10318   # OK, works on sane cases.  Now check whether non-existent headers
10319   # can be detected and how.
10320   cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 #include <ac_nonexistent.h>
10327 _ACEOF
10328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } >/dev/null; then
10336   if test -s conftest.err; then
10337     ac_cpp_err=$ac_cxx_preproc_warn_flag
10338     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10339   else
10340     ac_cpp_err=
10341   fi
10342 else
10343   ac_cpp_err=yes
10344 fi
10345 if test -z "$ac_cpp_err"; then
10346   # Broken: success on invalid input.
10347 continue
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352   # Passes both tests.
10353 ac_preproc_ok=:
10354 break
10355 fi
10356 rm -f conftest.err conftest.$ac_ext
10357
10358 done
10359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10360 rm -f conftest.err conftest.$ac_ext
10361 if $ac_preproc_ok; then
10362   break
10363 fi
10364
10365     done
10366     ac_cv_prog_CXXCPP=$CXXCPP
10367
10368 fi
10369   CXXCPP=$ac_cv_prog_CXXCPP
10370 else
10371   ac_cv_prog_CXXCPP=$CXXCPP
10372 fi
10373 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10374 echo "${ECHO_T}$CXXCPP" >&6
10375 ac_preproc_ok=false
10376 for ac_cxx_preproc_warn_flag in '' yes
10377 do
10378   # Use a header file that comes with gcc, so configuring glibc
10379   # with a fresh cross-compiler works.
10380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381   # <limits.h> exists even on freestanding compilers.
10382   # On the NeXT, cc -E runs the code through the compiler's parser,
10383   # not just through cpp. "Syntax error" is here to catch this case.
10384   cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h.  */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h.  */
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10395                      Syntax error
10396 _ACEOF
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } >/dev/null; then
10405   if test -s conftest.err; then
10406     ac_cpp_err=$ac_cxx_preproc_warn_flag
10407     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10408   else
10409     ac_cpp_err=
10410   fi
10411 else
10412   ac_cpp_err=yes
10413 fi
10414 if test -z "$ac_cpp_err"; then
10415   :
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420   # Broken: fails on valid input.
10421 continue
10422 fi
10423 rm -f conftest.err conftest.$ac_ext
10424
10425   # OK, works on sane cases.  Now check whether non-existent headers
10426   # can be detected and how.
10427   cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 #include <ac_nonexistent.h>
10434 _ACEOF
10435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
10440   cat conftest.err >&5
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } >/dev/null; then
10443   if test -s conftest.err; then
10444     ac_cpp_err=$ac_cxx_preproc_warn_flag
10445     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10446   else
10447     ac_cpp_err=
10448   fi
10449 else
10450   ac_cpp_err=yes
10451 fi
10452 if test -z "$ac_cpp_err"; then
10453   # Broken: success on invalid input.
10454 continue
10455 else
10456   echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459   # Passes both tests.
10460 ac_preproc_ok=:
10461 break
10462 fi
10463 rm -f conftest.err conftest.$ac_ext
10464
10465 done
10466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10467 rm -f conftest.err conftest.$ac_ext
10468 if $ac_preproc_ok; then
10469   :
10470 else
10471   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10472 See \`config.log' for more details." >&5
10473 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10474 See \`config.log' for more details." >&2;}
10475    { (exit 1); exit 1; }; }
10476 fi
10477
10478 ac_ext=cc
10479 ac_cpp='$CXXCPP $CPPFLAGS'
10480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10483
10484 fi
10485
10486
10487 ac_ext=f
10488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10491 if test -n "$ac_tool_prefix"; then
10492   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10493   do
10494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10496 echo "$as_me:$LINENO: checking for $ac_word" >&5
10497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498 if test "${ac_cv_prog_F77+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   if test -n "$F77"; then
10502   ac_cv_prog_F77="$F77" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507   IFS=$as_save_IFS
10508   test -z "$as_dir" && as_dir=.
10509   for ac_exec_ext in '' $ac_executable_extensions; do
10510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513     break 2
10514   fi
10515 done
10516 done
10517
10518 fi
10519 fi
10520 F77=$ac_cv_prog_F77
10521 if test -n "$F77"; then
10522   echo "$as_me:$LINENO: result: $F77" >&5
10523 echo "${ECHO_T}$F77" >&6
10524 else
10525   echo "$as_me:$LINENO: result: no" >&5
10526 echo "${ECHO_T}no" >&6
10527 fi
10528
10529     test -n "$F77" && break
10530   done
10531 fi
10532 if test -z "$F77"; then
10533   ac_ct_F77=$F77
10534   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10535 do
10536   # Extract the first word of "$ac_prog", so it can be a program name with args.
10537 set dummy $ac_prog; ac_word=$2
10538 echo "$as_me:$LINENO: checking for $ac_word" >&5
10539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10540 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10541   echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543   if test -n "$ac_ct_F77"; then
10544   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10545 else
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10548 do
10549   IFS=$as_save_IFS
10550   test -z "$as_dir" && as_dir=.
10551   for ac_exec_ext in '' $ac_executable_extensions; do
10552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553     ac_cv_prog_ac_ct_F77="$ac_prog"
10554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10555     break 2
10556   fi
10557 done
10558 done
10559
10560 fi
10561 fi
10562 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10563 if test -n "$ac_ct_F77"; then
10564   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10565 echo "${ECHO_T}$ac_ct_F77" >&6
10566 else
10567   echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6
10569 fi
10570
10571   test -n "$ac_ct_F77" && break
10572 done
10573
10574   F77=$ac_ct_F77
10575 fi
10576
10577
10578 # Provide some information about the compiler.
10579 echo "$as_me:10579:" \
10580      "checking for Fortran 77 compiler version" >&5
10581 ac_compiler=`set X $ac_compile; echo $2`
10582 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10583   (eval $ac_compiler --version </dev/null >&5) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }
10587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10588   (eval $ac_compiler -v </dev/null >&5) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }
10592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10593   (eval $ac_compiler -V </dev/null >&5) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }
10597 rm -f a.out
10598
10599 # If we don't use `.F' as extension, the preprocessor is not run on the
10600 # input file.  (Note that this only needs to work for GNU compilers.)
10601 ac_save_ext=$ac_ext
10602 ac_ext=F
10603 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10604 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10605 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10606   echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608   cat >conftest.$ac_ext <<_ACEOF
10609       program main
10610 #ifndef __GNUC__
10611        choke me
10612 #endif
10613
10614       end
10615 _ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618   (eval $ac_compile) 2>conftest.er1
10619   ac_status=$?
10620   grep -v '^ *+' conftest.er1 >conftest.err
10621   rm -f conftest.er1
10622   cat conftest.err >&5
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -z "$ac_f77_werror_flag"
10626                          || test ! -s conftest.err'
10627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; } &&
10632          { ac_try='test -s conftest.$ac_objext'
10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634   (eval $ac_try) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }; then
10638   ac_compiler_gnu=yes
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_compiler_gnu=no
10644 fi
10645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10647
10648 fi
10649 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10650 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10651 ac_ext=$ac_save_ext
10652 ac_test_FFLAGS=${FFLAGS+set}
10653 ac_save_FFLAGS=$FFLAGS
10654 FFLAGS=
10655 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10656 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10657 if test "${ac_cv_prog_f77_g+set}" = set; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   FFLAGS=-g
10661 cat >conftest.$ac_ext <<_ACEOF
10662       program main
10663
10664       end
10665 _ACEOF
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668   (eval $ac_compile) 2>conftest.er1
10669   ac_status=$?
10670   grep -v '^ *+' conftest.er1 >conftest.err
10671   rm -f conftest.er1
10672   cat conftest.err >&5
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } &&
10675          { ac_try='test -z "$ac_f77_werror_flag"
10676                          || test ! -s conftest.err'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; } &&
10682          { ac_try='test -s conftest.$ac_objext'
10683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684   (eval $ac_try) 2>&5
10685   ac_status=$?
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); }; }; then
10688   ac_cv_prog_f77_g=yes
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_cv_prog_f77_g=no
10694 fi
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10696
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10699 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10700 if test "$ac_test_FFLAGS" = set; then
10701   FFLAGS=$ac_save_FFLAGS
10702 elif test $ac_cv_prog_f77_g = yes; then
10703   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10704     FFLAGS="-g -O2"
10705   else
10706     FFLAGS="-g"
10707   fi
10708 else
10709   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10710     FFLAGS="-O2"
10711   else
10712     FFLAGS=
10713   fi
10714 fi
10715
10716 G77=`test $ac_compiler_gnu = yes && echo yes`
10717 ac_ext=c
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723
10724
10725 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10726
10727 # find the maximum length of command line arguments
10728 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10729 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10730 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733     i=0
10734   teststring="ABCD"
10735
10736   case $build_os in
10737   msdosdjgpp*)
10738     # On DJGPP, this test can blow up pretty badly due to problems in libc
10739     # (any single argument exceeding 2000 bytes causes a buffer overrun
10740     # during glob expansion).  Even if it were fixed, the result of this
10741     # check would be larger than it should be.
10742     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10743     ;;
10744
10745   gnu*)
10746     # Under GNU Hurd, this test is not required because there is
10747     # no limit to the length of command line arguments.
10748     # Libtool will interpret -1 as no limit whatsoever
10749     lt_cv_sys_max_cmd_len=-1;
10750     ;;
10751
10752   cygwin* | mingw*)
10753     # On Win9x/ME, this test blows up -- it succeeds, but takes
10754     # about 5 minutes as the teststring grows exponentially.
10755     # Worse, since 9x/ME are not pre-emptively multitasking,
10756     # you end up with a "frozen" computer, even though with patience
10757     # the test eventually succeeds (with a max line length of 256k).
10758     # Instead, let's just punt: use the minimum linelength reported by
10759     # all of the supported platforms: 8192 (on NT/2K/XP).
10760     lt_cv_sys_max_cmd_len=8192;
10761     ;;
10762
10763   amigaos*)
10764     # On AmigaOS with pdksh, this test takes hours, literally.
10765     # So we just punt and use a minimum line length of 8192.
10766     lt_cv_sys_max_cmd_len=8192;
10767     ;;
10768
10769   netbsd* | freebsd* | openbsd* | darwin* )
10770     # This has been around since 386BSD, at least.  Likely further.
10771     if test -x /sbin/sysctl; then
10772       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10773     elif test -x /usr/sbin/sysctl; then
10774       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10775     else
10776       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10777     fi
10778     # And add a safety zone
10779     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10780     ;;
10781
10782  *)
10783     # If test is not a shell built-in, we'll probably end up computing a
10784     # maximum length that is only half of the actual maximum length, but
10785     # we can't tell.
10786     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10787     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10788                = "XX$teststring") >/dev/null 2>&1 &&
10789             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10790             lt_cv_sys_max_cmd_len=$new_result &&
10791             test $i != 17 # 1/2 MB should be enough
10792     do
10793       i=`expr $i + 1`
10794       teststring=$teststring$teststring
10795     done
10796     teststring=
10797     # Add a significant safety factor because C++ compilers can tack on massive
10798     # amounts of additional arguments before passing them to the linker.
10799     # It appears as though 1/2 is a usable value.
10800     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10801     ;;
10802   esac
10803
10804 fi
10805
10806 if test -n $lt_cv_sys_max_cmd_len ; then
10807   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10808 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10809 else
10810   echo "$as_me:$LINENO: result: none" >&5
10811 echo "${ECHO_T}none" >&6
10812 fi
10813
10814
10815
10816
10817 # Check for command to grab the raw symbol name followed by C symbol from nm.
10818 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10819 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10820 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823
10824 # These are sane defaults that work on at least a few old systems.
10825 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10826
10827 # Character class describing NM global symbol codes.
10828 symcode='[BCDEGRST]'
10829
10830 # Regexp to match symbols that can be accessed directly from C.
10831 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10832
10833 # Transform the above into a raw symbol and a C symbol.
10834 symxfrm='\1 \2\3 \3'
10835
10836 # Transform an extracted symbol line into a proper C declaration
10837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10838
10839 # Transform an extracted symbol line into symbol name and symbol address
10840 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'"
10841
10842 # Define system-specific variables.
10843 case $host_os in
10844 aix*)
10845   symcode='[BCDT]'
10846   ;;
10847 cygwin* | mingw* | pw32*)
10848   symcode='[ABCDGISTW]'
10849   ;;
10850 hpux*) # Its linker distinguishes data from code symbols
10851   if test "$host_cpu" = ia64; then
10852     symcode='[ABCDEGRST]'
10853   fi
10854   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10855   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'"
10856   ;;
10857 linux*)
10858   if test "$host_cpu" = ia64; then
10859     symcode='[ABCDGIRSTW]'
10860     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10861     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'"
10862   fi
10863   ;;
10864 irix* | nonstopux*)
10865   symcode='[BCDEGRST]'
10866   ;;
10867 osf*)
10868   symcode='[BCDEGQRST]'
10869   ;;
10870 solaris* | sysv5*)
10871   symcode='[BDRT]'
10872   ;;
10873 sysv4)
10874   symcode='[DFNSTU]'
10875   ;;
10876 esac
10877
10878 # Handle CRLF in mingw tool chain
10879 opt_cr=
10880 case $build_os in
10881 mingw*)
10882   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10883   ;;
10884 esac
10885
10886 # If we're using GNU nm, then use its standard symbol codes.
10887 case `$NM -V 2>&1` in
10888 *GNU* | *'with BFD'*)
10889   symcode='[ABCDGIRSTW]' ;;
10890 esac
10891
10892 # Try without a prefix undercore, then with it.
10893 for ac_symprfx in "" "_"; do
10894
10895   # Write the raw and C identifiers.
10896   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10897
10898   # Check to see that the pipe works correctly.
10899   pipe_works=no
10900
10901   rm -f conftest*
10902   cat > conftest.$ac_ext <<EOF
10903 #ifdef __cplusplus
10904 extern "C" {
10905 #endif
10906 char nm_test_var;
10907 void nm_test_func(){}
10908 #ifdef __cplusplus
10909 }
10910 #endif
10911 int main(){nm_test_var='a';nm_test_func();return(0);}
10912 EOF
10913
10914   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915   (eval $ac_compile) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; then
10919     # Now try to grab the symbols.
10920     nlist=conftest.nm
10921     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10922   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); } && test -s "$nlist"; then
10926       # Try sorting and uniquifying the output.
10927       if sort "$nlist" | uniq > "$nlist"T; then
10928         mv -f "$nlist"T "$nlist"
10929       else
10930         rm -f "$nlist"T
10931       fi
10932
10933       # Make sure that we snagged all the symbols we need.
10934       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10935         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10936           cat <<EOF > conftest.$ac_ext
10937 #ifdef __cplusplus
10938 extern "C" {
10939 #endif
10940
10941 EOF
10942           # Now generate the symbol file.
10943           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10944
10945           cat <<EOF >> conftest.$ac_ext
10946 #if defined (__STDC__) && __STDC__
10947 # define lt_ptr_t void *
10948 #else
10949 # define lt_ptr_t char *
10950 # define const
10951 #endif
10952
10953 /* The mapping between symbol names and symbols. */
10954 const struct {
10955   const char *name;
10956   lt_ptr_t address;
10957 }
10958 lt_preloaded_symbols[] =
10959 {
10960 EOF
10961           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10962           cat <<\EOF >> conftest.$ac_ext
10963   {0, (lt_ptr_t) 0}
10964 };
10965
10966 #ifdef __cplusplus
10967 }
10968 #endif
10969 EOF
10970           # Now try linking the two files.
10971           mv conftest.$ac_objext conftstm.$ac_objext
10972           lt_save_LIBS="$LIBS"
10973           lt_save_CFLAGS="$CFLAGS"
10974           LIBS="conftstm.$ac_objext"
10975           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10976           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977   (eval $ac_link) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10981             pipe_works=yes
10982           fi
10983           LIBS="$lt_save_LIBS"
10984           CFLAGS="$lt_save_CFLAGS"
10985         else
10986           echo "cannot find nm_test_func in $nlist" >&5
10987         fi
10988       else
10989         echo "cannot find nm_test_var in $nlist" >&5
10990       fi
10991     else
10992       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10993     fi
10994   else
10995     echo "$progname: failed program was:" >&5
10996     cat conftest.$ac_ext >&5
10997   fi
10998   rm -f conftest* conftst*
10999
11000   # Do not use the global_symbol_pipe unless it works.
11001   if test "$pipe_works" = yes; then
11002     break
11003   else
11004     lt_cv_sys_global_symbol_pipe=
11005   fi
11006 done
11007
11008 fi
11009
11010 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11011   lt_cv_sys_global_symbol_to_cdecl=
11012 fi
11013 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11014   echo "$as_me:$LINENO: result: failed" >&5
11015 echo "${ECHO_T}failed" >&6
11016 else
11017   echo "$as_me:$LINENO: result: ok" >&5
11018 echo "${ECHO_T}ok" >&6
11019 fi
11020
11021 echo "$as_me:$LINENO: checking for objdir" >&5
11022 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11023 if test "${lt_cv_objdir+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   rm -f .libs 2>/dev/null
11027 mkdir .libs 2>/dev/null
11028 if test -d .libs; then
11029   lt_cv_objdir=.libs
11030 else
11031   # MS-DOS does not allow filenames that begin with a dot.
11032   lt_cv_objdir=_libs
11033 fi
11034 rmdir .libs 2>/dev/null
11035 fi
11036 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11037 echo "${ECHO_T}$lt_cv_objdir" >&6
11038 objdir=$lt_cv_objdir
11039
11040
11041
11042
11043
11044 case $host_os in
11045 aix3*)
11046   # AIX sometimes has problems with the GCC collect2 program.  For some
11047   # reason, if we set the COLLECT_NAMES environment variable, the problems
11048   # vanish in a puff of smoke.
11049   if test "X${COLLECT_NAMES+set}" != Xset; then
11050     COLLECT_NAMES=
11051     export COLLECT_NAMES
11052   fi
11053   ;;
11054 esac
11055
11056 # Sed substitution that helps us do robust quoting.  It backslashifies
11057 # metacharacters that are still active within double-quoted strings.
11058 Xsed='sed -e s/^X//'
11059 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11060
11061 # Same as above, but do not quote variable references.
11062 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11063
11064 # Sed substitution to delay expansion of an escaped shell variable in a
11065 # double_quote_subst'ed string.
11066 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11067
11068 # Sed substitution to avoid accidental globbing in evaled expressions
11069 no_glob_subst='s/\*/\\\*/g'
11070
11071 # Constants:
11072 rm="rm -f"
11073
11074 # Global variables:
11075 default_ofile=mklib
11076 can_build_shared=yes
11077
11078 # All known linkers require a `.a' archive for static linking (except M$VC,
11079 # which needs '.lib').
11080 libext=a
11081 ltmain="$ac_aux_dir/ltmain.sh"
11082 ofile="$default_ofile"
11083 with_gnu_ld="$lt_cv_prog_gnu_ld"
11084
11085 if test -n "$ac_tool_prefix"; then
11086   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11087 set dummy ${ac_tool_prefix}ar; ac_word=$2
11088 echo "$as_me:$LINENO: checking for $ac_word" >&5
11089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090 if test "${ac_cv_prog_AR+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   if test -n "$AR"; then
11094   ac_cv_prog_AR="$AR" # Let the user override the test.
11095 else
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11098 do
11099   IFS=$as_save_IFS
11100   test -z "$as_dir" && as_dir=.
11101   for ac_exec_ext in '' $ac_executable_extensions; do
11102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103     ac_cv_prog_AR="${ac_tool_prefix}ar"
11104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105     break 2
11106   fi
11107 done
11108 done
11109
11110 fi
11111 fi
11112 AR=$ac_cv_prog_AR
11113 if test -n "$AR"; then
11114   echo "$as_me:$LINENO: result: $AR" >&5
11115 echo "${ECHO_T}$AR" >&6
11116 else
11117   echo "$as_me:$LINENO: result: no" >&5
11118 echo "${ECHO_T}no" >&6
11119 fi
11120
11121 fi
11122 if test -z "$ac_cv_prog_AR"; then
11123   ac_ct_AR=$AR
11124   # Extract the first word of "ar", so it can be a program name with args.
11125 set dummy ar; ac_word=$2
11126 echo "$as_me:$LINENO: checking for $ac_word" >&5
11127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11129   echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131   if test -n "$ac_ct_AR"; then
11132   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11133 else
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11136 do
11137   IFS=$as_save_IFS
11138   test -z "$as_dir" && as_dir=.
11139   for ac_exec_ext in '' $ac_executable_extensions; do
11140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11141     ac_cv_prog_ac_ct_AR="ar"
11142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11143     break 2
11144   fi
11145 done
11146 done
11147
11148   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11149 fi
11150 fi
11151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11152 if test -n "$ac_ct_AR"; then
11153   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11154 echo "${ECHO_T}$ac_ct_AR" >&6
11155 else
11156   echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6
11158 fi
11159
11160   AR=$ac_ct_AR
11161 else
11162   AR="$ac_cv_prog_AR"
11163 fi
11164
11165 if test -n "$ac_tool_prefix"; then
11166   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11168 echo "$as_me:$LINENO: checking for $ac_word" >&5
11169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11170 if test "${ac_cv_prog_RANLIB+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   if test -n "$RANLIB"; then
11174   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11175 else
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179   IFS=$as_save_IFS
11180   test -z "$as_dir" && as_dir=.
11181   for ac_exec_ext in '' $ac_executable_extensions; do
11182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185     break 2
11186   fi
11187 done
11188 done
11189
11190 fi
11191 fi
11192 RANLIB=$ac_cv_prog_RANLIB
11193 if test -n "$RANLIB"; then
11194   echo "$as_me:$LINENO: result: $RANLIB" >&5
11195 echo "${ECHO_T}$RANLIB" >&6
11196 else
11197   echo "$as_me:$LINENO: result: no" >&5
11198 echo "${ECHO_T}no" >&6
11199 fi
11200
11201 fi
11202 if test -z "$ac_cv_prog_RANLIB"; then
11203   ac_ct_RANLIB=$RANLIB
11204   # Extract the first word of "ranlib", so it can be a program name with args.
11205 set dummy ranlib; ac_word=$2
11206 echo "$as_me:$LINENO: checking for $ac_word" >&5
11207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   if test -n "$ac_ct_RANLIB"; then
11212   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11216 do
11217   IFS=$as_save_IFS
11218   test -z "$as_dir" && as_dir=.
11219   for ac_exec_ext in '' $ac_executable_extensions; do
11220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221     ac_cv_prog_ac_ct_RANLIB="ranlib"
11222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223     break 2
11224   fi
11225 done
11226 done
11227
11228   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11229 fi
11230 fi
11231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11232 if test -n "$ac_ct_RANLIB"; then
11233   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11235 else
11236   echo "$as_me:$LINENO: result: no" >&5
11237 echo "${ECHO_T}no" >&6
11238 fi
11239
11240   RANLIB=$ac_ct_RANLIB
11241 else
11242   RANLIB="$ac_cv_prog_RANLIB"
11243 fi
11244
11245 if test -n "$ac_tool_prefix"; then
11246   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11247 set dummy ${ac_tool_prefix}strip; ac_word=$2
11248 echo "$as_me:$LINENO: checking for $ac_word" >&5
11249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11250 if test "${ac_cv_prog_STRIP+set}" = set; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   if test -n "$STRIP"; then
11254   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259   IFS=$as_save_IFS
11260   test -z "$as_dir" && as_dir=.
11261   for ac_exec_ext in '' $ac_executable_extensions; do
11262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265     break 2
11266   fi
11267 done
11268 done
11269
11270 fi
11271 fi
11272 STRIP=$ac_cv_prog_STRIP
11273 if test -n "$STRIP"; then
11274   echo "$as_me:$LINENO: result: $STRIP" >&5
11275 echo "${ECHO_T}$STRIP" >&6
11276 else
11277   echo "$as_me:$LINENO: result: no" >&5
11278 echo "${ECHO_T}no" >&6
11279 fi
11280
11281 fi
11282 if test -z "$ac_cv_prog_STRIP"; then
11283   ac_ct_STRIP=$STRIP
11284   # Extract the first word of "strip", so it can be a program name with args.
11285 set dummy strip; ac_word=$2
11286 echo "$as_me:$LINENO: checking for $ac_word" >&5
11287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11288 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   if test -n "$ac_ct_STRIP"; then
11292   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11293 else
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11296 do
11297   IFS=$as_save_IFS
11298   test -z "$as_dir" && as_dir=.
11299   for ac_exec_ext in '' $ac_executable_extensions; do
11300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301     ac_cv_prog_ac_ct_STRIP="strip"
11302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303     break 2
11304   fi
11305 done
11306 done
11307
11308   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11309 fi
11310 fi
11311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11312 if test -n "$ac_ct_STRIP"; then
11313   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11314 echo "${ECHO_T}$ac_ct_STRIP" >&6
11315 else
11316   echo "$as_me:$LINENO: result: no" >&5
11317 echo "${ECHO_T}no" >&6
11318 fi
11319
11320   STRIP=$ac_ct_STRIP
11321 else
11322   STRIP="$ac_cv_prog_STRIP"
11323 fi
11324
11325
11326 old_CC="$CC"
11327 old_CFLAGS="$CFLAGS"
11328
11329 # Set sane defaults for various variables
11330 test -z "$AR" && AR=ar
11331 test -z "$AR_FLAGS" && AR_FLAGS=cru
11332 test -z "$AS" && AS=as
11333 test -z "$CC" && CC=cc
11334 test -z "$LTCC" && LTCC=$CC
11335 test -z "$DLLTOOL" && DLLTOOL=dlltool
11336 test -z "$LD" && LD=ld
11337 test -z "$LN_S" && LN_S="ln -s"
11338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11339 test -z "$NM" && NM=nm
11340 test -z "$SED" && SED=sed
11341 test -z "$OBJDUMP" && OBJDUMP=objdump
11342 test -z "$RANLIB" && RANLIB=:
11343 test -z "$STRIP" && STRIP=:
11344 test -z "$ac_objext" && ac_objext=o
11345
11346 # Determine commands to create old-style static archives.
11347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11348 old_postinstall_cmds='chmod 644 $oldlib'
11349 old_postuninstall_cmds=
11350
11351 if test -n "$RANLIB"; then
11352   case $host_os in
11353   openbsd*)
11354     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11355     ;;
11356   *)
11357     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11358     ;;
11359   esac
11360   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11361 fi
11362
11363 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11364
11365 # Only perform the check for file, if the check method requires it
11366 case $deplibs_check_method in
11367 file_magic*)
11368   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11369     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11370 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   case $MAGIC_CMD in
11375 [\\/*] |  ?:[\\/]*)
11376   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11377   ;;
11378 *)
11379   lt_save_MAGIC_CMD="$MAGIC_CMD"
11380   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11381   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11382   for ac_dir in $ac_dummy; do
11383     IFS="$lt_save_ifs"
11384     test -z "$ac_dir" && ac_dir=.
11385     if test -f $ac_dir/${ac_tool_prefix}file; then
11386       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11387       if test -n "$file_magic_test_file"; then
11388         case $deplibs_check_method in
11389         "file_magic "*)
11390           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11391           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11392           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11393             $EGREP "$file_magic_regex" > /dev/null; then
11394             :
11395           else
11396             cat <<EOF 1>&2
11397
11398 *** Warning: the command libtool uses to detect shared libraries,
11399 *** $file_magic_cmd, produces output that libtool cannot recognize.
11400 *** The result is that libtool may fail to recognize shared libraries
11401 *** as such.  This will affect the creation of libtool libraries that
11402 *** depend on shared libraries, but programs linked with such libtool
11403 *** libraries will work regardless of this problem.  Nevertheless, you
11404 *** may want to report the problem to your system manager and/or to
11405 *** bug-libtool@gnu.org
11406
11407 EOF
11408           fi ;;
11409         esac
11410       fi
11411       break
11412     fi
11413   done
11414   IFS="$lt_save_ifs"
11415   MAGIC_CMD="$lt_save_MAGIC_CMD"
11416   ;;
11417 esac
11418 fi
11419
11420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11421 if test -n "$MAGIC_CMD"; then
11422   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11423 echo "${ECHO_T}$MAGIC_CMD" >&6
11424 else
11425   echo "$as_me:$LINENO: result: no" >&5
11426 echo "${ECHO_T}no" >&6
11427 fi
11428
11429 if test -z "$lt_cv_path_MAGIC_CMD"; then
11430   if test -n "$ac_tool_prefix"; then
11431     echo "$as_me:$LINENO: checking for file" >&5
11432 echo $ECHO_N "checking for file... $ECHO_C" >&6
11433 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   case $MAGIC_CMD in
11437 [\\/*] |  ?:[\\/]*)
11438   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11439   ;;
11440 *)
11441   lt_save_MAGIC_CMD="$MAGIC_CMD"
11442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11443   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11444   for ac_dir in $ac_dummy; do
11445     IFS="$lt_save_ifs"
11446     test -z "$ac_dir" && ac_dir=.
11447     if test -f $ac_dir/file; then
11448       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11449       if test -n "$file_magic_test_file"; then
11450         case $deplibs_check_method in
11451         "file_magic "*)
11452           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11453           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11454           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11455             $EGREP "$file_magic_regex" > /dev/null; then
11456             :
11457           else
11458             cat <<EOF 1>&2
11459
11460 *** Warning: the command libtool uses to detect shared libraries,
11461 *** $file_magic_cmd, produces output that libtool cannot recognize.
11462 *** The result is that libtool may fail to recognize shared libraries
11463 *** as such.  This will affect the creation of libtool libraries that
11464 *** depend on shared libraries, but programs linked with such libtool
11465 *** libraries will work regardless of this problem.  Nevertheless, you
11466 *** may want to report the problem to your system manager and/or to
11467 *** bug-libtool@gnu.org
11468
11469 EOF
11470           fi ;;
11471         esac
11472       fi
11473       break
11474     fi
11475   done
11476   IFS="$lt_save_ifs"
11477   MAGIC_CMD="$lt_save_MAGIC_CMD"
11478   ;;
11479 esac
11480 fi
11481
11482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11483 if test -n "$MAGIC_CMD"; then
11484   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11485 echo "${ECHO_T}$MAGIC_CMD" >&6
11486 else
11487   echo "$as_me:$LINENO: result: no" >&5
11488 echo "${ECHO_T}no" >&6
11489 fi
11490
11491   else
11492     MAGIC_CMD=:
11493   fi
11494 fi
11495
11496   fi
11497   ;;
11498 esac
11499
11500 enable_dlopen=yes
11501 enable_win32_dll=no
11502
11503 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11504 if test "${enable_libtool_lock+set}" = set; then
11505   enableval="$enable_libtool_lock"
11506
11507 fi;
11508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11509
11510
11511 # Check whether --with-pic or --without-pic was given.
11512 if test "${with_pic+set}" = set; then
11513   withval="$with_pic"
11514   pic_mode="$withval"
11515 else
11516   pic_mode=default
11517 fi;
11518 test -z "$pic_mode" && pic_mode=default
11519
11520 # Use C for the default configuration in the libtool script
11521 tagname=
11522 lt_save_CC="$CC"
11523 ac_ext=c
11524 ac_cpp='$CPP $CPPFLAGS'
11525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11528
11529
11530 # Source file extension for C test sources.
11531 ac_ext=c
11532
11533 # Object file extension for compiled C test sources.
11534 objext=o
11535 objext=$objext
11536
11537 # Code to be used in simple compile tests
11538 lt_simple_compile_test_code="int some_variable = 0;\n"
11539
11540 # Code to be used in simple link tests
11541 lt_simple_link_test_code='int main(){return(0);}\n'
11542
11543
11544 # If no C compiler was specified, use CC.
11545 LTCC=${LTCC-"$CC"}
11546
11547 # Allow CC to be a program name with arguments.
11548 compiler=$CC
11549
11550
11551 #
11552 # Check for any special shared library compilation flags.
11553 #
11554 lt_prog_cc_shlib=
11555 if test "$GCC" = no; then
11556   case $host_os in
11557   sco3.2v5*)
11558     lt_prog_cc_shlib='-belf'
11559     ;;
11560   esac
11561 fi
11562 if test -n "$lt_prog_cc_shlib"; then
11563   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11564 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11565   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11566   else
11567     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11568 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11569     lt_cv_prog_cc_can_build_shared=no
11570   fi
11571 fi
11572
11573
11574 #
11575 # Check to make sure the static flag actually works.
11576 #
11577 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11578 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11579 if test "${lt_prog_compiler_static_works+set}" = set; then
11580   echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582   lt_prog_compiler_static_works=no
11583    save_LDFLAGS="$LDFLAGS"
11584    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11585    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11586    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587      # The compiler can only warn and ignore the option if not recognized
11588      # So say no if there are warnings
11589      if test -s conftest.err; then
11590        # Append any errors to the config.log.
11591        cat conftest.err 1>&5
11592      else
11593        lt_prog_compiler_static_works=yes
11594      fi
11595    fi
11596    $rm conftest*
11597    LDFLAGS="$save_LDFLAGS"
11598
11599 fi
11600 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11601 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11602
11603 if test x"$lt_prog_compiler_static_works" = xyes; then
11604     :
11605 else
11606     lt_prog_compiler_static=
11607 fi
11608
11609
11610
11611
11612 lt_prog_compiler_no_builtin_flag=
11613
11614 if test "$GCC" = yes; then
11615   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11616
11617
11618 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11619 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11620 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   lt_cv_prog_compiler_rtti_exceptions=no
11624   ac_outfile=conftest.$ac_objext
11625    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11626    lt_compiler_flag="-fno-rtti -fno-exceptions"
11627    # Insert the option either (1) after the last *FLAGS variable, or
11628    # (2) before a word containing "conftest.", or (3) at the end.
11629    # Note that $ac_compile itself does not contain backslashes and begins
11630    # with a dollar sign (not a hyphen), so the echo should work correctly.
11631    # The option is referenced via a variable to avoid confusing sed.
11632    lt_compile=`echo "$ac_compile" | $SED \
11633    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11635    -e 's:$: $lt_compiler_flag:'`
11636    (eval echo "\"\$as_me:11636: $lt_compile\"" >&5)
11637    (eval "$lt_compile" 2>conftest.err)
11638    ac_status=$?
11639    cat conftest.err >&5
11640    echo "$as_me:11640: \$? = $ac_status" >&5
11641    if (exit $ac_status) && test -s "$ac_outfile"; then
11642      # The compiler can only warn and ignore the option if not recognized
11643      # So say no if there are warnings
11644      if test ! -s conftest.err; then
11645        lt_cv_prog_compiler_rtti_exceptions=yes
11646      fi
11647    fi
11648    $rm conftest*
11649
11650 fi
11651 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11652 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11653
11654 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11655     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11656 else
11657     :
11658 fi
11659
11660 fi
11661
11662 lt_prog_compiler_wl=
11663 lt_prog_compiler_pic=
11664 lt_prog_compiler_static=
11665
11666 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11667 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11668
11669   if test "$GCC" = yes; then
11670     lt_prog_compiler_wl='-Wl,'
11671     lt_prog_compiler_static='-static'
11672
11673     case $host_os in
11674       aix*)
11675       # All AIX code is PIC.
11676       if test "$host_cpu" = ia64; then
11677         # AIX 5 now supports IA64 processor
11678         lt_prog_compiler_static='-Bstatic'
11679       fi
11680       ;;
11681
11682     amigaos*)
11683       # FIXME: we need at least 68020 code to build shared libraries, but
11684       # adding the `-m68020' flag to GCC prevents building anything better,
11685       # like `-m68040'.
11686       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11687       ;;
11688
11689     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11690       # PIC is the default for these OSes.
11691       ;;
11692
11693     mingw* | pw32* | os2*)
11694       # This hack is so that the source file can tell whether it is being
11695       # built for inclusion in a dll (and should export symbols for example).
11696       lt_prog_compiler_pic='-DDLL_EXPORT'
11697       ;;
11698
11699     darwin* | rhapsody*)
11700       # PIC is the default on this platform
11701       # Common symbols not allowed in MH_DYLIB files
11702       lt_prog_compiler_pic='-fno-common'
11703       ;;
11704
11705     msdosdjgpp*)
11706       # Just because we use GCC doesn't mean we suddenly get shared libraries
11707       # on systems that don't support them.
11708       lt_prog_compiler_can_build_shared=no
11709       enable_shared=no
11710       ;;
11711
11712     sysv4*MP*)
11713       if test -d /usr/nec; then
11714         lt_prog_compiler_pic=-Kconform_pic
11715       fi
11716       ;;
11717
11718     hpux*)
11719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11720       # not for PA HP-UX.
11721       case "$host_cpu" in
11722       hppa*64*|ia64*)
11723         # +Z the default
11724         ;;
11725       *)
11726         lt_prog_compiler_pic='-fPIC'
11727         ;;
11728       esac
11729       ;;
11730
11731     *)
11732       lt_prog_compiler_pic='-fPIC'
11733       ;;
11734     esac
11735   else
11736     # PORTME Check for flag to pass linker flags through the system compiler.
11737     case $host_os in
11738     aix*)
11739       lt_prog_compiler_wl='-Wl,'
11740       if test "$host_cpu" = ia64; then
11741         # AIX 5 now supports IA64 processor
11742         lt_prog_compiler_static='-Bstatic'
11743       else
11744         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11745       fi
11746       ;;
11747       darwin*)
11748         # PIC is the default on this platform
11749         # Common symbols not allowed in MH_DYLIB files
11750        case "$cc_basename" in
11751          xlc*)
11752          lt_prog_compiler_pic='-qnocommon'
11753          lt_prog_compiler_wl='-Wl,'
11754          ;;
11755        esac
11756        ;;
11757
11758     mingw* | pw32* | os2*)
11759       # This hack is so that the source file can tell whether it is being
11760       # built for inclusion in a dll (and should export symbols for example).
11761       lt_prog_compiler_pic='-DDLL_EXPORT'
11762       ;;
11763
11764     hpux9* | hpux10* | hpux11*)
11765       lt_prog_compiler_wl='-Wl,'
11766       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11767       # not for PA HP-UX.
11768       case "$host_cpu" in
11769       hppa*64*|ia64*)
11770         # +Z the default
11771         ;;
11772       *)
11773         lt_prog_compiler_pic='+Z'
11774         ;;
11775       esac
11776       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11777       lt_prog_compiler_static='${wl}-a ${wl}archive'
11778       ;;
11779
11780     irix5* | irix6* | nonstopux*)
11781       lt_prog_compiler_wl='-Wl,'
11782       # PIC (with -KPIC) is the default.
11783       lt_prog_compiler_static='-non_shared'
11784       ;;
11785
11786     newsos6)
11787       lt_prog_compiler_pic='-KPIC'
11788       lt_prog_compiler_static='-Bstatic'
11789       ;;
11790
11791     linux*)
11792       case $CC in
11793       icc* | ecc*)
11794         lt_prog_compiler_wl='-Wl,'
11795         lt_prog_compiler_pic='-KPIC'
11796         lt_prog_compiler_static='-static'
11797         ;;
11798       ccc*)
11799         lt_prog_compiler_wl='-Wl,'
11800         # All Alpha code is PIC.
11801         lt_prog_compiler_static='-non_shared'
11802         ;;
11803       esac
11804       ;;
11805
11806     osf3* | osf4* | osf5*)
11807       lt_prog_compiler_wl='-Wl,'
11808       # All OSF/1 code is PIC.
11809       lt_prog_compiler_static='-non_shared'
11810       ;;
11811
11812     sco3.2v5*)
11813       lt_prog_compiler_pic='-Kpic'
11814       lt_prog_compiler_static='-dn'
11815       ;;
11816
11817     solaris*)
11818       lt_prog_compiler_wl='-Wl,'
11819       lt_prog_compiler_pic='-KPIC'
11820       lt_prog_compiler_static='-Bstatic'
11821       ;;
11822
11823     sunos4*)
11824       lt_prog_compiler_wl='-Qoption ld '
11825       lt_prog_compiler_pic='-PIC'
11826       lt_prog_compiler_static='-Bstatic'
11827       ;;
11828
11829     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11830       lt_prog_compiler_wl='-Wl,'
11831       lt_prog_compiler_pic='-KPIC'
11832       lt_prog_compiler_static='-Bstatic'
11833       ;;
11834
11835     sysv4*MP*)
11836       if test -d /usr/nec ;then
11837         lt_prog_compiler_pic='-Kconform_pic'
11838         lt_prog_compiler_static='-Bstatic'
11839       fi
11840       ;;
11841
11842     uts4*)
11843       lt_prog_compiler_pic='-pic'
11844       lt_prog_compiler_static='-Bstatic'
11845       ;;
11846
11847     *)
11848       lt_prog_compiler_can_build_shared=no
11849       ;;
11850     esac
11851   fi
11852
11853 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11854 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11855
11856 #
11857 # Check to make sure the PIC flag actually works.
11858 #
11859 if test -n "$lt_prog_compiler_pic"; then
11860
11861 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11862 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11863 if test "${lt_prog_compiler_pic_works+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   lt_prog_compiler_pic_works=no
11867   ac_outfile=conftest.$ac_objext
11868    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11869    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11870    # Insert the option either (1) after the last *FLAGS variable, or
11871    # (2) before a word containing "conftest.", or (3) at the end.
11872    # Note that $ac_compile itself does not contain backslashes and begins
11873    # with a dollar sign (not a hyphen), so the echo should work correctly.
11874    # The option is referenced via a variable to avoid confusing sed.
11875    lt_compile=`echo "$ac_compile" | $SED \
11876    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11878    -e 's:$: $lt_compiler_flag:'`
11879    (eval echo "\"\$as_me:11879: $lt_compile\"" >&5)
11880    (eval "$lt_compile" 2>conftest.err)
11881    ac_status=$?
11882    cat conftest.err >&5
11883    echo "$as_me:11883: \$? = $ac_status" >&5
11884    if (exit $ac_status) && test -s "$ac_outfile"; then
11885      # The compiler can only warn and ignore the option if not recognized
11886      # So say no if there are warnings
11887      if test ! -s conftest.err; then
11888        lt_prog_compiler_pic_works=yes
11889      fi
11890    fi
11891    $rm conftest*
11892
11893 fi
11894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11895 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11896
11897 if test x"$lt_prog_compiler_pic_works" = xyes; then
11898     case $lt_prog_compiler_pic in
11899      "" | " "*) ;;
11900      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11901      esac
11902 else
11903     lt_prog_compiler_pic=
11904      lt_prog_compiler_can_build_shared=no
11905 fi
11906
11907 fi
11908 case "$host_os" in
11909   # For platforms which do not support PIC, -DPIC is meaningless:
11910   *djgpp*)
11911     lt_prog_compiler_pic=
11912     ;;
11913   *)
11914     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11915     ;;
11916 esac
11917
11918 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   lt_cv_prog_compiler_c_o=no
11924    $rm -r conftest 2>/dev/null
11925    mkdir conftest
11926    cd conftest
11927    mkdir out
11928    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11929
11930    lt_compiler_flag="-o out/conftest2.$ac_objext"
11931    # Insert the option either (1) after the last *FLAGS variable, or
11932    # (2) before a word containing "conftest.", or (3) at the end.
11933    # Note that $ac_compile itself does not contain backslashes and begins
11934    # with a dollar sign (not a hyphen), so the echo should work correctly.
11935    lt_compile=`echo "$ac_compile" | $SED \
11936    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11938    -e 's:$: $lt_compiler_flag:'`
11939    (eval echo "\"\$as_me:11939: $lt_compile\"" >&5)
11940    (eval "$lt_compile" 2>out/conftest.err)
11941    ac_status=$?
11942    cat out/conftest.err >&5
11943    echo "$as_me:11943: \$? = $ac_status" >&5
11944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11945    then
11946      # The compiler can only warn and ignore the option if not recognized
11947      # So say no if there are warnings
11948      if test ! -s out/conftest.err; then
11949        lt_cv_prog_compiler_c_o=yes
11950      fi
11951    fi
11952    chmod u+w .
11953    $rm conftest*
11954    # SGI C++ compiler will create directory out/ii_files/ for
11955    # template instantiation
11956    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11957    $rm out/* && rmdir out
11958    cd ..
11959    rmdir conftest
11960    $rm conftest*
11961
11962 fi
11963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11964 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11965
11966
11967 hard_links="nottested"
11968 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11969   # do not overwrite the value of need_locks provided by the user
11970   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11972   hard_links=yes
11973   $rm conftest*
11974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11975   touch conftest.a
11976   ln conftest.a conftest.b 2>&5 || hard_links=no
11977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11978   echo "$as_me:$LINENO: result: $hard_links" >&5
11979 echo "${ECHO_T}$hard_links" >&6
11980   if test "$hard_links" = no; then
11981     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11983     need_locks=warn
11984   fi
11985 else
11986   need_locks=no
11987 fi
11988
11989 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11990 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11991
11992   runpath_var=
11993   allow_undefined_flag=
11994   enable_shared_with_static_runtimes=no
11995   archive_cmds=
11996   archive_expsym_cmds=
11997   old_archive_From_new_cmds=
11998   old_archive_from_expsyms_cmds=
11999   export_dynamic_flag_spec=
12000   whole_archive_flag_spec=
12001   thread_safe_flag_spec=
12002   hardcode_libdir_flag_spec=
12003   hardcode_libdir_flag_spec_ld=
12004   hardcode_libdir_separator=
12005   hardcode_direct=no
12006   hardcode_minus_L=no
12007   hardcode_shlibpath_var=unsupported
12008   link_all_deplibs=unknown
12009   hardcode_automatic=no
12010   module_cmds=
12011   module_expsym_cmds=
12012   always_export_symbols=no
12013   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12014   # include_expsyms should be a list of space-separated symbols to be *always*
12015   # included in the symbol list
12016   include_expsyms=
12017   # exclude_expsyms can be an extended regexp of symbols to exclude
12018   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12019   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12020   # as well as any symbol that contains `d'.
12021   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12022   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12023   # platforms (ab)use it in PIC code, but their linkers get confused if
12024   # the symbol is explicitly referenced.  Since portable code cannot
12025   # rely on this symbol name, it's probably fine to never include it in
12026   # preloaded symbol tables.
12027   extract_expsyms_cmds=
12028
12029   case $host_os in
12030   cygwin* | mingw* | pw32*)
12031     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12032     # When not using gcc, we currently assume that we are using
12033     # Microsoft Visual C++.
12034     if test "$GCC" != yes; then
12035       with_gnu_ld=no
12036     fi
12037     ;;
12038   openbsd*)
12039     with_gnu_ld=no
12040     ;;
12041   esac
12042
12043   ld_shlibs=yes
12044   if test "$with_gnu_ld" = yes; then
12045     # If archive_cmds runs LD, not CC, wlarc should be empty
12046     wlarc='${wl}'
12047
12048     # See if GNU ld supports shared libraries.
12049     case $host_os in
12050     aix3* | aix4* | aix5*)
12051       # On AIX/PPC, the GNU linker is very broken
12052       if test "$host_cpu" != ia64; then
12053         ld_shlibs=no
12054         cat <<EOF 1>&2
12055
12056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12057 *** to be unable to reliably create shared libraries on AIX.
12058 *** Therefore, libtool is disabling shared libraries support.  If you
12059 *** really care for shared libraries, you may want to modify your PATH
12060 *** so that a non-GNU linker is found, and then restart.
12061
12062 EOF
12063       fi
12064       ;;
12065
12066     amigaos*)
12067       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)'
12068       hardcode_libdir_flag_spec='-L$libdir'
12069       hardcode_minus_L=yes
12070
12071       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12072       # that the semantics of dynamic libraries on AmigaOS, at least up
12073       # to version 4, is to share data among multiple programs linked
12074       # with the same dynamic library.  Since this doesn't match the
12075       # behavior of shared libraries on other platforms, we can't use
12076       # them.
12077       ld_shlibs=no
12078       ;;
12079
12080     beos*)
12081       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12082         allow_undefined_flag=unsupported
12083         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12084         # support --undefined.  This deserves some investigation.  FIXME
12085         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12086       else
12087         ld_shlibs=no
12088       fi
12089       ;;
12090
12091     cygwin* | mingw* | pw32*)
12092       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12093       # as there is no search path for DLLs.
12094       hardcode_libdir_flag_spec='-L$libdir'
12095       allow_undefined_flag=unsupported
12096       always_export_symbols=no
12097       enable_shared_with_static_runtimes=yes
12098       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12099
12100       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12101         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12102         # If the export-symbols file already is a .def file (1st line
12103         # is EXPORTS), use it as is; otherwise, prepend...
12104         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12105           cp $export_symbols $output_objdir/$soname.def;
12106         else
12107           echo EXPORTS > $output_objdir/$soname.def;
12108           cat $export_symbols >> $output_objdir/$soname.def;
12109         fi~
12110         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12111       else
12112         ld_shlibs=no
12113       fi
12114       ;;
12115
12116     netbsd*)
12117       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12118         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12119         wlarc=
12120       else
12121         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12122         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12123       fi
12124       ;;
12125
12126     solaris* | sysv5*)
12127       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12128         ld_shlibs=no
12129         cat <<EOF 1>&2
12130
12131 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12132 *** create shared libraries on Solaris systems.  Therefore, libtool
12133 *** is disabling shared libraries support.  We urge you to upgrade GNU
12134 *** binutils to release 2.9.1 or newer.  Another option is to modify
12135 *** your PATH or compiler configuration so that the native linker is
12136 *** used, and then restart.
12137
12138 EOF
12139       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12140         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12142       else
12143         ld_shlibs=no
12144       fi
12145       ;;
12146
12147     sunos4*)
12148       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12149       wlarc=
12150       hardcode_direct=yes
12151       hardcode_shlibpath_var=no
12152       ;;
12153
12154   linux*)
12155     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12156         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157         archive_cmds="$tmp_archive_cmds"
12158       supports_anon_versioning=no
12159       case `$LD -v 2>/dev/null` in
12160         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12161         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12162         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12163         *\ 2.11.*) ;; # other 2.11 versions
12164         *) supports_anon_versioning=yes ;;
12165       esac
12166       if test $supports_anon_versioning = yes; then
12167         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12168 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12169 $echo "local: *; };" >> $output_objdir/$libname.ver~
12170         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12171       else
12172         archive_expsym_cmds="$tmp_archive_cmds"
12173       fi
12174     else
12175       ld_shlibs=no
12176     fi
12177     ;;
12178
12179     *)
12180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12181         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12182         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12183       else
12184         ld_shlibs=no
12185       fi
12186       ;;
12187     esac
12188
12189     if test "$ld_shlibs" = yes; then
12190       runpath_var=LD_RUN_PATH
12191       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12192       export_dynamic_flag_spec='${wl}--export-dynamic'
12193       # ancient GNU ld didn't support --whole-archive et. al.
12194       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12195         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12196       else
12197         whole_archive_flag_spec=
12198       fi
12199     fi
12200   else
12201     # PORTME fill in a description of your system's linker (not GNU ld)
12202     case $host_os in
12203     aix3*)
12204       allow_undefined_flag=unsupported
12205       always_export_symbols=yes
12206       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'
12207       # Note: this linker hardcodes the directories in LIBPATH if there
12208       # are no directories specified by -L.
12209       hardcode_minus_L=yes
12210       if test "$GCC" = yes && test -z "$link_static_flag"; then
12211         # Neither direct hardcoding nor static linking is supported with a
12212         # broken collect2.
12213         hardcode_direct=unsupported
12214       fi
12215       ;;
12216
12217     aix4* | aix5*)
12218       if test "$host_cpu" = ia64; then
12219         # On IA64, the linker does run time linking by default, so we don't
12220         # have to do anything special.
12221         aix_use_runtimelinking=no
12222         exp_sym_flag='-Bexport'
12223         no_entry_flag=""
12224       else
12225         # If we're using GNU nm, then we don't want the "-C" option.
12226         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12227         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12228           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'
12229         else
12230           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'
12231         fi
12232         aix_use_runtimelinking=no
12233
12234         # Test if we are trying to use run time linking or normal
12235         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12236         # need to do runtime linking.
12237         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12238           for ld_flag in $LDFLAGS; do
12239           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12240             aix_use_runtimelinking=yes
12241             break
12242           fi
12243           done
12244         esac
12245
12246         exp_sym_flag='-bexport'
12247         no_entry_flag='-bnoentry'
12248       fi
12249
12250       # When large executables or shared objects are built, AIX ld can
12251       # have problems creating the table of contents.  If linking a library
12252       # or program results in "error TOC overflow" add -mminimal-toc to
12253       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12254       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12255
12256       archive_cmds=''
12257       hardcode_direct=yes
12258       hardcode_libdir_separator=':'
12259       link_all_deplibs=yes
12260
12261       if test "$GCC" = yes; then
12262         case $host_os in aix4.012|aix4.012.*)
12263         # We only want to do this on AIX 4.2 and lower, the check
12264         # below for broken collect2 doesn't work under 4.3+
12265           collect2name=`${CC} -print-prog-name=collect2`
12266           if test -f "$collect2name" && \
12267            strings "$collect2name" | grep resolve_lib_name >/dev/null
12268           then
12269           # We have reworked collect2
12270           hardcode_direct=yes
12271           else
12272           # We have old collect2
12273           hardcode_direct=unsupported
12274           # It fails to find uninstalled libraries when the uninstalled
12275           # path is not listed in the libpath.  Setting hardcode_minus_L
12276           # to unsupported forces relinking
12277           hardcode_minus_L=yes
12278           hardcode_libdir_flag_spec='-L$libdir'
12279           hardcode_libdir_separator=
12280           fi
12281         esac
12282         shared_flag='-shared'
12283       else
12284         # not using gcc
12285         if test "$host_cpu" = ia64; then
12286         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12287         # chokes on -Wl,-G. The following line is correct:
12288           shared_flag='-G'
12289         else
12290         if test "$aix_use_runtimelinking" = yes; then
12291             shared_flag='${wl}-G'
12292           else
12293             shared_flag='${wl}-bM:SRE'
12294         fi
12295         fi
12296       fi
12297
12298       # It seems that -bexpall does not export symbols beginning with
12299       # underscore (_), so it is better to generate a list of symbols to export.
12300       always_export_symbols=yes
12301       if test "$aix_use_runtimelinking" = yes; then
12302         # Warning - without using the other runtime loading flags (-brtl),
12303         # -berok will link without error, but may produce a broken library.
12304         allow_undefined_flag='-berok'
12305        # Determine the default libpath from the value encoded in an empty executable.
12306        cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h.  */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h.  */
12312
12313 int
12314 main ()
12315 {
12316
12317   ;
12318   return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323   (eval $ac_link) 2>conftest.er1
12324   ac_status=$?
12325   grep -v '^ *+' conftest.er1 >conftest.err
12326   rm -f conftest.er1
12327   cat conftest.err >&5
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } &&
12330          { ac_try='test -z "$ac_c_werror_flag"
12331                          || test ! -s conftest.err'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; } &&
12337          { ac_try='test -s conftest$ac_exeext'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343
12344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12345 }'`
12346 # Check for a 64-bit object if we didn't find anything.
12347 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; }
12348 }'`; fi
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 fi
12354 rm -f conftest.err conftest.$ac_objext \
12355       conftest$ac_exeext conftest.$ac_ext
12356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12357
12358        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12359         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"
12360        else
12361         if test "$host_cpu" = ia64; then
12362           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12363           allow_undefined_flag="-z nodefs"
12364           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"
12365         else
12366          # Determine the default libpath from the value encoded in an empty executable.
12367          cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373
12374 int
12375 main ()
12376 {
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384   (eval $ac_link) 2>conftest.er1
12385   ac_status=$?
12386   grep -v '^ *+' conftest.er1 >conftest.err
12387   rm -f conftest.er1
12388   cat conftest.err >&5
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } &&
12391          { ac_try='test -z "$ac_c_werror_flag"
12392                          || test ! -s conftest.err'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest$ac_exeext'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404
12405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12406 }'`
12407 # Check for a 64-bit object if we didn't find anything.
12408 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; }
12409 }'`; fi
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 fi
12415 rm -f conftest.err conftest.$ac_objext \
12416       conftest$ac_exeext conftest.$ac_ext
12417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12418
12419          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12420           # Warning - without using the other run time loading flags,
12421           # -berok will link without error, but may produce a broken library.
12422           no_undefined_flag=' ${wl}-bernotok'
12423           allow_undefined_flag=' ${wl}-berok'
12424           # -bexpall does not export symbols beginning with underscore (_)
12425           always_export_symbols=yes
12426           # Exported symbols can be pulled into shared objects from archives
12427           whole_archive_flag_spec=' '
12428           archive_cmds_need_lc=yes
12429           # This is similar to how AIX traditionally builds it's shared libraries.
12430           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'
12431         fi
12432       fi
12433       ;;
12434
12435     amigaos*)
12436       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)'
12437       hardcode_libdir_flag_spec='-L$libdir'
12438       hardcode_minus_L=yes
12439       # see comment about different semantics on the GNU ld section
12440       ld_shlibs=no
12441       ;;
12442
12443     bsdi[45]*)
12444       export_dynamic_flag_spec=-rdynamic
12445       ;;
12446
12447     cygwin* | mingw* | pw32*)
12448       # When not using gcc, we currently assume that we are using
12449       # Microsoft Visual C++.
12450       # hardcode_libdir_flag_spec is actually meaningless, as there is
12451       # no search path for DLLs.
12452       hardcode_libdir_flag_spec=' '
12453       allow_undefined_flag=unsupported
12454       # Tell ltmain to make .lib files, not .a files.
12455       libext=lib
12456       # Tell ltmain to make .dll files, not .so files.
12457       shrext_cmds=".dll"
12458       # FIXME: Setting linknames here is a bad hack.
12459       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12460       # The linker will automatically build a .lib file if we build a DLL.
12461       old_archive_From_new_cmds='true'
12462       # FIXME: Should let the user specify the lib program.
12463       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12464       fix_srcfile_path='`cygpath -w "$srcfile"`'
12465       enable_shared_with_static_runtimes=yes
12466       ;;
12467
12468     darwin* | rhapsody*)
12469       case "$host_os" in
12470         rhapsody* | darwin1.[012])
12471          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12472          ;;
12473        *) # Darwin 1.3 on
12474          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12475            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12476          else
12477            case ${MACOSX_DEPLOYMENT_TARGET} in
12478              10.[012])
12479                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12480                ;;
12481              10.*)
12482                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12483                ;;
12484            esac
12485          fi
12486          ;;
12487       esac
12488       archive_cmds_need_lc=no
12489       hardcode_direct=no
12490       hardcode_automatic=yes
12491       hardcode_shlibpath_var=unsupported
12492       whole_archive_flag_spec=''
12493       link_all_deplibs=yes
12494     if test "$GCC" = yes ; then
12495         output_verbose_link_cmd='echo'
12496         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12497       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12498       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12499       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}'
12500       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}'
12501     else
12502       case "$cc_basename" in
12503         xlc*)
12504          output_verbose_link_cmd='echo'
12505          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12506          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12507           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12508          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}'
12509           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}'
12510           ;;
12511        *)
12512          ld_shlibs=no
12513           ;;
12514       esac
12515     fi
12516       ;;
12517
12518     dgux*)
12519       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12520       hardcode_libdir_flag_spec='-L$libdir'
12521       hardcode_shlibpath_var=no
12522       ;;
12523
12524     freebsd1*)
12525       ld_shlibs=no
12526       ;;
12527
12528     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12529     # support.  Future versions do this automatically, but an explicit c++rt0.o
12530     # does not break anything, and helps significantly (at the cost of a little
12531     # extra space).
12532     freebsd2.2*)
12533       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12534       hardcode_libdir_flag_spec='-R$libdir'
12535       hardcode_direct=yes
12536       hardcode_shlibpath_var=no
12537       ;;
12538
12539     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12540     freebsd2*)
12541       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12542       hardcode_direct=yes
12543       hardcode_minus_L=yes
12544       hardcode_shlibpath_var=no
12545       ;;
12546
12547     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12548     freebsd* | kfreebsd*-gnu)
12549       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12550       hardcode_libdir_flag_spec='-R$libdir'
12551       hardcode_direct=yes
12552       hardcode_shlibpath_var=no
12553       ;;
12554
12555     hpux9*)
12556       if test "$GCC" = yes; then
12557         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'
12558       else
12559         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'
12560       fi
12561       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12562       hardcode_libdir_separator=:
12563       hardcode_direct=yes
12564
12565       # hardcode_minus_L: Not really in the search PATH,
12566       # but as the default location of the library.
12567       hardcode_minus_L=yes
12568       export_dynamic_flag_spec='${wl}-E'
12569       ;;
12570
12571     hpux10* | hpux11*)
12572       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12573         case "$host_cpu" in
12574         hppa*64*|ia64*)
12575           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12576           ;;
12577         *)
12578           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12579           ;;
12580         esac
12581       else
12582         case "$host_cpu" in
12583         hppa*64*|ia64*)
12584           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12585           ;;
12586         *)
12587           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12588           ;;
12589         esac
12590       fi
12591       if test "$with_gnu_ld" = no; then
12592         case "$host_cpu" in
12593         hppa*64*)
12594           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12595           hardcode_libdir_flag_spec_ld='+b $libdir'
12596           hardcode_libdir_separator=:
12597           hardcode_direct=no
12598           hardcode_shlibpath_var=no
12599           ;;
12600         ia64*)
12601           hardcode_libdir_flag_spec='-L$libdir'
12602           hardcode_direct=no
12603           hardcode_shlibpath_var=no
12604
12605           # hardcode_minus_L: Not really in the search PATH,
12606           # but as the default location of the library.
12607           hardcode_minus_L=yes
12608           ;;
12609         *)
12610           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12611           hardcode_libdir_separator=:
12612           hardcode_direct=yes
12613           export_dynamic_flag_spec='${wl}-E'
12614
12615           # hardcode_minus_L: Not really in the search PATH,
12616           # but as the default location of the library.
12617           hardcode_minus_L=yes
12618           ;;
12619         esac
12620       fi
12621       ;;
12622
12623     irix5* | irix6* | nonstopux*)
12624       if test "$GCC" = yes; then
12625         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'
12626       else
12627         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'
12628         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12629       fi
12630       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12631       hardcode_libdir_separator=:
12632       link_all_deplibs=yes
12633       ;;
12634
12635     netbsd*)
12636       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12637         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12638       else
12639         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12640       fi
12641       hardcode_libdir_flag_spec='-R$libdir'
12642       hardcode_direct=yes
12643       hardcode_shlibpath_var=no
12644       ;;
12645
12646     newsos6)
12647       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12648       hardcode_direct=yes
12649       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12650       hardcode_libdir_separator=:
12651       hardcode_shlibpath_var=no
12652       ;;
12653
12654     openbsd*)
12655       hardcode_direct=yes
12656       hardcode_shlibpath_var=no
12657       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12658         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12659         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12660         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12661         export_dynamic_flag_spec='${wl}-E'
12662       else
12663        case $host_os in
12664          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12665            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12666            hardcode_libdir_flag_spec='-R$libdir'
12667            ;;
12668          *)
12669            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12670            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12671            ;;
12672        esac
12673       fi
12674       ;;
12675
12676     os2*)
12677       hardcode_libdir_flag_spec='-L$libdir'
12678       hardcode_minus_L=yes
12679       allow_undefined_flag=unsupported
12680       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'
12681       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12682       ;;
12683
12684     osf3*)
12685       if test "$GCC" = yes; then
12686         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12687         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'
12688       else
12689         allow_undefined_flag=' -expect_unresolved \*'
12690         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'
12691       fi
12692       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12693       hardcode_libdir_separator=:
12694       ;;
12695
12696     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12697       if test "$GCC" = yes; then
12698         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12699         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'
12700         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12701       else
12702         allow_undefined_flag=' -expect_unresolved \*'
12703         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'
12704         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12705         $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'
12706
12707         # Both c and cxx compiler support -rpath directly
12708         hardcode_libdir_flag_spec='-rpath $libdir'
12709       fi
12710       hardcode_libdir_separator=:
12711       ;;
12712
12713     sco3.2v5*)
12714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12715       hardcode_shlibpath_var=no
12716       export_dynamic_flag_spec='${wl}-Bexport'
12717       runpath_var=LD_RUN_PATH
12718       hardcode_runpath_var=yes
12719       ;;
12720
12721     solaris*)
12722       no_undefined_flag=' -z text'
12723       if test "$GCC" = yes; then
12724         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12725         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12726           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12727       else
12728         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12729         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12730         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12731       fi
12732       hardcode_libdir_flag_spec='-R$libdir'
12733       hardcode_shlibpath_var=no
12734       case $host_os in
12735       solaris2.[0-5] | solaris2.[0-5].*) ;;
12736       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12737         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12738       esac
12739       link_all_deplibs=yes
12740       ;;
12741
12742     sunos4*)
12743       if test "x$host_vendor" = xsequent; then
12744         # Use $CC to link under sequent, because it throws in some extra .o
12745         # files that make .init and .fini sections work.
12746         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12747       else
12748         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12749       fi
12750       hardcode_libdir_flag_spec='-L$libdir'
12751       hardcode_direct=yes
12752       hardcode_minus_L=yes
12753       hardcode_shlibpath_var=no
12754       ;;
12755
12756     sysv4)
12757       case $host_vendor in
12758         sni)
12759           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760           hardcode_direct=yes # is this really true???
12761         ;;
12762         siemens)
12763           ## LD is ld it makes a PLAMLIB
12764           ## CC just makes a GrossModule.
12765           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12766           reload_cmds='$CC -r -o $output$reload_objs'
12767           hardcode_direct=no
12768         ;;
12769         motorola)
12770           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12771           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12772         ;;
12773       esac
12774       runpath_var='LD_RUN_PATH'
12775       hardcode_shlibpath_var=no
12776       ;;
12777
12778     sysv4.3*)
12779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780       hardcode_shlibpath_var=no
12781       export_dynamic_flag_spec='-Bexport'
12782       ;;
12783
12784     sysv4*MP*)
12785       if test -d /usr/nec; then
12786         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12787         hardcode_shlibpath_var=no
12788         runpath_var=LD_RUN_PATH
12789         hardcode_runpath_var=yes
12790         ld_shlibs=yes
12791       fi
12792       ;;
12793
12794     sysv4.2uw2*)
12795       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12796       hardcode_direct=yes
12797       hardcode_minus_L=no
12798       hardcode_shlibpath_var=no
12799       hardcode_runpath_var=yes
12800       runpath_var=LD_RUN_PATH
12801       ;;
12802
12803    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12804       no_undefined_flag='${wl}-z ${wl}text'
12805       if test "$GCC" = yes; then
12806         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12807       else
12808         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809       fi
12810       runpath_var='LD_RUN_PATH'
12811       hardcode_shlibpath_var=no
12812       ;;
12813
12814     sysv5*)
12815       no_undefined_flag=' -z text'
12816       # $CC -shared without GNU ld will not create a library from C++
12817       # object files and a static libstdc++, better avoid it by now
12818       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12819       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12820                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12821       hardcode_libdir_flag_spec=
12822       hardcode_shlibpath_var=no
12823       runpath_var='LD_RUN_PATH'
12824       ;;
12825
12826     uts4*)
12827       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12828       hardcode_libdir_flag_spec='-L$libdir'
12829       hardcode_shlibpath_var=no
12830       ;;
12831
12832     *)
12833       ld_shlibs=no
12834       ;;
12835     esac
12836   fi
12837
12838 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12839 echo "${ECHO_T}$ld_shlibs" >&6
12840 test "$ld_shlibs" = no && can_build_shared=no
12841
12842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12843 if test "$GCC" = yes; then
12844   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12845 fi
12846
12847 #
12848 # Do we need to explicitly link libc?
12849 #
12850 case "x$archive_cmds_need_lc" in
12851 x|xyes)
12852   # Assume -lc should be added
12853   archive_cmds_need_lc=yes
12854
12855   if test "$enable_shared" = yes && test "$GCC" = yes; then
12856     case $archive_cmds in
12857     *'~'*)
12858       # FIXME: we may have to deal with multi-command sequences.
12859       ;;
12860     '$CC '*)
12861       # Test whether the compiler implicitly links with -lc since on some
12862       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12863       # to ld, don't add -lc before -lgcc.
12864       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12866       $rm conftest*
12867       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12868
12869       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870   (eval $ac_compile) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } 2>conftest.err; then
12874         soname=conftest
12875         lib=conftest
12876         libobjs=conftest.$ac_objext
12877         deplibs=
12878         wl=$lt_prog_compiler_wl
12879         compiler_flags=-v
12880         linker_flags=-v
12881         verstring=
12882         output_objdir=.
12883         libname=conftest
12884         lt_save_allow_undefined_flag=$allow_undefined_flag
12885         allow_undefined_flag=
12886         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12887   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }
12891         then
12892           archive_cmds_need_lc=no
12893         else
12894           archive_cmds_need_lc=yes
12895         fi
12896         allow_undefined_flag=$lt_save_allow_undefined_flag
12897       else
12898         cat conftest.err 1>&5
12899       fi
12900       $rm conftest*
12901       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12902 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12903       ;;
12904     esac
12905   fi
12906   ;;
12907 esac
12908
12909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12911 library_names_spec=
12912 libname_spec='lib$name'
12913 soname_spec=
12914 shrext_cmds=".so"
12915 postinstall_cmds=
12916 postuninstall_cmds=
12917 finish_cmds=
12918 finish_eval=
12919 shlibpath_var=
12920 shlibpath_overrides_runpath=unknown
12921 version_type=none
12922 dynamic_linker="$host_os ld.so"
12923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12924 if test "$GCC" = yes; then
12925   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12927     # if the path contains ";" then we assume it to be the separator
12928     # otherwise default to the standard path separator (i.e. ":") - it is
12929     # assumed that no part of a normal pathname contains ";" but that should
12930     # okay in the real world where ";" in dirpaths is itself problematic.
12931     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12932   else
12933     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12934   fi
12935 else
12936   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12937 fi
12938 need_lib_prefix=unknown
12939 hardcode_into_libs=no
12940
12941 # when you set need_version to no, make sure it does not cause -set_version
12942 # flags to be left without arguments
12943 need_version=unknown
12944
12945 case $host_os in
12946 aix3*)
12947   version_type=linux
12948   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12949   shlibpath_var=LIBPATH
12950
12951   # AIX 3 has no versioning support, so we append a major version to the name.
12952   soname_spec='${libname}${release}${shared_ext}$major'
12953   ;;
12954
12955 aix4* | aix5*)
12956   version_type=linux
12957   need_lib_prefix=no
12958   need_version=no
12959   hardcode_into_libs=yes
12960   if test "$host_cpu" = ia64; then
12961     # AIX 5 supports IA64
12962     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12963     shlibpath_var=LD_LIBRARY_PATH
12964   else
12965     # With GCC up to 2.95.x, collect2 would create an import file
12966     # for dependence libraries.  The import file would start with
12967     # the line `#! .'.  This would cause the generated library to
12968     # depend on `.', always an invalid library.  This was fixed in
12969     # development snapshots of GCC prior to 3.0.
12970     case $host_os in
12971       aix4 | aix4.[01] | aix4.[01].*)
12972       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12973            echo ' yes '
12974            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12975         :
12976       else
12977         can_build_shared=no
12978       fi
12979       ;;
12980     esac
12981     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12982     # soname into executable. Probably we can add versioning support to
12983     # collect2, so additional links can be useful in future.
12984     if test "$aix_use_runtimelinking" = yes; then
12985       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12986       # instead of lib<name>.a to let people know that these are not
12987       # typical AIX shared libraries.
12988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989     else
12990       # We preserve .a as extension for shared libraries through AIX4.2
12991       # and later when we are not doing run time linking.
12992       library_names_spec='${libname}${release}.a $libname.a'
12993       soname_spec='${libname}${release}${shared_ext}$major'
12994     fi
12995     shlibpath_var=LIBPATH
12996   fi
12997   ;;
12998
12999 amigaos*)
13000   library_names_spec='$libname.ixlibrary $libname.a'
13001   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13002   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'
13003   ;;
13004
13005 beos*)
13006   library_names_spec='${libname}${shared_ext}'
13007   dynamic_linker="$host_os ld.so"
13008   shlibpath_var=LIBRARY_PATH
13009   ;;
13010
13011 bsdi[45]*)
13012   version_type=linux
13013   need_version=no
13014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015   soname_spec='${libname}${release}${shared_ext}$major'
13016   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13017   shlibpath_var=LD_LIBRARY_PATH
13018   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13019   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13020   # the default ld.so.conf also contains /usr/contrib/lib and
13021   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13022   # libtool to hard-code these into programs
13023   ;;
13024
13025 cygwin* | mingw* | pw32*)
13026   version_type=windows
13027   shrext_cmds=".dll"
13028   need_version=no
13029   need_lib_prefix=no
13030
13031   case $GCC,$host_os in
13032   yes,cygwin* | yes,mingw* | yes,pw32*)
13033     library_names_spec='$libname.dll.a'
13034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13035     postinstall_cmds='base_file=`basename \${file}`~
13036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13037       dldir=$destdir/`dirname \$dlpath`~
13038       test -d \$dldir || mkdir -p \$dldir~
13039       $install_prog $dir/$dlname \$dldir/$dlname'
13040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13041       dlpath=$dir/\$dldll~
13042        $rm \$dlpath'
13043     shlibpath_overrides_runpath=yes
13044
13045     case $host_os in
13046     cygwin*)
13047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13049       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13050       ;;
13051     mingw*)
13052       # MinGW DLLs use traditional 'lib' prefix
13053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13054       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13055       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13056         # It is most probably a Windows format PATH printed by
13057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13058         # path with ; separators, and with drive letters. We can handle the
13059         # drive letters (cygwin fileutils understands them), so leave them,
13060         # especially as we might pass files found there to a mingw objdump,
13061         # which wouldn't understand a cygwinified path. Ahh.
13062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13063       else
13064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13065       fi
13066       ;;
13067     pw32*)
13068       # pw32 DLLs use 'pw' prefix rather than 'lib'
13069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13070       ;;
13071     esac
13072     ;;
13073
13074   *)
13075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13076     ;;
13077   esac
13078   dynamic_linker='Win32 ld.exe'
13079   # FIXME: first we should search . and the directory the executable is in
13080   shlibpath_var=PATH
13081   ;;
13082
13083 darwin* | rhapsody*)
13084   dynamic_linker="$host_os dyld"
13085   version_type=darwin
13086   need_lib_prefix=no
13087   need_version=no
13088   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13089   soname_spec='${libname}${release}${major}$shared_ext'
13090   shlibpath_overrides_runpath=yes
13091   shlibpath_var=DYLD_LIBRARY_PATH
13092   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13093   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13094   if test "$GCC" = yes; then
13095     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"`
13096   else
13097     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13098   fi
13099   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13100   ;;
13101
13102 dgux*)
13103   version_type=linux
13104   need_lib_prefix=no
13105   need_version=no
13106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13107   soname_spec='${libname}${release}${shared_ext}$major'
13108   shlibpath_var=LD_LIBRARY_PATH
13109   ;;
13110
13111 freebsd1*)
13112   dynamic_linker=no
13113   ;;
13114
13115 kfreebsd*-gnu)
13116   version_type=linux
13117   need_lib_prefix=no
13118   need_version=no
13119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120   soname_spec='${libname}${release}${shared_ext}$major'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   shlibpath_overrides_runpath=no
13123   hardcode_into_libs=yes
13124   dynamic_linker='GNU ld.so'
13125   ;;
13126
13127 freebsd*)
13128   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13129   version_type=freebsd-$objformat
13130   case $version_type in
13131     freebsd-elf*)
13132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13133       need_version=no
13134       need_lib_prefix=no
13135       ;;
13136     freebsd-*)
13137       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13138       need_version=yes
13139       ;;
13140   esac
13141   shlibpath_var=LD_LIBRARY_PATH
13142   case $host_os in
13143   freebsd2*)
13144     shlibpath_overrides_runpath=yes
13145     ;;
13146   freebsd3.01* | freebsdelf3.01*)
13147     shlibpath_overrides_runpath=yes
13148     hardcode_into_libs=yes
13149     ;;
13150   *) # from 3.2 on
13151     shlibpath_overrides_runpath=no
13152     hardcode_into_libs=yes
13153     ;;
13154   esac
13155   ;;
13156
13157 gnu*)
13158   version_type=linux
13159   need_lib_prefix=no
13160   need_version=no
13161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13162   soname_spec='${libname}${release}${shared_ext}$major'
13163   shlibpath_var=LD_LIBRARY_PATH
13164   hardcode_into_libs=yes
13165   ;;
13166
13167 hpux9* | hpux10* | hpux11*)
13168   # Give a soname corresponding to the major version so that dld.sl refuses to
13169   # link against other versions.
13170   version_type=sunos
13171   need_lib_prefix=no
13172   need_version=no
13173   case "$host_cpu" in
13174   ia64*)
13175     shrext_cmds='.so'
13176     hardcode_into_libs=yes
13177     dynamic_linker="$host_os dld.so"
13178     shlibpath_var=LD_LIBRARY_PATH
13179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181     soname_spec='${libname}${release}${shared_ext}$major'
13182     if test "X$HPUX_IA64_MODE" = X32; then
13183       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13184     else
13185       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13186     fi
13187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13188     ;;
13189    hppa*64*)
13190      shrext_cmds='.sl'
13191      hardcode_into_libs=yes
13192      dynamic_linker="$host_os dld.sl"
13193      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13194      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13195      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196      soname_spec='${libname}${release}${shared_ext}$major'
13197      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13198      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13199      ;;
13200    *)
13201     shrext_cmds='.sl'
13202     dynamic_linker="$host_os dld.sl"
13203     shlibpath_var=SHLIB_PATH
13204     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206     soname_spec='${libname}${release}${shared_ext}$major'
13207     ;;
13208   esac
13209   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13210   postinstall_cmds='chmod 555 $lib'
13211   ;;
13212
13213 irix5* | irix6* | nonstopux*)
13214   case $host_os in
13215     nonstopux*) version_type=nonstopux ;;
13216     *)
13217         if test "$lt_cv_prog_gnu_ld" = yes; then
13218                 version_type=linux
13219         else
13220                 version_type=irix
13221         fi ;;
13222   esac
13223   need_lib_prefix=no
13224   need_version=no
13225   soname_spec='${libname}${release}${shared_ext}$major'
13226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13227   case $host_os in
13228   irix5* | nonstopux*)
13229     libsuff= shlibsuff=
13230     ;;
13231   *)
13232     case $LD in # libtool.m4 will add one of these switches to LD
13233     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13234       libsuff= shlibsuff= libmagic=32-bit;;
13235     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13236       libsuff=32 shlibsuff=N32 libmagic=N32;;
13237     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13238       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13239     *) libsuff= shlibsuff= libmagic=never-match;;
13240     esac
13241     ;;
13242   esac
13243   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13244   shlibpath_overrides_runpath=no
13245   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13246   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13247   hardcode_into_libs=yes
13248   ;;
13249
13250 # No shared lib support for Linux oldld, aout, or coff.
13251 linux*oldld* | linux*aout* | linux*coff*)
13252   dynamic_linker=no
13253   ;;
13254
13255 # This must be Linux ELF.
13256 linux*)
13257   version_type=linux
13258   need_lib_prefix=no
13259   need_version=no
13260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261   soname_spec='${libname}${release}${shared_ext}$major'
13262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13263   shlibpath_var=LD_LIBRARY_PATH
13264   shlibpath_overrides_runpath=no
13265   # This implies no fast_install, which is unacceptable.
13266   # Some rework will be needed to allow for fast_install
13267   # before this can be enabled.
13268   hardcode_into_libs=yes
13269
13270   # Append ld.so.conf contents to the search path
13271   if test -f /etc/ld.so.conf; then
13272     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13273     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13274   fi
13275
13276   # We used to test for /lib/ld.so.1 and disable shared libraries on
13277   # powerpc, because MkLinux only supported shared libraries with the
13278   # GNU dynamic linker.  Since this was broken with cross compilers,
13279   # most powerpc-linux boxes support dynamic linking these days and
13280   # people can always --disable-shared, the test was removed, and we
13281   # assume the GNU/Linux dynamic linker is in use.
13282   dynamic_linker='GNU/Linux ld.so'
13283   ;;
13284
13285 knetbsd*-gnu)
13286   version_type=linux
13287   need_lib_prefix=no
13288   need_version=no
13289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13290   soname_spec='${libname}${release}${shared_ext}$major'
13291   shlibpath_var=LD_LIBRARY_PATH
13292   shlibpath_overrides_runpath=no
13293   hardcode_into_libs=yes
13294   dynamic_linker='GNU ld.so'
13295   ;;
13296
13297 netbsd*)
13298   version_type=sunos
13299   need_lib_prefix=no
13300   need_version=no
13301   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304     dynamic_linker='NetBSD (a.out) ld.so'
13305   else
13306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13307     soname_spec='${libname}${release}${shared_ext}$major'
13308     dynamic_linker='NetBSD ld.elf_so'
13309   fi
13310   shlibpath_var=LD_LIBRARY_PATH
13311   shlibpath_overrides_runpath=yes
13312   hardcode_into_libs=yes
13313   ;;
13314
13315 newsos6)
13316   version_type=linux
13317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318   shlibpath_var=LD_LIBRARY_PATH
13319   shlibpath_overrides_runpath=yes
13320   ;;
13321
13322 nto-qnx*)
13323   version_type=linux
13324   need_lib_prefix=no
13325   need_version=no
13326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327   soname_spec='${libname}${release}${shared_ext}$major'
13328   shlibpath_var=LD_LIBRARY_PATH
13329   shlibpath_overrides_runpath=yes
13330   ;;
13331
13332 openbsd*)
13333   version_type=sunos
13334   need_lib_prefix=no
13335   need_version=no
13336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13338   shlibpath_var=LD_LIBRARY_PATH
13339   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13340     case $host_os in
13341       openbsd2.[89] | openbsd2.[89].*)
13342         shlibpath_overrides_runpath=no
13343         ;;
13344       *)
13345         shlibpath_overrides_runpath=yes
13346         ;;
13347       esac
13348   else
13349     shlibpath_overrides_runpath=yes
13350   fi
13351   ;;
13352
13353 os2*)
13354   libname_spec='$name'
13355   shrext_cmds=".dll"
13356   need_lib_prefix=no
13357   library_names_spec='$libname${shared_ext} $libname.a'
13358   dynamic_linker='OS/2 ld.exe'
13359   shlibpath_var=LIBPATH
13360   ;;
13361
13362 osf3* | osf4* | osf5*)
13363   version_type=osf
13364   need_lib_prefix=no
13365   need_version=no
13366   soname_spec='${libname}${release}${shared_ext}$major'
13367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368   shlibpath_var=LD_LIBRARY_PATH
13369   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13370   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13371   ;;
13372
13373 sco3.2v5*)
13374   version_type=osf
13375   soname_spec='${libname}${release}${shared_ext}$major'
13376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   ;;
13379
13380 solaris*)
13381   version_type=linux
13382   need_lib_prefix=no
13383   need_version=no
13384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385   soname_spec='${libname}${release}${shared_ext}$major'
13386   shlibpath_var=LD_LIBRARY_PATH
13387   shlibpath_overrides_runpath=yes
13388   hardcode_into_libs=yes
13389   # ldd complains unless libraries are executable
13390   postinstall_cmds='chmod +x $lib'
13391   ;;
13392
13393 sunos4*)
13394   version_type=sunos
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13397   shlibpath_var=LD_LIBRARY_PATH
13398   shlibpath_overrides_runpath=yes
13399   if test "$with_gnu_ld" = yes; then
13400     need_lib_prefix=no
13401   fi
13402   need_version=yes
13403   ;;
13404
13405 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13406   version_type=linux
13407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408   soname_spec='${libname}${release}${shared_ext}$major'
13409   shlibpath_var=LD_LIBRARY_PATH
13410   case $host_vendor in
13411     sni)
13412       shlibpath_overrides_runpath=no
13413       need_lib_prefix=no
13414       export_dynamic_flag_spec='${wl}-Blargedynsym'
13415       runpath_var=LD_RUN_PATH
13416       ;;
13417     siemens)
13418       need_lib_prefix=no
13419       ;;
13420     motorola)
13421       need_lib_prefix=no
13422       need_version=no
13423       shlibpath_overrides_runpath=no
13424       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13425       ;;
13426   esac
13427   ;;
13428
13429 sysv4*MP*)
13430   if test -d /usr/nec ;then
13431     version_type=linux
13432     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13433     soname_spec='$libname${shared_ext}.$major'
13434     shlibpath_var=LD_LIBRARY_PATH
13435   fi
13436   ;;
13437
13438 uts4*)
13439   version_type=linux
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441   soname_spec='${libname}${release}${shared_ext}$major'
13442   shlibpath_var=LD_LIBRARY_PATH
13443   ;;
13444
13445 *)
13446   dynamic_linker=no
13447   ;;
13448 esac
13449 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13450 echo "${ECHO_T}$dynamic_linker" >&6
13451 test "$dynamic_linker" = no && can_build_shared=no
13452
13453 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13455 hardcode_action=
13456 if test -n "$hardcode_libdir_flag_spec" || \
13457    test -n "$runpath_var" || \
13458    test "X$hardcode_automatic" = "Xyes" ; then
13459
13460   # We can hardcode non-existant directories.
13461   if test "$hardcode_direct" != no &&
13462      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13463      # have to relink, otherwise we might link with an installed library
13464      # when we should be linking with a yet-to-be-installed one
13465      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13466      test "$hardcode_minus_L" != no; then
13467     # Linking always hardcodes the temporary library directory.
13468     hardcode_action=relink
13469   else
13470     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13471     hardcode_action=immediate
13472   fi
13473 else
13474   # We cannot hardcode anything, or else we can only hardcode existing
13475   # directories.
13476   hardcode_action=unsupported
13477 fi
13478 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13479 echo "${ECHO_T}$hardcode_action" >&6
13480
13481 if test "$hardcode_action" = relink; then
13482   # Fast installation is not supported
13483   enable_fast_install=no
13484 elif test "$shlibpath_overrides_runpath" = yes ||
13485      test "$enable_shared" = no; then
13486   # Fast installation is not necessary
13487   enable_fast_install=needless
13488 fi
13489
13490 striplib=
13491 old_striplib=
13492 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13493 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13494 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13495   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13496   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13497   echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13499 else
13500 # FIXME - insert some real tests, host_os isn't really good enough
13501   case $host_os in
13502    darwin*)
13503        if test -n "$STRIP" ; then
13504          striplib="$STRIP -x"
13505          echo "$as_me:$LINENO: result: yes" >&5
13506 echo "${ECHO_T}yes" >&6
13507        else
13508   echo "$as_me:$LINENO: result: no" >&5
13509 echo "${ECHO_T}no" >&6
13510 fi
13511        ;;
13512    *)
13513   echo "$as_me:$LINENO: result: no" >&5
13514 echo "${ECHO_T}no" >&6
13515     ;;
13516   esac
13517 fi
13518
13519 if test "x$enable_dlopen" != xyes; then
13520   enable_dlopen=unknown
13521   enable_dlopen_self=unknown
13522   enable_dlopen_self_static=unknown
13523 else
13524   lt_cv_dlopen=no
13525   lt_cv_dlopen_libs=
13526
13527   case $host_os in
13528   beos*)
13529     lt_cv_dlopen="load_add_on"
13530     lt_cv_dlopen_libs=
13531     lt_cv_dlopen_self=yes
13532     ;;
13533
13534   mingw* | pw32*)
13535     lt_cv_dlopen="LoadLibrary"
13536     lt_cv_dlopen_libs=
13537    ;;
13538
13539   cygwin*)
13540     lt_cv_dlopen="dlopen"
13541     lt_cv_dlopen_libs=
13542    ;;
13543
13544   darwin*)
13545   # if libdl is installed we need to link against it
13546     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13547 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13548 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13549   echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551   ac_check_lib_save_LIBS=$LIBS
13552 LIBS="-ldl  $LIBS"
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h.  */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h.  */
13559
13560 /* Override any gcc2 internal prototype to avoid an error.  */
13561 #ifdef __cplusplus
13562 extern "C"
13563 #endif
13564 /* We use char because int might match the return type of a gcc2
13565    builtin and then its argument prototype would still apply.  */
13566 char dlopen ();
13567 int
13568 main ()
13569 {
13570 dlopen ();
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577   (eval $ac_link) 2>conftest.er1
13578   ac_status=$?
13579   grep -v '^ *+' conftest.er1 >conftest.err
13580   rm -f conftest.er1
13581   cat conftest.err >&5
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); } &&
13584          { ac_try='test -z "$ac_c_werror_flag"
13585                          || test ! -s conftest.err'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; } &&
13591          { ac_try='test -s conftest$ac_exeext'
13592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593   (eval $ac_try) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   ac_cv_lib_dl_dlopen=yes
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 ac_cv_lib_dl_dlopen=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext \
13605       conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13607 fi
13608 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13610 if test $ac_cv_lib_dl_dlopen = yes; then
13611   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13612 else
13613
13614     lt_cv_dlopen="dyld"
13615     lt_cv_dlopen_libs=
13616     lt_cv_dlopen_self=yes
13617
13618 fi
13619
13620    ;;
13621
13622   *)
13623     echo "$as_me:$LINENO: checking for shl_load" >&5
13624 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13625 if test "${ac_cv_func_shl_load+set}" = set; then
13626   echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628   cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13636 #define shl_load innocuous_shl_load
13637
13638 /* System header to define __stub macros and hopefully few prototypes,
13639     which can conflict with char shl_load (); below.
13640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13641     <limits.h> exists even on freestanding compilers.  */
13642
13643 #ifdef __STDC__
13644 # include <limits.h>
13645 #else
13646 # include <assert.h>
13647 #endif
13648
13649 #undef shl_load
13650
13651 /* Override any gcc2 internal prototype to avoid an error.  */
13652 #ifdef __cplusplus
13653 extern "C"
13654 {
13655 #endif
13656 /* We use char because int might match the return type of a gcc2
13657    builtin and then its argument prototype would still apply.  */
13658 char shl_load ();
13659 /* The GNU C library defines this for functions which it implements
13660     to always fail with ENOSYS.  Some functions are actually named
13661     something starting with __ and the normal name is an alias.  */
13662 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13663 choke me
13664 #else
13665 char (*f) () = shl_load;
13666 #endif
13667 #ifdef __cplusplus
13668 }
13669 #endif
13670
13671 int
13672 main ()
13673 {
13674 return f != shl_load;
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681   (eval $ac_link) 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } &&
13688          { ac_try='test -z "$ac_c_werror_flag"
13689                          || test ! -s conftest.err'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; } &&
13695          { ac_try='test -s conftest$ac_exeext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_cv_func_shl_load=yes
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 ac_cv_func_shl_load=no
13707 fi
13708 rm -f conftest.err conftest.$ac_objext \
13709       conftest$ac_exeext conftest.$ac_ext
13710 fi
13711 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13712 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13713 if test $ac_cv_func_shl_load = yes; then
13714   lt_cv_dlopen="shl_load"
13715 else
13716   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13717 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13718 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   ac_check_lib_save_LIBS=$LIBS
13722 LIBS="-ldld  $LIBS"
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h.  */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h.  */
13729
13730 /* Override any gcc2 internal prototype to avoid an error.  */
13731 #ifdef __cplusplus
13732 extern "C"
13733 #endif
13734 /* We use char because int might match the return type of a gcc2
13735    builtin and then its argument prototype would still apply.  */
13736 char shl_load ();
13737 int
13738 main ()
13739 {
13740 shl_load ();
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747   (eval $ac_link) 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag"
13755                          || test ! -s conftest.err'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest$ac_exeext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   ac_cv_lib_dld_shl_load=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 ac_cv_lib_dld_shl_load=no
13773 fi
13774 rm -f conftest.err conftest.$ac_objext \
13775       conftest$ac_exeext conftest.$ac_ext
13776 LIBS=$ac_check_lib_save_LIBS
13777 fi
13778 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13779 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13780 if test $ac_cv_lib_dld_shl_load = yes; then
13781   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13782 else
13783   echo "$as_me:$LINENO: checking for dlopen" >&5
13784 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13785 if test "${ac_cv_func_dlopen+set}" = set; then
13786   echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788   cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13796 #define dlopen innocuous_dlopen
13797
13798 /* System header to define __stub macros and hopefully few prototypes,
13799     which can conflict with char dlopen (); below.
13800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13801     <limits.h> exists even on freestanding compilers.  */
13802
13803 #ifdef __STDC__
13804 # include <limits.h>
13805 #else
13806 # include <assert.h>
13807 #endif
13808
13809 #undef dlopen
13810
13811 /* Override any gcc2 internal prototype to avoid an error.  */
13812 #ifdef __cplusplus
13813 extern "C"
13814 {
13815 #endif
13816 /* We use char because int might match the return type of a gcc2
13817    builtin and then its argument prototype would still apply.  */
13818 char dlopen ();
13819 /* The GNU C library defines this for functions which it implements
13820     to always fail with ENOSYS.  Some functions are actually named
13821     something starting with __ and the normal name is an alias.  */
13822 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13823 choke me
13824 #else
13825 char (*f) () = dlopen;
13826 #endif
13827 #ifdef __cplusplus
13828 }
13829 #endif
13830
13831 int
13832 main ()
13833 {
13834 return f != dlopen;
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841   (eval $ac_link) 2>conftest.er1
13842   ac_status=$?
13843   grep -v '^ *+' conftest.er1 >conftest.err
13844   rm -f conftest.er1
13845   cat conftest.err >&5
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); } &&
13848          { ac_try='test -z "$ac_c_werror_flag"
13849                          || test ! -s conftest.err'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; } &&
13855          { ac_try='test -s conftest$ac_exeext'
13856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857   (eval $ac_try) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; }; then
13861   ac_cv_func_dlopen=yes
13862 else
13863   echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_cv_func_dlopen=no
13867 fi
13868 rm -f conftest.err conftest.$ac_objext \
13869       conftest$ac_exeext conftest.$ac_ext
13870 fi
13871 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13872 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13873 if test $ac_cv_func_dlopen = yes; then
13874   lt_cv_dlopen="dlopen"
13875 else
13876   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-ldl  $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889
13890 /* Override any gcc2 internal prototype to avoid an error.  */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 /* We use char because int might match the return type of a gcc2
13895    builtin and then its argument prototype would still apply.  */
13896 char dlopen ();
13897 int
13898 main ()
13899 {
13900 dlopen ();
13901   ;
13902   return 0;
13903 }
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907   (eval $ac_link) 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } &&
13914          { ac_try='test -z "$ac_c_werror_flag"
13915                          || test ! -s conftest.err'
13916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917   (eval $ac_try) 2>&5
13918   ac_status=$?
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); }; } &&
13921          { ac_try='test -s conftest$ac_exeext'
13922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923   (eval $ac_try) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   ac_cv_lib_dl_dlopen=yes
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_cv_lib_dl_dlopen=no
13933 fi
13934 rm -f conftest.err conftest.$ac_objext \
13935       conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13937 fi
13938 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13940 if test $ac_cv_lib_dl_dlopen = yes; then
13941   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13942 else
13943   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13944 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13945 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13946   echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948   ac_check_lib_save_LIBS=$LIBS
13949 LIBS="-lsvld  $LIBS"
13950 cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956
13957 /* Override any gcc2 internal prototype to avoid an error.  */
13958 #ifdef __cplusplus
13959 extern "C"
13960 #endif
13961 /* We use char because int might match the return type of a gcc2
13962    builtin and then its argument prototype would still apply.  */
13963 char dlopen ();
13964 int
13965 main ()
13966 {
13967 dlopen ();
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13974   (eval $ac_link) 2>conftest.er1
13975   ac_status=$?
13976   grep -v '^ *+' conftest.er1 >conftest.err
13977   rm -f conftest.er1
13978   cat conftest.err >&5
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); } &&
13981          { ac_try='test -z "$ac_c_werror_flag"
13982                          || test ! -s conftest.err'
13983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984   (eval $ac_try) 2>&5
13985   ac_status=$?
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); }; } &&
13988          { ac_try='test -s conftest$ac_exeext'
13989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990   (eval $ac_try) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; }; then
13994   ac_cv_lib_svld_dlopen=yes
13995 else
13996   echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13998
13999 ac_cv_lib_svld_dlopen=no
14000 fi
14001 rm -f conftest.err conftest.$ac_objext \
14002       conftest$ac_exeext conftest.$ac_ext
14003 LIBS=$ac_check_lib_save_LIBS
14004 fi
14005 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14006 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14007 if test $ac_cv_lib_svld_dlopen = yes; then
14008   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14009 else
14010   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14011 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   ac_check_lib_save_LIBS=$LIBS
14016 LIBS="-ldld  $LIBS"
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023
14024 /* Override any gcc2 internal prototype to avoid an error.  */
14025 #ifdef __cplusplus
14026 extern "C"
14027 #endif
14028 /* We use char because int might match the return type of a gcc2
14029    builtin and then its argument prototype would still apply.  */
14030 char dld_link ();
14031 int
14032 main ()
14033 {
14034 dld_link ();
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext conftest$ac_exeext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14041   (eval $ac_link) 2>conftest.er1
14042   ac_status=$?
14043   grep -v '^ *+' conftest.er1 >conftest.err
14044   rm -f conftest.er1
14045   cat conftest.err >&5
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } &&
14048          { ac_try='test -z "$ac_c_werror_flag"
14049                          || test ! -s conftest.err'
14050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051   (eval $ac_try) 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); }; } &&
14055          { ac_try='test -s conftest$ac_exeext'
14056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057   (eval $ac_try) 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; }; then
14061   ac_cv_lib_dld_dld_link=yes
14062 else
14063   echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14065
14066 ac_cv_lib_dld_dld_link=no
14067 fi
14068 rm -f conftest.err conftest.$ac_objext \
14069       conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14071 fi
14072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14073 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14074 if test $ac_cv_lib_dld_dld_link = yes; then
14075   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14076 fi
14077
14078
14079 fi
14080
14081
14082 fi
14083
14084
14085 fi
14086
14087
14088 fi
14089
14090
14091 fi
14092
14093     ;;
14094   esac
14095
14096   if test "x$lt_cv_dlopen" != xno; then
14097     enable_dlopen=yes
14098   else
14099     enable_dlopen=no
14100   fi
14101
14102   case $lt_cv_dlopen in
14103   dlopen)
14104     save_CPPFLAGS="$CPPFLAGS"
14105     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14106
14107     save_LDFLAGS="$LDFLAGS"
14108     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14109
14110     save_LIBS="$LIBS"
14111     LIBS="$lt_cv_dlopen_libs $LIBS"
14112
14113     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14114 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14115 if test "${lt_cv_dlopen_self+set}" = set; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118           if test "$cross_compiling" = yes; then :
14119   lt_cv_dlopen_self=cross
14120 else
14121   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14122   lt_status=$lt_dlunknown
14123   cat > conftest.$ac_ext <<EOF
14124 #line 14124 "configure"
14125 #include "confdefs.h"
14126
14127 #if HAVE_DLFCN_H
14128 #include <dlfcn.h>
14129 #endif
14130
14131 #include <stdio.h>
14132
14133 #ifdef RTLD_GLOBAL
14134 #  define LT_DLGLOBAL           RTLD_GLOBAL
14135 #else
14136 #  ifdef DL_GLOBAL
14137 #    define LT_DLGLOBAL         DL_GLOBAL
14138 #  else
14139 #    define LT_DLGLOBAL         0
14140 #  endif
14141 #endif
14142
14143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14144    find out it does not work in some platform. */
14145 #ifndef LT_DLLAZY_OR_NOW
14146 #  ifdef RTLD_LAZY
14147 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14148 #  else
14149 #    ifdef DL_LAZY
14150 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14151 #    else
14152 #      ifdef RTLD_NOW
14153 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14154 #      else
14155 #        ifdef DL_NOW
14156 #          define LT_DLLAZY_OR_NOW      DL_NOW
14157 #        else
14158 #          define LT_DLLAZY_OR_NOW      0
14159 #        endif
14160 #      endif
14161 #    endif
14162 #  endif
14163 #endif
14164
14165 #ifdef __cplusplus
14166 extern "C" void exit (int);
14167 #endif
14168
14169 void fnord() { int i=42;}
14170 int main ()
14171 {
14172   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14173   int status = $lt_dlunknown;
14174
14175   if (self)
14176     {
14177       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14178       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14179       /* dlclose (self); */
14180     }
14181
14182     exit (status);
14183 }
14184 EOF
14185   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186   (eval $ac_link) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14190     (./conftest; exit; ) 2>/dev/null
14191     lt_status=$?
14192     case x$lt_status in
14193       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14194       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14195       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14196     esac
14197   else :
14198     # compilation failed
14199     lt_cv_dlopen_self=no
14200   fi
14201 fi
14202 rm -fr conftest*
14203
14204
14205 fi
14206 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14207 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14208
14209     if test "x$lt_cv_dlopen_self" = xyes; then
14210       LDFLAGS="$LDFLAGS $link_static_flag"
14211       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14212 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14213 if test "${lt_cv_dlopen_self_static+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216           if test "$cross_compiling" = yes; then :
14217   lt_cv_dlopen_self_static=cross
14218 else
14219   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14220   lt_status=$lt_dlunknown
14221   cat > conftest.$ac_ext <<EOF
14222 #line 14222 "configure"
14223 #include "confdefs.h"
14224
14225 #if HAVE_DLFCN_H
14226 #include <dlfcn.h>
14227 #endif
14228
14229 #include <stdio.h>
14230
14231 #ifdef RTLD_GLOBAL
14232 #  define LT_DLGLOBAL           RTLD_GLOBAL
14233 #else
14234 #  ifdef DL_GLOBAL
14235 #    define LT_DLGLOBAL         DL_GLOBAL
14236 #  else
14237 #    define LT_DLGLOBAL         0
14238 #  endif
14239 #endif
14240
14241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14242    find out it does not work in some platform. */
14243 #ifndef LT_DLLAZY_OR_NOW
14244 #  ifdef RTLD_LAZY
14245 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14246 #  else
14247 #    ifdef DL_LAZY
14248 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14249 #    else
14250 #      ifdef RTLD_NOW
14251 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14252 #      else
14253 #        ifdef DL_NOW
14254 #          define LT_DLLAZY_OR_NOW      DL_NOW
14255 #        else
14256 #          define LT_DLLAZY_OR_NOW      0
14257 #        endif
14258 #      endif
14259 #    endif
14260 #  endif
14261 #endif
14262
14263 #ifdef __cplusplus
14264 extern "C" void exit (int);
14265 #endif
14266
14267 void fnord() { int i=42;}
14268 int main ()
14269 {
14270   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271   int status = $lt_dlunknown;
14272
14273   if (self)
14274     {
14275       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14276       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14277       /* dlclose (self); */
14278     }
14279
14280     exit (status);
14281 }
14282 EOF
14283   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284   (eval $ac_link) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14288     (./conftest; exit; ) 2>/dev/null
14289     lt_status=$?
14290     case x$lt_status in
14291       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14292       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14293       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14294     esac
14295   else :
14296     # compilation failed
14297     lt_cv_dlopen_self_static=no
14298   fi
14299 fi
14300 rm -fr conftest*
14301
14302
14303 fi
14304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14305 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14306     fi
14307
14308     CPPFLAGS="$save_CPPFLAGS"
14309     LDFLAGS="$save_LDFLAGS"
14310     LIBS="$save_LIBS"
14311     ;;
14312   esac
14313
14314   case $lt_cv_dlopen_self in
14315   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14316   *) enable_dlopen_self=unknown ;;
14317   esac
14318
14319   case $lt_cv_dlopen_self_static in
14320   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14321   *) enable_dlopen_self_static=unknown ;;
14322   esac
14323 fi
14324
14325
14326 # Report which librarie types wil actually be built
14327 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14328 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14329 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14330 echo "${ECHO_T}$can_build_shared" >&6
14331
14332 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14333 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14334 test "$can_build_shared" = "no" && enable_shared=no
14335
14336 # On AIX, shared libraries and static libraries use the same namespace, and
14337 # are all built from PIC.
14338 case "$host_os" in
14339 aix3*)
14340   test "$enable_shared" = yes && enable_static=no
14341   if test -n "$RANLIB"; then
14342     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14343     postinstall_cmds='$RANLIB $lib'
14344   fi
14345   ;;
14346
14347 aix4* | aix5*)
14348   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14349     test "$enable_shared" = yes && enable_static=no
14350   fi
14351     ;;
14352 esac
14353 echo "$as_me:$LINENO: result: $enable_shared" >&5
14354 echo "${ECHO_T}$enable_shared" >&6
14355
14356 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14358 # Make sure either enable_shared or enable_static is yes.
14359 test "$enable_shared" = yes || enable_static=yes
14360 echo "$as_me:$LINENO: result: $enable_static" >&5
14361 echo "${ECHO_T}$enable_static" >&6
14362
14363 # The else clause should only fire when bootstrapping the
14364 # libtool distribution, otherwise you forgot to ship ltmain.sh
14365 # with your package, and you will get complaints that there are
14366 # no rules to generate ltmain.sh.
14367 if test -f "$ltmain"; then
14368   # See if we are running on zsh, and set the options which allow our commands through
14369   # without removal of \ escapes.
14370   if test -n "${ZSH_VERSION+set}" ; then
14371     setopt NO_GLOB_SUBST
14372   fi
14373   # Now quote all the things that may contain metacharacters while being
14374   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14375   # variables and quote the copies for generation of the libtool script.
14376   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14377     SED SHELL STRIP \
14378     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14379     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14380     deplibs_check_method reload_flag reload_cmds need_locks \
14381     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14382     lt_cv_sys_global_symbol_to_c_name_address \
14383     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14384     old_postinstall_cmds old_postuninstall_cmds \
14385     compiler \
14386     CC \
14387     LD \
14388     lt_prog_compiler_wl \
14389     lt_prog_compiler_pic \
14390     lt_prog_compiler_static \
14391     lt_prog_compiler_no_builtin_flag \
14392     export_dynamic_flag_spec \
14393     thread_safe_flag_spec \
14394     whole_archive_flag_spec \
14395     enable_shared_with_static_runtimes \
14396     old_archive_cmds \
14397     old_archive_from_new_cmds \
14398     predep_objects \
14399     postdep_objects \
14400     predeps \
14401     postdeps \
14402     compiler_lib_search_path \
14403     archive_cmds \
14404     archive_expsym_cmds \
14405     postinstall_cmds \
14406     postuninstall_cmds \
14407     old_archive_from_expsyms_cmds \
14408     allow_undefined_flag \
14409     no_undefined_flag \
14410     export_symbols_cmds \
14411     hardcode_libdir_flag_spec \
14412     hardcode_libdir_flag_spec_ld \
14413     hardcode_libdir_separator \
14414     hardcode_automatic \
14415     module_cmds \
14416     module_expsym_cmds \
14417     lt_cv_prog_compiler_c_o \
14418     exclude_expsyms \
14419     include_expsyms; do
14420
14421     case $var in
14422     old_archive_cmds | \
14423     old_archive_from_new_cmds | \
14424     archive_cmds | \
14425     archive_expsym_cmds | \
14426     module_cmds | \
14427     module_expsym_cmds | \
14428     old_archive_from_expsyms_cmds | \
14429     export_symbols_cmds | \
14430     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14431     postinstall_cmds | postuninstall_cmds | \
14432     old_postinstall_cmds | old_postuninstall_cmds | \
14433     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14434       # Double-quote double-evaled strings.
14435       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14436       ;;
14437     *)
14438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14439       ;;
14440     esac
14441   done
14442
14443   case $lt_echo in
14444   *'\$0 --fallback-echo"')
14445     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14446     ;;
14447   esac
14448
14449 cfgfile="${ofile}T"
14450   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14451   $rm -f "$cfgfile"
14452   { echo "$as_me:$LINENO: creating $ofile" >&5
14453 echo "$as_me: creating $ofile" >&6;}
14454
14455   cat <<__EOF__ >> "$cfgfile"
14456 #! $SHELL
14457
14458 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14459 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14460 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14461 #
14462 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14463 # Free Software Foundation, Inc.
14464 #
14465 # This file is part of GNU Libtool:
14466 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14467 #
14468 # This program is free software; you can redistribute it and/or modify
14469 # it under the terms of the GNU General Public License as published by
14470 # the Free Software Foundation; either version 2 of the License, or
14471 # (at your option) any later version.
14472 #
14473 # This program is distributed in the hope that it will be useful, but
14474 # WITHOUT ANY WARRANTY; without even the implied warranty of
14475 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14476 # General Public License for more details.
14477 #
14478 # You should have received a copy of the GNU General Public License
14479 # along with this program; if not, write to the Free Software
14480 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14481 #
14482 # As a special exception to the GNU General Public License, if you
14483 # distribute this file as part of a program that contains a
14484 # configuration script generated by Autoconf, you may include it under
14485 # the same distribution terms that you use for the rest of that program.
14486
14487 # A sed program that does not truncate output.
14488 SED=$lt_SED
14489
14490 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14491 Xsed="$SED -e s/^X//"
14492
14493 # The HP-UX ksh and POSIX shell print the target directory to stdout
14494 # if CDPATH is set.
14495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14496
14497 # The names of the tagged configurations supported by this script.
14498 available_tags=
14499
14500 # ### BEGIN LIBTOOL CONFIG
14501
14502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14503
14504 # Shell to use when invoking shell scripts.
14505 SHELL=$lt_SHELL
14506
14507 # Whether or not to build shared libraries.
14508 build_libtool_libs=$enable_shared
14509
14510 # Whether or not to build static libraries.
14511 build_old_libs=$enable_static
14512
14513 # Whether or not to add -lc for building shared libraries.
14514 build_libtool_need_lc=$archive_cmds_need_lc
14515
14516 # Whether or not to disallow shared libs when runtime libs are static
14517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14518
14519 # Whether or not to optimize for fast installation.
14520 fast_install=$enable_fast_install
14521
14522 # The host system.
14523 host_alias=$host_alias
14524 host=$host
14525
14526 # An echo program that does not interpret backslashes.
14527 echo=$lt_echo
14528
14529 # The archiver.
14530 AR=$lt_AR
14531 AR_FLAGS=$lt_AR_FLAGS
14532
14533 # A C compiler.
14534 LTCC=$lt_LTCC
14535
14536 # A language-specific compiler.
14537 CC=$lt_compiler
14538
14539 # Is the compiler the GNU C compiler?
14540 with_gcc=$GCC
14541
14542 # An ERE matcher.
14543 EGREP=$lt_EGREP
14544
14545 # The linker used to build libraries.
14546 LD=$lt_LD
14547
14548 # Whether we need hard or soft links.
14549 LN_S=$lt_LN_S
14550
14551 # A BSD-compatible nm program.
14552 NM=$lt_NM
14553
14554 # A symbol stripping program
14555 STRIP=$lt_STRIP
14556
14557 # Used to examine libraries when file_magic_cmd begins "file"
14558 MAGIC_CMD=$MAGIC_CMD
14559
14560 # Used on cygwin: DLL creation program.
14561 DLLTOOL="$DLLTOOL"
14562
14563 # Used on cygwin: object dumper.
14564 OBJDUMP="$OBJDUMP"
14565
14566 # Used on cygwin: assembler.
14567 AS="$AS"
14568
14569 # The name of the directory that contains temporary libtool files.
14570 objdir=$objdir
14571
14572 # How to create reloadable object files.
14573 reload_flag=$lt_reload_flag
14574 reload_cmds=$lt_reload_cmds
14575
14576 # How to pass a linker flag through the compiler.
14577 wl=$lt_lt_prog_compiler_wl
14578
14579 # Object file suffix (normally "o").
14580 objext="$ac_objext"
14581
14582 # Old archive suffix (normally "a").
14583 libext="$libext"
14584
14585 # Shared library suffix (normally ".so").
14586 shrext_cmds='$shrext_cmds'
14587
14588 # Executable file suffix (normally "").
14589 exeext="$exeext"
14590
14591 # Additional compiler flags for building library objects.
14592 pic_flag=$lt_lt_prog_compiler_pic
14593 pic_mode=$pic_mode
14594
14595 # What is the maximum length of a command?
14596 max_cmd_len=$lt_cv_sys_max_cmd_len
14597
14598 # Does compiler simultaneously support -c and -o options?
14599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14600
14601 # Must we lock files when doing compilation ?
14602 need_locks=$lt_need_locks
14603
14604 # Do we need the lib prefix for modules?
14605 need_lib_prefix=$need_lib_prefix
14606
14607 # Do we need a version for libraries?
14608 need_version=$need_version
14609
14610 # Whether dlopen is supported.
14611 dlopen_support=$enable_dlopen
14612
14613 # Whether dlopen of programs is supported.
14614 dlopen_self=$enable_dlopen_self
14615
14616 # Whether dlopen of statically linked programs is supported.
14617 dlopen_self_static=$enable_dlopen_self_static
14618
14619 # Compiler flag to prevent dynamic linking.
14620 link_static_flag=$lt_lt_prog_compiler_static
14621
14622 # Compiler flag to turn off builtin functions.
14623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14624
14625 # Compiler flag to allow reflexive dlopens.
14626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14627
14628 # Compiler flag to generate shared objects directly from archives.
14629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14630
14631 # Compiler flag to generate thread-safe objects.
14632 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14633
14634 # Library versioning type.
14635 version_type=$version_type
14636
14637 # Format of library name prefix.
14638 libname_spec=$lt_libname_spec
14639
14640 # List of archive names.  First name is the real one, the rest are links.
14641 # The last name is the one that the linker finds with -lNAME.
14642 library_names_spec=$lt_library_names_spec
14643
14644 # The coded name of the library, if different from the real name.
14645 soname_spec=$lt_soname_spec
14646
14647 # Commands used to build and install an old-style archive.
14648 RANLIB=$lt_RANLIB
14649 old_archive_cmds=$lt_old_archive_cmds
14650 old_postinstall_cmds=$lt_old_postinstall_cmds
14651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14652
14653 # Create an old-style archive from a shared archive.
14654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14655
14656 # Create a temporary old-style archive to link instead of a shared archive.
14657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14658
14659 # Commands used to build and install a shared archive.
14660 archive_cmds=$lt_archive_cmds
14661 archive_expsym_cmds=$lt_archive_expsym_cmds
14662 postinstall_cmds=$lt_postinstall_cmds
14663 postuninstall_cmds=$lt_postuninstall_cmds
14664
14665 # Commands used to build a loadable module (assumed same as above if empty)
14666 module_cmds=$lt_module_cmds
14667 module_expsym_cmds=$lt_module_expsym_cmds
14668
14669 # Commands to strip libraries.
14670 old_striplib=$lt_old_striplib
14671 striplib=$lt_striplib
14672
14673 # Dependencies to place before the objects being linked to create a
14674 # shared library.
14675 predep_objects=$lt_predep_objects
14676
14677 # Dependencies to place after the objects being linked to create a
14678 # shared library.
14679 postdep_objects=$lt_postdep_objects
14680
14681 # Dependencies to place before the objects being linked to create a
14682 # shared library.
14683 predeps=$lt_predeps
14684
14685 # Dependencies to place after the objects being linked to create a
14686 # shared library.
14687 postdeps=$lt_postdeps
14688
14689 # The library search path used internally by the compiler when linking
14690 # a shared library.
14691 compiler_lib_search_path=$lt_compiler_lib_search_path
14692
14693 # Method to check whether dependent libraries are shared objects.
14694 deplibs_check_method=$lt_deplibs_check_method
14695
14696 # Command to use when deplibs_check_method == file_magic.
14697 file_magic_cmd=$lt_file_magic_cmd
14698
14699 # Flag that allows shared libraries with undefined symbols to be built.
14700 allow_undefined_flag=$lt_allow_undefined_flag
14701
14702 # Flag that forces no undefined symbols.
14703 no_undefined_flag=$lt_no_undefined_flag
14704
14705 # Commands used to finish a libtool library installation in a directory.
14706 finish_cmds=$lt_finish_cmds
14707
14708 # Same as above, but a single script fragment to be evaled but not shown.
14709 finish_eval=$lt_finish_eval
14710
14711 # Take the output of nm and produce a listing of raw symbols and C names.
14712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14713
14714 # Transform the output of nm in a proper C declaration
14715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14716
14717 # Transform the output of nm in a C name address pair
14718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14719
14720 # This is the shared library runtime path variable.
14721 runpath_var=$runpath_var
14722
14723 # This is the shared library path variable.
14724 shlibpath_var=$shlibpath_var
14725
14726 # Is shlibpath searched before the hard-coded library search path?
14727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14728
14729 # How to hardcode a shared library path into an executable.
14730 hardcode_action=$hardcode_action
14731
14732 # Whether we should hardcode library paths into libraries.
14733 hardcode_into_libs=$hardcode_into_libs
14734
14735 # Flag to hardcode \$libdir into a binary during linking.
14736 # This must work even if \$libdir does not exist.
14737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14738
14739 # If ld is used when linking, flag to hardcode \$libdir into
14740 # a binary during linking. This must work even if \$libdir does
14741 # not exist.
14742 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14743
14744 # Whether we need a single -rpath flag with a separated argument.
14745 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14746
14747 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14748 # resulting binary.
14749 hardcode_direct=$hardcode_direct
14750
14751 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14752 # resulting binary.
14753 hardcode_minus_L=$hardcode_minus_L
14754
14755 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14756 # the resulting binary.
14757 hardcode_shlibpath_var=$hardcode_shlibpath_var
14758
14759 # Set to yes if building a shared library automatically hardcodes DIR into the library
14760 # and all subsequent libraries and executables linked against it.
14761 hardcode_automatic=$hardcode_automatic
14762
14763 # Variables whose values should be saved in libtool wrapper scripts and
14764 # restored at relink time.
14765 variables_saved_for_relink="$variables_saved_for_relink"
14766
14767 # Whether libtool must link a program against all its dependency libraries.
14768 link_all_deplibs=$link_all_deplibs
14769
14770 # Compile-time system search path for libraries
14771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14772
14773 # Run-time system search path for libraries
14774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14775
14776 # Fix the shell variable \$srcfile for the compiler.
14777 fix_srcfile_path="$fix_srcfile_path"
14778
14779 # Set to yes if exported symbols are required.
14780 always_export_symbols=$always_export_symbols
14781
14782 # The commands to list exported symbols.
14783 export_symbols_cmds=$lt_export_symbols_cmds
14784
14785 # The commands to extract the exported symbol list from a shared archive.
14786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14787
14788 # Symbols that should not be listed in the preloaded symbols.
14789 exclude_expsyms=$lt_exclude_expsyms
14790
14791 # Symbols that must always be exported.
14792 include_expsyms=$lt_include_expsyms
14793
14794 # ### END LIBTOOL CONFIG
14795
14796 __EOF__
14797
14798
14799   case $host_os in
14800   aix3*)
14801     cat <<\EOF >> "$cfgfile"
14802
14803 # AIX sometimes has problems with the GCC collect2 program.  For some
14804 # reason, if we set the COLLECT_NAMES environment variable, the problems
14805 # vanish in a puff of smoke.
14806 if test "X${COLLECT_NAMES+set}" != Xset; then
14807   COLLECT_NAMES=
14808   export COLLECT_NAMES
14809 fi
14810 EOF
14811     ;;
14812   esac
14813
14814   # We use sed instead of cat because bash on DJGPP gets confused if
14815   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14816   # text mode, it properly converts lines to CR/LF.  This bash problem
14817   # is reportedly fixed, but why not run on old versions too?
14818   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14819
14820   mv -f "$cfgfile" "$ofile" || \
14821     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14822   chmod +x "$ofile"
14823
14824 else
14825   # If there is no Makefile yet, we rely on a make rule to execute
14826   # `config.status --recheck' to rerun these tests and create the
14827   # libtool script then.
14828   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14829   if test -f "$ltmain_in"; then
14830     test -f Makefile && make "$ltmain"
14831   fi
14832 fi
14833
14834
14835 ac_ext=c
14836 ac_cpp='$CPP $CPPFLAGS'
14837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14840
14841 CC="$lt_save_CC"
14842
14843
14844 # Check whether --with-tags or --without-tags was given.
14845 if test "${with_tags+set}" = set; then
14846   withval="$with_tags"
14847   tagnames="$withval"
14848 fi;
14849
14850 if test -f "$ltmain" && test -n "$tagnames"; then
14851   if test ! -f "${ofile}"; then
14852     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14853 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14854   fi
14855
14856   if test -z "$LTCC"; then
14857     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14858     if test -z "$LTCC"; then
14859       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14860 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14861     else
14862       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14863 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14864     fi
14865   fi
14866
14867   # Extract list of available tagged configurations in $ofile.
14868   # Note that this assumes the entire list is on one line.
14869   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14870
14871   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14872   for tagname in $tagnames; do
14873     IFS="$lt_save_ifs"
14874     # Check whether tagname contains only valid characters
14875     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14876     "") ;;
14877     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14878 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14879    { (exit 1); exit 1; }; }
14880         ;;
14881     esac
14882
14883     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14884     then
14885       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14886 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14887    { (exit 1); exit 1; }; }
14888     fi
14889
14890     # Update the list of available tags.
14891     if test -n "$tagname"; then
14892       echo appending configuration tag "$tagname" to $ofile
14893
14894       case $tagname in
14895       CXX)
14896         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14897             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14898             (test "X$CXX" != "Xg++"))) ; then
14899           ac_ext=cc
14900 ac_cpp='$CXXCPP $CPPFLAGS'
14901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14904
14905
14906
14907
14908 archive_cmds_need_lc_CXX=no
14909 allow_undefined_flag_CXX=
14910 always_export_symbols_CXX=no
14911 archive_expsym_cmds_CXX=
14912 export_dynamic_flag_spec_CXX=
14913 hardcode_direct_CXX=no
14914 hardcode_libdir_flag_spec_CXX=
14915 hardcode_libdir_flag_spec_ld_CXX=
14916 hardcode_libdir_separator_CXX=
14917 hardcode_minus_L_CXX=no
14918 hardcode_automatic_CXX=no
14919 module_cmds_CXX=
14920 module_expsym_cmds_CXX=
14921 link_all_deplibs_CXX=unknown
14922 old_archive_cmds_CXX=$old_archive_cmds
14923 no_undefined_flag_CXX=
14924 whole_archive_flag_spec_CXX=
14925 enable_shared_with_static_runtimes_CXX=no
14926
14927 # Dependencies to place before and after the object being linked:
14928 predep_objects_CXX=
14929 postdep_objects_CXX=
14930 predeps_CXX=
14931 postdeps_CXX=
14932 compiler_lib_search_path_CXX=
14933
14934 # Source file extension for C++ test sources.
14935 ac_ext=cc
14936
14937 # Object file extension for compiled C++ test sources.
14938 objext=o
14939 objext_CXX=$objext
14940
14941 # Code to be used in simple compile tests
14942 lt_simple_compile_test_code="int some_variable = 0;\n"
14943
14944 # Code to be used in simple link tests
14945 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14946
14947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14948
14949 # If no C compiler was specified, use CC.
14950 LTCC=${LTCC-"$CC"}
14951
14952 # Allow CC to be a program name with arguments.
14953 compiler=$CC
14954
14955
14956 # Allow CC to be a program name with arguments.
14957 lt_save_CC=$CC
14958 lt_save_LD=$LD
14959 lt_save_GCC=$GCC
14960 GCC=$GXX
14961 lt_save_with_gnu_ld=$with_gnu_ld
14962 lt_save_path_LD=$lt_cv_path_LD
14963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14964   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14965 else
14966   unset lt_cv_prog_gnu_ld
14967 fi
14968 if test -n "${lt_cv_path_LDCXX+set}"; then
14969   lt_cv_path_LD=$lt_cv_path_LDCXX
14970 else
14971   unset lt_cv_path_LD
14972 fi
14973 test -z "${LDCXX+set}" || LD=$LDCXX
14974 CC=${CXX-"c++"}
14975 compiler=$CC
14976 compiler_CXX=$CC
14977 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14978
14979 # We don't want -fno-exception wen compiling C++ code, so set the
14980 # no_builtin_flag separately
14981 if test "$GXX" = yes; then
14982   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14983 else
14984   lt_prog_compiler_no_builtin_flag_CXX=
14985 fi
14986
14987 if test "$GXX" = yes; then
14988   # Set up default GNU C++ configuration
14989
14990
14991 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14992 if test "${with_gnu_ld+set}" = set; then
14993   withval="$with_gnu_ld"
14994   test "$withval" = no || with_gnu_ld=yes
14995 else
14996   with_gnu_ld=no
14997 fi;
14998 ac_prog=ld
14999 if test "$GCC" = yes; then
15000   # Check if gcc -print-prog-name=ld gives a path.
15001   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15002 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15003   case $host in
15004   *-*-mingw*)
15005     # gcc leaves a trailing carriage return which upsets mingw
15006     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15007   *)
15008     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15009   esac
15010   case $ac_prog in
15011     # Accept absolute paths.
15012     [\\/]* | ?:[\\/]*)
15013       re_direlt='/[^/][^/]*/\.\./'
15014       # Canonicalize the pathname of ld
15015       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15016       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15017         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15018       done
15019       test -z "$LD" && LD="$ac_prog"
15020       ;;
15021   "")
15022     # If it fails, then pretend we aren't using GCC.
15023     ac_prog=ld
15024     ;;
15025   *)
15026     # If it is relative, then search for the first ld in PATH.
15027     with_gnu_ld=unknown
15028     ;;
15029   esac
15030 elif test "$with_gnu_ld" = yes; then
15031   echo "$as_me:$LINENO: checking for GNU ld" >&5
15032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15033 else
15034   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15036 fi
15037 if test "${lt_cv_path_LD+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   if test -z "$LD"; then
15041   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15042   for ac_dir in $PATH; do
15043     IFS="$lt_save_ifs"
15044     test -z "$ac_dir" && ac_dir=.
15045     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15046       lt_cv_path_LD="$ac_dir/$ac_prog"
15047       # Check to see if the program is GNU ld.  I'd rather use --version,
15048       # but apparently some GNU ld's only accept -v.
15049       # Break only if it was the GNU/non-GNU ld that we prefer.
15050       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15051       *GNU* | *'with BFD'*)
15052         test "$with_gnu_ld" != no && break
15053         ;;
15054       *)
15055         test "$with_gnu_ld" != yes && break
15056         ;;
15057       esac
15058     fi
15059   done
15060   IFS="$lt_save_ifs"
15061 else
15062   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15063 fi
15064 fi
15065
15066 LD="$lt_cv_path_LD"
15067 if test -n "$LD"; then
15068   echo "$as_me:$LINENO: result: $LD" >&5
15069 echo "${ECHO_T}$LD" >&6
15070 else
15071   echo "$as_me:$LINENO: result: no" >&5
15072 echo "${ECHO_T}no" >&6
15073 fi
15074 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15075 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15076    { (exit 1); exit 1; }; }
15077 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15078 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15079 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15080   echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15083 case `$LD -v 2>&1 </dev/null` in
15084 *GNU* | *'with BFD'*)
15085   lt_cv_prog_gnu_ld=yes
15086   ;;
15087 *)
15088   lt_cv_prog_gnu_ld=no
15089   ;;
15090 esac
15091 fi
15092 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15094 with_gnu_ld=$lt_cv_prog_gnu_ld
15095
15096
15097
15098   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15099   # archiving commands below assume that GNU ld is being used.
15100   if test "$with_gnu_ld" = yes; then
15101     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102     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'
15103
15104     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15105     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15106
15107     # If archive_cmds runs LD, not CC, wlarc should be empty
15108     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15109     #     investigate it a little bit more. (MM)
15110     wlarc='${wl}'
15111
15112     # ancient GNU ld didn't support --whole-archive et. al.
15113     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15114         grep 'no-whole-archive' > /dev/null; then
15115       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15116     else
15117       whole_archive_flag_spec_CXX=
15118     fi
15119   else
15120     with_gnu_ld=no
15121     wlarc=
15122
15123     # A generic and very simple default shared library creation
15124     # command for GNU C++ for the case where it uses the native
15125     # linker, instead of GNU ld.  If possible, this setting should
15126     # overridden to take advantage of the native linker features on
15127     # the platform it is being used on.
15128     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15129   fi
15130
15131   # Commands to make compiler produce verbose output that lists
15132   # what "hidden" libraries, object files and flags are used when
15133   # linking a shared library.
15134   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15135
15136 else
15137   GXX=no
15138   with_gnu_ld=no
15139   wlarc=
15140 fi
15141
15142 # PORTME: fill in a description of your system's C++ link characteristics
15143 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15145 ld_shlibs_CXX=yes
15146 case $host_os in
15147   aix3*)
15148     # FIXME: insert proper C++ library support
15149     ld_shlibs_CXX=no
15150     ;;
15151   aix4* | aix5*)
15152     if test "$host_cpu" = ia64; then
15153       # On IA64, the linker does run time linking by default, so we don't
15154       # have to do anything special.
15155       aix_use_runtimelinking=no
15156       exp_sym_flag='-Bexport'
15157       no_entry_flag=""
15158     else
15159       aix_use_runtimelinking=no
15160
15161       # Test if we are trying to use run time linking or normal
15162       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15163       # need to do runtime linking.
15164       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15165         for ld_flag in $LDFLAGS; do
15166           case $ld_flag in
15167           *-brtl*)
15168             aix_use_runtimelinking=yes
15169             break
15170             ;;
15171           esac
15172         done
15173       esac
15174
15175       exp_sym_flag='-bexport'
15176       no_entry_flag='-bnoentry'
15177     fi
15178
15179     # When large executables or shared objects are built, AIX ld can
15180     # have problems creating the table of contents.  If linking a library
15181     # or program results in "error TOC overflow" add -mminimal-toc to
15182     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15183     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15184
15185     archive_cmds_CXX=''
15186     hardcode_direct_CXX=yes
15187     hardcode_libdir_separator_CXX=':'
15188     link_all_deplibs_CXX=yes
15189
15190     if test "$GXX" = yes; then
15191       case $host_os in aix4.012|aix4.012.*)
15192       # We only want to do this on AIX 4.2 and lower, the check
15193       # below for broken collect2 doesn't work under 4.3+
15194         collect2name=`${CC} -print-prog-name=collect2`
15195         if test -f "$collect2name" && \
15196            strings "$collect2name" | grep resolve_lib_name >/dev/null
15197         then
15198           # We have reworked collect2
15199           hardcode_direct_CXX=yes
15200         else
15201           # We have old collect2
15202           hardcode_direct_CXX=unsupported
15203           # It fails to find uninstalled libraries when the uninstalled
15204           # path is not listed in the libpath.  Setting hardcode_minus_L
15205           # to unsupported forces relinking
15206           hardcode_minus_L_CXX=yes
15207           hardcode_libdir_flag_spec_CXX='-L$libdir'
15208           hardcode_libdir_separator_CXX=
15209         fi
15210       esac
15211       shared_flag='-shared'
15212     else
15213       # not using gcc
15214       if test "$host_cpu" = ia64; then
15215         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15216         # chokes on -Wl,-G. The following line is correct:
15217         shared_flag='-G'
15218       else
15219         if test "$aix_use_runtimelinking" = yes; then
15220           shared_flag='${wl}-G'
15221         else
15222           shared_flag='${wl}-bM:SRE'
15223         fi
15224       fi
15225     fi
15226
15227     # It seems that -bexpall does not export symbols beginning with
15228     # underscore (_), so it is better to generate a list of symbols to export.
15229     always_export_symbols_CXX=yes
15230     if test "$aix_use_runtimelinking" = yes; then
15231       # Warning - without using the other runtime loading flags (-brtl),
15232       # -berok will link without error, but may produce a broken library.
15233       allow_undefined_flag_CXX='-berok'
15234       # Determine the default libpath from the value encoded in an empty executable.
15235       cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241
15242 int
15243 main ()
15244 {
15245
15246   ;
15247   return 0;
15248 }
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252   (eval $ac_link) 2>conftest.er1
15253   ac_status=$?
15254   grep -v '^ *+' conftest.er1 >conftest.err
15255   rm -f conftest.er1
15256   cat conftest.err >&5
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); } &&
15259          { ac_try='test -z "$ac_cxx_werror_flag"
15260                          || test ! -s conftest.err'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; } &&
15266          { ac_try='test -s conftest$ac_exeext'
15267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268   (eval $ac_try) 2>&5
15269   ac_status=$?
15270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271   (exit $ac_status); }; }; then
15272
15273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15274 }'`
15275 # Check for a 64-bit object if we didn't find anything.
15276 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; }
15277 }'`; fi
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 fi
15283 rm -f conftest.err conftest.$ac_objext \
15284       conftest$ac_exeext conftest.$ac_ext
15285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15286
15287       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15288
15289       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"
15290      else
15291       if test "$host_cpu" = ia64; then
15292         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15293         allow_undefined_flag_CXX="-z nodefs"
15294         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"
15295       else
15296         # Determine the default libpath from the value encoded in an empty executable.
15297         cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h.  */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h.  */
15303
15304 int
15305 main ()
15306 {
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314   (eval $ac_link) 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } &&
15321          { ac_try='test -z "$ac_cxx_werror_flag"
15322                          || test ! -s conftest.err'
15323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324   (eval $ac_try) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; } &&
15328          { ac_try='test -s conftest$ac_exeext'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334
15335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15336 }'`
15337 # Check for a 64-bit object if we didn't find anything.
15338 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; }
15339 }'`; fi
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 fi
15345 rm -f conftest.err conftest.$ac_objext \
15346       conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15348
15349         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15350         # Warning - without using the other run time loading flags,
15351         # -berok will link without error, but may produce a broken library.
15352         no_undefined_flag_CXX=' ${wl}-bernotok'
15353         allow_undefined_flag_CXX=' ${wl}-berok'
15354         # -bexpall does not export symbols beginning with underscore (_)
15355         always_export_symbols_CXX=yes
15356         # Exported symbols can be pulled into shared objects from archives
15357         whole_archive_flag_spec_CXX=' '
15358         archive_cmds_need_lc_CXX=yes
15359         # This is similar to how AIX traditionally builds it's shared libraries.
15360         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'
15361       fi
15362     fi
15363     ;;
15364   chorus*)
15365     case $cc_basename in
15366       *)
15367         # FIXME: insert proper C++ library support
15368         ld_shlibs_CXX=no
15369         ;;
15370     esac
15371     ;;
15372
15373
15374   cygwin* | mingw* | pw32*)
15375     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15376     # as there is no search path for DLLs.
15377     hardcode_libdir_flag_spec_CXX='-L$libdir'
15378     allow_undefined_flag_CXX=unsupported
15379     always_export_symbols_CXX=no
15380     enable_shared_with_static_runtimes_CXX=yes
15381
15382     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15383       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'
15384       # If the export-symbols file already is a .def file (1st line
15385       # is EXPORTS), use it as is; otherwise, prepend...
15386       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15387         cp $export_symbols $output_objdir/$soname.def;
15388       else
15389         echo EXPORTS > $output_objdir/$soname.def;
15390         cat $export_symbols >> $output_objdir/$soname.def;
15391       fi~
15392       $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'
15393     else
15394       ld_shlibs_CXX=no
15395     fi
15396   ;;
15397       darwin* | rhapsody*)
15398         case "$host_os" in
15399         rhapsody* | darwin1.[012])
15400          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15401          ;;
15402        *) # Darwin 1.3 on
15403          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15404            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15405          else
15406            case ${MACOSX_DEPLOYMENT_TARGET} in
15407              10.[012])
15408                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15409                ;;
15410              10.*)
15411                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15412                ;;
15413            esac
15414          fi
15415          ;;
15416         esac
15417       archive_cmds_need_lc_CXX=no
15418       hardcode_direct_CXX=no
15419       hardcode_automatic_CXX=yes
15420       hardcode_shlibpath_var_CXX=unsupported
15421       whole_archive_flag_spec_CXX=''
15422       link_all_deplibs_CXX=yes
15423
15424     if test "$GXX" = yes ; then
15425       lt_int_apple_cc_single_mod=no
15426       output_verbose_link_cmd='echo'
15427       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15428        lt_int_apple_cc_single_mod=yes
15429       fi
15430       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15431        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15432       else
15433           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'
15434         fi
15435         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15436         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15437           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15438             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}'
15439           else
15440             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}'
15441           fi
15442             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}'
15443       else
15444       case "$cc_basename" in
15445         xlc*)
15446          output_verbose_link_cmd='echo'
15447           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'
15448           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15449           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15450           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}'
15451           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}'
15452           ;;
15453        *)
15454          ld_shlibs_CXX=no
15455           ;;
15456       esac
15457       fi
15458         ;;
15459
15460   dgux*)
15461     case $cc_basename in
15462       ec++)
15463         # FIXME: insert proper C++ library support
15464         ld_shlibs_CXX=no
15465         ;;
15466       ghcx)
15467         # Green Hills C++ Compiler
15468         # FIXME: insert proper C++ library support
15469         ld_shlibs_CXX=no
15470         ;;
15471       *)
15472         # FIXME: insert proper C++ library support
15473         ld_shlibs_CXX=no
15474         ;;
15475     esac
15476     ;;
15477   freebsd12*)
15478     # C++ shared libraries reported to be fairly broken before switch to ELF
15479     ld_shlibs_CXX=no
15480     ;;
15481   freebsd-elf*)
15482     archive_cmds_need_lc_CXX=no
15483     ;;
15484   freebsd* | kfreebsd*-gnu)
15485     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15486     # conventions
15487     ld_shlibs_CXX=yes
15488     ;;
15489   gnu*)
15490     ;;
15491   hpux9*)
15492     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15493     hardcode_libdir_separator_CXX=:
15494     export_dynamic_flag_spec_CXX='${wl}-E'
15495     hardcode_direct_CXX=yes
15496     hardcode_minus_L_CXX=yes # Not in the search PATH,
15497                                 # but as the default
15498                                 # location of the library.
15499
15500     case $cc_basename in
15501     CC)
15502       # FIXME: insert proper C++ library support
15503       ld_shlibs_CXX=no
15504       ;;
15505     aCC)
15506       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'
15507       # Commands to make compiler produce verbose output that lists
15508       # what "hidden" libraries, object files and flags are used when
15509       # linking a shared library.
15510       #
15511       # There doesn't appear to be a way to prevent this compiler from
15512       # explicitly linking system object files so we need to strip them
15513       # from the output so that they don't get included in the library
15514       # dependencies.
15515       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'
15516       ;;
15517     *)
15518       if test "$GXX" = yes; then
15519         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'
15520       else
15521         # FIXME: insert proper C++ library support
15522         ld_shlibs_CXX=no
15523       fi
15524       ;;
15525     esac
15526     ;;
15527   hpux10*|hpux11*)
15528     if test $with_gnu_ld = no; then
15529       case "$host_cpu" in
15530       hppa*64*)
15531         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15532         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15533         hardcode_libdir_separator_CXX=:
15534         ;;
15535       ia64*)
15536         hardcode_libdir_flag_spec_CXX='-L$libdir'
15537         ;;
15538       *)
15539         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15540         hardcode_libdir_separator_CXX=:
15541         export_dynamic_flag_spec_CXX='${wl}-E'
15542         ;;
15543       esac
15544     fi
15545     case "$host_cpu" in
15546     hppa*64*)
15547       hardcode_direct_CXX=no
15548       hardcode_shlibpath_var_CXX=no
15549       ;;
15550     ia64*)
15551       hardcode_direct_CXX=no
15552       hardcode_shlibpath_var_CXX=no
15553       hardcode_minus_L_CXX=yes # Not in the search PATH,
15554                                               # but as the default
15555                                               # location of the library.
15556       ;;
15557     *)
15558       hardcode_direct_CXX=yes
15559       hardcode_minus_L_CXX=yes # Not in the search PATH,
15560                                               # but as the default
15561                                               # location of the library.
15562       ;;
15563     esac
15564
15565     case $cc_basename in
15566       CC)
15567         # FIXME: insert proper C++ library support
15568         ld_shlibs_CXX=no
15569         ;;
15570       aCC)
15571         case "$host_cpu" in
15572         hppa*64*|ia64*)
15573           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15574           ;;
15575         *)
15576           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15577           ;;
15578         esac
15579         # Commands to make compiler produce verbose output that lists
15580         # what "hidden" libraries, object files and flags are used when
15581         # linking a shared library.
15582         #
15583         # There doesn't appear to be a way to prevent this compiler from
15584         # explicitly linking system object files so we need to strip them
15585         # from the output so that they don't get included in the library
15586         # dependencies.
15587         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'
15588         ;;
15589       *)
15590         if test "$GXX" = yes; then
15591           if test $with_gnu_ld = no; then
15592             case "$host_cpu" in
15593             ia64*|hppa*64*)
15594               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15595               ;;
15596             *)
15597               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'
15598               ;;
15599             esac
15600           fi
15601         else
15602           # FIXME: insert proper C++ library support
15603           ld_shlibs_CXX=no
15604         fi
15605         ;;
15606     esac
15607     ;;
15608   irix5* | irix6*)
15609     case $cc_basename in
15610       CC)
15611         # SGI C++
15612         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'
15613
15614         # Archives containing C++ object files must be created using
15615         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15616         # necessary to make sure instantiated templates are included
15617         # in the archive.
15618         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15619         ;;
15620       *)
15621         if test "$GXX" = yes; then
15622           if test "$with_gnu_ld" = no; then
15623             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'
15624           else
15625             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'
15626           fi
15627         fi
15628         link_all_deplibs_CXX=yes
15629         ;;
15630     esac
15631     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15632     hardcode_libdir_separator_CXX=:
15633     ;;
15634   linux*)
15635     case $cc_basename in
15636       KCC)
15637         # Kuck and Associates, Inc. (KAI) C++ Compiler
15638
15639         # KCC will only create a shared library if the output file
15640         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15641         # to its proper name (with version) after linking.
15642         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'
15643         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'
15644         # Commands to make compiler produce verbose output that lists
15645         # what "hidden" libraries, object files and flags are used when
15646         # linking a shared library.
15647         #
15648         # There doesn't appear to be a way to prevent this compiler from
15649         # explicitly linking system object files so we need to strip them
15650         # from the output so that they don't get included in the library
15651         # dependencies.
15652         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'
15653
15654         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15655         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15656
15657         # Archives containing C++ object files must be created using
15658         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15659         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15660         ;;
15661       icpc)
15662         # Intel C++
15663         with_gnu_ld=yes
15664         # version 8.0 and above of icpc choke on multiply defined symbols
15665         # if we add $predep_objects and $postdep_objects, however 7.1 and
15666         # earlier do not add the objects themselves.
15667         case `$CC -V 2>&1` in
15668         *"Version 7."*)
15669           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15670           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'
15671           ;;
15672         *)  # Version 8.0 or newer
15673           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15675           ;;
15676         esac
15677         archive_cmds_need_lc_CXX=no
15678         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15679         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15680         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15681         ;;
15682       cxx)
15683         # Compaq C++
15684         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685         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'
15686
15687         runpath_var=LD_RUN_PATH
15688         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15689         hardcode_libdir_separator_CXX=:
15690
15691         # Commands to make compiler produce verbose output that lists
15692         # what "hidden" libraries, object files and flags are used when
15693         # linking a shared library.
15694         #
15695         # There doesn't appear to be a way to prevent this compiler from
15696         # explicitly linking system object files so we need to strip them
15697         # from the output so that they don't get included in the library
15698         # dependencies.
15699         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'
15700         ;;
15701     esac
15702     ;;
15703   lynxos*)
15704     # FIXME: insert proper C++ library support
15705     ld_shlibs_CXX=no
15706     ;;
15707   m88k*)
15708     # FIXME: insert proper C++ library support
15709     ld_shlibs_CXX=no
15710     ;;
15711   mvs*)
15712     case $cc_basename in
15713       cxx)
15714         # FIXME: insert proper C++ library support
15715         ld_shlibs_CXX=no
15716         ;;
15717       *)
15718         # FIXME: insert proper C++ library support
15719         ld_shlibs_CXX=no
15720         ;;
15721     esac
15722     ;;
15723   netbsd*)
15724     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15725       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15726       wlarc=
15727       hardcode_libdir_flag_spec_CXX='-R$libdir'
15728       hardcode_direct_CXX=yes
15729       hardcode_shlibpath_var_CXX=no
15730     fi
15731     # Workaround some broken pre-1.5 toolchains
15732     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15733     ;;
15734   openbsd2*)
15735     # C++ shared libraries are fairly broken
15736     ld_shlibs_CXX=no
15737     ;;
15738   openbsd*)
15739     hardcode_direct_CXX=yes
15740     hardcode_shlibpath_var_CXX=no
15741     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15742     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15743     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15745       export_dynamic_flag_spec_CXX='${wl}-E'
15746       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15747     fi
15748     output_verbose_link_cmd='echo'
15749     ;;
15750   osf3*)
15751     case $cc_basename in
15752       KCC)
15753         # Kuck and Associates, Inc. (KAI) C++ Compiler
15754
15755         # KCC will only create a shared library if the output file
15756         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15757         # to its proper name (with version) after linking.
15758         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'
15759
15760         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15761         hardcode_libdir_separator_CXX=:
15762
15763         # Archives containing C++ object files must be created using
15764         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15765         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15766
15767         ;;
15768       RCC)
15769         # Rational C++ 2.4.1
15770         # FIXME: insert proper C++ library support
15771         ld_shlibs_CXX=no
15772         ;;
15773       cxx)
15774         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15775         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'
15776
15777         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15778         hardcode_libdir_separator_CXX=:
15779
15780         # Commands to make compiler produce verbose output that lists
15781         # what "hidden" libraries, object files and flags are used when
15782         # linking a shared library.
15783         #
15784         # There doesn't appear to be a way to prevent this compiler from
15785         # explicitly linking system object files so we need to strip them
15786         # from the output so that they don't get included in the library
15787         # dependencies.
15788         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'
15789         ;;
15790       *)
15791         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15792           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15793           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'
15794
15795           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15796           hardcode_libdir_separator_CXX=:
15797
15798           # Commands to make compiler produce verbose output that lists
15799           # what "hidden" libraries, object files and flags are used when
15800           # linking a shared library.
15801           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15802
15803         else
15804           # FIXME: insert proper C++ library support
15805           ld_shlibs_CXX=no
15806         fi
15807         ;;
15808     esac
15809     ;;
15810   osf4* | osf5*)
15811     case $cc_basename in
15812       KCC)
15813         # Kuck and Associates, Inc. (KAI) C++ Compiler
15814
15815         # KCC will only create a shared library if the output file
15816         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817         # to its proper name (with version) after linking.
15818         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'
15819
15820         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15821         hardcode_libdir_separator_CXX=:
15822
15823         # Archives containing C++ object files must be created using
15824         # the KAI C++ compiler.
15825         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15826         ;;
15827       RCC)
15828         # Rational C++ 2.4.1
15829         # FIXME: insert proper C++ library support
15830         ld_shlibs_CXX=no
15831         ;;
15832       cxx)
15833         allow_undefined_flag_CXX=' -expect_unresolved \*'
15834         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'
15835         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15836           echo "-hidden">> $lib.exp~
15837           $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~
15838           $rm $lib.exp'
15839
15840         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15841         hardcode_libdir_separator_CXX=:
15842
15843         # Commands to make compiler produce verbose output that lists
15844         # what "hidden" libraries, object files and flags are used when
15845         # linking a shared library.
15846         #
15847         # There doesn't appear to be a way to prevent this compiler from
15848         # explicitly linking system object files so we need to strip them
15849         # from the output so that they don't get included in the library
15850         # dependencies.
15851         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'
15852         ;;
15853       *)
15854         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15855           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15856          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'
15857
15858           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15859           hardcode_libdir_separator_CXX=:
15860
15861           # Commands to make compiler produce verbose output that lists
15862           # what "hidden" libraries, object files and flags are used when
15863           # linking a shared library.
15864           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15865
15866         else
15867           # FIXME: insert proper C++ library support
15868           ld_shlibs_CXX=no
15869         fi
15870         ;;
15871     esac
15872     ;;
15873   psos*)
15874     # FIXME: insert proper C++ library support
15875     ld_shlibs_CXX=no
15876     ;;
15877   sco*)
15878     archive_cmds_need_lc_CXX=no
15879     case $cc_basename in
15880       CC)
15881         # FIXME: insert proper C++ library support
15882         ld_shlibs_CXX=no
15883         ;;
15884       *)
15885         # FIXME: insert proper C++ library support
15886         ld_shlibs_CXX=no
15887         ;;
15888     esac
15889     ;;
15890   sunos4*)
15891     case $cc_basename in
15892       CC)
15893         # Sun C++ 4.x
15894         # FIXME: insert proper C++ library support
15895         ld_shlibs_CXX=no
15896         ;;
15897       lcc)
15898         # Lucid
15899         # FIXME: insert proper C++ library support
15900         ld_shlibs_CXX=no
15901         ;;
15902       *)
15903         # FIXME: insert proper C++ library support
15904         ld_shlibs_CXX=no
15905         ;;
15906     esac
15907     ;;
15908   solaris*)
15909     case $cc_basename in
15910       CC)
15911         # Sun C++ 4.2, 5.x and Centerline C++
15912         no_undefined_flag_CXX=' -zdefs'
15913         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15914         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15915         $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'
15916
15917         hardcode_libdir_flag_spec_CXX='-R$libdir'
15918         hardcode_shlibpath_var_CXX=no
15919         case $host_os in
15920           solaris2.0-5 | solaris2.0-5.*) ;;
15921           *)
15922             # The C++ compiler is used as linker so we must use $wl
15923             # flag to pass the commands to the underlying system
15924             # linker.
15925             # Supported since Solaris 2.6 (maybe 2.5.1?)
15926             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15927             ;;
15928         esac
15929         link_all_deplibs_CXX=yes
15930
15931         # Commands to make compiler produce verbose output that lists
15932         # what "hidden" libraries, object files and flags are used when
15933         # linking a shared library.
15934         #
15935         # There doesn't appear to be a way to prevent this compiler from
15936         # explicitly linking system object files so we need to strip them
15937         # from the output so that they don't get included in the library
15938         # dependencies.
15939         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'
15940
15941         # Archives containing C++ object files must be created using
15942         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15943         # necessary to make sure instantiated templates are included
15944         # in the archive.
15945         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15946         ;;
15947       gcx)
15948         # Green Hills C++ Compiler
15949         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15950
15951         # The C++ compiler must be used to create the archive.
15952         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15953         ;;
15954       *)
15955         # GNU C++ compiler with Solaris linker
15956         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15957           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15958           if $CC --version | grep -v '^2\.7' > /dev/null; then
15959             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15960             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15961                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15962
15963             # Commands to make compiler produce verbose output that lists
15964             # what "hidden" libraries, object files and flags are used when
15965             # linking a shared library.
15966             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15967           else
15968             # g++ 2.7 appears to require `-G' NOT `-shared' on this
15969             # platform.
15970             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15971             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15972                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15973
15974             # Commands to make compiler produce verbose output that lists
15975             # what "hidden" libraries, object files and flags are used when
15976             # linking a shared library.
15977             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15978           fi
15979
15980           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15981         fi
15982         ;;
15983     esac
15984     ;;
15985   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15986     archive_cmds_need_lc_CXX=no
15987     ;;
15988   tandem*)
15989     case $cc_basename in
15990       NCC)
15991         # NonStop-UX NCC 3.20
15992         # FIXME: insert proper C++ library support
15993         ld_shlibs_CXX=no
15994         ;;
15995       *)
15996         # FIXME: insert proper C++ library support
15997         ld_shlibs_CXX=no
15998         ;;
15999     esac
16000     ;;
16001   vxworks*)
16002     # FIXME: insert proper C++ library support
16003     ld_shlibs_CXX=no
16004     ;;
16005   *)
16006     # FIXME: insert proper C++ library support
16007     ld_shlibs_CXX=no
16008     ;;
16009 esac
16010 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16011 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16012 test "$ld_shlibs_CXX" = no && can_build_shared=no
16013
16014 GCC_CXX="$GXX"
16015 LD_CXX="$LD"
16016
16017
16018 cat > conftest.$ac_ext <<EOF
16019 class Foo
16020 {
16021 public:
16022   Foo (void) { a = 0; }
16023 private:
16024   int a;
16025 };
16026 EOF
16027
16028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029   (eval $ac_compile) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; then
16033   # Parse the compiler output and extract the necessary
16034   # objects, libraries and library flags.
16035
16036   # Sentinel used to keep track of whether or not we are before
16037   # the conftest object file.
16038   pre_test_object_deps_done=no
16039
16040   # The `*' in the case matches for architectures that use `case' in
16041   # $output_verbose_cmd can trigger glob expansion during the loop
16042   # eval without this substitution.
16043   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16044
16045   for p in `eval $output_verbose_link_cmd`; do
16046     case $p in
16047
16048     -L* | -R* | -l*)
16049        # Some compilers place space between "-{L,R}" and the path.
16050        # Remove the space.
16051        if test $p = "-L" \
16052           || test $p = "-R"; then
16053          prev=$p
16054          continue
16055        else
16056          prev=
16057        fi
16058
16059        if test "$pre_test_object_deps_done" = no; then
16060          case $p in
16061          -L* | -R*)
16062            # Internal compiler library paths should come after those
16063            # provided the user.  The postdeps already come after the
16064            # user supplied libs so there is no need to process them.
16065            if test -z "$compiler_lib_search_path_CXX"; then
16066              compiler_lib_search_path_CXX="${prev}${p}"
16067            else
16068              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16069            fi
16070            ;;
16071          # The "-l" case would never come before the object being
16072          # linked, so don't bother handling this case.
16073          esac
16074        else
16075          if test -z "$postdeps_CXX"; then
16076            postdeps_CXX="${prev}${p}"
16077          else
16078            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16079          fi
16080        fi
16081        ;;
16082
16083     *.$objext)
16084        # This assumes that the test object file only shows up
16085        # once in the compiler output.
16086        if test "$p" = "conftest.$objext"; then
16087          pre_test_object_deps_done=yes
16088          continue
16089        fi
16090
16091        if test "$pre_test_object_deps_done" = no; then
16092          if test -z "$predep_objects_CXX"; then
16093            predep_objects_CXX="$p"
16094          else
16095            predep_objects_CXX="$predep_objects_CXX $p"
16096          fi
16097        else
16098          if test -z "$postdep_objects_CXX"; then
16099            postdep_objects_CXX="$p"
16100          else
16101            postdep_objects_CXX="$postdep_objects_CXX $p"
16102          fi
16103        fi
16104        ;;
16105
16106     *) ;; # Ignore the rest.
16107
16108     esac
16109   done
16110
16111   # Clean up.
16112   rm -f a.out a.exe
16113 else
16114   echo "libtool.m4: error: problem compiling CXX test program"
16115 fi
16116
16117 $rm -f confest.$objext
16118
16119 case " $postdeps_CXX " in
16120 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16121 esac
16122
16123 lt_prog_compiler_wl_CXX=
16124 lt_prog_compiler_pic_CXX=
16125 lt_prog_compiler_static_CXX=
16126
16127 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16128 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16129
16130   # C++ specific cases for pic, static, wl, etc.
16131   if test "$GXX" = yes; then
16132     lt_prog_compiler_wl_CXX='-Wl,'
16133     lt_prog_compiler_static_CXX='-static'
16134
16135     case $host_os in
16136     aix*)
16137       # All AIX code is PIC.
16138       if test "$host_cpu" = ia64; then
16139         # AIX 5 now supports IA64 processor
16140         lt_prog_compiler_static_CXX='-Bstatic'
16141       fi
16142       ;;
16143     amigaos*)
16144       # FIXME: we need at least 68020 code to build shared libraries, but
16145       # adding the `-m68020' flag to GCC prevents building anything better,
16146       # like `-m68040'.
16147       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16148       ;;
16149     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16150       # PIC is the default for these OSes.
16151       ;;
16152     mingw* | os2* | pw32*)
16153       # This hack is so that the source file can tell whether it is being
16154       # built for inclusion in a dll (and should export symbols for example).
16155       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16156       ;;
16157     darwin* | rhapsody*)
16158       # PIC is the default on this platform
16159       # Common symbols not allowed in MH_DYLIB files
16160       lt_prog_compiler_pic_CXX='-fno-common'
16161       ;;
16162     *djgpp*)
16163       # DJGPP does not support shared libraries at all
16164       lt_prog_compiler_pic_CXX=
16165       ;;
16166     sysv4*MP*)
16167       if test -d /usr/nec; then
16168         lt_prog_compiler_pic_CXX=-Kconform_pic
16169       fi
16170       ;;
16171     hpux*)
16172       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16173       # not for PA HP-UX.
16174       case "$host_cpu" in
16175       hppa*64*|ia64*)
16176         ;;
16177       *)
16178         lt_prog_compiler_pic_CXX='-fPIC'
16179         ;;
16180       esac
16181       ;;
16182     *)
16183       lt_prog_compiler_pic_CXX='-fPIC'
16184       ;;
16185     esac
16186   else
16187     case $host_os in
16188       aix4* | aix5*)
16189         # All AIX code is PIC.
16190         if test "$host_cpu" = ia64; then
16191           # AIX 5 now supports IA64 processor
16192           lt_prog_compiler_static_CXX='-Bstatic'
16193         else
16194           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16195         fi
16196         ;;
16197       chorus*)
16198         case $cc_basename in
16199         cxch68)
16200           # Green Hills C++ Compiler
16201           # _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"
16202           ;;
16203         esac
16204         ;;
16205        darwin*)
16206          # PIC is the default on this platform
16207          # Common symbols not allowed in MH_DYLIB files
16208          case "$cc_basename" in
16209            xlc*)
16210            lt_prog_compiler_pic_CXX='-qnocommon'
16211            lt_prog_compiler_wl_CXX='-Wl,'
16212            ;;
16213          esac
16214        ;;
16215       dgux*)
16216         case $cc_basename in
16217           ec++)
16218             lt_prog_compiler_pic_CXX='-KPIC'
16219             ;;
16220           ghcx)
16221             # Green Hills C++ Compiler
16222             lt_prog_compiler_pic_CXX='-pic'
16223             ;;
16224           *)
16225             ;;
16226         esac
16227         ;;
16228       freebsd* | kfreebsd*-gnu)
16229         # FreeBSD uses GNU C++
16230         ;;
16231       hpux9* | hpux10* | hpux11*)
16232         case $cc_basename in
16233           CC)
16234             lt_prog_compiler_wl_CXX='-Wl,'
16235             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16236             if test "$host_cpu" != ia64; then
16237               lt_prog_compiler_pic_CXX='+Z'
16238             fi
16239             ;;
16240           aCC)
16241             lt_prog_compiler_wl_CXX='-Wl,'
16242             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16243             case "$host_cpu" in
16244             hppa*64*|ia64*)
16245               # +Z the default
16246               ;;
16247             *)
16248               lt_prog_compiler_pic_CXX='+Z'
16249               ;;
16250             esac
16251             ;;
16252           *)
16253             ;;
16254         esac
16255         ;;
16256       irix5* | irix6* | nonstopux*)
16257         case $cc_basename in
16258           CC)
16259             lt_prog_compiler_wl_CXX='-Wl,'
16260             lt_prog_compiler_static_CXX='-non_shared'
16261             # CC pic flag -KPIC is the default.
16262             ;;
16263           *)
16264             ;;
16265         esac
16266         ;;
16267       linux*)
16268         case $cc_basename in
16269           KCC)
16270             # KAI C++ Compiler
16271             lt_prog_compiler_wl_CXX='--backend -Wl,'
16272             lt_prog_compiler_pic_CXX='-fPIC'
16273             ;;
16274           icpc)
16275             # Intel C++
16276             lt_prog_compiler_wl_CXX='-Wl,'
16277             lt_prog_compiler_pic_CXX='-KPIC'
16278             lt_prog_compiler_static_CXX='-static'
16279             ;;
16280           cxx)
16281             # Compaq C++
16282             # Make sure the PIC flag is empty.  It appears that all Alpha
16283             # Linux and Compaq Tru64 Unix objects are PIC.
16284             lt_prog_compiler_pic_CXX=
16285             lt_prog_compiler_static_CXX='-non_shared'
16286             ;;
16287           *)
16288             ;;
16289         esac
16290         ;;
16291       lynxos*)
16292         ;;
16293       m88k*)
16294         ;;
16295       mvs*)
16296         case $cc_basename in
16297           cxx)
16298             lt_prog_compiler_pic_CXX='-W c,exportall'
16299             ;;
16300           *)
16301             ;;
16302         esac
16303         ;;
16304       netbsd*)
16305         ;;
16306       osf3* | osf4* | osf5*)
16307         case $cc_basename in
16308           KCC)
16309             lt_prog_compiler_wl_CXX='--backend -Wl,'
16310             ;;
16311           RCC)
16312             # Rational C++ 2.4.1
16313             lt_prog_compiler_pic_CXX='-pic'
16314             ;;
16315           cxx)
16316             # Digital/Compaq C++
16317             lt_prog_compiler_wl_CXX='-Wl,'
16318             # Make sure the PIC flag is empty.  It appears that all Alpha
16319             # Linux and Compaq Tru64 Unix objects are PIC.
16320             lt_prog_compiler_pic_CXX=
16321             lt_prog_compiler_static_CXX='-non_shared'
16322             ;;
16323           *)
16324             ;;
16325         esac
16326         ;;
16327       psos*)
16328         ;;
16329       sco*)
16330         case $cc_basename in
16331           CC)
16332             lt_prog_compiler_pic_CXX='-fPIC'
16333             ;;
16334           *)
16335             ;;
16336         esac
16337         ;;
16338       solaris*)
16339         case $cc_basename in
16340           CC)
16341             # Sun C++ 4.2, 5.x and Centerline C++
16342             lt_prog_compiler_pic_CXX='-KPIC'
16343             lt_prog_compiler_static_CXX='-Bstatic'
16344             lt_prog_compiler_wl_CXX='-Qoption ld '
16345             ;;
16346           gcx)
16347             # Green Hills C++ Compiler
16348             lt_prog_compiler_pic_CXX='-PIC'
16349             ;;
16350           *)
16351             ;;
16352         esac
16353         ;;
16354       sunos4*)
16355         case $cc_basename in
16356           CC)
16357             # Sun C++ 4.x
16358             lt_prog_compiler_pic_CXX='-pic'
16359             lt_prog_compiler_static_CXX='-Bstatic'
16360             ;;
16361           lcc)
16362             # Lucid
16363             lt_prog_compiler_pic_CXX='-pic'
16364             ;;
16365           *)
16366             ;;
16367         esac
16368         ;;
16369       tandem*)
16370         case $cc_basename in
16371           NCC)
16372             # NonStop-UX NCC 3.20
16373             lt_prog_compiler_pic_CXX='-KPIC'
16374             ;;
16375           *)
16376             ;;
16377         esac
16378         ;;
16379       unixware*)
16380         ;;
16381       vxworks*)
16382         ;;
16383       *)
16384         lt_prog_compiler_can_build_shared_CXX=no
16385         ;;
16386     esac
16387   fi
16388
16389 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16390 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16391
16392 #
16393 # Check to make sure the PIC flag actually works.
16394 #
16395 if test -n "$lt_prog_compiler_pic_CXX"; then
16396
16397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16398 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16399 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   lt_prog_compiler_pic_works_CXX=no
16403   ac_outfile=conftest.$ac_objext
16404    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16405    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16406    # Insert the option either (1) after the last *FLAGS variable, or
16407    # (2) before a word containing "conftest.", or (3) at the end.
16408    # Note that $ac_compile itself does not contain backslashes and begins
16409    # with a dollar sign (not a hyphen), so the echo should work correctly.
16410    # The option is referenced via a variable to avoid confusing sed.
16411    lt_compile=`echo "$ac_compile" | $SED \
16412    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414    -e 's:$: $lt_compiler_flag:'`
16415    (eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
16416    (eval "$lt_compile" 2>conftest.err)
16417    ac_status=$?
16418    cat conftest.err >&5
16419    echo "$as_me:16419: \$? = $ac_status" >&5
16420    if (exit $ac_status) && test -s "$ac_outfile"; then
16421      # The compiler can only warn and ignore the option if not recognized
16422      # So say no if there are warnings
16423      if test ! -s conftest.err; then
16424        lt_prog_compiler_pic_works_CXX=yes
16425      fi
16426    fi
16427    $rm conftest*
16428
16429 fi
16430 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16431 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16432
16433 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16434     case $lt_prog_compiler_pic_CXX in
16435      "" | " "*) ;;
16436      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16437      esac
16438 else
16439     lt_prog_compiler_pic_CXX=
16440      lt_prog_compiler_can_build_shared_CXX=no
16441 fi
16442
16443 fi
16444 case "$host_os" in
16445   # For platforms which do not support PIC, -DPIC is meaningless:
16446   *djgpp*)
16447     lt_prog_compiler_pic_CXX=
16448     ;;
16449   *)
16450     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16451     ;;
16452 esac
16453
16454 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16455 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16456 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16457   echo $ECHO_N "(cached) $ECHO_C" >&6
16458 else
16459   lt_cv_prog_compiler_c_o_CXX=no
16460    $rm -r conftest 2>/dev/null
16461    mkdir conftest
16462    cd conftest
16463    mkdir out
16464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16465
16466    lt_compiler_flag="-o out/conftest2.$ac_objext"
16467    # Insert the option either (1) after the last *FLAGS variable, or
16468    # (2) before a word containing "conftest.", or (3) at the end.
16469    # Note that $ac_compile itself does not contain backslashes and begins
16470    # with a dollar sign (not a hyphen), so the echo should work correctly.
16471    lt_compile=`echo "$ac_compile" | $SED \
16472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16474    -e 's:$: $lt_compiler_flag:'`
16475    (eval echo "\"\$as_me:16475: $lt_compile\"" >&5)
16476    (eval "$lt_compile" 2>out/conftest.err)
16477    ac_status=$?
16478    cat out/conftest.err >&5
16479    echo "$as_me:16479: \$? = $ac_status" >&5
16480    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16481    then
16482      # The compiler can only warn and ignore the option if not recognized
16483      # So say no if there are warnings
16484      if test ! -s out/conftest.err; then
16485        lt_cv_prog_compiler_c_o_CXX=yes
16486      fi
16487    fi
16488    chmod u+w .
16489    $rm conftest*
16490    # SGI C++ compiler will create directory out/ii_files/ for
16491    # template instantiation
16492    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16493    $rm out/* && rmdir out
16494    cd ..
16495    rmdir conftest
16496    $rm conftest*
16497
16498 fi
16499 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16501
16502
16503 hard_links="nottested"
16504 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16505   # do not overwrite the value of need_locks provided by the user
16506   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16507 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16508   hard_links=yes
16509   $rm conftest*
16510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16511   touch conftest.a
16512   ln conftest.a conftest.b 2>&5 || hard_links=no
16513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16514   echo "$as_me:$LINENO: result: $hard_links" >&5
16515 echo "${ECHO_T}$hard_links" >&6
16516   if test "$hard_links" = no; then
16517     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16518 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16519     need_locks=warn
16520   fi
16521 else
16522   need_locks=no
16523 fi
16524
16525 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16527
16528   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16529   case $host_os in
16530   aix4* | aix5*)
16531     # If we're using GNU nm, then we don't want the "-C" option.
16532     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16533     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16534       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'
16535     else
16536       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'
16537     fi
16538     ;;
16539   pw32*)
16540     export_symbols_cmds_CXX="$ltdll_cmds"
16541   ;;
16542   cygwin* | mingw*)
16543     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16544   ;;
16545   *)
16546     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16547   ;;
16548   esac
16549
16550 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16551 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16552 test "$ld_shlibs_CXX" = no && can_build_shared=no
16553
16554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555 if test "$GCC" = yes; then
16556   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16557 fi
16558
16559 #
16560 # Do we need to explicitly link libc?
16561 #
16562 case "x$archive_cmds_need_lc_CXX" in
16563 x|xyes)
16564   # Assume -lc should be added
16565   archive_cmds_need_lc_CXX=yes
16566
16567   if test "$enable_shared" = yes && test "$GCC" = yes; then
16568     case $archive_cmds_CXX in
16569     *'~'*)
16570       # FIXME: we may have to deal with multi-command sequences.
16571       ;;
16572     '$CC '*)
16573       # Test whether the compiler implicitly links with -lc since on some
16574       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16575       # to ld, don't add -lc before -lgcc.
16576       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16578       $rm conftest*
16579       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16580
16581       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582   (eval $ac_compile) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } 2>conftest.err; then
16586         soname=conftest
16587         lib=conftest
16588         libobjs=conftest.$ac_objext
16589         deplibs=
16590         wl=$lt_prog_compiler_wl_CXX
16591         compiler_flags=-v
16592         linker_flags=-v
16593         verstring=
16594         output_objdir=.
16595         libname=conftest
16596         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16597         allow_undefined_flag_CXX=
16598         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16599   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }
16603         then
16604           archive_cmds_need_lc_CXX=no
16605         else
16606           archive_cmds_need_lc_CXX=yes
16607         fi
16608         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16609       else
16610         cat conftest.err 1>&5
16611       fi
16612       $rm conftest*
16613       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16614 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16615       ;;
16616     esac
16617   fi
16618   ;;
16619 esac
16620
16621 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16622 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16623 library_names_spec=
16624 libname_spec='lib$name'
16625 soname_spec=
16626 shrext_cmds=".so"
16627 postinstall_cmds=
16628 postuninstall_cmds=
16629 finish_cmds=
16630 finish_eval=
16631 shlibpath_var=
16632 shlibpath_overrides_runpath=unknown
16633 version_type=none
16634 dynamic_linker="$host_os ld.so"
16635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16636 if test "$GCC" = yes; then
16637   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16638   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16639     # if the path contains ";" then we assume it to be the separator
16640     # otherwise default to the standard path separator (i.e. ":") - it is
16641     # assumed that no part of a normal pathname contains ";" but that should
16642     # okay in the real world where ";" in dirpaths is itself problematic.
16643     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16644   else
16645     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16646   fi
16647 else
16648   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16649 fi
16650 need_lib_prefix=unknown
16651 hardcode_into_libs=no
16652
16653 # when you set need_version to no, make sure it does not cause -set_version
16654 # flags to be left without arguments
16655 need_version=unknown
16656
16657 case $host_os in
16658 aix3*)
16659   version_type=linux
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16661   shlibpath_var=LIBPATH
16662
16663   # AIX 3 has no versioning support, so we append a major version to the name.
16664   soname_spec='${libname}${release}${shared_ext}$major'
16665   ;;
16666
16667 aix4* | aix5*)
16668   version_type=linux
16669   need_lib_prefix=no
16670   need_version=no
16671   hardcode_into_libs=yes
16672   if test "$host_cpu" = ia64; then
16673     # AIX 5 supports IA64
16674     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16675     shlibpath_var=LD_LIBRARY_PATH
16676   else
16677     # With GCC up to 2.95.x, collect2 would create an import file
16678     # for dependence libraries.  The import file would start with
16679     # the line `#! .'.  This would cause the generated library to
16680     # depend on `.', always an invalid library.  This was fixed in
16681     # development snapshots of GCC prior to 3.0.
16682     case $host_os in
16683       aix4 | aix4.[01] | aix4.[01].*)
16684       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16685            echo ' yes '
16686            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16687         :
16688       else
16689         can_build_shared=no
16690       fi
16691       ;;
16692     esac
16693     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16694     # soname into executable. Probably we can add versioning support to
16695     # collect2, so additional links can be useful in future.
16696     if test "$aix_use_runtimelinking" = yes; then
16697       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16698       # instead of lib<name>.a to let people know that these are not
16699       # typical AIX shared libraries.
16700       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701     else
16702       # We preserve .a as extension for shared libraries through AIX4.2
16703       # and later when we are not doing run time linking.
16704       library_names_spec='${libname}${release}.a $libname.a'
16705       soname_spec='${libname}${release}${shared_ext}$major'
16706     fi
16707     shlibpath_var=LIBPATH
16708   fi
16709   ;;
16710
16711 amigaos*)
16712   library_names_spec='$libname.ixlibrary $libname.a'
16713   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16714   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'
16715   ;;
16716
16717 beos*)
16718   library_names_spec='${libname}${shared_ext}'
16719   dynamic_linker="$host_os ld.so"
16720   shlibpath_var=LIBRARY_PATH
16721   ;;
16722
16723 bsdi[45]*)
16724   version_type=linux
16725   need_version=no
16726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16731   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16732   # the default ld.so.conf also contains /usr/contrib/lib and
16733   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16734   # libtool to hard-code these into programs
16735   ;;
16736
16737 cygwin* | mingw* | pw32*)
16738   version_type=windows
16739   shrext_cmds=".dll"
16740   need_version=no
16741   need_lib_prefix=no
16742
16743   case $GCC,$host_os in
16744   yes,cygwin* | yes,mingw* | yes,pw32*)
16745     library_names_spec='$libname.dll.a'
16746     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16747     postinstall_cmds='base_file=`basename \${file}`~
16748       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16749       dldir=$destdir/`dirname \$dlpath`~
16750       test -d \$dldir || mkdir -p \$dldir~
16751       $install_prog $dir/$dlname \$dldir/$dlname'
16752     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16753       dlpath=$dir/\$dldll~
16754        $rm \$dlpath'
16755     shlibpath_overrides_runpath=yes
16756
16757     case $host_os in
16758     cygwin*)
16759       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16760       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16761       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16762       ;;
16763     mingw*)
16764       # MinGW DLLs use traditional 'lib' prefix
16765       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16766       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16768         # It is most probably a Windows format PATH printed by
16769         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16770         # path with ; separators, and with drive letters. We can handle the
16771         # drive letters (cygwin fileutils understands them), so leave them,
16772         # especially as we might pass files found there to a mingw objdump,
16773         # which wouldn't understand a cygwinified path. Ahh.
16774         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775       else
16776         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16777       fi
16778       ;;
16779     pw32*)
16780       # pw32 DLLs use 'pw' prefix rather than 'lib'
16781       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16782       ;;
16783     esac
16784     ;;
16785
16786   *)
16787     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16788     ;;
16789   esac
16790   dynamic_linker='Win32 ld.exe'
16791   # FIXME: first we should search . and the directory the executable is in
16792   shlibpath_var=PATH
16793   ;;
16794
16795 darwin* | rhapsody*)
16796   dynamic_linker="$host_os dyld"
16797   version_type=darwin
16798   need_lib_prefix=no
16799   need_version=no
16800   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16801   soname_spec='${libname}${release}${major}$shared_ext'
16802   shlibpath_overrides_runpath=yes
16803   shlibpath_var=DYLD_LIBRARY_PATH
16804   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16805   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16806   if test "$GCC" = yes; then
16807     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"`
16808   else
16809     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16810   fi
16811   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16812   ;;
16813
16814 dgux*)
16815   version_type=linux
16816   need_lib_prefix=no
16817   need_version=no
16818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16819   soname_spec='${libname}${release}${shared_ext}$major'
16820   shlibpath_var=LD_LIBRARY_PATH
16821   ;;
16822
16823 freebsd1*)
16824   dynamic_linker=no
16825   ;;
16826
16827 kfreebsd*-gnu)
16828   version_type=linux
16829   need_lib_prefix=no
16830   need_version=no
16831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832   soname_spec='${libname}${release}${shared_ext}$major'
16833   shlibpath_var=LD_LIBRARY_PATH
16834   shlibpath_overrides_runpath=no
16835   hardcode_into_libs=yes
16836   dynamic_linker='GNU ld.so'
16837   ;;
16838
16839 freebsd*)
16840   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16841   version_type=freebsd-$objformat
16842   case $version_type in
16843     freebsd-elf*)
16844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16845       need_version=no
16846       need_lib_prefix=no
16847       ;;
16848     freebsd-*)
16849       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16850       need_version=yes
16851       ;;
16852   esac
16853   shlibpath_var=LD_LIBRARY_PATH
16854   case $host_os in
16855   freebsd2*)
16856     shlibpath_overrides_runpath=yes
16857     ;;
16858   freebsd3.01* | freebsdelf3.01*)
16859     shlibpath_overrides_runpath=yes
16860     hardcode_into_libs=yes
16861     ;;
16862   *) # from 3.2 on
16863     shlibpath_overrides_runpath=no
16864     hardcode_into_libs=yes
16865     ;;
16866   esac
16867   ;;
16868
16869 gnu*)
16870   version_type=linux
16871   need_lib_prefix=no
16872   need_version=no
16873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874   soname_spec='${libname}${release}${shared_ext}$major'
16875   shlibpath_var=LD_LIBRARY_PATH
16876   hardcode_into_libs=yes
16877   ;;
16878
16879 hpux9* | hpux10* | hpux11*)
16880   # Give a soname corresponding to the major version so that dld.sl refuses to
16881   # link against other versions.
16882   version_type=sunos
16883   need_lib_prefix=no
16884   need_version=no
16885   case "$host_cpu" in
16886   ia64*)
16887     shrext_cmds='.so'
16888     hardcode_into_libs=yes
16889     dynamic_linker="$host_os dld.so"
16890     shlibpath_var=LD_LIBRARY_PATH
16891     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893     soname_spec='${libname}${release}${shared_ext}$major'
16894     if test "X$HPUX_IA64_MODE" = X32; then
16895       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16896     else
16897       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16898     fi
16899     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16900     ;;
16901    hppa*64*)
16902      shrext_cmds='.sl'
16903      hardcode_into_libs=yes
16904      dynamic_linker="$host_os dld.sl"
16905      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908      soname_spec='${libname}${release}${shared_ext}$major'
16909      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16911      ;;
16912    *)
16913     shrext_cmds='.sl'
16914     dynamic_linker="$host_os dld.sl"
16915     shlibpath_var=SHLIB_PATH
16916     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918     soname_spec='${libname}${release}${shared_ext}$major'
16919     ;;
16920   esac
16921   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16922   postinstall_cmds='chmod 555 $lib'
16923   ;;
16924
16925 irix5* | irix6* | nonstopux*)
16926   case $host_os in
16927     nonstopux*) version_type=nonstopux ;;
16928     *)
16929         if test "$lt_cv_prog_gnu_ld" = yes; then
16930                 version_type=linux
16931         else
16932                 version_type=irix
16933         fi ;;
16934   esac
16935   need_lib_prefix=no
16936   need_version=no
16937   soname_spec='${libname}${release}${shared_ext}$major'
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16939   case $host_os in
16940   irix5* | nonstopux*)
16941     libsuff= shlibsuff=
16942     ;;
16943   *)
16944     case $LD in # libtool.m4 will add one of these switches to LD
16945     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16946       libsuff= shlibsuff= libmagic=32-bit;;
16947     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16948       libsuff=32 shlibsuff=N32 libmagic=N32;;
16949     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16950       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16951     *) libsuff= shlibsuff= libmagic=never-match;;
16952     esac
16953     ;;
16954   esac
16955   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16956   shlibpath_overrides_runpath=no
16957   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16958   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16959   hardcode_into_libs=yes
16960   ;;
16961
16962 # No shared lib support for Linux oldld, aout, or coff.
16963 linux*oldld* | linux*aout* | linux*coff*)
16964   dynamic_linker=no
16965   ;;
16966
16967 # This must be Linux ELF.
16968 linux*)
16969   version_type=linux
16970   need_lib_prefix=no
16971   need_version=no
16972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973   soname_spec='${libname}${release}${shared_ext}$major'
16974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16975   shlibpath_var=LD_LIBRARY_PATH
16976   shlibpath_overrides_runpath=no
16977   # This implies no fast_install, which is unacceptable.
16978   # Some rework will be needed to allow for fast_install
16979   # before this can be enabled.
16980   hardcode_into_libs=yes
16981
16982   # Append ld.so.conf contents to the search path
16983   if test -f /etc/ld.so.conf; then
16984     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16985     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16986   fi
16987
16988   # We used to test for /lib/ld.so.1 and disable shared libraries on
16989   # powerpc, because MkLinux only supported shared libraries with the
16990   # GNU dynamic linker.  Since this was broken with cross compilers,
16991   # most powerpc-linux boxes support dynamic linking these days and
16992   # people can always --disable-shared, the test was removed, and we
16993   # assume the GNU/Linux dynamic linker is in use.
16994   dynamic_linker='GNU/Linux ld.so'
16995   ;;
16996
16997 knetbsd*-gnu)
16998   version_type=linux
16999   need_lib_prefix=no
17000   need_version=no
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002   soname_spec='${libname}${release}${shared_ext}$major'
17003   shlibpath_var=LD_LIBRARY_PATH
17004   shlibpath_overrides_runpath=no
17005   hardcode_into_libs=yes
17006   dynamic_linker='GNU ld.so'
17007   ;;
17008
17009 netbsd*)
17010   version_type=sunos
17011   need_lib_prefix=no
17012   need_version=no
17013   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016     dynamic_linker='NetBSD (a.out) ld.so'
17017   else
17018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17019     soname_spec='${libname}${release}${shared_ext}$major'
17020     dynamic_linker='NetBSD ld.elf_so'
17021   fi
17022   shlibpath_var=LD_LIBRARY_PATH
17023   shlibpath_overrides_runpath=yes
17024   hardcode_into_libs=yes
17025   ;;
17026
17027 newsos6)
17028   version_type=linux
17029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030   shlibpath_var=LD_LIBRARY_PATH
17031   shlibpath_overrides_runpath=yes
17032   ;;
17033
17034 nto-qnx*)
17035   version_type=linux
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039   soname_spec='${libname}${release}${shared_ext}$major'
17040   shlibpath_var=LD_LIBRARY_PATH
17041   shlibpath_overrides_runpath=yes
17042   ;;
17043
17044 openbsd*)
17045   version_type=sunos
17046   need_lib_prefix=no
17047   need_version=no
17048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052     case $host_os in
17053       openbsd2.[89] | openbsd2.[89].*)
17054         shlibpath_overrides_runpath=no
17055         ;;
17056       *)
17057         shlibpath_overrides_runpath=yes
17058         ;;
17059       esac
17060   else
17061     shlibpath_overrides_runpath=yes
17062   fi
17063   ;;
17064
17065 os2*)
17066   libname_spec='$name'
17067   shrext_cmds=".dll"
17068   need_lib_prefix=no
17069   library_names_spec='$libname${shared_ext} $libname.a'
17070   dynamic_linker='OS/2 ld.exe'
17071   shlibpath_var=LIBPATH
17072   ;;
17073
17074 osf3* | osf4* | osf5*)
17075   version_type=osf
17076   need_lib_prefix=no
17077   need_version=no
17078   soname_spec='${libname}${release}${shared_ext}$major'
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080   shlibpath_var=LD_LIBRARY_PATH
17081   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17083   ;;
17084
17085 sco3.2v5*)
17086   version_type=osf
17087   soname_spec='${libname}${release}${shared_ext}$major'
17088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   ;;
17091
17092 solaris*)
17093   version_type=linux
17094   need_lib_prefix=no
17095   need_version=no
17096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097   soname_spec='${libname}${release}${shared_ext}$major'
17098   shlibpath_var=LD_LIBRARY_PATH
17099   shlibpath_overrides_runpath=yes
17100   hardcode_into_libs=yes
17101   # ldd complains unless libraries are executable
17102   postinstall_cmds='chmod +x $lib'
17103   ;;
17104
17105 sunos4*)
17106   version_type=sunos
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   shlibpath_overrides_runpath=yes
17111   if test "$with_gnu_ld" = yes; then
17112     need_lib_prefix=no
17113   fi
17114   need_version=yes
17115   ;;
17116
17117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17118   version_type=linux
17119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120   soname_spec='${libname}${release}${shared_ext}$major'
17121   shlibpath_var=LD_LIBRARY_PATH
17122   case $host_vendor in
17123     sni)
17124       shlibpath_overrides_runpath=no
17125       need_lib_prefix=no
17126       export_dynamic_flag_spec='${wl}-Blargedynsym'
17127       runpath_var=LD_RUN_PATH
17128       ;;
17129     siemens)
17130       need_lib_prefix=no
17131       ;;
17132     motorola)
17133       need_lib_prefix=no
17134       need_version=no
17135       shlibpath_overrides_runpath=no
17136       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17137       ;;
17138   esac
17139   ;;
17140
17141 sysv4*MP*)
17142   if test -d /usr/nec ;then
17143     version_type=linux
17144     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145     soname_spec='$libname${shared_ext}.$major'
17146     shlibpath_var=LD_LIBRARY_PATH
17147   fi
17148   ;;
17149
17150 uts4*)
17151   version_type=linux
17152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   shlibpath_var=LD_LIBRARY_PATH
17155   ;;
17156
17157 *)
17158   dynamic_linker=no
17159   ;;
17160 esac
17161 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162 echo "${ECHO_T}$dynamic_linker" >&6
17163 test "$dynamic_linker" = no && can_build_shared=no
17164
17165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167 hardcode_action_CXX=
17168 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17169    test -n "$runpath_var_CXX" || \
17170    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17171
17172   # We can hardcode non-existant directories.
17173   if test "$hardcode_direct_CXX" != no &&
17174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17175      # have to relink, otherwise we might link with an installed library
17176      # when we should be linking with a yet-to-be-installed one
17177      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17178      test "$hardcode_minus_L_CXX" != no; then
17179     # Linking always hardcodes the temporary library directory.
17180     hardcode_action_CXX=relink
17181   else
17182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17183     hardcode_action_CXX=immediate
17184   fi
17185 else
17186   # We cannot hardcode anything, or else we can only hardcode existing
17187   # directories.
17188   hardcode_action_CXX=unsupported
17189 fi
17190 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17191 echo "${ECHO_T}$hardcode_action_CXX" >&6
17192
17193 if test "$hardcode_action_CXX" = relink; then
17194   # Fast installation is not supported
17195   enable_fast_install=no
17196 elif test "$shlibpath_overrides_runpath" = yes ||
17197      test "$enable_shared" = no; then
17198   # Fast installation is not necessary
17199   enable_fast_install=needless
17200 fi
17201
17202 striplib=
17203 old_striplib=
17204 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209   echo "$as_me:$LINENO: result: yes" >&5
17210 echo "${ECHO_T}yes" >&6
17211 else
17212 # FIXME - insert some real tests, host_os isn't really good enough
17213   case $host_os in
17214    darwin*)
17215        if test -n "$STRIP" ; then
17216          striplib="$STRIP -x"
17217          echo "$as_me:$LINENO: result: yes" >&5
17218 echo "${ECHO_T}yes" >&6
17219        else
17220   echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6
17222 fi
17223        ;;
17224    *)
17225   echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6
17227     ;;
17228   esac
17229 fi
17230
17231 if test "x$enable_dlopen" != xyes; then
17232   enable_dlopen=unknown
17233   enable_dlopen_self=unknown
17234   enable_dlopen_self_static=unknown
17235 else
17236   lt_cv_dlopen=no
17237   lt_cv_dlopen_libs=
17238
17239   case $host_os in
17240   beos*)
17241     lt_cv_dlopen="load_add_on"
17242     lt_cv_dlopen_libs=
17243     lt_cv_dlopen_self=yes
17244     ;;
17245
17246   mingw* | pw32*)
17247     lt_cv_dlopen="LoadLibrary"
17248     lt_cv_dlopen_libs=
17249    ;;
17250
17251   cygwin*)
17252     lt_cv_dlopen="dlopen"
17253     lt_cv_dlopen_libs=
17254    ;;
17255
17256   darwin*)
17257   # if libdl is installed we need to link against it
17258     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-ldl  $LIBS"
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271
17272 /* Override any gcc2 internal prototype to avoid an error.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 /* We use char because int might match the return type of a gcc2
17277    builtin and then its argument prototype would still apply.  */
17278 char dlopen ();
17279 int
17280 main ()
17281 {
17282 dlopen ();
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289   (eval $ac_link) 2>conftest.er1
17290   ac_status=$?
17291   grep -v '^ *+' conftest.er1 >conftest.err
17292   rm -f conftest.er1
17293   cat conftest.err >&5
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } &&
17296          { ac_try='test -z "$ac_cxx_werror_flag"
17297                          || test ! -s conftest.err'
17298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299   (eval $ac_try) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; } &&
17303          { ac_try='test -s conftest$ac_exeext'
17304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305   (eval $ac_try) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; }; then
17309   ac_cv_lib_dl_dlopen=yes
17310 else
17311   echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ac_cv_lib_dl_dlopen=no
17315 fi
17316 rm -f conftest.err conftest.$ac_objext \
17317       conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17319 fi
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322 if test $ac_cv_lib_dl_dlopen = yes; then
17323   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17324 else
17325
17326     lt_cv_dlopen="dyld"
17327     lt_cv_dlopen_libs=
17328     lt_cv_dlopen_self=yes
17329
17330 fi
17331
17332    ;;
17333
17334   *)
17335     echo "$as_me:$LINENO: checking for shl_load" >&5
17336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337 if test "${ac_cv_func_shl_load+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17348 #define shl_load innocuous_shl_load
17349
17350 /* System header to define __stub macros and hopefully few prototypes,
17351     which can conflict with char shl_load (); below.
17352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353     <limits.h> exists even on freestanding compilers.  */
17354
17355 #ifdef __STDC__
17356 # include <limits.h>
17357 #else
17358 # include <assert.h>
17359 #endif
17360
17361 #undef shl_load
17362
17363 /* Override any gcc2 internal prototype to avoid an error.  */
17364 #ifdef __cplusplus
17365 extern "C"
17366 {
17367 #endif
17368 /* We use char because int might match the return type of a gcc2
17369    builtin and then its argument prototype would still apply.  */
17370 char shl_load ();
17371 /* The GNU C library defines this for functions which it implements
17372     to always fail with ENOSYS.  Some functions are actually named
17373     something starting with __ and the normal name is an alias.  */
17374 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17375 choke me
17376 #else
17377 char (*f) () = shl_load;
17378 #endif
17379 #ifdef __cplusplus
17380 }
17381 #endif
17382
17383 int
17384 main ()
17385 {
17386 return f != shl_load;
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393   (eval $ac_link) 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } &&
17400          { ac_try='test -z "$ac_cxx_werror_flag"
17401                          || test ! -s conftest.err'
17402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403   (eval $ac_try) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409   (eval $ac_try) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   ac_cv_func_shl_load=yes
17414 else
17415   echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 ac_cv_func_shl_load=no
17419 fi
17420 rm -f conftest.err conftest.$ac_objext \
17421       conftest$ac_exeext conftest.$ac_ext
17422 fi
17423 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425 if test $ac_cv_func_shl_load = yes; then
17426   lt_cv_dlopen="shl_load"
17427 else
17428   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   ac_check_lib_save_LIBS=$LIBS
17434 LIBS="-ldld  $LIBS"
17435 cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441
17442 /* Override any gcc2 internal prototype to avoid an error.  */
17443 #ifdef __cplusplus
17444 extern "C"
17445 #endif
17446 /* We use char because int might match the return type of a gcc2
17447    builtin and then its argument prototype would still apply.  */
17448 char shl_load ();
17449 int
17450 main ()
17451 {
17452 shl_load ();
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459   (eval $ac_link) 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_cxx_werror_flag"
17467                          || test ! -s conftest.err'
17468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469   (eval $ac_try) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; } &&
17473          { ac_try='test -s conftest$ac_exeext'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   ac_cv_lib_dld_shl_load=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_cv_lib_dld_shl_load=no
17485 fi
17486 rm -f conftest.err conftest.$ac_objext \
17487       conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17489 fi
17490 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492 if test $ac_cv_lib_dld_shl_load = yes; then
17493   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17494 else
17495   echo "$as_me:$LINENO: checking for dlopen" >&5
17496 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497 if test "${ac_cv_func_dlopen+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17508 #define dlopen innocuous_dlopen
17509
17510 /* System header to define __stub macros and hopefully few prototypes,
17511     which can conflict with char dlopen (); below.
17512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513     <limits.h> exists even on freestanding compilers.  */
17514
17515 #ifdef __STDC__
17516 # include <limits.h>
17517 #else
17518 # include <assert.h>
17519 #endif
17520
17521 #undef dlopen
17522
17523 /* Override any gcc2 internal prototype to avoid an error.  */
17524 #ifdef __cplusplus
17525 extern "C"
17526 {
17527 #endif
17528 /* We use char because int might match the return type of a gcc2
17529    builtin and then its argument prototype would still apply.  */
17530 char dlopen ();
17531 /* The GNU C library defines this for functions which it implements
17532     to always fail with ENOSYS.  Some functions are actually named
17533     something starting with __ and the normal name is an alias.  */
17534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17535 choke me
17536 #else
17537 char (*f) () = dlopen;
17538 #endif
17539 #ifdef __cplusplus
17540 }
17541 #endif
17542
17543 int
17544 main ()
17545 {
17546 return f != dlopen;
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553   (eval $ac_link) 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_cxx_werror_flag"
17561                          || test ! -s conftest.err'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; } &&
17567          { ac_try='test -s conftest$ac_exeext'
17568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569   (eval $ac_try) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); }; }; then
17573   ac_cv_func_dlopen=yes
17574 else
17575   echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17577
17578 ac_cv_func_dlopen=no
17579 fi
17580 rm -f conftest.err conftest.$ac_objext \
17581       conftest$ac_exeext conftest.$ac_ext
17582 fi
17583 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585 if test $ac_cv_func_dlopen = yes; then
17586   lt_cv_dlopen="dlopen"
17587 else
17588   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   ac_check_lib_save_LIBS=$LIBS
17594 LIBS="-ldl  $LIBS"
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601
17602 /* Override any gcc2 internal prototype to avoid an error.  */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 /* We use char because int might match the return type of a gcc2
17607    builtin and then its argument prototype would still apply.  */
17608 char dlopen ();
17609 int
17610 main ()
17611 {
17612 dlopen ();
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619   (eval $ac_link) 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_cxx_werror_flag"
17627                          || test ! -s conftest.err'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } &&
17633          { ac_try='test -s conftest$ac_exeext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_lib_dl_dlopen=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_lib_dl_dlopen=no
17645 fi
17646 rm -f conftest.err conftest.$ac_objext \
17647       conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17649 fi
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652 if test $ac_cv_lib_dl_dlopen = yes; then
17653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17654 else
17655   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658   echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660   ac_check_lib_save_LIBS=$LIBS
17661 LIBS="-lsvld  $LIBS"
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668
17669 /* Override any gcc2 internal prototype to avoid an error.  */
17670 #ifdef __cplusplus
17671 extern "C"
17672 #endif
17673 /* We use char because int might match the return type of a gcc2
17674    builtin and then its argument prototype would still apply.  */
17675 char dlopen ();
17676 int
17677 main ()
17678 {
17679 dlopen ();
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686   (eval $ac_link) 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } &&
17693          { ac_try='test -z "$ac_cxx_werror_flag"
17694                          || test ! -s conftest.err'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; } &&
17700          { ac_try='test -s conftest$ac_exeext'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706   ac_cv_lib_svld_dlopen=yes
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_cv_lib_svld_dlopen=no
17712 fi
17713 rm -f conftest.err conftest.$ac_objext \
17714       conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719 if test $ac_cv_lib_svld_dlopen = yes; then
17720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17721 else
17722   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   ac_check_lib_save_LIBS=$LIBS
17728 LIBS="-ldld  $LIBS"
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735
17736 /* Override any gcc2 internal prototype to avoid an error.  */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 /* We use char because int might match the return type of a gcc2
17741    builtin and then its argument prototype would still apply.  */
17742 char dld_link ();
17743 int
17744 main ()
17745 {
17746 dld_link ();
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753   (eval $ac_link) 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } &&
17760          { ac_try='test -z "$ac_cxx_werror_flag"
17761                          || test ! -s conftest.err'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest$ac_exeext'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; }; then
17773   ac_cv_lib_dld_dld_link=yes
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 ac_cv_lib_dld_dld_link=no
17779 fi
17780 rm -f conftest.err conftest.$ac_objext \
17781       conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17783 fi
17784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786 if test $ac_cv_lib_dld_dld_link = yes; then
17787   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17788 fi
17789
17790
17791 fi
17792
17793
17794 fi
17795
17796
17797 fi
17798
17799
17800 fi
17801
17802
17803 fi
17804
17805     ;;
17806   esac
17807
17808   if test "x$lt_cv_dlopen" != xno; then
17809     enable_dlopen=yes
17810   else
17811     enable_dlopen=no
17812   fi
17813
17814   case $lt_cv_dlopen in
17815   dlopen)
17816     save_CPPFLAGS="$CPPFLAGS"
17817     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17818
17819     save_LDFLAGS="$LDFLAGS"
17820     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17821
17822     save_LIBS="$LIBS"
17823     LIBS="$lt_cv_dlopen_libs $LIBS"
17824
17825     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827 if test "${lt_cv_dlopen_self+set}" = set; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830           if test "$cross_compiling" = yes; then :
17831   lt_cv_dlopen_self=cross
17832 else
17833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834   lt_status=$lt_dlunknown
17835   cat > conftest.$ac_ext <<EOF
17836 #line 17836 "configure"
17837 #include "confdefs.h"
17838
17839 #if HAVE_DLFCN_H
17840 #include <dlfcn.h>
17841 #endif
17842
17843 #include <stdio.h>
17844
17845 #ifdef RTLD_GLOBAL
17846 #  define LT_DLGLOBAL           RTLD_GLOBAL
17847 #else
17848 #  ifdef DL_GLOBAL
17849 #    define LT_DLGLOBAL         DL_GLOBAL
17850 #  else
17851 #    define LT_DLGLOBAL         0
17852 #  endif
17853 #endif
17854
17855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856    find out it does not work in some platform. */
17857 #ifndef LT_DLLAZY_OR_NOW
17858 #  ifdef RTLD_LAZY
17859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17860 #  else
17861 #    ifdef DL_LAZY
17862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17863 #    else
17864 #      ifdef RTLD_NOW
17865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17866 #      else
17867 #        ifdef DL_NOW
17868 #          define LT_DLLAZY_OR_NOW      DL_NOW
17869 #        else
17870 #          define LT_DLLAZY_OR_NOW      0
17871 #        endif
17872 #      endif
17873 #    endif
17874 #  endif
17875 #endif
17876
17877 #ifdef __cplusplus
17878 extern "C" void exit (int);
17879 #endif
17880
17881 void fnord() { int i=42;}
17882 int main ()
17883 {
17884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885   int status = $lt_dlunknown;
17886
17887   if (self)
17888     {
17889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17890       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891       /* dlclose (self); */
17892     }
17893
17894     exit (status);
17895 }
17896 EOF
17897   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898   (eval $ac_link) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902     (./conftest; exit; ) 2>/dev/null
17903     lt_status=$?
17904     case x$lt_status in
17905       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17908     esac
17909   else :
17910     # compilation failed
17911     lt_cv_dlopen_self=no
17912   fi
17913 fi
17914 rm -fr conftest*
17915
17916
17917 fi
17918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17920
17921     if test "x$lt_cv_dlopen_self" = xyes; then
17922       LDFLAGS="$LDFLAGS $link_static_flag"
17923       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925 if test "${lt_cv_dlopen_self_static+set}" = set; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928           if test "$cross_compiling" = yes; then :
17929   lt_cv_dlopen_self_static=cross
17930 else
17931   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932   lt_status=$lt_dlunknown
17933   cat > conftest.$ac_ext <<EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17936
17937 #if HAVE_DLFCN_H
17938 #include <dlfcn.h>
17939 #endif
17940
17941 #include <stdio.h>
17942
17943 #ifdef RTLD_GLOBAL
17944 #  define LT_DLGLOBAL           RTLD_GLOBAL
17945 #else
17946 #  ifdef DL_GLOBAL
17947 #    define LT_DLGLOBAL         DL_GLOBAL
17948 #  else
17949 #    define LT_DLGLOBAL         0
17950 #  endif
17951 #endif
17952
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954    find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17956 #  ifdef RTLD_LAZY
17957 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17958 #  else
17959 #    ifdef DL_LAZY
17960 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17961 #    else
17962 #      ifdef RTLD_NOW
17963 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17964 #      else
17965 #        ifdef DL_NOW
17966 #          define LT_DLLAZY_OR_NOW      DL_NOW
17967 #        else
17968 #          define LT_DLLAZY_OR_NOW      0
17969 #        endif
17970 #      endif
17971 #    endif
17972 #  endif
17973 #endif
17974
17975 #ifdef __cplusplus
17976 extern "C" void exit (int);
17977 #endif
17978
17979 void fnord() { int i=42;}
17980 int main ()
17981 {
17982   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983   int status = $lt_dlunknown;
17984
17985   if (self)
17986     {
17987       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17988       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989       /* dlclose (self); */
17990     }
17991
17992     exit (status);
17993 }
17994 EOF
17995   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996   (eval $ac_link) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000     (./conftest; exit; ) 2>/dev/null
18001     lt_status=$?
18002     case x$lt_status in
18003       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18006     esac
18007   else :
18008     # compilation failed
18009     lt_cv_dlopen_self_static=no
18010   fi
18011 fi
18012 rm -fr conftest*
18013
18014
18015 fi
18016 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18018     fi
18019
18020     CPPFLAGS="$save_CPPFLAGS"
18021     LDFLAGS="$save_LDFLAGS"
18022     LIBS="$save_LIBS"
18023     ;;
18024   esac
18025
18026   case $lt_cv_dlopen_self in
18027   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028   *) enable_dlopen_self=unknown ;;
18029   esac
18030
18031   case $lt_cv_dlopen_self_static in
18032   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033   *) enable_dlopen_self_static=unknown ;;
18034   esac
18035 fi
18036
18037
18038 # The else clause should only fire when bootstrapping the
18039 # libtool distribution, otherwise you forgot to ship ltmain.sh
18040 # with your package, and you will get complaints that there are
18041 # no rules to generate ltmain.sh.
18042 if test -f "$ltmain"; then
18043   # See if we are running on zsh, and set the options which allow our commands through
18044   # without removal of \ escapes.
18045   if test -n "${ZSH_VERSION+set}" ; then
18046     setopt NO_GLOB_SUBST
18047   fi
18048   # Now quote all the things that may contain metacharacters while being
18049   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18050   # variables and quote the copies for generation of the libtool script.
18051   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18052     SED SHELL STRIP \
18053     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055     deplibs_check_method reload_flag reload_cmds need_locks \
18056     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057     lt_cv_sys_global_symbol_to_c_name_address \
18058     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059     old_postinstall_cmds old_postuninstall_cmds \
18060     compiler_CXX \
18061     CC_CXX \
18062     LD_CXX \
18063     lt_prog_compiler_wl_CXX \
18064     lt_prog_compiler_pic_CXX \
18065     lt_prog_compiler_static_CXX \
18066     lt_prog_compiler_no_builtin_flag_CXX \
18067     export_dynamic_flag_spec_CXX \
18068     thread_safe_flag_spec_CXX \
18069     whole_archive_flag_spec_CXX \
18070     enable_shared_with_static_runtimes_CXX \
18071     old_archive_cmds_CXX \
18072     old_archive_from_new_cmds_CXX \
18073     predep_objects_CXX \
18074     postdep_objects_CXX \
18075     predeps_CXX \
18076     postdeps_CXX \
18077     compiler_lib_search_path_CXX \
18078     archive_cmds_CXX \
18079     archive_expsym_cmds_CXX \
18080     postinstall_cmds_CXX \
18081     postuninstall_cmds_CXX \
18082     old_archive_from_expsyms_cmds_CXX \
18083     allow_undefined_flag_CXX \
18084     no_undefined_flag_CXX \
18085     export_symbols_cmds_CXX \
18086     hardcode_libdir_flag_spec_CXX \
18087     hardcode_libdir_flag_spec_ld_CXX \
18088     hardcode_libdir_separator_CXX \
18089     hardcode_automatic_CXX \
18090     module_cmds_CXX \
18091     module_expsym_cmds_CXX \
18092     lt_cv_prog_compiler_c_o_CXX \
18093     exclude_expsyms_CXX \
18094     include_expsyms_CXX; do
18095
18096     case $var in
18097     old_archive_cmds_CXX | \
18098     old_archive_from_new_cmds_CXX | \
18099     archive_cmds_CXX | \
18100     archive_expsym_cmds_CXX | \
18101     module_cmds_CXX | \
18102     module_expsym_cmds_CXX | \
18103     old_archive_from_expsyms_cmds_CXX | \
18104     export_symbols_cmds_CXX | \
18105     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106     postinstall_cmds | postuninstall_cmds | \
18107     old_postinstall_cmds | old_postuninstall_cmds | \
18108     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109       # Double-quote double-evaled strings.
18110       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18111       ;;
18112     *)
18113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18114       ;;
18115     esac
18116   done
18117
18118   case $lt_echo in
18119   *'\$0 --fallback-echo"')
18120     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18121     ;;
18122   esac
18123
18124 cfgfile="$ofile"
18125
18126   cat <<__EOF__ >> "$cfgfile"
18127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18128
18129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18130
18131 # Shell to use when invoking shell scripts.
18132 SHELL=$lt_SHELL
18133
18134 # Whether or not to build shared libraries.
18135 build_libtool_libs=$enable_shared
18136
18137 # Whether or not to build static libraries.
18138 build_old_libs=$enable_static
18139
18140 # Whether or not to add -lc for building shared libraries.
18141 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18142
18143 # Whether or not to disallow shared libs when runtime libs are static
18144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18145
18146 # Whether or not to optimize for fast installation.
18147 fast_install=$enable_fast_install
18148
18149 # The host system.
18150 host_alias=$host_alias
18151 host=$host
18152
18153 # An echo program that does not interpret backslashes.
18154 echo=$lt_echo
18155
18156 # The archiver.
18157 AR=$lt_AR
18158 AR_FLAGS=$lt_AR_FLAGS
18159
18160 # A C compiler.
18161 LTCC=$lt_LTCC
18162
18163 # A language-specific compiler.
18164 CC=$lt_compiler_CXX
18165
18166 # Is the compiler the GNU C compiler?
18167 with_gcc=$GCC_CXX
18168
18169 # An ERE matcher.
18170 EGREP=$lt_EGREP
18171
18172 # The linker used to build libraries.
18173 LD=$lt_LD_CXX
18174
18175 # Whether we need hard or soft links.
18176 LN_S=$lt_LN_S
18177
18178 # A BSD-compatible nm program.
18179 NM=$lt_NM
18180
18181 # A symbol stripping program
18182 STRIP=$lt_STRIP
18183
18184 # Used to examine libraries when file_magic_cmd begins "file"
18185 MAGIC_CMD=$MAGIC_CMD
18186
18187 # Used on cygwin: DLL creation program.
18188 DLLTOOL="$DLLTOOL"
18189
18190 # Used on cygwin: object dumper.
18191 OBJDUMP="$OBJDUMP"
18192
18193 # Used on cygwin: assembler.
18194 AS="$AS"
18195
18196 # The name of the directory that contains temporary libtool files.
18197 objdir=$objdir
18198
18199 # How to create reloadable object files.
18200 reload_flag=$lt_reload_flag
18201 reload_cmds=$lt_reload_cmds
18202
18203 # How to pass a linker flag through the compiler.
18204 wl=$lt_lt_prog_compiler_wl_CXX
18205
18206 # Object file suffix (normally "o").
18207 objext="$ac_objext"
18208
18209 # Old archive suffix (normally "a").
18210 libext="$libext"
18211
18212 # Shared library suffix (normally ".so").
18213 shrext_cmds='$shrext_cmds'
18214
18215 # Executable file suffix (normally "").
18216 exeext="$exeext"
18217
18218 # Additional compiler flags for building library objects.
18219 pic_flag=$lt_lt_prog_compiler_pic_CXX
18220 pic_mode=$pic_mode
18221
18222 # What is the maximum length of a command?
18223 max_cmd_len=$lt_cv_sys_max_cmd_len
18224
18225 # Does compiler simultaneously support -c and -o options?
18226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18227
18228 # Must we lock files when doing compilation ?
18229 need_locks=$lt_need_locks
18230
18231 # Do we need the lib prefix for modules?
18232 need_lib_prefix=$need_lib_prefix
18233
18234 # Do we need a version for libraries?
18235 need_version=$need_version
18236
18237 # Whether dlopen is supported.
18238 dlopen_support=$enable_dlopen
18239
18240 # Whether dlopen of programs is supported.
18241 dlopen_self=$enable_dlopen_self
18242
18243 # Whether dlopen of statically linked programs is supported.
18244 dlopen_self_static=$enable_dlopen_self_static
18245
18246 # Compiler flag to prevent dynamic linking.
18247 link_static_flag=$lt_lt_prog_compiler_static_CXX
18248
18249 # Compiler flag to turn off builtin functions.
18250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18251
18252 # Compiler flag to allow reflexive dlopens.
18253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18254
18255 # Compiler flag to generate shared objects directly from archives.
18256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18257
18258 # Compiler flag to generate thread-safe objects.
18259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18260
18261 # Library versioning type.
18262 version_type=$version_type
18263
18264 # Format of library name prefix.
18265 libname_spec=$lt_libname_spec
18266
18267 # List of archive names.  First name is the real one, the rest are links.
18268 # The last name is the one that the linker finds with -lNAME.
18269 library_names_spec=$lt_library_names_spec
18270
18271 # The coded name of the library, if different from the real name.
18272 soname_spec=$lt_soname_spec
18273
18274 # Commands used to build and install an old-style archive.
18275 RANLIB=$lt_RANLIB
18276 old_archive_cmds=$lt_old_archive_cmds_CXX
18277 old_postinstall_cmds=$lt_old_postinstall_cmds
18278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18279
18280 # Create an old-style archive from a shared archive.
18281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18282
18283 # Create a temporary old-style archive to link instead of a shared archive.
18284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18285
18286 # Commands used to build and install a shared archive.
18287 archive_cmds=$lt_archive_cmds_CXX
18288 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18289 postinstall_cmds=$lt_postinstall_cmds
18290 postuninstall_cmds=$lt_postuninstall_cmds
18291
18292 # Commands used to build a loadable module (assumed same as above if empty)
18293 module_cmds=$lt_module_cmds_CXX
18294 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18295
18296 # Commands to strip libraries.
18297 old_striplib=$lt_old_striplib
18298 striplib=$lt_striplib
18299
18300 # Dependencies to place before the objects being linked to create a
18301 # shared library.
18302 predep_objects=$lt_predep_objects_CXX
18303
18304 # Dependencies to place after the objects being linked to create a
18305 # shared library.
18306 postdep_objects=$lt_postdep_objects_CXX
18307
18308 # Dependencies to place before the objects being linked to create a
18309 # shared library.
18310 predeps=$lt_predeps_CXX
18311
18312 # Dependencies to place after the objects being linked to create a
18313 # shared library.
18314 postdeps=$lt_postdeps_CXX
18315
18316 # The library search path used internally by the compiler when linking
18317 # a shared library.
18318 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18319
18320 # Method to check whether dependent libraries are shared objects.
18321 deplibs_check_method=$lt_deplibs_check_method
18322
18323 # Command to use when deplibs_check_method == file_magic.
18324 file_magic_cmd=$lt_file_magic_cmd
18325
18326 # Flag that allows shared libraries with undefined symbols to be built.
18327 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18328
18329 # Flag that forces no undefined symbols.
18330 no_undefined_flag=$lt_no_undefined_flag_CXX
18331
18332 # Commands used to finish a libtool library installation in a directory.
18333 finish_cmds=$lt_finish_cmds
18334
18335 # Same as above, but a single script fragment to be evaled but not shown.
18336 finish_eval=$lt_finish_eval
18337
18338 # Take the output of nm and produce a listing of raw symbols and C names.
18339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18340
18341 # Transform the output of nm in a proper C declaration
18342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18343
18344 # Transform the output of nm in a C name address pair
18345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18346
18347 # This is the shared library runtime path variable.
18348 runpath_var=$runpath_var
18349
18350 # This is the shared library path variable.
18351 shlibpath_var=$shlibpath_var
18352
18353 # Is shlibpath searched before the hard-coded library search path?
18354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18355
18356 # How to hardcode a shared library path into an executable.
18357 hardcode_action=$hardcode_action_CXX
18358
18359 # Whether we should hardcode library paths into libraries.
18360 hardcode_into_libs=$hardcode_into_libs
18361
18362 # Flag to hardcode \$libdir into a binary during linking.
18363 # This must work even if \$libdir does not exist.
18364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18365
18366 # If ld is used when linking, flag to hardcode \$libdir into
18367 # a binary during linking. This must work even if \$libdir does
18368 # not exist.
18369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18370
18371 # Whether we need a single -rpath flag with a separated argument.
18372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18373
18374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18375 # resulting binary.
18376 hardcode_direct=$hardcode_direct_CXX
18377
18378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18379 # resulting binary.
18380 hardcode_minus_L=$hardcode_minus_L_CXX
18381
18382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18383 # the resulting binary.
18384 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18385
18386 # Set to yes if building a shared library automatically hardcodes DIR into the library
18387 # and all subsequent libraries and executables linked against it.
18388 hardcode_automatic=$hardcode_automatic_CXX
18389
18390 # Variables whose values should be saved in libtool wrapper scripts and
18391 # restored at relink time.
18392 variables_saved_for_relink="$variables_saved_for_relink"
18393
18394 # Whether libtool must link a program against all its dependency libraries.
18395 link_all_deplibs=$link_all_deplibs_CXX
18396
18397 # Compile-time system search path for libraries
18398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18399
18400 # Run-time system search path for libraries
18401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18402
18403 # Fix the shell variable \$srcfile for the compiler.
18404 fix_srcfile_path="$fix_srcfile_path_CXX"
18405
18406 # Set to yes if exported symbols are required.
18407 always_export_symbols=$always_export_symbols_CXX
18408
18409 # The commands to list exported symbols.
18410 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18411
18412 # The commands to extract the exported symbol list from a shared archive.
18413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18414
18415 # Symbols that should not be listed in the preloaded symbols.
18416 exclude_expsyms=$lt_exclude_expsyms_CXX
18417
18418 # Symbols that must always be exported.
18419 include_expsyms=$lt_include_expsyms_CXX
18420
18421 # ### END LIBTOOL TAG CONFIG: $tagname
18422
18423 __EOF__
18424
18425
18426 else
18427   # If there is no Makefile yet, we rely on a make rule to execute
18428   # `config.status --recheck' to rerun these tests and create the
18429   # libtool script then.
18430   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18431   if test -f "$ltmain_in"; then
18432     test -f Makefile && make "$ltmain"
18433   fi
18434 fi
18435
18436
18437 ac_ext=c
18438 ac_cpp='$CPP $CPPFLAGS'
18439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18442
18443 CC=$lt_save_CC
18444 LDCXX=$LD
18445 LD=$lt_save_LD
18446 GCC=$lt_save_GCC
18447 with_gnu_ldcxx=$with_gnu_ld
18448 with_gnu_ld=$lt_save_with_gnu_ld
18449 lt_cv_path_LDCXX=$lt_cv_path_LD
18450 lt_cv_path_LD=$lt_save_path_LD
18451 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18452 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18453
18454         else
18455           tagname=""
18456         fi
18457         ;;
18458
18459       F77)
18460         if test -n "$F77" && test "X$F77" != "Xno"; then
18461
18462 ac_ext=f
18463 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18464 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18466
18467
18468 archive_cmds_need_lc_F77=no
18469 allow_undefined_flag_F77=
18470 always_export_symbols_F77=no
18471 archive_expsym_cmds_F77=
18472 export_dynamic_flag_spec_F77=
18473 hardcode_direct_F77=no
18474 hardcode_libdir_flag_spec_F77=
18475 hardcode_libdir_flag_spec_ld_F77=
18476 hardcode_libdir_separator_F77=
18477 hardcode_minus_L_F77=no
18478 hardcode_automatic_F77=no
18479 module_cmds_F77=
18480 module_expsym_cmds_F77=
18481 link_all_deplibs_F77=unknown
18482 old_archive_cmds_F77=$old_archive_cmds
18483 no_undefined_flag_F77=
18484 whole_archive_flag_spec_F77=
18485 enable_shared_with_static_runtimes_F77=no
18486
18487 # Source file extension for f77 test sources.
18488 ac_ext=f
18489
18490 # Object file extension for compiled f77 test sources.
18491 objext=o
18492 objext_F77=$objext
18493
18494 # Code to be used in simple compile tests
18495 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18496
18497 # Code to be used in simple link tests
18498 lt_simple_link_test_code="      program t\n      end\n"
18499
18500 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18501
18502 # If no C compiler was specified, use CC.
18503 LTCC=${LTCC-"$CC"}
18504
18505 # Allow CC to be a program name with arguments.
18506 compiler=$CC
18507
18508
18509 # Allow CC to be a program name with arguments.
18510 lt_save_CC="$CC"
18511 CC=${F77-"f77"}
18512 compiler=$CC
18513 compiler_F77=$CC
18514 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18515
18516 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18517 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18518 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18519 echo "${ECHO_T}$can_build_shared" >&6
18520
18521 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18522 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18523 test "$can_build_shared" = "no" && enable_shared=no
18524
18525 # On AIX, shared libraries and static libraries use the same namespace, and
18526 # are all built from PIC.
18527 case "$host_os" in
18528 aix3*)
18529   test "$enable_shared" = yes && enable_static=no
18530   if test -n "$RANLIB"; then
18531     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18532     postinstall_cmds='$RANLIB $lib'
18533   fi
18534   ;;
18535 aix4* | aix5*)
18536   test "$enable_shared" = yes && enable_static=no
18537   ;;
18538 esac
18539 echo "$as_me:$LINENO: result: $enable_shared" >&5
18540 echo "${ECHO_T}$enable_shared" >&6
18541
18542 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18543 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18544 # Make sure either enable_shared or enable_static is yes.
18545 test "$enable_shared" = yes || enable_static=yes
18546 echo "$as_me:$LINENO: result: $enable_static" >&5
18547 echo "${ECHO_T}$enable_static" >&6
18548
18549 test "$ld_shlibs_F77" = no && can_build_shared=no
18550
18551 GCC_F77="$G77"
18552 LD_F77="$LD"
18553
18554 lt_prog_compiler_wl_F77=
18555 lt_prog_compiler_pic_F77=
18556 lt_prog_compiler_static_F77=
18557
18558 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18559 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18560
18561   if test "$GCC" = yes; then
18562     lt_prog_compiler_wl_F77='-Wl,'
18563     lt_prog_compiler_static_F77='-static'
18564
18565     case $host_os in
18566       aix*)
18567       # All AIX code is PIC.
18568       if test "$host_cpu" = ia64; then
18569         # AIX 5 now supports IA64 processor
18570         lt_prog_compiler_static_F77='-Bstatic'
18571       fi
18572       ;;
18573
18574     amigaos*)
18575       # FIXME: we need at least 68020 code to build shared libraries, but
18576       # adding the `-m68020' flag to GCC prevents building anything better,
18577       # like `-m68040'.
18578       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18579       ;;
18580
18581     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18582       # PIC is the default for these OSes.
18583       ;;
18584
18585     mingw* | pw32* | os2*)
18586       # This hack is so that the source file can tell whether it is being
18587       # built for inclusion in a dll (and should export symbols for example).
18588       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18589       ;;
18590
18591     darwin* | rhapsody*)
18592       # PIC is the default on this platform
18593       # Common symbols not allowed in MH_DYLIB files
18594       lt_prog_compiler_pic_F77='-fno-common'
18595       ;;
18596
18597     msdosdjgpp*)
18598       # Just because we use GCC doesn't mean we suddenly get shared libraries
18599       # on systems that don't support them.
18600       lt_prog_compiler_can_build_shared_F77=no
18601       enable_shared=no
18602       ;;
18603
18604     sysv4*MP*)
18605       if test -d /usr/nec; then
18606         lt_prog_compiler_pic_F77=-Kconform_pic
18607       fi
18608       ;;
18609
18610     hpux*)
18611       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18612       # not for PA HP-UX.
18613       case "$host_cpu" in
18614       hppa*64*|ia64*)
18615         # +Z the default
18616         ;;
18617       *)
18618         lt_prog_compiler_pic_F77='-fPIC'
18619         ;;
18620       esac
18621       ;;
18622
18623     *)
18624       lt_prog_compiler_pic_F77='-fPIC'
18625       ;;
18626     esac
18627   else
18628     # PORTME Check for flag to pass linker flags through the system compiler.
18629     case $host_os in
18630     aix*)
18631       lt_prog_compiler_wl_F77='-Wl,'
18632       if test "$host_cpu" = ia64; then
18633         # AIX 5 now supports IA64 processor
18634         lt_prog_compiler_static_F77='-Bstatic'
18635       else
18636         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18637       fi
18638       ;;
18639       darwin*)
18640         # PIC is the default on this platform
18641         # Common symbols not allowed in MH_DYLIB files
18642        case "$cc_basename" in
18643          xlc*)
18644          lt_prog_compiler_pic_F77='-qnocommon'
18645          lt_prog_compiler_wl_F77='-Wl,'
18646          ;;
18647        esac
18648        ;;
18649
18650     mingw* | pw32* | os2*)
18651       # This hack is so that the source file can tell whether it is being
18652       # built for inclusion in a dll (and should export symbols for example).
18653       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18654       ;;
18655
18656     hpux9* | hpux10* | hpux11*)
18657       lt_prog_compiler_wl_F77='-Wl,'
18658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18659       # not for PA HP-UX.
18660       case "$host_cpu" in
18661       hppa*64*|ia64*)
18662         # +Z the default
18663         ;;
18664       *)
18665         lt_prog_compiler_pic_F77='+Z'
18666         ;;
18667       esac
18668       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18669       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18670       ;;
18671
18672     irix5* | irix6* | nonstopux*)
18673       lt_prog_compiler_wl_F77='-Wl,'
18674       # PIC (with -KPIC) is the default.
18675       lt_prog_compiler_static_F77='-non_shared'
18676       ;;
18677
18678     newsos6)
18679       lt_prog_compiler_pic_F77='-KPIC'
18680       lt_prog_compiler_static_F77='-Bstatic'
18681       ;;
18682
18683     linux*)
18684       case $CC in
18685       icc* | ecc*)
18686         lt_prog_compiler_wl_F77='-Wl,'
18687         lt_prog_compiler_pic_F77='-KPIC'
18688         lt_prog_compiler_static_F77='-static'
18689         ;;
18690       ccc*)
18691         lt_prog_compiler_wl_F77='-Wl,'
18692         # All Alpha code is PIC.
18693         lt_prog_compiler_static_F77='-non_shared'
18694         ;;
18695       esac
18696       ;;
18697
18698     osf3* | osf4* | osf5*)
18699       lt_prog_compiler_wl_F77='-Wl,'
18700       # All OSF/1 code is PIC.
18701       lt_prog_compiler_static_F77='-non_shared'
18702       ;;
18703
18704     sco3.2v5*)
18705       lt_prog_compiler_pic_F77='-Kpic'
18706       lt_prog_compiler_static_F77='-dn'
18707       ;;
18708
18709     solaris*)
18710       lt_prog_compiler_wl_F77='-Wl,'
18711       lt_prog_compiler_pic_F77='-KPIC'
18712       lt_prog_compiler_static_F77='-Bstatic'
18713       ;;
18714
18715     sunos4*)
18716       lt_prog_compiler_wl_F77='-Qoption ld '
18717       lt_prog_compiler_pic_F77='-PIC'
18718       lt_prog_compiler_static_F77='-Bstatic'
18719       ;;
18720
18721     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18722       lt_prog_compiler_wl_F77='-Wl,'
18723       lt_prog_compiler_pic_F77='-KPIC'
18724       lt_prog_compiler_static_F77='-Bstatic'
18725       ;;
18726
18727     sysv4*MP*)
18728       if test -d /usr/nec ;then
18729         lt_prog_compiler_pic_F77='-Kconform_pic'
18730         lt_prog_compiler_static_F77='-Bstatic'
18731       fi
18732       ;;
18733
18734     uts4*)
18735       lt_prog_compiler_pic_F77='-pic'
18736       lt_prog_compiler_static_F77='-Bstatic'
18737       ;;
18738
18739     *)
18740       lt_prog_compiler_can_build_shared_F77=no
18741       ;;
18742     esac
18743   fi
18744
18745 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18746 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18747
18748 #
18749 # Check to make sure the PIC flag actually works.
18750 #
18751 if test -n "$lt_prog_compiler_pic_F77"; then
18752
18753 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18754 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18755 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   lt_prog_compiler_pic_works_F77=no
18759   ac_outfile=conftest.$ac_objext
18760    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18761    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18762    # Insert the option either (1) after the last *FLAGS variable, or
18763    # (2) before a word containing "conftest.", or (3) at the end.
18764    # Note that $ac_compile itself does not contain backslashes and begins
18765    # with a dollar sign (not a hyphen), so the echo should work correctly.
18766    # The option is referenced via a variable to avoid confusing sed.
18767    lt_compile=`echo "$ac_compile" | $SED \
18768    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18770    -e 's:$: $lt_compiler_flag:'`
18771    (eval echo "\"\$as_me:18771: $lt_compile\"" >&5)
18772    (eval "$lt_compile" 2>conftest.err)
18773    ac_status=$?
18774    cat conftest.err >&5
18775    echo "$as_me:18775: \$? = $ac_status" >&5
18776    if (exit $ac_status) && test -s "$ac_outfile"; then
18777      # The compiler can only warn and ignore the option if not recognized
18778      # So say no if there are warnings
18779      if test ! -s conftest.err; then
18780        lt_prog_compiler_pic_works_F77=yes
18781      fi
18782    fi
18783    $rm conftest*
18784
18785 fi
18786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18787 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18788
18789 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18790     case $lt_prog_compiler_pic_F77 in
18791      "" | " "*) ;;
18792      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18793      esac
18794 else
18795     lt_prog_compiler_pic_F77=
18796      lt_prog_compiler_can_build_shared_F77=no
18797 fi
18798
18799 fi
18800 case "$host_os" in
18801   # For platforms which do not support PIC, -DPIC is meaningless:
18802   *djgpp*)
18803     lt_prog_compiler_pic_F77=
18804     ;;
18805   *)
18806     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18807     ;;
18808 esac
18809
18810 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18812 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 else
18815   lt_cv_prog_compiler_c_o_F77=no
18816    $rm -r conftest 2>/dev/null
18817    mkdir conftest
18818    cd conftest
18819    mkdir out
18820    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18821
18822    lt_compiler_flag="-o out/conftest2.$ac_objext"
18823    # Insert the option either (1) after the last *FLAGS variable, or
18824    # (2) before a word containing "conftest.", or (3) at the end.
18825    # Note that $ac_compile itself does not contain backslashes and begins
18826    # with a dollar sign (not a hyphen), so the echo should work correctly.
18827    lt_compile=`echo "$ac_compile" | $SED \
18828    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18830    -e 's:$: $lt_compiler_flag:'`
18831    (eval echo "\"\$as_me:18831: $lt_compile\"" >&5)
18832    (eval "$lt_compile" 2>out/conftest.err)
18833    ac_status=$?
18834    cat out/conftest.err >&5
18835    echo "$as_me:18835: \$? = $ac_status" >&5
18836    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18837    then
18838      # The compiler can only warn and ignore the option if not recognized
18839      # So say no if there are warnings
18840      if test ! -s out/conftest.err; then
18841        lt_cv_prog_compiler_c_o_F77=yes
18842      fi
18843    fi
18844    chmod u+w .
18845    $rm conftest*
18846    # SGI C++ compiler will create directory out/ii_files/ for
18847    # template instantiation
18848    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18849    $rm out/* && rmdir out
18850    cd ..
18851    rmdir conftest
18852    $rm conftest*
18853
18854 fi
18855 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18857
18858
18859 hard_links="nottested"
18860 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18861   # do not overwrite the value of need_locks provided by the user
18862   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18863 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18864   hard_links=yes
18865   $rm conftest*
18866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18867   touch conftest.a
18868   ln conftest.a conftest.b 2>&5 || hard_links=no
18869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18870   echo "$as_me:$LINENO: result: $hard_links" >&5
18871 echo "${ECHO_T}$hard_links" >&6
18872   if test "$hard_links" = no; then
18873     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18874 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18875     need_locks=warn
18876   fi
18877 else
18878   need_locks=no
18879 fi
18880
18881 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18882 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18883
18884   runpath_var=
18885   allow_undefined_flag_F77=
18886   enable_shared_with_static_runtimes_F77=no
18887   archive_cmds_F77=
18888   archive_expsym_cmds_F77=
18889   old_archive_From_new_cmds_F77=
18890   old_archive_from_expsyms_cmds_F77=
18891   export_dynamic_flag_spec_F77=
18892   whole_archive_flag_spec_F77=
18893   thread_safe_flag_spec_F77=
18894   hardcode_libdir_flag_spec_F77=
18895   hardcode_libdir_flag_spec_ld_F77=
18896   hardcode_libdir_separator_F77=
18897   hardcode_direct_F77=no
18898   hardcode_minus_L_F77=no
18899   hardcode_shlibpath_var_F77=unsupported
18900   link_all_deplibs_F77=unknown
18901   hardcode_automatic_F77=no
18902   module_cmds_F77=
18903   module_expsym_cmds_F77=
18904   always_export_symbols_F77=no
18905   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18906   # include_expsyms should be a list of space-separated symbols to be *always*
18907   # included in the symbol list
18908   include_expsyms_F77=
18909   # exclude_expsyms can be an extended regexp of symbols to exclude
18910   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18911   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18912   # as well as any symbol that contains `d'.
18913   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18914   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18915   # platforms (ab)use it in PIC code, but their linkers get confused if
18916   # the symbol is explicitly referenced.  Since portable code cannot
18917   # rely on this symbol name, it's probably fine to never include it in
18918   # preloaded symbol tables.
18919   extract_expsyms_cmds=
18920
18921   case $host_os in
18922   cygwin* | mingw* | pw32*)
18923     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18924     # When not using gcc, we currently assume that we are using
18925     # Microsoft Visual C++.
18926     if test "$GCC" != yes; then
18927       with_gnu_ld=no
18928     fi
18929     ;;
18930   openbsd*)
18931     with_gnu_ld=no
18932     ;;
18933   esac
18934
18935   ld_shlibs_F77=yes
18936   if test "$with_gnu_ld" = yes; then
18937     # If archive_cmds runs LD, not CC, wlarc should be empty
18938     wlarc='${wl}'
18939
18940     # See if GNU ld supports shared libraries.
18941     case $host_os in
18942     aix3* | aix4* | aix5*)
18943       # On AIX/PPC, the GNU linker is very broken
18944       if test "$host_cpu" != ia64; then
18945         ld_shlibs_F77=no
18946         cat <<EOF 1>&2
18947
18948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18949 *** to be unable to reliably create shared libraries on AIX.
18950 *** Therefore, libtool is disabling shared libraries support.  If you
18951 *** really care for shared libraries, you may want to modify your PATH
18952 *** so that a non-GNU linker is found, and then restart.
18953
18954 EOF
18955       fi
18956       ;;
18957
18958     amigaos*)
18959       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)'
18960       hardcode_libdir_flag_spec_F77='-L$libdir'
18961       hardcode_minus_L_F77=yes
18962
18963       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18964       # that the semantics of dynamic libraries on AmigaOS, at least up
18965       # to version 4, is to share data among multiple programs linked
18966       # with the same dynamic library.  Since this doesn't match the
18967       # behavior of shared libraries on other platforms, we can't use
18968       # them.
18969       ld_shlibs_F77=no
18970       ;;
18971
18972     beos*)
18973       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18974         allow_undefined_flag_F77=unsupported
18975         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18976         # support --undefined.  This deserves some investigation.  FIXME
18977         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18978       else
18979         ld_shlibs_F77=no
18980       fi
18981       ;;
18982
18983     cygwin* | mingw* | pw32*)
18984       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18985       # as there is no search path for DLLs.
18986       hardcode_libdir_flag_spec_F77='-L$libdir'
18987       allow_undefined_flag_F77=unsupported
18988       always_export_symbols_F77=no
18989       enable_shared_with_static_runtimes_F77=yes
18990       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18991
18992       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18993         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18994         # If the export-symbols file already is a .def file (1st line
18995         # is EXPORTS), use it as is; otherwise, prepend...
18996         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18997           cp $export_symbols $output_objdir/$soname.def;
18998         else
18999           echo EXPORTS > $output_objdir/$soname.def;
19000           cat $export_symbols >> $output_objdir/$soname.def;
19001         fi~
19002         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19003       else
19004         ld_shlibs=no
19005       fi
19006       ;;
19007
19008     netbsd*)
19009       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19010         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19011         wlarc=
19012       else
19013         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19014         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19015       fi
19016       ;;
19017
19018     solaris* | sysv5*)
19019       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19020         ld_shlibs_F77=no
19021         cat <<EOF 1>&2
19022
19023 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19024 *** create shared libraries on Solaris systems.  Therefore, libtool
19025 *** is disabling shared libraries support.  We urge you to upgrade GNU
19026 *** binutils to release 2.9.1 or newer.  Another option is to modify
19027 *** your PATH or compiler configuration so that the native linker is
19028 *** used, and then restart.
19029
19030 EOF
19031       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19032         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19033         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19034       else
19035         ld_shlibs_F77=no
19036       fi
19037       ;;
19038
19039     sunos4*)
19040       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19041       wlarc=
19042       hardcode_direct_F77=yes
19043       hardcode_shlibpath_var_F77=no
19044       ;;
19045
19046   linux*)
19047     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19048         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19049         archive_cmds_F77="$tmp_archive_cmds"
19050       supports_anon_versioning=no
19051       case `$LD -v 2>/dev/null` in
19052         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19053         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19054         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19055         *\ 2.11.*) ;; # other 2.11 versions
19056         *) supports_anon_versioning=yes ;;
19057       esac
19058       if test $supports_anon_versioning = yes; then
19059         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19061 $echo "local: *; };" >> $output_objdir/$libname.ver~
19062         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19063       else
19064         archive_expsym_cmds_F77="$tmp_archive_cmds"
19065       fi
19066     else
19067       ld_shlibs_F77=no
19068     fi
19069     ;;
19070
19071     *)
19072       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19073         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19074         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19075       else
19076         ld_shlibs_F77=no
19077       fi
19078       ;;
19079     esac
19080
19081     if test "$ld_shlibs_F77" = yes; then
19082       runpath_var=LD_RUN_PATH
19083       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19084       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19085       # ancient GNU ld didn't support --whole-archive et. al.
19086       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19087         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19088       else
19089         whole_archive_flag_spec_F77=
19090       fi
19091     fi
19092   else
19093     # PORTME fill in a description of your system's linker (not GNU ld)
19094     case $host_os in
19095     aix3*)
19096       allow_undefined_flag_F77=unsupported
19097       always_export_symbols_F77=yes
19098       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'
19099       # Note: this linker hardcodes the directories in LIBPATH if there
19100       # are no directories specified by -L.
19101       hardcode_minus_L_F77=yes
19102       if test "$GCC" = yes && test -z "$link_static_flag"; then
19103         # Neither direct hardcoding nor static linking is supported with a
19104         # broken collect2.
19105         hardcode_direct_F77=unsupported
19106       fi
19107       ;;
19108
19109     aix4* | aix5*)
19110       if test "$host_cpu" = ia64; then
19111         # On IA64, the linker does run time linking by default, so we don't
19112         # have to do anything special.
19113         aix_use_runtimelinking=no
19114         exp_sym_flag='-Bexport'
19115         no_entry_flag=""
19116       else
19117         # If we're using GNU nm, then we don't want the "-C" option.
19118         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19119         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19120           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'
19121         else
19122           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'
19123         fi
19124         aix_use_runtimelinking=no
19125
19126         # Test if we are trying to use run time linking or normal
19127         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19128         # need to do runtime linking.
19129         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19130           for ld_flag in $LDFLAGS; do
19131           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19132             aix_use_runtimelinking=yes
19133             break
19134           fi
19135           done
19136         esac
19137
19138         exp_sym_flag='-bexport'
19139         no_entry_flag='-bnoentry'
19140       fi
19141
19142       # When large executables or shared objects are built, AIX ld can
19143       # have problems creating the table of contents.  If linking a library
19144       # or program results in "error TOC overflow" add -mminimal-toc to
19145       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19146       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19147
19148       archive_cmds_F77=''
19149       hardcode_direct_F77=yes
19150       hardcode_libdir_separator_F77=':'
19151       link_all_deplibs_F77=yes
19152
19153       if test "$GCC" = yes; then
19154         case $host_os in aix4.012|aix4.012.*)
19155         # We only want to do this on AIX 4.2 and lower, the check
19156         # below for broken collect2 doesn't work under 4.3+
19157           collect2name=`${CC} -print-prog-name=collect2`
19158           if test -f "$collect2name" && \
19159            strings "$collect2name" | grep resolve_lib_name >/dev/null
19160           then
19161           # We have reworked collect2
19162           hardcode_direct_F77=yes
19163           else
19164           # We have old collect2
19165           hardcode_direct_F77=unsupported
19166           # It fails to find uninstalled libraries when the uninstalled
19167           # path is not listed in the libpath.  Setting hardcode_minus_L
19168           # to unsupported forces relinking
19169           hardcode_minus_L_F77=yes
19170           hardcode_libdir_flag_spec_F77='-L$libdir'
19171           hardcode_libdir_separator_F77=
19172           fi
19173         esac
19174         shared_flag='-shared'
19175       else
19176         # not using gcc
19177         if test "$host_cpu" = ia64; then
19178         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19179         # chokes on -Wl,-G. The following line is correct:
19180           shared_flag='-G'
19181         else
19182         if test "$aix_use_runtimelinking" = yes; then
19183             shared_flag='${wl}-G'
19184           else
19185             shared_flag='${wl}-bM:SRE'
19186         fi
19187         fi
19188       fi
19189
19190       # It seems that -bexpall does not export symbols beginning with
19191       # underscore (_), so it is better to generate a list of symbols to export.
19192       always_export_symbols_F77=yes
19193       if test "$aix_use_runtimelinking" = yes; then
19194         # Warning - without using the other runtime loading flags (-brtl),
19195         # -berok will link without error, but may produce a broken library.
19196         allow_undefined_flag_F77='-berok'
19197        # Determine the default libpath from the value encoded in an empty executable.
19198        cat >conftest.$ac_ext <<_ACEOF
19199       program main
19200
19201       end
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205   (eval $ac_link) 2>conftest.er1
19206   ac_status=$?
19207   grep -v '^ *+' conftest.er1 >conftest.err
19208   rm -f conftest.er1
19209   cat conftest.err >&5
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); } &&
19212          { ac_try='test -z "$ac_f77_werror_flag"
19213                          || test ! -s conftest.err'
19214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215   (eval $ac_try) 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; } &&
19219          { ac_try='test -s conftest$ac_exeext'
19220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221   (eval $ac_try) 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; }; then
19225
19226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19227 }'`
19228 # Check for a 64-bit object if we didn't find anything.
19229 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; }
19230 }'`; fi
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235 fi
19236 rm -f conftest.err conftest.$ac_objext \
19237       conftest$ac_exeext conftest.$ac_ext
19238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19239
19240        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19241         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"
19242        else
19243         if test "$host_cpu" = ia64; then
19244           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19245           allow_undefined_flag_F77="-z nodefs"
19246           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"
19247         else
19248          # Determine the default libpath from the value encoded in an empty executable.
19249          cat >conftest.$ac_ext <<_ACEOF
19250       program main
19251
19252       end
19253 _ACEOF
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256   (eval $ac_link) 2>conftest.er1
19257   ac_status=$?
19258   grep -v '^ *+' conftest.er1 >conftest.err
19259   rm -f conftest.er1
19260   cat conftest.err >&5
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); } &&
19263          { ac_try='test -z "$ac_f77_werror_flag"
19264                          || test ! -s conftest.err'
19265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266   (eval $ac_try) 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; } &&
19270          { ac_try='test -s conftest$ac_exeext'
19271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272   (eval $ac_try) 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; }; then
19276
19277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19278 }'`
19279 # Check for a 64-bit object if we didn't find anything.
19280 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; }
19281 }'`; fi
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 fi
19287 rm -f conftest.err conftest.$ac_objext \
19288       conftest$ac_exeext conftest.$ac_ext
19289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19290
19291          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19292           # Warning - without using the other run time loading flags,
19293           # -berok will link without error, but may produce a broken library.
19294           no_undefined_flag_F77=' ${wl}-bernotok'
19295           allow_undefined_flag_F77=' ${wl}-berok'
19296           # -bexpall does not export symbols beginning with underscore (_)
19297           always_export_symbols_F77=yes
19298           # Exported symbols can be pulled into shared objects from archives
19299           whole_archive_flag_spec_F77=' '
19300           archive_cmds_need_lc_F77=yes
19301           # This is similar to how AIX traditionally builds it's shared libraries.
19302           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'
19303         fi
19304       fi
19305       ;;
19306
19307     amigaos*)
19308       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)'
19309       hardcode_libdir_flag_spec_F77='-L$libdir'
19310       hardcode_minus_L_F77=yes
19311       # see comment about different semantics on the GNU ld section
19312       ld_shlibs_F77=no
19313       ;;
19314
19315     bsdi[45]*)
19316       export_dynamic_flag_spec_F77=-rdynamic
19317       ;;
19318
19319     cygwin* | mingw* | pw32*)
19320       # When not using gcc, we currently assume that we are using
19321       # Microsoft Visual C++.
19322       # hardcode_libdir_flag_spec is actually meaningless, as there is
19323       # no search path for DLLs.
19324       hardcode_libdir_flag_spec_F77=' '
19325       allow_undefined_flag_F77=unsupported
19326       # Tell ltmain to make .lib files, not .a files.
19327       libext=lib
19328       # Tell ltmain to make .dll files, not .so files.
19329       shrext_cmds=".dll"
19330       # FIXME: Setting linknames here is a bad hack.
19331       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19332       # The linker will automatically build a .lib file if we build a DLL.
19333       old_archive_From_new_cmds_F77='true'
19334       # FIXME: Should let the user specify the lib program.
19335       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19336       fix_srcfile_path='`cygpath -w "$srcfile"`'
19337       enable_shared_with_static_runtimes_F77=yes
19338       ;;
19339
19340     darwin* | rhapsody*)
19341       case "$host_os" in
19342         rhapsody* | darwin1.[012])
19343          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19344          ;;
19345        *) # Darwin 1.3 on
19346          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19347            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19348          else
19349            case ${MACOSX_DEPLOYMENT_TARGET} in
19350              10.[012])
19351                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19352                ;;
19353              10.*)
19354                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19355                ;;
19356            esac
19357          fi
19358          ;;
19359       esac
19360       archive_cmds_need_lc_F77=no
19361       hardcode_direct_F77=no
19362       hardcode_automatic_F77=yes
19363       hardcode_shlibpath_var_F77=unsupported
19364       whole_archive_flag_spec_F77=''
19365       link_all_deplibs_F77=yes
19366     if test "$GCC" = yes ; then
19367         output_verbose_link_cmd='echo'
19368         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19369       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19370       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19371       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}'
19372       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}'
19373     else
19374       case "$cc_basename" in
19375         xlc*)
19376          output_verbose_link_cmd='echo'
19377          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19378          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19379           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19380          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}'
19381           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}'
19382           ;;
19383        *)
19384          ld_shlibs_F77=no
19385           ;;
19386       esac
19387     fi
19388       ;;
19389
19390     dgux*)
19391       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19392       hardcode_libdir_flag_spec_F77='-L$libdir'
19393       hardcode_shlibpath_var_F77=no
19394       ;;
19395
19396     freebsd1*)
19397       ld_shlibs_F77=no
19398       ;;
19399
19400     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19401     # support.  Future versions do this automatically, but an explicit c++rt0.o
19402     # does not break anything, and helps significantly (at the cost of a little
19403     # extra space).
19404     freebsd2.2*)
19405       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19406       hardcode_libdir_flag_spec_F77='-R$libdir'
19407       hardcode_direct_F77=yes
19408       hardcode_shlibpath_var_F77=no
19409       ;;
19410
19411     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19412     freebsd2*)
19413       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19414       hardcode_direct_F77=yes
19415       hardcode_minus_L_F77=yes
19416       hardcode_shlibpath_var_F77=no
19417       ;;
19418
19419     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19420     freebsd* | kfreebsd*-gnu)
19421       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19422       hardcode_libdir_flag_spec_F77='-R$libdir'
19423       hardcode_direct_F77=yes
19424       hardcode_shlibpath_var_F77=no
19425       ;;
19426
19427     hpux9*)
19428       if test "$GCC" = yes; then
19429         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'
19430       else
19431         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'
19432       fi
19433       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19434       hardcode_libdir_separator_F77=:
19435       hardcode_direct_F77=yes
19436
19437       # hardcode_minus_L: Not really in the search PATH,
19438       # but as the default location of the library.
19439       hardcode_minus_L_F77=yes
19440       export_dynamic_flag_spec_F77='${wl}-E'
19441       ;;
19442
19443     hpux10* | hpux11*)
19444       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19445         case "$host_cpu" in
19446         hppa*64*|ia64*)
19447           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19448           ;;
19449         *)
19450           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19451           ;;
19452         esac
19453       else
19454         case "$host_cpu" in
19455         hppa*64*|ia64*)
19456           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19457           ;;
19458         *)
19459           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19460           ;;
19461         esac
19462       fi
19463       if test "$with_gnu_ld" = no; then
19464         case "$host_cpu" in
19465         hppa*64*)
19466           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19467           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19468           hardcode_libdir_separator_F77=:
19469           hardcode_direct_F77=no
19470           hardcode_shlibpath_var_F77=no
19471           ;;
19472         ia64*)
19473           hardcode_libdir_flag_spec_F77='-L$libdir'
19474           hardcode_direct_F77=no
19475           hardcode_shlibpath_var_F77=no
19476
19477           # hardcode_minus_L: Not really in the search PATH,
19478           # but as the default location of the library.
19479           hardcode_minus_L_F77=yes
19480           ;;
19481         *)
19482           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19483           hardcode_libdir_separator_F77=:
19484           hardcode_direct_F77=yes
19485           export_dynamic_flag_spec_F77='${wl}-E'
19486
19487           # hardcode_minus_L: Not really in the search PATH,
19488           # but as the default location of the library.
19489           hardcode_minus_L_F77=yes
19490           ;;
19491         esac
19492       fi
19493       ;;
19494
19495     irix5* | irix6* | nonstopux*)
19496       if test "$GCC" = yes; then
19497         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'
19498       else
19499         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'
19500         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19501       fi
19502       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19503       hardcode_libdir_separator_F77=:
19504       link_all_deplibs_F77=yes
19505       ;;
19506
19507     netbsd*)
19508       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19509         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19510       else
19511         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19512       fi
19513       hardcode_libdir_flag_spec_F77='-R$libdir'
19514       hardcode_direct_F77=yes
19515       hardcode_shlibpath_var_F77=no
19516       ;;
19517
19518     newsos6)
19519       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19520       hardcode_direct_F77=yes
19521       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19522       hardcode_libdir_separator_F77=:
19523       hardcode_shlibpath_var_F77=no
19524       ;;
19525
19526     openbsd*)
19527       hardcode_direct_F77=yes
19528       hardcode_shlibpath_var_F77=no
19529       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19530         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19531         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19532         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19533         export_dynamic_flag_spec_F77='${wl}-E'
19534       else
19535        case $host_os in
19536          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19537            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19538            hardcode_libdir_flag_spec_F77='-R$libdir'
19539            ;;
19540          *)
19541            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19542            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19543            ;;
19544        esac
19545       fi
19546       ;;
19547
19548     os2*)
19549       hardcode_libdir_flag_spec_F77='-L$libdir'
19550       hardcode_minus_L_F77=yes
19551       allow_undefined_flag_F77=unsupported
19552       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'
19553       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19554       ;;
19555
19556     osf3*)
19557       if test "$GCC" = yes; then
19558         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19559         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'
19560       else
19561         allow_undefined_flag_F77=' -expect_unresolved \*'
19562         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'
19563       fi
19564       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19565       hardcode_libdir_separator_F77=:
19566       ;;
19567
19568     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19569       if test "$GCC" = yes; then
19570         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19571         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'
19572         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19573       else
19574         allow_undefined_flag_F77=' -expect_unresolved \*'
19575         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'
19576         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~
19577         $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'
19578
19579         # Both c and cxx compiler support -rpath directly
19580         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19581       fi
19582       hardcode_libdir_separator_F77=:
19583       ;;
19584
19585     sco3.2v5*)
19586       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19587       hardcode_shlibpath_var_F77=no
19588       export_dynamic_flag_spec_F77='${wl}-Bexport'
19589       runpath_var=LD_RUN_PATH
19590       hardcode_runpath_var=yes
19591       ;;
19592
19593     solaris*)
19594       no_undefined_flag_F77=' -z text'
19595       if test "$GCC" = yes; then
19596         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19597         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19599       else
19600         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19601         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19602         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19603       fi
19604       hardcode_libdir_flag_spec_F77='-R$libdir'
19605       hardcode_shlibpath_var_F77=no
19606       case $host_os in
19607       solaris2.[0-5] | solaris2.[0-5].*) ;;
19608       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19609         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19610       esac
19611       link_all_deplibs_F77=yes
19612       ;;
19613
19614     sunos4*)
19615       if test "x$host_vendor" = xsequent; then
19616         # Use $CC to link under sequent, because it throws in some extra .o
19617         # files that make .init and .fini sections work.
19618         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19619       else
19620         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19621       fi
19622       hardcode_libdir_flag_spec_F77='-L$libdir'
19623       hardcode_direct_F77=yes
19624       hardcode_minus_L_F77=yes
19625       hardcode_shlibpath_var_F77=no
19626       ;;
19627
19628     sysv4)
19629       case $host_vendor in
19630         sni)
19631           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19632           hardcode_direct_F77=yes # is this really true???
19633         ;;
19634         siemens)
19635           ## LD is ld it makes a PLAMLIB
19636           ## CC just makes a GrossModule.
19637           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19638           reload_cmds_F77='$CC -r -o $output$reload_objs'
19639           hardcode_direct_F77=no
19640         ;;
19641         motorola)
19642           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19643           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19644         ;;
19645       esac
19646       runpath_var='LD_RUN_PATH'
19647       hardcode_shlibpath_var_F77=no
19648       ;;
19649
19650     sysv4.3*)
19651       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652       hardcode_shlibpath_var_F77=no
19653       export_dynamic_flag_spec_F77='-Bexport'
19654       ;;
19655
19656     sysv4*MP*)
19657       if test -d /usr/nec; then
19658         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19659         hardcode_shlibpath_var_F77=no
19660         runpath_var=LD_RUN_PATH
19661         hardcode_runpath_var=yes
19662         ld_shlibs_F77=yes
19663       fi
19664       ;;
19665
19666     sysv4.2uw2*)
19667       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19668       hardcode_direct_F77=yes
19669       hardcode_minus_L_F77=no
19670       hardcode_shlibpath_var_F77=no
19671       hardcode_runpath_var=yes
19672       runpath_var=LD_RUN_PATH
19673       ;;
19674
19675    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19676       no_undefined_flag_F77='${wl}-z ${wl}text'
19677       if test "$GCC" = yes; then
19678         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19679       else
19680         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681       fi
19682       runpath_var='LD_RUN_PATH'
19683       hardcode_shlibpath_var_F77=no
19684       ;;
19685
19686     sysv5*)
19687       no_undefined_flag_F77=' -z text'
19688       # $CC -shared without GNU ld will not create a library from C++
19689       # object files and a static libstdc++, better avoid it by now
19690       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19691       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19692                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19693       hardcode_libdir_flag_spec_F77=
19694       hardcode_shlibpath_var_F77=no
19695       runpath_var='LD_RUN_PATH'
19696       ;;
19697
19698     uts4*)
19699       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19700       hardcode_libdir_flag_spec_F77='-L$libdir'
19701       hardcode_shlibpath_var_F77=no
19702       ;;
19703
19704     *)
19705       ld_shlibs_F77=no
19706       ;;
19707     esac
19708   fi
19709
19710 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19711 echo "${ECHO_T}$ld_shlibs_F77" >&6
19712 test "$ld_shlibs_F77" = no && can_build_shared=no
19713
19714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19715 if test "$GCC" = yes; then
19716   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19717 fi
19718
19719 #
19720 # Do we need to explicitly link libc?
19721 #
19722 case "x$archive_cmds_need_lc_F77" in
19723 x|xyes)
19724   # Assume -lc should be added
19725   archive_cmds_need_lc_F77=yes
19726
19727   if test "$enable_shared" = yes && test "$GCC" = yes; then
19728     case $archive_cmds_F77 in
19729     *'~'*)
19730       # FIXME: we may have to deal with multi-command sequences.
19731       ;;
19732     '$CC '*)
19733       # Test whether the compiler implicitly links with -lc since on some
19734       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19735       # to ld, don't add -lc before -lgcc.
19736       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19738       $rm conftest*
19739       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19740
19741       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742   (eval $ac_compile) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } 2>conftest.err; then
19746         soname=conftest
19747         lib=conftest
19748         libobjs=conftest.$ac_objext
19749         deplibs=
19750         wl=$lt_prog_compiler_wl_F77
19751         compiler_flags=-v
19752         linker_flags=-v
19753         verstring=
19754         output_objdir=.
19755         libname=conftest
19756         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19757         allow_undefined_flag_F77=
19758         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19759   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }
19763         then
19764           archive_cmds_need_lc_F77=no
19765         else
19766           archive_cmds_need_lc_F77=yes
19767         fi
19768         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19769       else
19770         cat conftest.err 1>&5
19771       fi
19772       $rm conftest*
19773       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19774 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19775       ;;
19776     esac
19777   fi
19778   ;;
19779 esac
19780
19781 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19783 library_names_spec=
19784 libname_spec='lib$name'
19785 soname_spec=
19786 shrext_cmds=".so"
19787 postinstall_cmds=
19788 postuninstall_cmds=
19789 finish_cmds=
19790 finish_eval=
19791 shlibpath_var=
19792 shlibpath_overrides_runpath=unknown
19793 version_type=none
19794 dynamic_linker="$host_os ld.so"
19795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19796 if test "$GCC" = yes; then
19797   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19798   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19799     # if the path contains ";" then we assume it to be the separator
19800     # otherwise default to the standard path separator (i.e. ":") - it is
19801     # assumed that no part of a normal pathname contains ";" but that should
19802     # okay in the real world where ";" in dirpaths is itself problematic.
19803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19804   else
19805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19806   fi
19807 else
19808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19809 fi
19810 need_lib_prefix=unknown
19811 hardcode_into_libs=no
19812
19813 # when you set need_version to no, make sure it does not cause -set_version
19814 # flags to be left without arguments
19815 need_version=unknown
19816
19817 case $host_os in
19818 aix3*)
19819   version_type=linux
19820   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19821   shlibpath_var=LIBPATH
19822
19823   # AIX 3 has no versioning support, so we append a major version to the name.
19824   soname_spec='${libname}${release}${shared_ext}$major'
19825   ;;
19826
19827 aix4* | aix5*)
19828   version_type=linux
19829   need_lib_prefix=no
19830   need_version=no
19831   hardcode_into_libs=yes
19832   if test "$host_cpu" = ia64; then
19833     # AIX 5 supports IA64
19834     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19835     shlibpath_var=LD_LIBRARY_PATH
19836   else
19837     # With GCC up to 2.95.x, collect2 would create an import file
19838     # for dependence libraries.  The import file would start with
19839     # the line `#! .'.  This would cause the generated library to
19840     # depend on `.', always an invalid library.  This was fixed in
19841     # development snapshots of GCC prior to 3.0.
19842     case $host_os in
19843       aix4 | aix4.[01] | aix4.[01].*)
19844       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19845            echo ' yes '
19846            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19847         :
19848       else
19849         can_build_shared=no
19850       fi
19851       ;;
19852     esac
19853     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19854     # soname into executable. Probably we can add versioning support to
19855     # collect2, so additional links can be useful in future.
19856     if test "$aix_use_runtimelinking" = yes; then
19857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19858       # instead of lib<name>.a to let people know that these are not
19859       # typical AIX shared libraries.
19860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19861     else
19862       # We preserve .a as extension for shared libraries through AIX4.2
19863       # and later when we are not doing run time linking.
19864       library_names_spec='${libname}${release}.a $libname.a'
19865       soname_spec='${libname}${release}${shared_ext}$major'
19866     fi
19867     shlibpath_var=LIBPATH
19868   fi
19869   ;;
19870
19871 amigaos*)
19872   library_names_spec='$libname.ixlibrary $libname.a'
19873   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19874   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'
19875   ;;
19876
19877 beos*)
19878   library_names_spec='${libname}${shared_ext}'
19879   dynamic_linker="$host_os ld.so"
19880   shlibpath_var=LIBRARY_PATH
19881   ;;
19882
19883 bsdi[45]*)
19884   version_type=linux
19885   need_version=no
19886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19887   soname_spec='${libname}${release}${shared_ext}$major'
19888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19889   shlibpath_var=LD_LIBRARY_PATH
19890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19892   # the default ld.so.conf also contains /usr/contrib/lib and
19893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19894   # libtool to hard-code these into programs
19895   ;;
19896
19897 cygwin* | mingw* | pw32*)
19898   version_type=windows
19899   shrext_cmds=".dll"
19900   need_version=no
19901   need_lib_prefix=no
19902
19903   case $GCC,$host_os in
19904   yes,cygwin* | yes,mingw* | yes,pw32*)
19905     library_names_spec='$libname.dll.a'
19906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19907     postinstall_cmds='base_file=`basename \${file}`~
19908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19909       dldir=$destdir/`dirname \$dlpath`~
19910       test -d \$dldir || mkdir -p \$dldir~
19911       $install_prog $dir/$dlname \$dldir/$dlname'
19912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19913       dlpath=$dir/\$dldll~
19914        $rm \$dlpath'
19915     shlibpath_overrides_runpath=yes
19916
19917     case $host_os in
19918     cygwin*)
19919       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19920       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19921       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19922       ;;
19923     mingw*)
19924       # MinGW DLLs use traditional 'lib' prefix
19925       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19926       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19927       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19928         # It is most probably a Windows format PATH printed by
19929         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19930         # path with ; separators, and with drive letters. We can handle the
19931         # drive letters (cygwin fileutils understands them), so leave them,
19932         # especially as we might pass files found there to a mingw objdump,
19933         # which wouldn't understand a cygwinified path. Ahh.
19934         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19935       else
19936         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19937       fi
19938       ;;
19939     pw32*)
19940       # pw32 DLLs use 'pw' prefix rather than 'lib'
19941       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19942       ;;
19943     esac
19944     ;;
19945
19946   *)
19947     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19948     ;;
19949   esac
19950   dynamic_linker='Win32 ld.exe'
19951   # FIXME: first we should search . and the directory the executable is in
19952   shlibpath_var=PATH
19953   ;;
19954
19955 darwin* | rhapsody*)
19956   dynamic_linker="$host_os dyld"
19957   version_type=darwin
19958   need_lib_prefix=no
19959   need_version=no
19960   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19961   soname_spec='${libname}${release}${major}$shared_ext'
19962   shlibpath_overrides_runpath=yes
19963   shlibpath_var=DYLD_LIBRARY_PATH
19964   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19965   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19966   if test "$GCC" = yes; then
19967     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"`
19968   else
19969     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19970   fi
19971   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19972   ;;
19973
19974 dgux*)
19975   version_type=linux
19976   need_lib_prefix=no
19977   need_version=no
19978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19979   soname_spec='${libname}${release}${shared_ext}$major'
19980   shlibpath_var=LD_LIBRARY_PATH
19981   ;;
19982
19983 freebsd1*)
19984   dynamic_linker=no
19985   ;;
19986
19987 kfreebsd*-gnu)
19988   version_type=linux
19989   need_lib_prefix=no
19990   need_version=no
19991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19992   soname_spec='${libname}${release}${shared_ext}$major'
19993   shlibpath_var=LD_LIBRARY_PATH
19994   shlibpath_overrides_runpath=no
19995   hardcode_into_libs=yes
19996   dynamic_linker='GNU ld.so'
19997   ;;
19998
19999 freebsd*)
20000   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20001   version_type=freebsd-$objformat
20002   case $version_type in
20003     freebsd-elf*)
20004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20005       need_version=no
20006       need_lib_prefix=no
20007       ;;
20008     freebsd-*)
20009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20010       need_version=yes
20011       ;;
20012   esac
20013   shlibpath_var=LD_LIBRARY_PATH
20014   case $host_os in
20015   freebsd2*)
20016     shlibpath_overrides_runpath=yes
20017     ;;
20018   freebsd3.01* | freebsdelf3.01*)
20019     shlibpath_overrides_runpath=yes
20020     hardcode_into_libs=yes
20021     ;;
20022   *) # from 3.2 on
20023     shlibpath_overrides_runpath=no
20024     hardcode_into_libs=yes
20025     ;;
20026   esac
20027   ;;
20028
20029 gnu*)
20030   version_type=linux
20031   need_lib_prefix=no
20032   need_version=no
20033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20034   soname_spec='${libname}${release}${shared_ext}$major'
20035   shlibpath_var=LD_LIBRARY_PATH
20036   hardcode_into_libs=yes
20037   ;;
20038
20039 hpux9* | hpux10* | hpux11*)
20040   # Give a soname corresponding to the major version so that dld.sl refuses to
20041   # link against other versions.
20042   version_type=sunos
20043   need_lib_prefix=no
20044   need_version=no
20045   case "$host_cpu" in
20046   ia64*)
20047     shrext_cmds='.so'
20048     hardcode_into_libs=yes
20049     dynamic_linker="$host_os dld.so"
20050     shlibpath_var=LD_LIBRARY_PATH
20051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20053     soname_spec='${libname}${release}${shared_ext}$major'
20054     if test "X$HPUX_IA64_MODE" = X32; then
20055       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20056     else
20057       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20058     fi
20059     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20060     ;;
20061    hppa*64*)
20062      shrext_cmds='.sl'
20063      hardcode_into_libs=yes
20064      dynamic_linker="$host_os dld.sl"
20065      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20066      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20067      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068      soname_spec='${libname}${release}${shared_ext}$major'
20069      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20070      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20071      ;;
20072    *)
20073     shrext_cmds='.sl'
20074     dynamic_linker="$host_os dld.sl"
20075     shlibpath_var=SHLIB_PATH
20076     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078     soname_spec='${libname}${release}${shared_ext}$major'
20079     ;;
20080   esac
20081   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20082   postinstall_cmds='chmod 555 $lib'
20083   ;;
20084
20085 irix5* | irix6* | nonstopux*)
20086   case $host_os in
20087     nonstopux*) version_type=nonstopux ;;
20088     *)
20089         if test "$lt_cv_prog_gnu_ld" = yes; then
20090                 version_type=linux
20091         else
20092                 version_type=irix
20093         fi ;;
20094   esac
20095   need_lib_prefix=no
20096   need_version=no
20097   soname_spec='${libname}${release}${shared_ext}$major'
20098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20099   case $host_os in
20100   irix5* | nonstopux*)
20101     libsuff= shlibsuff=
20102     ;;
20103   *)
20104     case $LD in # libtool.m4 will add one of these switches to LD
20105     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20106       libsuff= shlibsuff= libmagic=32-bit;;
20107     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20108       libsuff=32 shlibsuff=N32 libmagic=N32;;
20109     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20110       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20111     *) libsuff= shlibsuff= libmagic=never-match;;
20112     esac
20113     ;;
20114   esac
20115   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20116   shlibpath_overrides_runpath=no
20117   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20118   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20119   hardcode_into_libs=yes
20120   ;;
20121
20122 # No shared lib support for Linux oldld, aout, or coff.
20123 linux*oldld* | linux*aout* | linux*coff*)
20124   dynamic_linker=no
20125   ;;
20126
20127 # This must be Linux ELF.
20128 linux*)
20129   version_type=linux
20130   need_lib_prefix=no
20131   need_version=no
20132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133   soname_spec='${libname}${release}${shared_ext}$major'
20134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20135   shlibpath_var=LD_LIBRARY_PATH
20136   shlibpath_overrides_runpath=no
20137   # This implies no fast_install, which is unacceptable.
20138   # Some rework will be needed to allow for fast_install
20139   # before this can be enabled.
20140   hardcode_into_libs=yes
20141
20142   # Append ld.so.conf contents to the search path
20143   if test -f /etc/ld.so.conf; then
20144     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20145     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20146   fi
20147
20148   # We used to test for /lib/ld.so.1 and disable shared libraries on
20149   # powerpc, because MkLinux only supported shared libraries with the
20150   # GNU dynamic linker.  Since this was broken with cross compilers,
20151   # most powerpc-linux boxes support dynamic linking these days and
20152   # people can always --disable-shared, the test was removed, and we
20153   # assume the GNU/Linux dynamic linker is in use.
20154   dynamic_linker='GNU/Linux ld.so'
20155   ;;
20156
20157 knetbsd*-gnu)
20158   version_type=linux
20159   need_lib_prefix=no
20160   need_version=no
20161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20162   soname_spec='${libname}${release}${shared_ext}$major'
20163   shlibpath_var=LD_LIBRARY_PATH
20164   shlibpath_overrides_runpath=no
20165   hardcode_into_libs=yes
20166   dynamic_linker='GNU ld.so'
20167   ;;
20168
20169 netbsd*)
20170   version_type=sunos
20171   need_lib_prefix=no
20172   need_version=no
20173   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20175     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20176     dynamic_linker='NetBSD (a.out) ld.so'
20177   else
20178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179     soname_spec='${libname}${release}${shared_ext}$major'
20180     dynamic_linker='NetBSD ld.elf_so'
20181   fi
20182   shlibpath_var=LD_LIBRARY_PATH
20183   shlibpath_overrides_runpath=yes
20184   hardcode_into_libs=yes
20185   ;;
20186
20187 newsos6)
20188   version_type=linux
20189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190   shlibpath_var=LD_LIBRARY_PATH
20191   shlibpath_overrides_runpath=yes
20192   ;;
20193
20194 nto-qnx*)
20195   version_type=linux
20196   need_lib_prefix=no
20197   need_version=no
20198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199   soname_spec='${libname}${release}${shared_ext}$major'
20200   shlibpath_var=LD_LIBRARY_PATH
20201   shlibpath_overrides_runpath=yes
20202   ;;
20203
20204 openbsd*)
20205   version_type=sunos
20206   need_lib_prefix=no
20207   need_version=no
20208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20210   shlibpath_var=LD_LIBRARY_PATH
20211   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20212     case $host_os in
20213       openbsd2.[89] | openbsd2.[89].*)
20214         shlibpath_overrides_runpath=no
20215         ;;
20216       *)
20217         shlibpath_overrides_runpath=yes
20218         ;;
20219       esac
20220   else
20221     shlibpath_overrides_runpath=yes
20222   fi
20223   ;;
20224
20225 os2*)
20226   libname_spec='$name'
20227   shrext_cmds=".dll"
20228   need_lib_prefix=no
20229   library_names_spec='$libname${shared_ext} $libname.a'
20230   dynamic_linker='OS/2 ld.exe'
20231   shlibpath_var=LIBPATH
20232   ;;
20233
20234 osf3* | osf4* | osf5*)
20235   version_type=osf
20236   need_lib_prefix=no
20237   need_version=no
20238   soname_spec='${libname}${release}${shared_ext}$major'
20239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240   shlibpath_var=LD_LIBRARY_PATH
20241   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20242   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20243   ;;
20244
20245 sco3.2v5*)
20246   version_type=osf
20247   soname_spec='${libname}${release}${shared_ext}$major'
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   ;;
20251
20252 solaris*)
20253   version_type=linux
20254   need_lib_prefix=no
20255   need_version=no
20256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257   soname_spec='${libname}${release}${shared_ext}$major'
20258   shlibpath_var=LD_LIBRARY_PATH
20259   shlibpath_overrides_runpath=yes
20260   hardcode_into_libs=yes
20261   # ldd complains unless libraries are executable
20262   postinstall_cmds='chmod +x $lib'
20263   ;;
20264
20265 sunos4*)
20266   version_type=sunos
20267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20268   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20269   shlibpath_var=LD_LIBRARY_PATH
20270   shlibpath_overrides_runpath=yes
20271   if test "$with_gnu_ld" = yes; then
20272     need_lib_prefix=no
20273   fi
20274   need_version=yes
20275   ;;
20276
20277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20278   version_type=linux
20279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280   soname_spec='${libname}${release}${shared_ext}$major'
20281   shlibpath_var=LD_LIBRARY_PATH
20282   case $host_vendor in
20283     sni)
20284       shlibpath_overrides_runpath=no
20285       need_lib_prefix=no
20286       export_dynamic_flag_spec='${wl}-Blargedynsym'
20287       runpath_var=LD_RUN_PATH
20288       ;;
20289     siemens)
20290       need_lib_prefix=no
20291       ;;
20292     motorola)
20293       need_lib_prefix=no
20294       need_version=no
20295       shlibpath_overrides_runpath=no
20296       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20297       ;;
20298   esac
20299   ;;
20300
20301 sysv4*MP*)
20302   if test -d /usr/nec ;then
20303     version_type=linux
20304     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20305     soname_spec='$libname${shared_ext}.$major'
20306     shlibpath_var=LD_LIBRARY_PATH
20307   fi
20308   ;;
20309
20310 uts4*)
20311   version_type=linux
20312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313   soname_spec='${libname}${release}${shared_ext}$major'
20314   shlibpath_var=LD_LIBRARY_PATH
20315   ;;
20316
20317 *)
20318   dynamic_linker=no
20319   ;;
20320 esac
20321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20322 echo "${ECHO_T}$dynamic_linker" >&6
20323 test "$dynamic_linker" = no && can_build_shared=no
20324
20325 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20327 hardcode_action_F77=
20328 if test -n "$hardcode_libdir_flag_spec_F77" || \
20329    test -n "$runpath_var_F77" || \
20330    test "X$hardcode_automatic_F77" = "Xyes" ; then
20331
20332   # We can hardcode non-existant directories.
20333   if test "$hardcode_direct_F77" != no &&
20334      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20335      # have to relink, otherwise we might link with an installed library
20336      # when we should be linking with a yet-to-be-installed one
20337      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20338      test "$hardcode_minus_L_F77" != no; then
20339     # Linking always hardcodes the temporary library directory.
20340     hardcode_action_F77=relink
20341   else
20342     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20343     hardcode_action_F77=immediate
20344   fi
20345 else
20346   # We cannot hardcode anything, or else we can only hardcode existing
20347   # directories.
20348   hardcode_action_F77=unsupported
20349 fi
20350 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20351 echo "${ECHO_T}$hardcode_action_F77" >&6
20352
20353 if test "$hardcode_action_F77" = relink; then
20354   # Fast installation is not supported
20355   enable_fast_install=no
20356 elif test "$shlibpath_overrides_runpath" = yes ||
20357      test "$enable_shared" = no; then
20358   # Fast installation is not necessary
20359   enable_fast_install=needless
20360 fi
20361
20362 striplib=
20363 old_striplib=
20364 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20367   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20368   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20369   echo "$as_me:$LINENO: result: yes" >&5
20370 echo "${ECHO_T}yes" >&6
20371 else
20372 # FIXME - insert some real tests, host_os isn't really good enough
20373   case $host_os in
20374    darwin*)
20375        if test -n "$STRIP" ; then
20376          striplib="$STRIP -x"
20377          echo "$as_me:$LINENO: result: yes" >&5
20378 echo "${ECHO_T}yes" >&6
20379        else
20380   echo "$as_me:$LINENO: result: no" >&5
20381 echo "${ECHO_T}no" >&6
20382 fi
20383        ;;
20384    *)
20385   echo "$as_me:$LINENO: result: no" >&5
20386 echo "${ECHO_T}no" >&6
20387     ;;
20388   esac
20389 fi
20390
20391
20392
20393 # The else clause should only fire when bootstrapping the
20394 # libtool distribution, otherwise you forgot to ship ltmain.sh
20395 # with your package, and you will get complaints that there are
20396 # no rules to generate ltmain.sh.
20397 if test -f "$ltmain"; then
20398   # See if we are running on zsh, and set the options which allow our commands through
20399   # without removal of \ escapes.
20400   if test -n "${ZSH_VERSION+set}" ; then
20401     setopt NO_GLOB_SUBST
20402   fi
20403   # Now quote all the things that may contain metacharacters while being
20404   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20405   # variables and quote the copies for generation of the libtool script.
20406   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20407     SED SHELL STRIP \
20408     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20409     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20410     deplibs_check_method reload_flag reload_cmds need_locks \
20411     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20412     lt_cv_sys_global_symbol_to_c_name_address \
20413     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20414     old_postinstall_cmds old_postuninstall_cmds \
20415     compiler_F77 \
20416     CC_F77 \
20417     LD_F77 \
20418     lt_prog_compiler_wl_F77 \
20419     lt_prog_compiler_pic_F77 \
20420     lt_prog_compiler_static_F77 \
20421     lt_prog_compiler_no_builtin_flag_F77 \
20422     export_dynamic_flag_spec_F77 \
20423     thread_safe_flag_spec_F77 \
20424     whole_archive_flag_spec_F77 \
20425     enable_shared_with_static_runtimes_F77 \
20426     old_archive_cmds_F77 \
20427     old_archive_from_new_cmds_F77 \
20428     predep_objects_F77 \
20429     postdep_objects_F77 \
20430     predeps_F77 \
20431     postdeps_F77 \
20432     compiler_lib_search_path_F77 \
20433     archive_cmds_F77 \
20434     archive_expsym_cmds_F77 \
20435     postinstall_cmds_F77 \
20436     postuninstall_cmds_F77 \
20437     old_archive_from_expsyms_cmds_F77 \
20438     allow_undefined_flag_F77 \
20439     no_undefined_flag_F77 \
20440     export_symbols_cmds_F77 \
20441     hardcode_libdir_flag_spec_F77 \
20442     hardcode_libdir_flag_spec_ld_F77 \
20443     hardcode_libdir_separator_F77 \
20444     hardcode_automatic_F77 \
20445     module_cmds_F77 \
20446     module_expsym_cmds_F77 \
20447     lt_cv_prog_compiler_c_o_F77 \
20448     exclude_expsyms_F77 \
20449     include_expsyms_F77; do
20450
20451     case $var in
20452     old_archive_cmds_F77 | \
20453     old_archive_from_new_cmds_F77 | \
20454     archive_cmds_F77 | \
20455     archive_expsym_cmds_F77 | \
20456     module_cmds_F77 | \
20457     module_expsym_cmds_F77 | \
20458     old_archive_from_expsyms_cmds_F77 | \
20459     export_symbols_cmds_F77 | \
20460     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20461     postinstall_cmds | postuninstall_cmds | \
20462     old_postinstall_cmds | old_postuninstall_cmds | \
20463     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20464       # Double-quote double-evaled strings.
20465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20466       ;;
20467     *)
20468       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20469       ;;
20470     esac
20471   done
20472
20473   case $lt_echo in
20474   *'\$0 --fallback-echo"')
20475     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20476     ;;
20477   esac
20478
20479 cfgfile="$ofile"
20480
20481   cat <<__EOF__ >> "$cfgfile"
20482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20483
20484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20485
20486 # Shell to use when invoking shell scripts.
20487 SHELL=$lt_SHELL
20488
20489 # Whether or not to build shared libraries.
20490 build_libtool_libs=$enable_shared
20491
20492 # Whether or not to build static libraries.
20493 build_old_libs=$enable_static
20494
20495 # Whether or not to add -lc for building shared libraries.
20496 build_libtool_need_lc=$archive_cmds_need_lc_F77
20497
20498 # Whether or not to disallow shared libs when runtime libs are static
20499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20500
20501 # Whether or not to optimize for fast installation.
20502 fast_install=$enable_fast_install
20503
20504 # The host system.
20505 host_alias=$host_alias
20506 host=$host
20507
20508 # An echo program that does not interpret backslashes.
20509 echo=$lt_echo
20510
20511 # The archiver.
20512 AR=$lt_AR
20513 AR_FLAGS=$lt_AR_FLAGS
20514
20515 # A C compiler.
20516 LTCC=$lt_LTCC
20517
20518 # A language-specific compiler.
20519 CC=$lt_compiler_F77
20520
20521 # Is the compiler the GNU C compiler?
20522 with_gcc=$GCC_F77
20523
20524 # An ERE matcher.
20525 EGREP=$lt_EGREP
20526
20527 # The linker used to build libraries.
20528 LD=$lt_LD_F77
20529
20530 # Whether we need hard or soft links.
20531 LN_S=$lt_LN_S
20532
20533 # A BSD-compatible nm program.
20534 NM=$lt_NM
20535
20536 # A symbol stripping program
20537 STRIP=$lt_STRIP
20538
20539 # Used to examine libraries when file_magic_cmd begins "file"
20540 MAGIC_CMD=$MAGIC_CMD
20541
20542 # Used on cygwin: DLL creation program.
20543 DLLTOOL="$DLLTOOL"
20544
20545 # Used on cygwin: object dumper.
20546 OBJDUMP="$OBJDUMP"
20547
20548 # Used on cygwin: assembler.
20549 AS="$AS"
20550
20551 # The name of the directory that contains temporary libtool files.
20552 objdir=$objdir
20553
20554 # How to create reloadable object files.
20555 reload_flag=$lt_reload_flag
20556 reload_cmds=$lt_reload_cmds
20557
20558 # How to pass a linker flag through the compiler.
20559 wl=$lt_lt_prog_compiler_wl_F77
20560
20561 # Object file suffix (normally "o").
20562 objext="$ac_objext"
20563
20564 # Old archive suffix (normally "a").
20565 libext="$libext"
20566
20567 # Shared library suffix (normally ".so").
20568 shrext_cmds='$shrext_cmds'
20569
20570 # Executable file suffix (normally "").
20571 exeext="$exeext"
20572
20573 # Additional compiler flags for building library objects.
20574 pic_flag=$lt_lt_prog_compiler_pic_F77
20575 pic_mode=$pic_mode
20576
20577 # What is the maximum length of a command?
20578 max_cmd_len=$lt_cv_sys_max_cmd_len
20579
20580 # Does compiler simultaneously support -c and -o options?
20581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20582
20583 # Must we lock files when doing compilation ?
20584 need_locks=$lt_need_locks
20585
20586 # Do we need the lib prefix for modules?
20587 need_lib_prefix=$need_lib_prefix
20588
20589 # Do we need a version for libraries?
20590 need_version=$need_version
20591
20592 # Whether dlopen is supported.
20593 dlopen_support=$enable_dlopen
20594
20595 # Whether dlopen of programs is supported.
20596 dlopen_self=$enable_dlopen_self
20597
20598 # Whether dlopen of statically linked programs is supported.
20599 dlopen_self_static=$enable_dlopen_self_static
20600
20601 # Compiler flag to prevent dynamic linking.
20602 link_static_flag=$lt_lt_prog_compiler_static_F77
20603
20604 # Compiler flag to turn off builtin functions.
20605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20606
20607 # Compiler flag to allow reflexive dlopens.
20608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20609
20610 # Compiler flag to generate shared objects directly from archives.
20611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20612
20613 # Compiler flag to generate thread-safe objects.
20614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20615
20616 # Library versioning type.
20617 version_type=$version_type
20618
20619 # Format of library name prefix.
20620 libname_spec=$lt_libname_spec
20621
20622 # List of archive names.  First name is the real one, the rest are links.
20623 # The last name is the one that the linker finds with -lNAME.
20624 library_names_spec=$lt_library_names_spec
20625
20626 # The coded name of the library, if different from the real name.
20627 soname_spec=$lt_soname_spec
20628
20629 # Commands used to build and install an old-style archive.
20630 RANLIB=$lt_RANLIB
20631 old_archive_cmds=$lt_old_archive_cmds_F77
20632 old_postinstall_cmds=$lt_old_postinstall_cmds
20633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20634
20635 # Create an old-style archive from a shared archive.
20636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20637
20638 # Create a temporary old-style archive to link instead of a shared archive.
20639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20640
20641 # Commands used to build and install a shared archive.
20642 archive_cmds=$lt_archive_cmds_F77
20643 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20644 postinstall_cmds=$lt_postinstall_cmds
20645 postuninstall_cmds=$lt_postuninstall_cmds
20646
20647 # Commands used to build a loadable module (assumed same as above if empty)
20648 module_cmds=$lt_module_cmds_F77
20649 module_expsym_cmds=$lt_module_expsym_cmds_F77
20650
20651 # Commands to strip libraries.
20652 old_striplib=$lt_old_striplib
20653 striplib=$lt_striplib
20654
20655 # Dependencies to place before the objects being linked to create a
20656 # shared library.
20657 predep_objects=$lt_predep_objects_F77
20658
20659 # Dependencies to place after the objects being linked to create a
20660 # shared library.
20661 postdep_objects=$lt_postdep_objects_F77
20662
20663 # Dependencies to place before the objects being linked to create a
20664 # shared library.
20665 predeps=$lt_predeps_F77
20666
20667 # Dependencies to place after the objects being linked to create a
20668 # shared library.
20669 postdeps=$lt_postdeps_F77
20670
20671 # The library search path used internally by the compiler when linking
20672 # a shared library.
20673 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20674
20675 # Method to check whether dependent libraries are shared objects.
20676 deplibs_check_method=$lt_deplibs_check_method
20677
20678 # Command to use when deplibs_check_method == file_magic.
20679 file_magic_cmd=$lt_file_magic_cmd
20680
20681 # Flag that allows shared libraries with undefined symbols to be built.
20682 allow_undefined_flag=$lt_allow_undefined_flag_F77
20683
20684 # Flag that forces no undefined symbols.
20685 no_undefined_flag=$lt_no_undefined_flag_F77
20686
20687 # Commands used to finish a libtool library installation in a directory.
20688 finish_cmds=$lt_finish_cmds
20689
20690 # Same as above, but a single script fragment to be evaled but not shown.
20691 finish_eval=$lt_finish_eval
20692
20693 # Take the output of nm and produce a listing of raw symbols and C names.
20694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20695
20696 # Transform the output of nm in a proper C declaration
20697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20698
20699 # Transform the output of nm in a C name address pair
20700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20701
20702 # This is the shared library runtime path variable.
20703 runpath_var=$runpath_var
20704
20705 # This is the shared library path variable.
20706 shlibpath_var=$shlibpath_var
20707
20708 # Is shlibpath searched before the hard-coded library search path?
20709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20710
20711 # How to hardcode a shared library path into an executable.
20712 hardcode_action=$hardcode_action_F77
20713
20714 # Whether we should hardcode library paths into libraries.
20715 hardcode_into_libs=$hardcode_into_libs
20716
20717 # Flag to hardcode \$libdir into a binary during linking.
20718 # This must work even if \$libdir does not exist.
20719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20720
20721 # If ld is used when linking, flag to hardcode \$libdir into
20722 # a binary during linking. This must work even if \$libdir does
20723 # not exist.
20724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20725
20726 # Whether we need a single -rpath flag with a separated argument.
20727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20728
20729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20730 # resulting binary.
20731 hardcode_direct=$hardcode_direct_F77
20732
20733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20734 # resulting binary.
20735 hardcode_minus_L=$hardcode_minus_L_F77
20736
20737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20738 # the resulting binary.
20739 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20740
20741 # Set to yes if building a shared library automatically hardcodes DIR into the library
20742 # and all subsequent libraries and executables linked against it.
20743 hardcode_automatic=$hardcode_automatic_F77
20744
20745 # Variables whose values should be saved in libtool wrapper scripts and
20746 # restored at relink time.
20747 variables_saved_for_relink="$variables_saved_for_relink"
20748
20749 # Whether libtool must link a program against all its dependency libraries.
20750 link_all_deplibs=$link_all_deplibs_F77
20751
20752 # Compile-time system search path for libraries
20753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20754
20755 # Run-time system search path for libraries
20756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20757
20758 # Fix the shell variable \$srcfile for the compiler.
20759 fix_srcfile_path="$fix_srcfile_path_F77"
20760
20761 # Set to yes if exported symbols are required.
20762 always_export_symbols=$always_export_symbols_F77
20763
20764 # The commands to list exported symbols.
20765 export_symbols_cmds=$lt_export_symbols_cmds_F77
20766
20767 # The commands to extract the exported symbol list from a shared archive.
20768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20769
20770 # Symbols that should not be listed in the preloaded symbols.
20771 exclude_expsyms=$lt_exclude_expsyms_F77
20772
20773 # Symbols that must always be exported.
20774 include_expsyms=$lt_include_expsyms_F77
20775
20776 # ### END LIBTOOL TAG CONFIG: $tagname
20777
20778 __EOF__
20779
20780
20781 else
20782   # If there is no Makefile yet, we rely on a make rule to execute
20783   # `config.status --recheck' to rerun these tests and create the
20784   # libtool script then.
20785   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20786   if test -f "$ltmain_in"; then
20787     test -f Makefile && make "$ltmain"
20788   fi
20789 fi
20790
20791
20792 ac_ext=c
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797
20798 CC="$lt_save_CC"
20799
20800         else
20801           tagname=""
20802         fi
20803         ;;
20804
20805       GCJ)
20806         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20807           ac_ext=c
20808 ac_cpp='$CPP $CPPFLAGS'
20809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20812
20813
20814 # Source file extension for Java test sources.
20815 ac_ext=java
20816
20817 # Object file extension for compiled Java test sources.
20818 objext=o
20819 objext_GCJ=$objext
20820
20821 # Code to be used in simple compile tests
20822 lt_simple_compile_test_code="class foo {}\n"
20823
20824 # Code to be used in simple link tests
20825 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20826
20827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20828
20829 # If no C compiler was specified, use CC.
20830 LTCC=${LTCC-"$CC"}
20831
20832 # Allow CC to be a program name with arguments.
20833 compiler=$CC
20834
20835
20836 # Allow CC to be a program name with arguments.
20837 lt_save_CC="$CC"
20838 CC=${GCJ-"gcj"}
20839 compiler=$CC
20840 compiler_GCJ=$CC
20841
20842 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20843 archive_cmds_need_lc_GCJ=no
20844
20845
20846 lt_prog_compiler_no_builtin_flag_GCJ=
20847
20848 if test "$GCC" = yes; then
20849   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20850
20851
20852 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20853 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20854 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20855   echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857   lt_cv_prog_compiler_rtti_exceptions=no
20858   ac_outfile=conftest.$ac_objext
20859    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20860    lt_compiler_flag="-fno-rtti -fno-exceptions"
20861    # Insert the option either (1) after the last *FLAGS variable, or
20862    # (2) before a word containing "conftest.", or (3) at the end.
20863    # Note that $ac_compile itself does not contain backslashes and begins
20864    # with a dollar sign (not a hyphen), so the echo should work correctly.
20865    # The option is referenced via a variable to avoid confusing sed.
20866    lt_compile=`echo "$ac_compile" | $SED \
20867    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20869    -e 's:$: $lt_compiler_flag:'`
20870    (eval echo "\"\$as_me:20870: $lt_compile\"" >&5)
20871    (eval "$lt_compile" 2>conftest.err)
20872    ac_status=$?
20873    cat conftest.err >&5
20874    echo "$as_me:20874: \$? = $ac_status" >&5
20875    if (exit $ac_status) && test -s "$ac_outfile"; then
20876      # The compiler can only warn and ignore the option if not recognized
20877      # So say no if there are warnings
20878      if test ! -s conftest.err; then
20879        lt_cv_prog_compiler_rtti_exceptions=yes
20880      fi
20881    fi
20882    $rm conftest*
20883
20884 fi
20885 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20886 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20887
20888 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20889     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20890 else
20891     :
20892 fi
20893
20894 fi
20895
20896 lt_prog_compiler_wl_GCJ=
20897 lt_prog_compiler_pic_GCJ=
20898 lt_prog_compiler_static_GCJ=
20899
20900 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20901 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20902
20903   if test "$GCC" = yes; then
20904     lt_prog_compiler_wl_GCJ='-Wl,'
20905     lt_prog_compiler_static_GCJ='-static'
20906
20907     case $host_os in
20908       aix*)
20909       # All AIX code is PIC.
20910       if test "$host_cpu" = ia64; then
20911         # AIX 5 now supports IA64 processor
20912         lt_prog_compiler_static_GCJ='-Bstatic'
20913       fi
20914       ;;
20915
20916     amigaos*)
20917       # FIXME: we need at least 68020 code to build shared libraries, but
20918       # adding the `-m68020' flag to GCC prevents building anything better,
20919       # like `-m68040'.
20920       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20921       ;;
20922
20923     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20924       # PIC is the default for these OSes.
20925       ;;
20926
20927     mingw* | pw32* | os2*)
20928       # This hack is so that the source file can tell whether it is being
20929       # built for inclusion in a dll (and should export symbols for example).
20930       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20931       ;;
20932
20933     darwin* | rhapsody*)
20934       # PIC is the default on this platform
20935       # Common symbols not allowed in MH_DYLIB files
20936       lt_prog_compiler_pic_GCJ='-fno-common'
20937       ;;
20938
20939     msdosdjgpp*)
20940       # Just because we use GCC doesn't mean we suddenly get shared libraries
20941       # on systems that don't support them.
20942       lt_prog_compiler_can_build_shared_GCJ=no
20943       enable_shared=no
20944       ;;
20945
20946     sysv4*MP*)
20947       if test -d /usr/nec; then
20948         lt_prog_compiler_pic_GCJ=-Kconform_pic
20949       fi
20950       ;;
20951
20952     hpux*)
20953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20954       # not for PA HP-UX.
20955       case "$host_cpu" in
20956       hppa*64*|ia64*)
20957         # +Z the default
20958         ;;
20959       *)
20960         lt_prog_compiler_pic_GCJ='-fPIC'
20961         ;;
20962       esac
20963       ;;
20964
20965     *)
20966       lt_prog_compiler_pic_GCJ='-fPIC'
20967       ;;
20968     esac
20969   else
20970     # PORTME Check for flag to pass linker flags through the system compiler.
20971     case $host_os in
20972     aix*)
20973       lt_prog_compiler_wl_GCJ='-Wl,'
20974       if test "$host_cpu" = ia64; then
20975         # AIX 5 now supports IA64 processor
20976         lt_prog_compiler_static_GCJ='-Bstatic'
20977       else
20978         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20979       fi
20980       ;;
20981       darwin*)
20982         # PIC is the default on this platform
20983         # Common symbols not allowed in MH_DYLIB files
20984        case "$cc_basename" in
20985          xlc*)
20986          lt_prog_compiler_pic_GCJ='-qnocommon'
20987          lt_prog_compiler_wl_GCJ='-Wl,'
20988          ;;
20989        esac
20990        ;;
20991
20992     mingw* | pw32* | os2*)
20993       # This hack is so that the source file can tell whether it is being
20994       # built for inclusion in a dll (and should export symbols for example).
20995       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20996       ;;
20997
20998     hpux9* | hpux10* | hpux11*)
20999       lt_prog_compiler_wl_GCJ='-Wl,'
21000       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21001       # not for PA HP-UX.
21002       case "$host_cpu" in
21003       hppa*64*|ia64*)
21004         # +Z the default
21005         ;;
21006       *)
21007         lt_prog_compiler_pic_GCJ='+Z'
21008         ;;
21009       esac
21010       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21011       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21012       ;;
21013
21014     irix5* | irix6* | nonstopux*)
21015       lt_prog_compiler_wl_GCJ='-Wl,'
21016       # PIC (with -KPIC) is the default.
21017       lt_prog_compiler_static_GCJ='-non_shared'
21018       ;;
21019
21020     newsos6)
21021       lt_prog_compiler_pic_GCJ='-KPIC'
21022       lt_prog_compiler_static_GCJ='-Bstatic'
21023       ;;
21024
21025     linux*)
21026       case $CC in
21027       icc* | ecc*)
21028         lt_prog_compiler_wl_GCJ='-Wl,'
21029         lt_prog_compiler_pic_GCJ='-KPIC'
21030         lt_prog_compiler_static_GCJ='-static'
21031         ;;
21032       ccc*)
21033         lt_prog_compiler_wl_GCJ='-Wl,'
21034         # All Alpha code is PIC.
21035         lt_prog_compiler_static_GCJ='-non_shared'
21036         ;;
21037       esac
21038       ;;
21039
21040     osf3* | osf4* | osf5*)
21041       lt_prog_compiler_wl_GCJ='-Wl,'
21042       # All OSF/1 code is PIC.
21043       lt_prog_compiler_static_GCJ='-non_shared'
21044       ;;
21045
21046     sco3.2v5*)
21047       lt_prog_compiler_pic_GCJ='-Kpic'
21048       lt_prog_compiler_static_GCJ='-dn'
21049       ;;
21050
21051     solaris*)
21052       lt_prog_compiler_wl_GCJ='-Wl,'
21053       lt_prog_compiler_pic_GCJ='-KPIC'
21054       lt_prog_compiler_static_GCJ='-Bstatic'
21055       ;;
21056
21057     sunos4*)
21058       lt_prog_compiler_wl_GCJ='-Qoption ld '
21059       lt_prog_compiler_pic_GCJ='-PIC'
21060       lt_prog_compiler_static_GCJ='-Bstatic'
21061       ;;
21062
21063     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21064       lt_prog_compiler_wl_GCJ='-Wl,'
21065       lt_prog_compiler_pic_GCJ='-KPIC'
21066       lt_prog_compiler_static_GCJ='-Bstatic'
21067       ;;
21068
21069     sysv4*MP*)
21070       if test -d /usr/nec ;then
21071         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21072         lt_prog_compiler_static_GCJ='-Bstatic'
21073       fi
21074       ;;
21075
21076     uts4*)
21077       lt_prog_compiler_pic_GCJ='-pic'
21078       lt_prog_compiler_static_GCJ='-Bstatic'
21079       ;;
21080
21081     *)
21082       lt_prog_compiler_can_build_shared_GCJ=no
21083       ;;
21084     esac
21085   fi
21086
21087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21088 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21089
21090 #
21091 # Check to make sure the PIC flag actually works.
21092 #
21093 if test -n "$lt_prog_compiler_pic_GCJ"; then
21094
21095 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21096 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21097 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   lt_prog_compiler_pic_works_GCJ=no
21101   ac_outfile=conftest.$ac_objext
21102    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21103    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21104    # Insert the option either (1) after the last *FLAGS variable, or
21105    # (2) before a word containing "conftest.", or (3) at the end.
21106    # Note that $ac_compile itself does not contain backslashes and begins
21107    # with a dollar sign (not a hyphen), so the echo should work correctly.
21108    # The option is referenced via a variable to avoid confusing sed.
21109    lt_compile=`echo "$ac_compile" | $SED \
21110    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21112    -e 's:$: $lt_compiler_flag:'`
21113    (eval echo "\"\$as_me:21113: $lt_compile\"" >&5)
21114    (eval "$lt_compile" 2>conftest.err)
21115    ac_status=$?
21116    cat conftest.err >&5
21117    echo "$as_me:21117: \$? = $ac_status" >&5
21118    if (exit $ac_status) && test -s "$ac_outfile"; then
21119      # The compiler can only warn and ignore the option if not recognized
21120      # So say no if there are warnings
21121      if test ! -s conftest.err; then
21122        lt_prog_compiler_pic_works_GCJ=yes
21123      fi
21124    fi
21125    $rm conftest*
21126
21127 fi
21128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21129 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21130
21131 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21132     case $lt_prog_compiler_pic_GCJ in
21133      "" | " "*) ;;
21134      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21135      esac
21136 else
21137     lt_prog_compiler_pic_GCJ=
21138      lt_prog_compiler_can_build_shared_GCJ=no
21139 fi
21140
21141 fi
21142 case "$host_os" in
21143   # For platforms which do not support PIC, -DPIC is meaningless:
21144   *djgpp*)
21145     lt_prog_compiler_pic_GCJ=
21146     ;;
21147   *)
21148     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21149     ;;
21150 esac
21151
21152 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21155   echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157   lt_cv_prog_compiler_c_o_GCJ=no
21158    $rm -r conftest 2>/dev/null
21159    mkdir conftest
21160    cd conftest
21161    mkdir out
21162    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21163
21164    lt_compiler_flag="-o out/conftest2.$ac_objext"
21165    # Insert the option either (1) after the last *FLAGS variable, or
21166    # (2) before a word containing "conftest.", or (3) at the end.
21167    # Note that $ac_compile itself does not contain backslashes and begins
21168    # with a dollar sign (not a hyphen), so the echo should work correctly.
21169    lt_compile=`echo "$ac_compile" | $SED \
21170    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21172    -e 's:$: $lt_compiler_flag:'`
21173    (eval echo "\"\$as_me:21173: $lt_compile\"" >&5)
21174    (eval "$lt_compile" 2>out/conftest.err)
21175    ac_status=$?
21176    cat out/conftest.err >&5
21177    echo "$as_me:21177: \$? = $ac_status" >&5
21178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21179    then
21180      # The compiler can only warn and ignore the option if not recognized
21181      # So say no if there are warnings
21182      if test ! -s out/conftest.err; then
21183        lt_cv_prog_compiler_c_o_GCJ=yes
21184      fi
21185    fi
21186    chmod u+w .
21187    $rm conftest*
21188    # SGI C++ compiler will create directory out/ii_files/ for
21189    # template instantiation
21190    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21191    $rm out/* && rmdir out
21192    cd ..
21193    rmdir conftest
21194    $rm conftest*
21195
21196 fi
21197 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21199
21200
21201 hard_links="nottested"
21202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21203   # do not overwrite the value of need_locks provided by the user
21204   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21206   hard_links=yes
21207   $rm conftest*
21208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21209   touch conftest.a
21210   ln conftest.a conftest.b 2>&5 || hard_links=no
21211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21212   echo "$as_me:$LINENO: result: $hard_links" >&5
21213 echo "${ECHO_T}$hard_links" >&6
21214   if test "$hard_links" = no; then
21215     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21217     need_locks=warn
21218   fi
21219 else
21220   need_locks=no
21221 fi
21222
21223 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21225
21226   runpath_var=
21227   allow_undefined_flag_GCJ=
21228   enable_shared_with_static_runtimes_GCJ=no
21229   archive_cmds_GCJ=
21230   archive_expsym_cmds_GCJ=
21231   old_archive_From_new_cmds_GCJ=
21232   old_archive_from_expsyms_cmds_GCJ=
21233   export_dynamic_flag_spec_GCJ=
21234   whole_archive_flag_spec_GCJ=
21235   thread_safe_flag_spec_GCJ=
21236   hardcode_libdir_flag_spec_GCJ=
21237   hardcode_libdir_flag_spec_ld_GCJ=
21238   hardcode_libdir_separator_GCJ=
21239   hardcode_direct_GCJ=no
21240   hardcode_minus_L_GCJ=no
21241   hardcode_shlibpath_var_GCJ=unsupported
21242   link_all_deplibs_GCJ=unknown
21243   hardcode_automatic_GCJ=no
21244   module_cmds_GCJ=
21245   module_expsym_cmds_GCJ=
21246   always_export_symbols_GCJ=no
21247   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21248   # include_expsyms should be a list of space-separated symbols to be *always*
21249   # included in the symbol list
21250   include_expsyms_GCJ=
21251   # exclude_expsyms can be an extended regexp of symbols to exclude
21252   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21253   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21254   # as well as any symbol that contains `d'.
21255   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21256   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21257   # platforms (ab)use it in PIC code, but their linkers get confused if
21258   # the symbol is explicitly referenced.  Since portable code cannot
21259   # rely on this symbol name, it's probably fine to never include it in
21260   # preloaded symbol tables.
21261   extract_expsyms_cmds=
21262
21263   case $host_os in
21264   cygwin* | mingw* | pw32*)
21265     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21266     # When not using gcc, we currently assume that we are using
21267     # Microsoft Visual C++.
21268     if test "$GCC" != yes; then
21269       with_gnu_ld=no
21270     fi
21271     ;;
21272   openbsd*)
21273     with_gnu_ld=no
21274     ;;
21275   esac
21276
21277   ld_shlibs_GCJ=yes
21278   if test "$with_gnu_ld" = yes; then
21279     # If archive_cmds runs LD, not CC, wlarc should be empty
21280     wlarc='${wl}'
21281
21282     # See if GNU ld supports shared libraries.
21283     case $host_os in
21284     aix3* | aix4* | aix5*)
21285       # On AIX/PPC, the GNU linker is very broken
21286       if test "$host_cpu" != ia64; then
21287         ld_shlibs_GCJ=no
21288         cat <<EOF 1>&2
21289
21290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21291 *** to be unable to reliably create shared libraries on AIX.
21292 *** Therefore, libtool is disabling shared libraries support.  If you
21293 *** really care for shared libraries, you may want to modify your PATH
21294 *** so that a non-GNU linker is found, and then restart.
21295
21296 EOF
21297       fi
21298       ;;
21299
21300     amigaos*)
21301       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)'
21302       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21303       hardcode_minus_L_GCJ=yes
21304
21305       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21306       # that the semantics of dynamic libraries on AmigaOS, at least up
21307       # to version 4, is to share data among multiple programs linked
21308       # with the same dynamic library.  Since this doesn't match the
21309       # behavior of shared libraries on other platforms, we can't use
21310       # them.
21311       ld_shlibs_GCJ=no
21312       ;;
21313
21314     beos*)
21315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21316         allow_undefined_flag_GCJ=unsupported
21317         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21318         # support --undefined.  This deserves some investigation.  FIXME
21319         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21320       else
21321         ld_shlibs_GCJ=no
21322       fi
21323       ;;
21324
21325     cygwin* | mingw* | pw32*)
21326       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21327       # as there is no search path for DLLs.
21328       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21329       allow_undefined_flag_GCJ=unsupported
21330       always_export_symbols_GCJ=no
21331       enable_shared_with_static_runtimes_GCJ=yes
21332       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21333
21334       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21335         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21336         # If the export-symbols file already is a .def file (1st line
21337         # is EXPORTS), use it as is; otherwise, prepend...
21338         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21339           cp $export_symbols $output_objdir/$soname.def;
21340         else
21341           echo EXPORTS > $output_objdir/$soname.def;
21342           cat $export_symbols >> $output_objdir/$soname.def;
21343         fi~
21344         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21345       else
21346         ld_shlibs=no
21347       fi
21348       ;;
21349
21350     netbsd*)
21351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21352         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21353         wlarc=
21354       else
21355         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21356         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21357       fi
21358       ;;
21359
21360     solaris* | sysv5*)
21361       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21362         ld_shlibs_GCJ=no
21363         cat <<EOF 1>&2
21364
21365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21366 *** create shared libraries on Solaris systems.  Therefore, libtool
21367 *** is disabling shared libraries support.  We urge you to upgrade GNU
21368 *** binutils to release 2.9.1 or newer.  Another option is to modify
21369 *** your PATH or compiler configuration so that the native linker is
21370 *** used, and then restart.
21371
21372 EOF
21373       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21374         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21375         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21376       else
21377         ld_shlibs_GCJ=no
21378       fi
21379       ;;
21380
21381     sunos4*)
21382       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21383       wlarc=
21384       hardcode_direct_GCJ=yes
21385       hardcode_shlibpath_var_GCJ=no
21386       ;;
21387
21388   linux*)
21389     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21390         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21391         archive_cmds_GCJ="$tmp_archive_cmds"
21392       supports_anon_versioning=no
21393       case `$LD -v 2>/dev/null` in
21394         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21395         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21396         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21397         *\ 2.11.*) ;; # other 2.11 versions
21398         *) supports_anon_versioning=yes ;;
21399       esac
21400       if test $supports_anon_versioning = yes; then
21401         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21403 $echo "local: *; };" >> $output_objdir/$libname.ver~
21404         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21405       else
21406         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21407       fi
21408     else
21409       ld_shlibs_GCJ=no
21410     fi
21411     ;;
21412
21413     *)
21414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21415         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21416         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21417       else
21418         ld_shlibs_GCJ=no
21419       fi
21420       ;;
21421     esac
21422
21423     if test "$ld_shlibs_GCJ" = yes; then
21424       runpath_var=LD_RUN_PATH
21425       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21426       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21427       # ancient GNU ld didn't support --whole-archive et. al.
21428       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21429         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21430       else
21431         whole_archive_flag_spec_GCJ=
21432       fi
21433     fi
21434   else
21435     # PORTME fill in a description of your system's linker (not GNU ld)
21436     case $host_os in
21437     aix3*)
21438       allow_undefined_flag_GCJ=unsupported
21439       always_export_symbols_GCJ=yes
21440       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'
21441       # Note: this linker hardcodes the directories in LIBPATH if there
21442       # are no directories specified by -L.
21443       hardcode_minus_L_GCJ=yes
21444       if test "$GCC" = yes && test -z "$link_static_flag"; then
21445         # Neither direct hardcoding nor static linking is supported with a
21446         # broken collect2.
21447         hardcode_direct_GCJ=unsupported
21448       fi
21449       ;;
21450
21451     aix4* | aix5*)
21452       if test "$host_cpu" = ia64; then
21453         # On IA64, the linker does run time linking by default, so we don't
21454         # have to do anything special.
21455         aix_use_runtimelinking=no
21456         exp_sym_flag='-Bexport'
21457         no_entry_flag=""
21458       else
21459         # If we're using GNU nm, then we don't want the "-C" option.
21460         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21461         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21462           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'
21463         else
21464           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'
21465         fi
21466         aix_use_runtimelinking=no
21467
21468         # Test if we are trying to use run time linking or normal
21469         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21470         # need to do runtime linking.
21471         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21472           for ld_flag in $LDFLAGS; do
21473           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21474             aix_use_runtimelinking=yes
21475             break
21476           fi
21477           done
21478         esac
21479
21480         exp_sym_flag='-bexport'
21481         no_entry_flag='-bnoentry'
21482       fi
21483
21484       # When large executables or shared objects are built, AIX ld can
21485       # have problems creating the table of contents.  If linking a library
21486       # or program results in "error TOC overflow" add -mminimal-toc to
21487       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21488       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21489
21490       archive_cmds_GCJ=''
21491       hardcode_direct_GCJ=yes
21492       hardcode_libdir_separator_GCJ=':'
21493       link_all_deplibs_GCJ=yes
21494
21495       if test "$GCC" = yes; then
21496         case $host_os in aix4.012|aix4.012.*)
21497         # We only want to do this on AIX 4.2 and lower, the check
21498         # below for broken collect2 doesn't work under 4.3+
21499           collect2name=`${CC} -print-prog-name=collect2`
21500           if test -f "$collect2name" && \
21501            strings "$collect2name" | grep resolve_lib_name >/dev/null
21502           then
21503           # We have reworked collect2
21504           hardcode_direct_GCJ=yes
21505           else
21506           # We have old collect2
21507           hardcode_direct_GCJ=unsupported
21508           # It fails to find uninstalled libraries when the uninstalled
21509           # path is not listed in the libpath.  Setting hardcode_minus_L
21510           # to unsupported forces relinking
21511           hardcode_minus_L_GCJ=yes
21512           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21513           hardcode_libdir_separator_GCJ=
21514           fi
21515         esac
21516         shared_flag='-shared'
21517       else
21518         # not using gcc
21519         if test "$host_cpu" = ia64; then
21520         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21521         # chokes on -Wl,-G. The following line is correct:
21522           shared_flag='-G'
21523         else
21524         if test "$aix_use_runtimelinking" = yes; then
21525             shared_flag='${wl}-G'
21526           else
21527             shared_flag='${wl}-bM:SRE'
21528         fi
21529         fi
21530       fi
21531
21532       # It seems that -bexpall does not export symbols beginning with
21533       # underscore (_), so it is better to generate a list of symbols to export.
21534       always_export_symbols_GCJ=yes
21535       if test "$aix_use_runtimelinking" = yes; then
21536         # Warning - without using the other runtime loading flags (-brtl),
21537         # -berok will link without error, but may produce a broken library.
21538         allow_undefined_flag_GCJ='-berok'
21539        # Determine the default libpath from the value encoded in an empty executable.
21540        cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h.  */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h.  */
21546
21547 int
21548 main ()
21549 {
21550
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21557   (eval $ac_link) 2>conftest.er1
21558   ac_status=$?
21559   grep -v '^ *+' conftest.er1 >conftest.err
21560   rm -f conftest.er1
21561   cat conftest.err >&5
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); } &&
21564          { ac_try='test -z "$ac_c_werror_flag"
21565                          || test ! -s conftest.err'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; } &&
21571          { ac_try='test -s conftest$ac_exeext'
21572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573   (eval $ac_try) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); }; }; then
21577
21578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21579 }'`
21580 # Check for a 64-bit object if we didn't find anything.
21581 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; }
21582 }'`; fi
21583 else
21584   echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 fi
21588 rm -f conftest.err conftest.$ac_objext \
21589       conftest$ac_exeext conftest.$ac_ext
21590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21591
21592        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21593         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"
21594        else
21595         if test "$host_cpu" = ia64; then
21596           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21597           allow_undefined_flag_GCJ="-z nodefs"
21598           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"
21599         else
21600          # Determine the default libpath from the value encoded in an empty executable.
21601          cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607
21608 int
21609 main ()
21610 {
21611
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618   (eval $ac_link) 2>conftest.er1
21619   ac_status=$?
21620   grep -v '^ *+' conftest.er1 >conftest.err
21621   rm -f conftest.er1
21622   cat conftest.err >&5
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); } &&
21625          { ac_try='test -z "$ac_c_werror_flag"
21626                          || test ! -s conftest.err'
21627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628   (eval $ac_try) 2>&5
21629   ac_status=$?
21630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631   (exit $ac_status); }; } &&
21632          { ac_try='test -s conftest$ac_exeext'
21633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634   (eval $ac_try) 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); }; }; then
21638
21639 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21640 }'`
21641 # Check for a 64-bit object if we didn't find anything.
21642 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; }
21643 }'`; fi
21644 else
21645   echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21647
21648 fi
21649 rm -f conftest.err conftest.$ac_objext \
21650       conftest$ac_exeext conftest.$ac_ext
21651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21652
21653          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21654           # Warning - without using the other run time loading flags,
21655           # -berok will link without error, but may produce a broken library.
21656           no_undefined_flag_GCJ=' ${wl}-bernotok'
21657           allow_undefined_flag_GCJ=' ${wl}-berok'
21658           # -bexpall does not export symbols beginning with underscore (_)
21659           always_export_symbols_GCJ=yes
21660           # Exported symbols can be pulled into shared objects from archives
21661           whole_archive_flag_spec_GCJ=' '
21662           archive_cmds_need_lc_GCJ=yes
21663           # This is similar to how AIX traditionally builds it's shared libraries.
21664           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'
21665         fi
21666       fi
21667       ;;
21668
21669     amigaos*)
21670       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)'
21671       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21672       hardcode_minus_L_GCJ=yes
21673       # see comment about different semantics on the GNU ld section
21674       ld_shlibs_GCJ=no
21675       ;;
21676
21677     bsdi[45]*)
21678       export_dynamic_flag_spec_GCJ=-rdynamic
21679       ;;
21680
21681     cygwin* | mingw* | pw32*)
21682       # When not using gcc, we currently assume that we are using
21683       # Microsoft Visual C++.
21684       # hardcode_libdir_flag_spec is actually meaningless, as there is
21685       # no search path for DLLs.
21686       hardcode_libdir_flag_spec_GCJ=' '
21687       allow_undefined_flag_GCJ=unsupported
21688       # Tell ltmain to make .lib files, not .a files.
21689       libext=lib
21690       # Tell ltmain to make .dll files, not .so files.
21691       shrext_cmds=".dll"
21692       # FIXME: Setting linknames here is a bad hack.
21693       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21694       # The linker will automatically build a .lib file if we build a DLL.
21695       old_archive_From_new_cmds_GCJ='true'
21696       # FIXME: Should let the user specify the lib program.
21697       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21698       fix_srcfile_path='`cygpath -w "$srcfile"`'
21699       enable_shared_with_static_runtimes_GCJ=yes
21700       ;;
21701
21702     darwin* | rhapsody*)
21703       case "$host_os" in
21704         rhapsody* | darwin1.[012])
21705          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21706          ;;
21707        *) # Darwin 1.3 on
21708          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21709            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21710          else
21711            case ${MACOSX_DEPLOYMENT_TARGET} in
21712              10.[012])
21713                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21714                ;;
21715              10.*)
21716                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21717                ;;
21718            esac
21719          fi
21720          ;;
21721       esac
21722       archive_cmds_need_lc_GCJ=no
21723       hardcode_direct_GCJ=no
21724       hardcode_automatic_GCJ=yes
21725       hardcode_shlibpath_var_GCJ=unsupported
21726       whole_archive_flag_spec_GCJ=''
21727       link_all_deplibs_GCJ=yes
21728     if test "$GCC" = yes ; then
21729         output_verbose_link_cmd='echo'
21730         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21731       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21732       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21733       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}'
21734       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}'
21735     else
21736       case "$cc_basename" in
21737         xlc*)
21738          output_verbose_link_cmd='echo'
21739          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21740          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21741           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21742          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}'
21743           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}'
21744           ;;
21745        *)
21746          ld_shlibs_GCJ=no
21747           ;;
21748       esac
21749     fi
21750       ;;
21751
21752     dgux*)
21753       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21754       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21755       hardcode_shlibpath_var_GCJ=no
21756       ;;
21757
21758     freebsd1*)
21759       ld_shlibs_GCJ=no
21760       ;;
21761
21762     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21763     # support.  Future versions do this automatically, but an explicit c++rt0.o
21764     # does not break anything, and helps significantly (at the cost of a little
21765     # extra space).
21766     freebsd2.2*)
21767       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21768       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21769       hardcode_direct_GCJ=yes
21770       hardcode_shlibpath_var_GCJ=no
21771       ;;
21772
21773     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21774     freebsd2*)
21775       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21776       hardcode_direct_GCJ=yes
21777       hardcode_minus_L_GCJ=yes
21778       hardcode_shlibpath_var_GCJ=no
21779       ;;
21780
21781     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21782     freebsd* | kfreebsd*-gnu)
21783       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21784       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21785       hardcode_direct_GCJ=yes
21786       hardcode_shlibpath_var_GCJ=no
21787       ;;
21788
21789     hpux9*)
21790       if test "$GCC" = yes; then
21791         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'
21792       else
21793         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'
21794       fi
21795       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21796       hardcode_libdir_separator_GCJ=:
21797       hardcode_direct_GCJ=yes
21798
21799       # hardcode_minus_L: Not really in the search PATH,
21800       # but as the default location of the library.
21801       hardcode_minus_L_GCJ=yes
21802       export_dynamic_flag_spec_GCJ='${wl}-E'
21803       ;;
21804
21805     hpux10* | hpux11*)
21806       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21807         case "$host_cpu" in
21808         hppa*64*|ia64*)
21809           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21810           ;;
21811         *)
21812           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21813           ;;
21814         esac
21815       else
21816         case "$host_cpu" in
21817         hppa*64*|ia64*)
21818           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21819           ;;
21820         *)
21821           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21822           ;;
21823         esac
21824       fi
21825       if test "$with_gnu_ld" = no; then
21826         case "$host_cpu" in
21827         hppa*64*)
21828           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21829           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21830           hardcode_libdir_separator_GCJ=:
21831           hardcode_direct_GCJ=no
21832           hardcode_shlibpath_var_GCJ=no
21833           ;;
21834         ia64*)
21835           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21836           hardcode_direct_GCJ=no
21837           hardcode_shlibpath_var_GCJ=no
21838
21839           # hardcode_minus_L: Not really in the search PATH,
21840           # but as the default location of the library.
21841           hardcode_minus_L_GCJ=yes
21842           ;;
21843         *)
21844           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21845           hardcode_libdir_separator_GCJ=:
21846           hardcode_direct_GCJ=yes
21847           export_dynamic_flag_spec_GCJ='${wl}-E'
21848
21849           # hardcode_minus_L: Not really in the search PATH,
21850           # but as the default location of the library.
21851           hardcode_minus_L_GCJ=yes
21852           ;;
21853         esac
21854       fi
21855       ;;
21856
21857     irix5* | irix6* | nonstopux*)
21858       if test "$GCC" = yes; then
21859         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'
21860       else
21861         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'
21862         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21863       fi
21864       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21865       hardcode_libdir_separator_GCJ=:
21866       link_all_deplibs_GCJ=yes
21867       ;;
21868
21869     netbsd*)
21870       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21871         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21872       else
21873         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21874       fi
21875       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21876       hardcode_direct_GCJ=yes
21877       hardcode_shlibpath_var_GCJ=no
21878       ;;
21879
21880     newsos6)
21881       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21882       hardcode_direct_GCJ=yes
21883       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21884       hardcode_libdir_separator_GCJ=:
21885       hardcode_shlibpath_var_GCJ=no
21886       ;;
21887
21888     openbsd*)
21889       hardcode_direct_GCJ=yes
21890       hardcode_shlibpath_var_GCJ=no
21891       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21892         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21893         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21894         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21895         export_dynamic_flag_spec_GCJ='${wl}-E'
21896       else
21897        case $host_os in
21898          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21899            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21900            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21901            ;;
21902          *)
21903            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21904            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21905            ;;
21906        esac
21907       fi
21908       ;;
21909
21910     os2*)
21911       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21912       hardcode_minus_L_GCJ=yes
21913       allow_undefined_flag_GCJ=unsupported
21914       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'
21915       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21916       ;;
21917
21918     osf3*)
21919       if test "$GCC" = yes; then
21920         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21921         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'
21922       else
21923         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21924         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'
21925       fi
21926       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21927       hardcode_libdir_separator_GCJ=:
21928       ;;
21929
21930     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21931       if test "$GCC" = yes; then
21932         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21933         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'
21934         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21935       else
21936         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21937         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'
21938         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~
21939         $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'
21940
21941         # Both c and cxx compiler support -rpath directly
21942         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21943       fi
21944       hardcode_libdir_separator_GCJ=:
21945       ;;
21946
21947     sco3.2v5*)
21948       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21949       hardcode_shlibpath_var_GCJ=no
21950       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21951       runpath_var=LD_RUN_PATH
21952       hardcode_runpath_var=yes
21953       ;;
21954
21955     solaris*)
21956       no_undefined_flag_GCJ=' -z text'
21957       if test "$GCC" = yes; then
21958         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21959         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21960           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21961       else
21962         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21963         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21964         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21965       fi
21966       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21967       hardcode_shlibpath_var_GCJ=no
21968       case $host_os in
21969       solaris2.[0-5] | solaris2.[0-5].*) ;;
21970       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21971         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21972       esac
21973       link_all_deplibs_GCJ=yes
21974       ;;
21975
21976     sunos4*)
21977       if test "x$host_vendor" = xsequent; then
21978         # Use $CC to link under sequent, because it throws in some extra .o
21979         # files that make .init and .fini sections work.
21980         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21981       else
21982         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21983       fi
21984       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21985       hardcode_direct_GCJ=yes
21986       hardcode_minus_L_GCJ=yes
21987       hardcode_shlibpath_var_GCJ=no
21988       ;;
21989
21990     sysv4)
21991       case $host_vendor in
21992         sni)
21993           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21994           hardcode_direct_GCJ=yes # is this really true???
21995         ;;
21996         siemens)
21997           ## LD is ld it makes a PLAMLIB
21998           ## CC just makes a GrossModule.
21999           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22000           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22001           hardcode_direct_GCJ=no
22002         ;;
22003         motorola)
22004           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22005           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22006         ;;
22007       esac
22008       runpath_var='LD_RUN_PATH'
22009       hardcode_shlibpath_var_GCJ=no
22010       ;;
22011
22012     sysv4.3*)
22013       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014       hardcode_shlibpath_var_GCJ=no
22015       export_dynamic_flag_spec_GCJ='-Bexport'
22016       ;;
22017
22018     sysv4*MP*)
22019       if test -d /usr/nec; then
22020         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22021         hardcode_shlibpath_var_GCJ=no
22022         runpath_var=LD_RUN_PATH
22023         hardcode_runpath_var=yes
22024         ld_shlibs_GCJ=yes
22025       fi
22026       ;;
22027
22028     sysv4.2uw2*)
22029       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22030       hardcode_direct_GCJ=yes
22031       hardcode_minus_L_GCJ=no
22032       hardcode_shlibpath_var_GCJ=no
22033       hardcode_runpath_var=yes
22034       runpath_var=LD_RUN_PATH
22035       ;;
22036
22037    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22038       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22039       if test "$GCC" = yes; then
22040         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22041       else
22042         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22043       fi
22044       runpath_var='LD_RUN_PATH'
22045       hardcode_shlibpath_var_GCJ=no
22046       ;;
22047
22048     sysv5*)
22049       no_undefined_flag_GCJ=' -z text'
22050       # $CC -shared without GNU ld will not create a library from C++
22051       # object files and a static libstdc++, better avoid it by now
22052       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22053       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22054                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22055       hardcode_libdir_flag_spec_GCJ=
22056       hardcode_shlibpath_var_GCJ=no
22057       runpath_var='LD_RUN_PATH'
22058       ;;
22059
22060     uts4*)
22061       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22062       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22063       hardcode_shlibpath_var_GCJ=no
22064       ;;
22065
22066     *)
22067       ld_shlibs_GCJ=no
22068       ;;
22069     esac
22070   fi
22071
22072 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22073 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22074 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22075
22076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22077 if test "$GCC" = yes; then
22078   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22079 fi
22080
22081 #
22082 # Do we need to explicitly link libc?
22083 #
22084 case "x$archive_cmds_need_lc_GCJ" in
22085 x|xyes)
22086   # Assume -lc should be added
22087   archive_cmds_need_lc_GCJ=yes
22088
22089   if test "$enable_shared" = yes && test "$GCC" = yes; then
22090     case $archive_cmds_GCJ in
22091     *'~'*)
22092       # FIXME: we may have to deal with multi-command sequences.
22093       ;;
22094     '$CC '*)
22095       # Test whether the compiler implicitly links with -lc since on some
22096       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22097       # to ld, don't add -lc before -lgcc.
22098       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22099 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22100       $rm conftest*
22101       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22102
22103       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104   (eval $ac_compile) 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } 2>conftest.err; then
22108         soname=conftest
22109         lib=conftest
22110         libobjs=conftest.$ac_objext
22111         deplibs=
22112         wl=$lt_prog_compiler_wl_GCJ
22113         compiler_flags=-v
22114         linker_flags=-v
22115         verstring=
22116         output_objdir=.
22117         libname=conftest
22118         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22119         allow_undefined_flag_GCJ=
22120         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22121   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }
22125         then
22126           archive_cmds_need_lc_GCJ=no
22127         else
22128           archive_cmds_need_lc_GCJ=yes
22129         fi
22130         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22131       else
22132         cat conftest.err 1>&5
22133       fi
22134       $rm conftest*
22135       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22136 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22137       ;;
22138     esac
22139   fi
22140   ;;
22141 esac
22142
22143 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22144 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22145 library_names_spec=
22146 libname_spec='lib$name'
22147 soname_spec=
22148 shrext_cmds=".so"
22149 postinstall_cmds=
22150 postuninstall_cmds=
22151 finish_cmds=
22152 finish_eval=
22153 shlibpath_var=
22154 shlibpath_overrides_runpath=unknown
22155 version_type=none
22156 dynamic_linker="$host_os ld.so"
22157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22158 if test "$GCC" = yes; then
22159   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22160   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22161     # if the path contains ";" then we assume it to be the separator
22162     # otherwise default to the standard path separator (i.e. ":") - it is
22163     # assumed that no part of a normal pathname contains ";" but that should
22164     # okay in the real world where ";" in dirpaths is itself problematic.
22165     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22166   else
22167     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22168   fi
22169 else
22170   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22171 fi
22172 need_lib_prefix=unknown
22173 hardcode_into_libs=no
22174
22175 # when you set need_version to no, make sure it does not cause -set_version
22176 # flags to be left without arguments
22177 need_version=unknown
22178
22179 case $host_os in
22180 aix3*)
22181   version_type=linux
22182   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22183   shlibpath_var=LIBPATH
22184
22185   # AIX 3 has no versioning support, so we append a major version to the name.
22186   soname_spec='${libname}${release}${shared_ext}$major'
22187   ;;
22188
22189 aix4* | aix5*)
22190   version_type=linux
22191   need_lib_prefix=no
22192   need_version=no
22193   hardcode_into_libs=yes
22194   if test "$host_cpu" = ia64; then
22195     # AIX 5 supports IA64
22196     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22197     shlibpath_var=LD_LIBRARY_PATH
22198   else
22199     # With GCC up to 2.95.x, collect2 would create an import file
22200     # for dependence libraries.  The import file would start with
22201     # the line `#! .'.  This would cause the generated library to
22202     # depend on `.', always an invalid library.  This was fixed in
22203     # development snapshots of GCC prior to 3.0.
22204     case $host_os in
22205       aix4 | aix4.[01] | aix4.[01].*)
22206       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22207            echo ' yes '
22208            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22209         :
22210       else
22211         can_build_shared=no
22212       fi
22213       ;;
22214     esac
22215     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22216     # soname into executable. Probably we can add versioning support to
22217     # collect2, so additional links can be useful in future.
22218     if test "$aix_use_runtimelinking" = yes; then
22219       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22220       # instead of lib<name>.a to let people know that these are not
22221       # typical AIX shared libraries.
22222       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22223     else
22224       # We preserve .a as extension for shared libraries through AIX4.2
22225       # and later when we are not doing run time linking.
22226       library_names_spec='${libname}${release}.a $libname.a'
22227       soname_spec='${libname}${release}${shared_ext}$major'
22228     fi
22229     shlibpath_var=LIBPATH
22230   fi
22231   ;;
22232
22233 amigaos*)
22234   library_names_spec='$libname.ixlibrary $libname.a'
22235   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22236   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'
22237   ;;
22238
22239 beos*)
22240   library_names_spec='${libname}${shared_ext}'
22241   dynamic_linker="$host_os ld.so"
22242   shlibpath_var=LIBRARY_PATH
22243   ;;
22244
22245 bsdi[45]*)
22246   version_type=linux
22247   need_version=no
22248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22249   soname_spec='${libname}${release}${shared_ext}$major'
22250   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22251   shlibpath_var=LD_LIBRARY_PATH
22252   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22253   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22254   # the default ld.so.conf also contains /usr/contrib/lib and
22255   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22256   # libtool to hard-code these into programs
22257   ;;
22258
22259 cygwin* | mingw* | pw32*)
22260   version_type=windows
22261   shrext_cmds=".dll"
22262   need_version=no
22263   need_lib_prefix=no
22264
22265   case $GCC,$host_os in
22266   yes,cygwin* | yes,mingw* | yes,pw32*)
22267     library_names_spec='$libname.dll.a'
22268     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22269     postinstall_cmds='base_file=`basename \${file}`~
22270       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22271       dldir=$destdir/`dirname \$dlpath`~
22272       test -d \$dldir || mkdir -p \$dldir~
22273       $install_prog $dir/$dlname \$dldir/$dlname'
22274     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22275       dlpath=$dir/\$dldll~
22276        $rm \$dlpath'
22277     shlibpath_overrides_runpath=yes
22278
22279     case $host_os in
22280     cygwin*)
22281       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22282       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22283       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22284       ;;
22285     mingw*)
22286       # MinGW DLLs use traditional 'lib' prefix
22287       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22288       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22289       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22290         # It is most probably a Windows format PATH printed by
22291         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22292         # path with ; separators, and with drive letters. We can handle the
22293         # drive letters (cygwin fileutils understands them), so leave them,
22294         # especially as we might pass files found there to a mingw objdump,
22295         # which wouldn't understand a cygwinified path. Ahh.
22296         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22297       else
22298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22299       fi
22300       ;;
22301     pw32*)
22302       # pw32 DLLs use 'pw' prefix rather than 'lib'
22303       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22304       ;;
22305     esac
22306     ;;
22307
22308   *)
22309     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22310     ;;
22311   esac
22312   dynamic_linker='Win32 ld.exe'
22313   # FIXME: first we should search . and the directory the executable is in
22314   shlibpath_var=PATH
22315   ;;
22316
22317 darwin* | rhapsody*)
22318   dynamic_linker="$host_os dyld"
22319   version_type=darwin
22320   need_lib_prefix=no
22321   need_version=no
22322   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22323   soname_spec='${libname}${release}${major}$shared_ext'
22324   shlibpath_overrides_runpath=yes
22325   shlibpath_var=DYLD_LIBRARY_PATH
22326   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22327   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22328   if test "$GCC" = yes; then
22329     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"`
22330   else
22331     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22332   fi
22333   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22334   ;;
22335
22336 dgux*)
22337   version_type=linux
22338   need_lib_prefix=no
22339   need_version=no
22340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22341   soname_spec='${libname}${release}${shared_ext}$major'
22342   shlibpath_var=LD_LIBRARY_PATH
22343   ;;
22344
22345 freebsd1*)
22346   dynamic_linker=no
22347   ;;
22348
22349 kfreebsd*-gnu)
22350   version_type=linux
22351   need_lib_prefix=no
22352   need_version=no
22353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22354   soname_spec='${libname}${release}${shared_ext}$major'
22355   shlibpath_var=LD_LIBRARY_PATH
22356   shlibpath_overrides_runpath=no
22357   hardcode_into_libs=yes
22358   dynamic_linker='GNU ld.so'
22359   ;;
22360
22361 freebsd*)
22362   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22363   version_type=freebsd-$objformat
22364   case $version_type in
22365     freebsd-elf*)
22366       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22367       need_version=no
22368       need_lib_prefix=no
22369       ;;
22370     freebsd-*)
22371       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22372       need_version=yes
22373       ;;
22374   esac
22375   shlibpath_var=LD_LIBRARY_PATH
22376   case $host_os in
22377   freebsd2*)
22378     shlibpath_overrides_runpath=yes
22379     ;;
22380   freebsd3.01* | freebsdelf3.01*)
22381     shlibpath_overrides_runpath=yes
22382     hardcode_into_libs=yes
22383     ;;
22384   *) # from 3.2 on
22385     shlibpath_overrides_runpath=no
22386     hardcode_into_libs=yes
22387     ;;
22388   esac
22389   ;;
22390
22391 gnu*)
22392   version_type=linux
22393   need_lib_prefix=no
22394   need_version=no
22395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22396   soname_spec='${libname}${release}${shared_ext}$major'
22397   shlibpath_var=LD_LIBRARY_PATH
22398   hardcode_into_libs=yes
22399   ;;
22400
22401 hpux9* | hpux10* | hpux11*)
22402   # Give a soname corresponding to the major version so that dld.sl refuses to
22403   # link against other versions.
22404   version_type=sunos
22405   need_lib_prefix=no
22406   need_version=no
22407   case "$host_cpu" in
22408   ia64*)
22409     shrext_cmds='.so'
22410     hardcode_into_libs=yes
22411     dynamic_linker="$host_os dld.so"
22412     shlibpath_var=LD_LIBRARY_PATH
22413     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22415     soname_spec='${libname}${release}${shared_ext}$major'
22416     if test "X$HPUX_IA64_MODE" = X32; then
22417       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22418     else
22419       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22420     fi
22421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22422     ;;
22423    hppa*64*)
22424      shrext_cmds='.sl'
22425      hardcode_into_libs=yes
22426      dynamic_linker="$host_os dld.sl"
22427      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22428      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22429      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430      soname_spec='${libname}${release}${shared_ext}$major'
22431      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22432      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22433      ;;
22434    *)
22435     shrext_cmds='.sl'
22436     dynamic_linker="$host_os dld.sl"
22437     shlibpath_var=SHLIB_PATH
22438     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440     soname_spec='${libname}${release}${shared_ext}$major'
22441     ;;
22442   esac
22443   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22444   postinstall_cmds='chmod 555 $lib'
22445   ;;
22446
22447 irix5* | irix6* | nonstopux*)
22448   case $host_os in
22449     nonstopux*) version_type=nonstopux ;;
22450     *)
22451         if test "$lt_cv_prog_gnu_ld" = yes; then
22452                 version_type=linux
22453         else
22454                 version_type=irix
22455         fi ;;
22456   esac
22457   need_lib_prefix=no
22458   need_version=no
22459   soname_spec='${libname}${release}${shared_ext}$major'
22460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22461   case $host_os in
22462   irix5* | nonstopux*)
22463     libsuff= shlibsuff=
22464     ;;
22465   *)
22466     case $LD in # libtool.m4 will add one of these switches to LD
22467     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22468       libsuff= shlibsuff= libmagic=32-bit;;
22469     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22470       libsuff=32 shlibsuff=N32 libmagic=N32;;
22471     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22472       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22473     *) libsuff= shlibsuff= libmagic=never-match;;
22474     esac
22475     ;;
22476   esac
22477   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22478   shlibpath_overrides_runpath=no
22479   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22480   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22481   hardcode_into_libs=yes
22482   ;;
22483
22484 # No shared lib support for Linux oldld, aout, or coff.
22485 linux*oldld* | linux*aout* | linux*coff*)
22486   dynamic_linker=no
22487   ;;
22488
22489 # This must be Linux ELF.
22490 linux*)
22491   version_type=linux
22492   need_lib_prefix=no
22493   need_version=no
22494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22495   soname_spec='${libname}${release}${shared_ext}$major'
22496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22497   shlibpath_var=LD_LIBRARY_PATH
22498   shlibpath_overrides_runpath=no
22499   # This implies no fast_install, which is unacceptable.
22500   # Some rework will be needed to allow for fast_install
22501   # before this can be enabled.
22502   hardcode_into_libs=yes
22503
22504   # Append ld.so.conf contents to the search path
22505   if test -f /etc/ld.so.conf; then
22506     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22507     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22508   fi
22509
22510   # We used to test for /lib/ld.so.1 and disable shared libraries on
22511   # powerpc, because MkLinux only supported shared libraries with the
22512   # GNU dynamic linker.  Since this was broken with cross compilers,
22513   # most powerpc-linux boxes support dynamic linking these days and
22514   # people can always --disable-shared, the test was removed, and we
22515   # assume the GNU/Linux dynamic linker is in use.
22516   dynamic_linker='GNU/Linux ld.so'
22517   ;;
22518
22519 knetbsd*-gnu)
22520   version_type=linux
22521   need_lib_prefix=no
22522   need_version=no
22523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22524   soname_spec='${libname}${release}${shared_ext}$major'
22525   shlibpath_var=LD_LIBRARY_PATH
22526   shlibpath_overrides_runpath=no
22527   hardcode_into_libs=yes
22528   dynamic_linker='GNU ld.so'
22529   ;;
22530
22531 netbsd*)
22532   version_type=sunos
22533   need_lib_prefix=no
22534   need_version=no
22535   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22537     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22538     dynamic_linker='NetBSD (a.out) ld.so'
22539   else
22540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22541     soname_spec='${libname}${release}${shared_ext}$major'
22542     dynamic_linker='NetBSD ld.elf_so'
22543   fi
22544   shlibpath_var=LD_LIBRARY_PATH
22545   shlibpath_overrides_runpath=yes
22546   hardcode_into_libs=yes
22547   ;;
22548
22549 newsos6)
22550   version_type=linux
22551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22552   shlibpath_var=LD_LIBRARY_PATH
22553   shlibpath_overrides_runpath=yes
22554   ;;
22555
22556 nto-qnx*)
22557   version_type=linux
22558   need_lib_prefix=no
22559   need_version=no
22560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22561   soname_spec='${libname}${release}${shared_ext}$major'
22562   shlibpath_var=LD_LIBRARY_PATH
22563   shlibpath_overrides_runpath=yes
22564   ;;
22565
22566 openbsd*)
22567   version_type=sunos
22568   need_lib_prefix=no
22569   need_version=no
22570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22572   shlibpath_var=LD_LIBRARY_PATH
22573   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22574     case $host_os in
22575       openbsd2.[89] | openbsd2.[89].*)
22576         shlibpath_overrides_runpath=no
22577         ;;
22578       *)
22579         shlibpath_overrides_runpath=yes
22580         ;;
22581       esac
22582   else
22583     shlibpath_overrides_runpath=yes
22584   fi
22585   ;;
22586
22587 os2*)
22588   libname_spec='$name'
22589   shrext_cmds=".dll"
22590   need_lib_prefix=no
22591   library_names_spec='$libname${shared_ext} $libname.a'
22592   dynamic_linker='OS/2 ld.exe'
22593   shlibpath_var=LIBPATH
22594   ;;
22595
22596 osf3* | osf4* | osf5*)
22597   version_type=osf
22598   need_lib_prefix=no
22599   need_version=no
22600   soname_spec='${libname}${release}${shared_ext}$major'
22601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22602   shlibpath_var=LD_LIBRARY_PATH
22603   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22604   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22605   ;;
22606
22607 sco3.2v5*)
22608   version_type=osf
22609   soname_spec='${libname}${release}${shared_ext}$major'
22610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611   shlibpath_var=LD_LIBRARY_PATH
22612   ;;
22613
22614 solaris*)
22615   version_type=linux
22616   need_lib_prefix=no
22617   need_version=no
22618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22619   soname_spec='${libname}${release}${shared_ext}$major'
22620   shlibpath_var=LD_LIBRARY_PATH
22621   shlibpath_overrides_runpath=yes
22622   hardcode_into_libs=yes
22623   # ldd complains unless libraries are executable
22624   postinstall_cmds='chmod +x $lib'
22625   ;;
22626
22627 sunos4*)
22628   version_type=sunos
22629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22630   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22631   shlibpath_var=LD_LIBRARY_PATH
22632   shlibpath_overrides_runpath=yes
22633   if test "$with_gnu_ld" = yes; then
22634     need_lib_prefix=no
22635   fi
22636   need_version=yes
22637   ;;
22638
22639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22640   version_type=linux
22641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642   soname_spec='${libname}${release}${shared_ext}$major'
22643   shlibpath_var=LD_LIBRARY_PATH
22644   case $host_vendor in
22645     sni)
22646       shlibpath_overrides_runpath=no
22647       need_lib_prefix=no
22648       export_dynamic_flag_spec='${wl}-Blargedynsym'
22649       runpath_var=LD_RUN_PATH
22650       ;;
22651     siemens)
22652       need_lib_prefix=no
22653       ;;
22654     motorola)
22655       need_lib_prefix=no
22656       need_version=no
22657       shlibpath_overrides_runpath=no
22658       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22659       ;;
22660   esac
22661   ;;
22662
22663 sysv4*MP*)
22664   if test -d /usr/nec ;then
22665     version_type=linux
22666     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22667     soname_spec='$libname${shared_ext}.$major'
22668     shlibpath_var=LD_LIBRARY_PATH
22669   fi
22670   ;;
22671
22672 uts4*)
22673   version_type=linux
22674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675   soname_spec='${libname}${release}${shared_ext}$major'
22676   shlibpath_var=LD_LIBRARY_PATH
22677   ;;
22678
22679 *)
22680   dynamic_linker=no
22681   ;;
22682 esac
22683 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22684 echo "${ECHO_T}$dynamic_linker" >&6
22685 test "$dynamic_linker" = no && can_build_shared=no
22686
22687 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22688 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22689 hardcode_action_GCJ=
22690 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22691    test -n "$runpath_var_GCJ" || \
22692    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22693
22694   # We can hardcode non-existant directories.
22695   if test "$hardcode_direct_GCJ" != no &&
22696      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22697      # have to relink, otherwise we might link with an installed library
22698      # when we should be linking with a yet-to-be-installed one
22699      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22700      test "$hardcode_minus_L_GCJ" != no; then
22701     # Linking always hardcodes the temporary library directory.
22702     hardcode_action_GCJ=relink
22703   else
22704     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22705     hardcode_action_GCJ=immediate
22706   fi
22707 else
22708   # We cannot hardcode anything, or else we can only hardcode existing
22709   # directories.
22710   hardcode_action_GCJ=unsupported
22711 fi
22712 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22713 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22714
22715 if test "$hardcode_action_GCJ" = relink; then
22716   # Fast installation is not supported
22717   enable_fast_install=no
22718 elif test "$shlibpath_overrides_runpath" = yes ||
22719      test "$enable_shared" = no; then
22720   # Fast installation is not necessary
22721   enable_fast_install=needless
22722 fi
22723
22724 striplib=
22725 old_striplib=
22726 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22727 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22728 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22729   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22730   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22731   echo "$as_me:$LINENO: result: yes" >&5
22732 echo "${ECHO_T}yes" >&6
22733 else
22734 # FIXME - insert some real tests, host_os isn't really good enough
22735   case $host_os in
22736    darwin*)
22737        if test -n "$STRIP" ; then
22738          striplib="$STRIP -x"
22739          echo "$as_me:$LINENO: result: yes" >&5
22740 echo "${ECHO_T}yes" >&6
22741        else
22742   echo "$as_me:$LINENO: result: no" >&5
22743 echo "${ECHO_T}no" >&6
22744 fi
22745        ;;
22746    *)
22747   echo "$as_me:$LINENO: result: no" >&5
22748 echo "${ECHO_T}no" >&6
22749     ;;
22750   esac
22751 fi
22752
22753 if test "x$enable_dlopen" != xyes; then
22754   enable_dlopen=unknown
22755   enable_dlopen_self=unknown
22756   enable_dlopen_self_static=unknown
22757 else
22758   lt_cv_dlopen=no
22759   lt_cv_dlopen_libs=
22760
22761   case $host_os in
22762   beos*)
22763     lt_cv_dlopen="load_add_on"
22764     lt_cv_dlopen_libs=
22765     lt_cv_dlopen_self=yes
22766     ;;
22767
22768   mingw* | pw32*)
22769     lt_cv_dlopen="LoadLibrary"
22770     lt_cv_dlopen_libs=
22771    ;;
22772
22773   cygwin*)
22774     lt_cv_dlopen="dlopen"
22775     lt_cv_dlopen_libs=
22776    ;;
22777
22778   darwin*)
22779   # if libdl is installed we need to link against it
22780     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22783   echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785   ac_check_lib_save_LIBS=$LIBS
22786 LIBS="-ldl  $LIBS"
22787 cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h.  */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h.  */
22793
22794 /* Override any gcc2 internal prototype to avoid an error.  */
22795 #ifdef __cplusplus
22796 extern "C"
22797 #endif
22798 /* We use char because int might match the return type of a gcc2
22799    builtin and then its argument prototype would still apply.  */
22800 char dlopen ();
22801 int
22802 main ()
22803 {
22804 dlopen ();
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 rm -f conftest.$ac_objext conftest$ac_exeext
22810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22811   (eval $ac_link) 2>conftest.er1
22812   ac_status=$?
22813   grep -v '^ *+' conftest.er1 >conftest.err
22814   rm -f conftest.er1
22815   cat conftest.err >&5
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); } &&
22818          { ac_try='test -z "$ac_c_werror_flag"
22819                          || test ! -s conftest.err'
22820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821   (eval $ac_try) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); }; } &&
22825          { ac_try='test -s conftest$ac_exeext'
22826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827   (eval $ac_try) 2>&5
22828   ac_status=$?
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); }; }; then
22831   ac_cv_lib_dl_dlopen=yes
22832 else
22833   echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22835
22836 ac_cv_lib_dl_dlopen=no
22837 fi
22838 rm -f conftest.err conftest.$ac_objext \
22839       conftest$ac_exeext conftest.$ac_ext
22840 LIBS=$ac_check_lib_save_LIBS
22841 fi
22842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22844 if test $ac_cv_lib_dl_dlopen = yes; then
22845   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22846 else
22847
22848     lt_cv_dlopen="dyld"
22849     lt_cv_dlopen_libs=
22850     lt_cv_dlopen_self=yes
22851
22852 fi
22853
22854    ;;
22855
22856   *)
22857     echo "$as_me:$LINENO: checking for shl_load" >&5
22858 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22859 if test "${ac_cv_func_shl_load+set}" = set; then
22860   echo $ECHO_N "(cached) $ECHO_C" >&6
22861 else
22862   cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22870 #define shl_load innocuous_shl_load
22871
22872 /* System header to define __stub macros and hopefully few prototypes,
22873     which can conflict with char shl_load (); below.
22874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22875     <limits.h> exists even on freestanding compilers.  */
22876
22877 #ifdef __STDC__
22878 # include <limits.h>
22879 #else
22880 # include <assert.h>
22881 #endif
22882
22883 #undef shl_load
22884
22885 /* Override any gcc2 internal prototype to avoid an error.  */
22886 #ifdef __cplusplus
22887 extern "C"
22888 {
22889 #endif
22890 /* We use char because int might match the return type of a gcc2
22891    builtin and then its argument prototype would still apply.  */
22892 char shl_load ();
22893 /* The GNU C library defines this for functions which it implements
22894     to always fail with ENOSYS.  Some functions are actually named
22895     something starting with __ and the normal name is an alias.  */
22896 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22897 choke me
22898 #else
22899 char (*f) () = shl_load;
22900 #endif
22901 #ifdef __cplusplus
22902 }
22903 #endif
22904
22905 int
22906 main ()
22907 {
22908 return f != shl_load;
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22915   (eval $ac_link) 2>conftest.er1
22916   ac_status=$?
22917   grep -v '^ *+' conftest.er1 >conftest.err
22918   rm -f conftest.er1
22919   cat conftest.err >&5
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); } &&
22922          { ac_try='test -z "$ac_c_werror_flag"
22923                          || test ! -s conftest.err'
22924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925   (eval $ac_try) 2>&5
22926   ac_status=$?
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); }; } &&
22929          { ac_try='test -s conftest$ac_exeext'
22930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931   (eval $ac_try) 2>&5
22932   ac_status=$?
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); }; }; then
22935   ac_cv_func_shl_load=yes
22936 else
22937   echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940 ac_cv_func_shl_load=no
22941 fi
22942 rm -f conftest.err conftest.$ac_objext \
22943       conftest$ac_exeext conftest.$ac_ext
22944 fi
22945 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22946 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22947 if test $ac_cv_func_shl_load = yes; then
22948   lt_cv_dlopen="shl_load"
22949 else
22950   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22953   echo $ECHO_N "(cached) $ECHO_C" >&6
22954 else
22955   ac_check_lib_save_LIBS=$LIBS
22956 LIBS="-ldld  $LIBS"
22957 cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963
22964 /* Override any gcc2 internal prototype to avoid an error.  */
22965 #ifdef __cplusplus
22966 extern "C"
22967 #endif
22968 /* We use char because int might match the return type of a gcc2
22969    builtin and then its argument prototype would still apply.  */
22970 char shl_load ();
22971 int
22972 main ()
22973 {
22974 shl_load ();
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22981   (eval $ac_link) 2>conftest.er1
22982   ac_status=$?
22983   grep -v '^ *+' conftest.er1 >conftest.err
22984   rm -f conftest.er1
22985   cat conftest.err >&5
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); } &&
22988          { ac_try='test -z "$ac_c_werror_flag"
22989                          || test ! -s conftest.err'
22990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991   (eval $ac_try) 2>&5
22992   ac_status=$?
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); }; } &&
22995          { ac_try='test -s conftest$ac_exeext'
22996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997   (eval $ac_try) 2>&5
22998   ac_status=$?
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); }; }; then
23001   ac_cv_lib_dld_shl_load=yes
23002 else
23003   echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23005
23006 ac_cv_lib_dld_shl_load=no
23007 fi
23008 rm -f conftest.err conftest.$ac_objext \
23009       conftest$ac_exeext conftest.$ac_ext
23010 LIBS=$ac_check_lib_save_LIBS
23011 fi
23012 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23013 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23014 if test $ac_cv_lib_dld_shl_load = yes; then
23015   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23016 else
23017   echo "$as_me:$LINENO: checking for dlopen" >&5
23018 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23019 if test "${ac_cv_func_dlopen+set}" = set; then
23020   echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022   cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h.  */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h.  */
23028 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23030 #define dlopen innocuous_dlopen
23031
23032 /* System header to define __stub macros and hopefully few prototypes,
23033     which can conflict with char dlopen (); below.
23034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23035     <limits.h> exists even on freestanding compilers.  */
23036
23037 #ifdef __STDC__
23038 # include <limits.h>
23039 #else
23040 # include <assert.h>
23041 #endif
23042
23043 #undef dlopen
23044
23045 /* Override any gcc2 internal prototype to avoid an error.  */
23046 #ifdef __cplusplus
23047 extern "C"
23048 {
23049 #endif
23050 /* We use char because int might match the return type of a gcc2
23051    builtin and then its argument prototype would still apply.  */
23052 char dlopen ();
23053 /* The GNU C library defines this for functions which it implements
23054     to always fail with ENOSYS.  Some functions are actually named
23055     something starting with __ and the normal name is an alias.  */
23056 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23057 choke me
23058 #else
23059 char (*f) () = dlopen;
23060 #endif
23061 #ifdef __cplusplus
23062 }
23063 #endif
23064
23065 int
23066 main ()
23067 {
23068 return f != dlopen;
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23075   (eval $ac_link) 2>conftest.er1
23076   ac_status=$?
23077   grep -v '^ *+' conftest.er1 >conftest.err
23078   rm -f conftest.er1
23079   cat conftest.err >&5
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } &&
23082          { ac_try='test -z "$ac_c_werror_flag"
23083                          || test ! -s conftest.err'
23084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085   (eval $ac_try) 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); }; } &&
23089          { ac_try='test -s conftest$ac_exeext'
23090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091   (eval $ac_try) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; }; then
23095   ac_cv_func_dlopen=yes
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ac_cv_func_dlopen=no
23101 fi
23102 rm -f conftest.err conftest.$ac_objext \
23103       conftest$ac_exeext conftest.$ac_ext
23104 fi
23105 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23106 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23107 if test $ac_cv_func_dlopen = yes; then
23108   lt_cv_dlopen="dlopen"
23109 else
23110   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23113   echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115   ac_check_lib_save_LIBS=$LIBS
23116 LIBS="-ldl  $LIBS"
23117 cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h.  */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h.  */
23123
23124 /* Override any gcc2 internal prototype to avoid an error.  */
23125 #ifdef __cplusplus
23126 extern "C"
23127 #endif
23128 /* We use char because int might match the return type of a gcc2
23129    builtin and then its argument prototype would still apply.  */
23130 char dlopen ();
23131 int
23132 main ()
23133 {
23134 dlopen ();
23135   ;
23136   return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23141   (eval $ac_link) 2>conftest.er1
23142   ac_status=$?
23143   grep -v '^ *+' conftest.er1 >conftest.err
23144   rm -f conftest.er1
23145   cat conftest.err >&5
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); } &&
23148          { ac_try='test -z "$ac_c_werror_flag"
23149                          || test ! -s conftest.err'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; } &&
23155          { ac_try='test -s conftest$ac_exeext'
23156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); }; }; then
23161   ac_cv_lib_dl_dlopen=yes
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166 ac_cv_lib_dl_dlopen=no
23167 fi
23168 rm -f conftest.err conftest.$ac_objext \
23169       conftest$ac_exeext conftest.$ac_ext
23170 LIBS=$ac_check_lib_save_LIBS
23171 fi
23172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23174 if test $ac_cv_lib_dl_dlopen = yes; then
23175   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23176 else
23177   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23178 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23179 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182   ac_check_lib_save_LIBS=$LIBS
23183 LIBS="-lsvld  $LIBS"
23184 cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h.  */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h.  */
23190
23191 /* Override any gcc2 internal prototype to avoid an error.  */
23192 #ifdef __cplusplus
23193 extern "C"
23194 #endif
23195 /* We use char because int might match the return type of a gcc2
23196    builtin and then its argument prototype would still apply.  */
23197 char dlopen ();
23198 int
23199 main ()
23200 {
23201 dlopen ();
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23208   (eval $ac_link) 2>conftest.er1
23209   ac_status=$?
23210   grep -v '^ *+' conftest.er1 >conftest.err
23211   rm -f conftest.er1
23212   cat conftest.err >&5
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); } &&
23215          { ac_try='test -z "$ac_c_werror_flag"
23216                          || test ! -s conftest.err'
23217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218   (eval $ac_try) 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); }; } &&
23222          { ac_try='test -s conftest$ac_exeext'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; }; then
23228   ac_cv_lib_svld_dlopen=yes
23229 else
23230   echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ac_cv_lib_svld_dlopen=no
23234 fi
23235 rm -f conftest.err conftest.$ac_objext \
23236       conftest$ac_exeext conftest.$ac_ext
23237 LIBS=$ac_check_lib_save_LIBS
23238 fi
23239 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23241 if test $ac_cv_lib_svld_dlopen = yes; then
23242   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23243 else
23244   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   ac_check_lib_save_LIBS=$LIBS
23250 LIBS="-ldld  $LIBS"
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257
23258 /* Override any gcc2 internal prototype to avoid an error.  */
23259 #ifdef __cplusplus
23260 extern "C"
23261 #endif
23262 /* We use char because int might match the return type of a gcc2
23263    builtin and then its argument prototype would still apply.  */
23264 char dld_link ();
23265 int
23266 main ()
23267 {
23268 dld_link ();
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 rm -f conftest.$ac_objext conftest$ac_exeext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23275   (eval $ac_link) 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } &&
23282          { ac_try='test -z "$ac_c_werror_flag"
23283                          || test ! -s conftest.err'
23284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; } &&
23289          { ac_try='test -s conftest$ac_exeext'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ac_cv_lib_dld_dld_link=yes
23296 else
23297   echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 ac_cv_lib_dld_dld_link=no
23301 fi
23302 rm -f conftest.err conftest.$ac_objext \
23303       conftest$ac_exeext conftest.$ac_ext
23304 LIBS=$ac_check_lib_save_LIBS
23305 fi
23306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23308 if test $ac_cv_lib_dld_dld_link = yes; then
23309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23310 fi
23311
23312
23313 fi
23314
23315
23316 fi
23317
23318
23319 fi
23320
23321
23322 fi
23323
23324
23325 fi
23326
23327     ;;
23328   esac
23329
23330   if test "x$lt_cv_dlopen" != xno; then
23331     enable_dlopen=yes
23332   else
23333     enable_dlopen=no
23334   fi
23335
23336   case $lt_cv_dlopen in
23337   dlopen)
23338     save_CPPFLAGS="$CPPFLAGS"
23339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23340
23341     save_LDFLAGS="$LDFLAGS"
23342     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23343
23344     save_LIBS="$LIBS"
23345     LIBS="$lt_cv_dlopen_libs $LIBS"
23346
23347     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23349 if test "${lt_cv_dlopen_self+set}" = set; then
23350   echo $ECHO_N "(cached) $ECHO_C" >&6
23351 else
23352           if test "$cross_compiling" = yes; then :
23353   lt_cv_dlopen_self=cross
23354 else
23355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23356   lt_status=$lt_dlunknown
23357   cat > conftest.$ac_ext <<EOF
23358 #line 23358 "configure"
23359 #include "confdefs.h"
23360
23361 #if HAVE_DLFCN_H
23362 #include <dlfcn.h>
23363 #endif
23364
23365 #include <stdio.h>
23366
23367 #ifdef RTLD_GLOBAL
23368 #  define LT_DLGLOBAL           RTLD_GLOBAL
23369 #else
23370 #  ifdef DL_GLOBAL
23371 #    define LT_DLGLOBAL         DL_GLOBAL
23372 #  else
23373 #    define LT_DLGLOBAL         0
23374 #  endif
23375 #endif
23376
23377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23378    find out it does not work in some platform. */
23379 #ifndef LT_DLLAZY_OR_NOW
23380 #  ifdef RTLD_LAZY
23381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23382 #  else
23383 #    ifdef DL_LAZY
23384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23385 #    else
23386 #      ifdef RTLD_NOW
23387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23388 #      else
23389 #        ifdef DL_NOW
23390 #          define LT_DLLAZY_OR_NOW      DL_NOW
23391 #        else
23392 #          define LT_DLLAZY_OR_NOW      0
23393 #        endif
23394 #      endif
23395 #    endif
23396 #  endif
23397 #endif
23398
23399 #ifdef __cplusplus
23400 extern "C" void exit (int);
23401 #endif
23402
23403 void fnord() { int i=42;}
23404 int main ()
23405 {
23406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23407   int status = $lt_dlunknown;
23408
23409   if (self)
23410     {
23411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23413       /* dlclose (self); */
23414     }
23415
23416     exit (status);
23417 }
23418 EOF
23419   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420   (eval $ac_link) 2>&5
23421   ac_status=$?
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23424     (./conftest; exit; ) 2>/dev/null
23425     lt_status=$?
23426     case x$lt_status in
23427       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23428       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23429       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23430     esac
23431   else :
23432     # compilation failed
23433     lt_cv_dlopen_self=no
23434   fi
23435 fi
23436 rm -fr conftest*
23437
23438
23439 fi
23440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23442
23443     if test "x$lt_cv_dlopen_self" = xyes; then
23444       LDFLAGS="$LDFLAGS $link_static_flag"
23445       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23447 if test "${lt_cv_dlopen_self_static+set}" = set; then
23448   echo $ECHO_N "(cached) $ECHO_C" >&6
23449 else
23450           if test "$cross_compiling" = yes; then :
23451   lt_cv_dlopen_self_static=cross
23452 else
23453   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23454   lt_status=$lt_dlunknown
23455   cat > conftest.$ac_ext <<EOF
23456 #line 23456 "configure"
23457 #include "confdefs.h"
23458
23459 #if HAVE_DLFCN_H
23460 #include <dlfcn.h>
23461 #endif
23462
23463 #include <stdio.h>
23464
23465 #ifdef RTLD_GLOBAL
23466 #  define LT_DLGLOBAL           RTLD_GLOBAL
23467 #else
23468 #  ifdef DL_GLOBAL
23469 #    define LT_DLGLOBAL         DL_GLOBAL
23470 #  else
23471 #    define LT_DLGLOBAL         0
23472 #  endif
23473 #endif
23474
23475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23476    find out it does not work in some platform. */
23477 #ifndef LT_DLLAZY_OR_NOW
23478 #  ifdef RTLD_LAZY
23479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23480 #  else
23481 #    ifdef DL_LAZY
23482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23483 #    else
23484 #      ifdef RTLD_NOW
23485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23486 #      else
23487 #        ifdef DL_NOW
23488 #          define LT_DLLAZY_OR_NOW      DL_NOW
23489 #        else
23490 #          define LT_DLLAZY_OR_NOW      0
23491 #        endif
23492 #      endif
23493 #    endif
23494 #  endif
23495 #endif
23496
23497 #ifdef __cplusplus
23498 extern "C" void exit (int);
23499 #endif
23500
23501 void fnord() { int i=42;}
23502 int main ()
23503 {
23504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23505   int status = $lt_dlunknown;
23506
23507   if (self)
23508     {
23509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23511       /* dlclose (self); */
23512     }
23513
23514     exit (status);
23515 }
23516 EOF
23517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518   (eval $ac_link) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23522     (./conftest; exit; ) 2>/dev/null
23523     lt_status=$?
23524     case x$lt_status in
23525       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23526       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23527       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23528     esac
23529   else :
23530     # compilation failed
23531     lt_cv_dlopen_self_static=no
23532   fi
23533 fi
23534 rm -fr conftest*
23535
23536
23537 fi
23538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23540     fi
23541
23542     CPPFLAGS="$save_CPPFLAGS"
23543     LDFLAGS="$save_LDFLAGS"
23544     LIBS="$save_LIBS"
23545     ;;
23546   esac
23547
23548   case $lt_cv_dlopen_self in
23549   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23550   *) enable_dlopen_self=unknown ;;
23551   esac
23552
23553   case $lt_cv_dlopen_self_static in
23554   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23555   *) enable_dlopen_self_static=unknown ;;
23556   esac
23557 fi
23558
23559
23560 # The else clause should only fire when bootstrapping the
23561 # libtool distribution, otherwise you forgot to ship ltmain.sh
23562 # with your package, and you will get complaints that there are
23563 # no rules to generate ltmain.sh.
23564 if test -f "$ltmain"; then
23565   # See if we are running on zsh, and set the options which allow our commands through
23566   # without removal of \ escapes.
23567   if test -n "${ZSH_VERSION+set}" ; then
23568     setopt NO_GLOB_SUBST
23569   fi
23570   # Now quote all the things that may contain metacharacters while being
23571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23572   # variables and quote the copies for generation of the libtool script.
23573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23574     SED SHELL STRIP \
23575     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23576     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23577     deplibs_check_method reload_flag reload_cmds need_locks \
23578     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23579     lt_cv_sys_global_symbol_to_c_name_address \
23580     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23581     old_postinstall_cmds old_postuninstall_cmds \
23582     compiler_GCJ \
23583     CC_GCJ \
23584     LD_GCJ \
23585     lt_prog_compiler_wl_GCJ \
23586     lt_prog_compiler_pic_GCJ \
23587     lt_prog_compiler_static_GCJ \
23588     lt_prog_compiler_no_builtin_flag_GCJ \
23589     export_dynamic_flag_spec_GCJ \
23590     thread_safe_flag_spec_GCJ \
23591     whole_archive_flag_spec_GCJ \
23592     enable_shared_with_static_runtimes_GCJ \
23593     old_archive_cmds_GCJ \
23594     old_archive_from_new_cmds_GCJ \
23595     predep_objects_GCJ \
23596     postdep_objects_GCJ \
23597     predeps_GCJ \
23598     postdeps_GCJ \
23599     compiler_lib_search_path_GCJ \
23600     archive_cmds_GCJ \
23601     archive_expsym_cmds_GCJ \
23602     postinstall_cmds_GCJ \
23603     postuninstall_cmds_GCJ \
23604     old_archive_from_expsyms_cmds_GCJ \
23605     allow_undefined_flag_GCJ \
23606     no_undefined_flag_GCJ \
23607     export_symbols_cmds_GCJ \
23608     hardcode_libdir_flag_spec_GCJ \
23609     hardcode_libdir_flag_spec_ld_GCJ \
23610     hardcode_libdir_separator_GCJ \
23611     hardcode_automatic_GCJ \
23612     module_cmds_GCJ \
23613     module_expsym_cmds_GCJ \
23614     lt_cv_prog_compiler_c_o_GCJ \
23615     exclude_expsyms_GCJ \
23616     include_expsyms_GCJ; do
23617
23618     case $var in
23619     old_archive_cmds_GCJ | \
23620     old_archive_from_new_cmds_GCJ | \
23621     archive_cmds_GCJ | \
23622     archive_expsym_cmds_GCJ | \
23623     module_cmds_GCJ | \
23624     module_expsym_cmds_GCJ | \
23625     old_archive_from_expsyms_cmds_GCJ | \
23626     export_symbols_cmds_GCJ | \
23627     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23628     postinstall_cmds | postuninstall_cmds | \
23629     old_postinstall_cmds | old_postuninstall_cmds | \
23630     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23631       # Double-quote double-evaled strings.
23632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23633       ;;
23634     *)
23635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23636       ;;
23637     esac
23638   done
23639
23640   case $lt_echo in
23641   *'\$0 --fallback-echo"')
23642     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23643     ;;
23644   esac
23645
23646 cfgfile="$ofile"
23647
23648   cat <<__EOF__ >> "$cfgfile"
23649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23650
23651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23652
23653 # Shell to use when invoking shell scripts.
23654 SHELL=$lt_SHELL
23655
23656 # Whether or not to build shared libraries.
23657 build_libtool_libs=$enable_shared
23658
23659 # Whether or not to build static libraries.
23660 build_old_libs=$enable_static
23661
23662 # Whether or not to add -lc for building shared libraries.
23663 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23664
23665 # Whether or not to disallow shared libs when runtime libs are static
23666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23667
23668 # Whether or not to optimize for fast installation.
23669 fast_install=$enable_fast_install
23670
23671 # The host system.
23672 host_alias=$host_alias
23673 host=$host
23674
23675 # An echo program that does not interpret backslashes.
23676 echo=$lt_echo
23677
23678 # The archiver.
23679 AR=$lt_AR
23680 AR_FLAGS=$lt_AR_FLAGS
23681
23682 # A C compiler.
23683 LTCC=$lt_LTCC
23684
23685 # A language-specific compiler.
23686 CC=$lt_compiler_GCJ
23687
23688 # Is the compiler the GNU C compiler?
23689 with_gcc=$GCC_GCJ
23690
23691 # An ERE matcher.
23692 EGREP=$lt_EGREP
23693
23694 # The linker used to build libraries.
23695 LD=$lt_LD_GCJ
23696
23697 # Whether we need hard or soft links.
23698 LN_S=$lt_LN_S
23699
23700 # A BSD-compatible nm program.
23701 NM=$lt_NM
23702
23703 # A symbol stripping program
23704 STRIP=$lt_STRIP
23705
23706 # Used to examine libraries when file_magic_cmd begins "file"
23707 MAGIC_CMD=$MAGIC_CMD
23708
23709 # Used on cygwin: DLL creation program.
23710 DLLTOOL="$DLLTOOL"
23711
23712 # Used on cygwin: object dumper.
23713 OBJDUMP="$OBJDUMP"
23714
23715 # Used on cygwin: assembler.
23716 AS="$AS"
23717
23718 # The name of the directory that contains temporary libtool files.
23719 objdir=$objdir
23720
23721 # How to create reloadable object files.
23722 reload_flag=$lt_reload_flag
23723 reload_cmds=$lt_reload_cmds
23724
23725 # How to pass a linker flag through the compiler.
23726 wl=$lt_lt_prog_compiler_wl_GCJ
23727
23728 # Object file suffix (normally "o").
23729 objext="$ac_objext"
23730
23731 # Old archive suffix (normally "a").
23732 libext="$libext"
23733
23734 # Shared library suffix (normally ".so").
23735 shrext_cmds='$shrext_cmds'
23736
23737 # Executable file suffix (normally "").
23738 exeext="$exeext"
23739
23740 # Additional compiler flags for building library objects.
23741 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23742 pic_mode=$pic_mode
23743
23744 # What is the maximum length of a command?
23745 max_cmd_len=$lt_cv_sys_max_cmd_len
23746
23747 # Does compiler simultaneously support -c and -o options?
23748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23749
23750 # Must we lock files when doing compilation ?
23751 need_locks=$lt_need_locks
23752
23753 # Do we need the lib prefix for modules?
23754 need_lib_prefix=$need_lib_prefix
23755
23756 # Do we need a version for libraries?
23757 need_version=$need_version
23758
23759 # Whether dlopen is supported.
23760 dlopen_support=$enable_dlopen
23761
23762 # Whether dlopen of programs is supported.
23763 dlopen_self=$enable_dlopen_self
23764
23765 # Whether dlopen of statically linked programs is supported.
23766 dlopen_self_static=$enable_dlopen_self_static
23767
23768 # Compiler flag to prevent dynamic linking.
23769 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23770
23771 # Compiler flag to turn off builtin functions.
23772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23773
23774 # Compiler flag to allow reflexive dlopens.
23775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23776
23777 # Compiler flag to generate shared objects directly from archives.
23778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23779
23780 # Compiler flag to generate thread-safe objects.
23781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23782
23783 # Library versioning type.
23784 version_type=$version_type
23785
23786 # Format of library name prefix.
23787 libname_spec=$lt_libname_spec
23788
23789 # List of archive names.  First name is the real one, the rest are links.
23790 # The last name is the one that the linker finds with -lNAME.
23791 library_names_spec=$lt_library_names_spec
23792
23793 # The coded name of the library, if different from the real name.
23794 soname_spec=$lt_soname_spec
23795
23796 # Commands used to build and install an old-style archive.
23797 RANLIB=$lt_RANLIB
23798 old_archive_cmds=$lt_old_archive_cmds_GCJ
23799 old_postinstall_cmds=$lt_old_postinstall_cmds
23800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23801
23802 # Create an old-style archive from a shared archive.
23803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23804
23805 # Create a temporary old-style archive to link instead of a shared archive.
23806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23807
23808 # Commands used to build and install a shared archive.
23809 archive_cmds=$lt_archive_cmds_GCJ
23810 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23811 postinstall_cmds=$lt_postinstall_cmds
23812 postuninstall_cmds=$lt_postuninstall_cmds
23813
23814 # Commands used to build a loadable module (assumed same as above if empty)
23815 module_cmds=$lt_module_cmds_GCJ
23816 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23817
23818 # Commands to strip libraries.
23819 old_striplib=$lt_old_striplib
23820 striplib=$lt_striplib
23821
23822 # Dependencies to place before the objects being linked to create a
23823 # shared library.
23824 predep_objects=$lt_predep_objects_GCJ
23825
23826 # Dependencies to place after the objects being linked to create a
23827 # shared library.
23828 postdep_objects=$lt_postdep_objects_GCJ
23829
23830 # Dependencies to place before the objects being linked to create a
23831 # shared library.
23832 predeps=$lt_predeps_GCJ
23833
23834 # Dependencies to place after the objects being linked to create a
23835 # shared library.
23836 postdeps=$lt_postdeps_GCJ
23837
23838 # The library search path used internally by the compiler when linking
23839 # a shared library.
23840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23841
23842 # Method to check whether dependent libraries are shared objects.
23843 deplibs_check_method=$lt_deplibs_check_method
23844
23845 # Command to use when deplibs_check_method == file_magic.
23846 file_magic_cmd=$lt_file_magic_cmd
23847
23848 # Flag that allows shared libraries with undefined symbols to be built.
23849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23850
23851 # Flag that forces no undefined symbols.
23852 no_undefined_flag=$lt_no_undefined_flag_GCJ
23853
23854 # Commands used to finish a libtool library installation in a directory.
23855 finish_cmds=$lt_finish_cmds
23856
23857 # Same as above, but a single script fragment to be evaled but not shown.
23858 finish_eval=$lt_finish_eval
23859
23860 # Take the output of nm and produce a listing of raw symbols and C names.
23861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23862
23863 # Transform the output of nm in a proper C declaration
23864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23865
23866 # Transform the output of nm in a C name address pair
23867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23868
23869 # This is the shared library runtime path variable.
23870 runpath_var=$runpath_var
23871
23872 # This is the shared library path variable.
23873 shlibpath_var=$shlibpath_var
23874
23875 # Is shlibpath searched before the hard-coded library search path?
23876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23877
23878 # How to hardcode a shared library path into an executable.
23879 hardcode_action=$hardcode_action_GCJ
23880
23881 # Whether we should hardcode library paths into libraries.
23882 hardcode_into_libs=$hardcode_into_libs
23883
23884 # Flag to hardcode \$libdir into a binary during linking.
23885 # This must work even if \$libdir does not exist.
23886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23887
23888 # If ld is used when linking, flag to hardcode \$libdir into
23889 # a binary during linking. This must work even if \$libdir does
23890 # not exist.
23891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23892
23893 # Whether we need a single -rpath flag with a separated argument.
23894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23895
23896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23897 # resulting binary.
23898 hardcode_direct=$hardcode_direct_GCJ
23899
23900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23901 # resulting binary.
23902 hardcode_minus_L=$hardcode_minus_L_GCJ
23903
23904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23905 # the resulting binary.
23906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23907
23908 # Set to yes if building a shared library automatically hardcodes DIR into the library
23909 # and all subsequent libraries and executables linked against it.
23910 hardcode_automatic=$hardcode_automatic_GCJ
23911
23912 # Variables whose values should be saved in libtool wrapper scripts and
23913 # restored at relink time.
23914 variables_saved_for_relink="$variables_saved_for_relink"
23915
23916 # Whether libtool must link a program against all its dependency libraries.
23917 link_all_deplibs=$link_all_deplibs_GCJ
23918
23919 # Compile-time system search path for libraries
23920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23921
23922 # Run-time system search path for libraries
23923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23924
23925 # Fix the shell variable \$srcfile for the compiler.
23926 fix_srcfile_path="$fix_srcfile_path_GCJ"
23927
23928 # Set to yes if exported symbols are required.
23929 always_export_symbols=$always_export_symbols_GCJ
23930
23931 # The commands to list exported symbols.
23932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23933
23934 # The commands to extract the exported symbol list from a shared archive.
23935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23936
23937 # Symbols that should not be listed in the preloaded symbols.
23938 exclude_expsyms=$lt_exclude_expsyms_GCJ
23939
23940 # Symbols that must always be exported.
23941 include_expsyms=$lt_include_expsyms_GCJ
23942
23943 # ### END LIBTOOL TAG CONFIG: $tagname
23944
23945 __EOF__
23946
23947
23948 else
23949   # If there is no Makefile yet, we rely on a make rule to execute
23950   # `config.status --recheck' to rerun these tests and create the
23951   # libtool script then.
23952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23953   if test -f "$ltmain_in"; then
23954     test -f Makefile && make "$ltmain"
23955   fi
23956 fi
23957
23958
23959 ac_ext=c
23960 ac_cpp='$CPP $CPPFLAGS'
23961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23964
23965 CC="$lt_save_CC"
23966
23967         else
23968           tagname=""
23969         fi
23970         ;;
23971
23972       RC)
23973         ac_ext=c
23974 ac_cpp='$CPP $CPPFLAGS'
23975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23978
23979
23980 # Source file extension for RC test sources.
23981 ac_ext=rc
23982
23983 # Object file extension for compiled RC test sources.
23984 objext=o
23985 objext_RC=$objext
23986
23987 # Code to be used in simple compile tests
23988 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23989
23990 # Code to be used in simple link tests
23991 lt_simple_link_test_code="$lt_simple_compile_test_code"
23992
23993 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23994
23995 # If no C compiler was specified, use CC.
23996 LTCC=${LTCC-"$CC"}
23997
23998 # Allow CC to be a program name with arguments.
23999 compiler=$CC
24000
24001
24002 # Allow CC to be a program name with arguments.
24003 lt_save_CC="$CC"
24004 CC=${RC-"windres"}
24005 compiler=$CC
24006 compiler_RC=$CC
24007 lt_cv_prog_compiler_c_o_RC=yes
24008
24009 # The else clause should only fire when bootstrapping the
24010 # libtool distribution, otherwise you forgot to ship ltmain.sh
24011 # with your package, and you will get complaints that there are
24012 # no rules to generate ltmain.sh.
24013 if test -f "$ltmain"; then
24014   # See if we are running on zsh, and set the options which allow our commands through
24015   # without removal of \ escapes.
24016   if test -n "${ZSH_VERSION+set}" ; then
24017     setopt NO_GLOB_SUBST
24018   fi
24019   # Now quote all the things that may contain metacharacters while being
24020   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24021   # variables and quote the copies for generation of the libtool script.
24022   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24023     SED SHELL STRIP \
24024     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24025     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24026     deplibs_check_method reload_flag reload_cmds need_locks \
24027     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24028     lt_cv_sys_global_symbol_to_c_name_address \
24029     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24030     old_postinstall_cmds old_postuninstall_cmds \
24031     compiler_RC \
24032     CC_RC \
24033     LD_RC \
24034     lt_prog_compiler_wl_RC \
24035     lt_prog_compiler_pic_RC \
24036     lt_prog_compiler_static_RC \
24037     lt_prog_compiler_no_builtin_flag_RC \
24038     export_dynamic_flag_spec_RC \
24039     thread_safe_flag_spec_RC \
24040     whole_archive_flag_spec_RC \
24041     enable_shared_with_static_runtimes_RC \
24042     old_archive_cmds_RC \
24043     old_archive_from_new_cmds_RC \
24044     predep_objects_RC \
24045     postdep_objects_RC \
24046     predeps_RC \
24047     postdeps_RC \
24048     compiler_lib_search_path_RC \
24049     archive_cmds_RC \
24050     archive_expsym_cmds_RC \
24051     postinstall_cmds_RC \
24052     postuninstall_cmds_RC \
24053     old_archive_from_expsyms_cmds_RC \
24054     allow_undefined_flag_RC \
24055     no_undefined_flag_RC \
24056     export_symbols_cmds_RC \
24057     hardcode_libdir_flag_spec_RC \
24058     hardcode_libdir_flag_spec_ld_RC \
24059     hardcode_libdir_separator_RC \
24060     hardcode_automatic_RC \
24061     module_cmds_RC \
24062     module_expsym_cmds_RC \
24063     lt_cv_prog_compiler_c_o_RC \
24064     exclude_expsyms_RC \
24065     include_expsyms_RC; do
24066
24067     case $var in
24068     old_archive_cmds_RC | \
24069     old_archive_from_new_cmds_RC | \
24070     archive_cmds_RC | \
24071     archive_expsym_cmds_RC | \
24072     module_cmds_RC | \
24073     module_expsym_cmds_RC | \
24074     old_archive_from_expsyms_cmds_RC | \
24075     export_symbols_cmds_RC | \
24076     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24077     postinstall_cmds | postuninstall_cmds | \
24078     old_postinstall_cmds | old_postuninstall_cmds | \
24079     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24080       # Double-quote double-evaled strings.
24081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24082       ;;
24083     *)
24084       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24085       ;;
24086     esac
24087   done
24088
24089   case $lt_echo in
24090   *'\$0 --fallback-echo"')
24091     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24092     ;;
24093   esac
24094
24095 cfgfile="$ofile"
24096
24097   cat <<__EOF__ >> "$cfgfile"
24098 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24099
24100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24101
24102 # Shell to use when invoking shell scripts.
24103 SHELL=$lt_SHELL
24104
24105 # Whether or not to build shared libraries.
24106 build_libtool_libs=$enable_shared
24107
24108 # Whether or not to build static libraries.
24109 build_old_libs=$enable_static
24110
24111 # Whether or not to add -lc for building shared libraries.
24112 build_libtool_need_lc=$archive_cmds_need_lc_RC
24113
24114 # Whether or not to disallow shared libs when runtime libs are static
24115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24116
24117 # Whether or not to optimize for fast installation.
24118 fast_install=$enable_fast_install
24119
24120 # The host system.
24121 host_alias=$host_alias
24122 host=$host
24123
24124 # An echo program that does not interpret backslashes.
24125 echo=$lt_echo
24126
24127 # The archiver.
24128 AR=$lt_AR
24129 AR_FLAGS=$lt_AR_FLAGS
24130
24131 # A C compiler.
24132 LTCC=$lt_LTCC
24133
24134 # A language-specific compiler.
24135 CC=$lt_compiler_RC
24136
24137 # Is the compiler the GNU C compiler?
24138 with_gcc=$GCC_RC
24139
24140 # An ERE matcher.
24141 EGREP=$lt_EGREP
24142
24143 # The linker used to build libraries.
24144 LD=$lt_LD_RC
24145
24146 # Whether we need hard or soft links.
24147 LN_S=$lt_LN_S
24148
24149 # A BSD-compatible nm program.
24150 NM=$lt_NM
24151
24152 # A symbol stripping program
24153 STRIP=$lt_STRIP
24154
24155 # Used to examine libraries when file_magic_cmd begins "file"
24156 MAGIC_CMD=$MAGIC_CMD
24157
24158 # Used on cygwin: DLL creation program.
24159 DLLTOOL="$DLLTOOL"
24160
24161 # Used on cygwin: object dumper.
24162 OBJDUMP="$OBJDUMP"
24163
24164 # Used on cygwin: assembler.
24165 AS="$AS"
24166
24167 # The name of the directory that contains temporary libtool files.
24168 objdir=$objdir
24169
24170 # How to create reloadable object files.
24171 reload_flag=$lt_reload_flag
24172 reload_cmds=$lt_reload_cmds
24173
24174 # How to pass a linker flag through the compiler.
24175 wl=$lt_lt_prog_compiler_wl_RC
24176
24177 # Object file suffix (normally "o").
24178 objext="$ac_objext"
24179
24180 # Old archive suffix (normally "a").
24181 libext="$libext"
24182
24183 # Shared library suffix (normally ".so").
24184 shrext_cmds='$shrext_cmds'
24185
24186 # Executable file suffix (normally "").
24187 exeext="$exeext"
24188
24189 # Additional compiler flags for building library objects.
24190 pic_flag=$lt_lt_prog_compiler_pic_RC
24191 pic_mode=$pic_mode
24192
24193 # What is the maximum length of a command?
24194 max_cmd_len=$lt_cv_sys_max_cmd_len
24195
24196 # Does compiler simultaneously support -c and -o options?
24197 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24198
24199 # Must we lock files when doing compilation ?
24200 need_locks=$lt_need_locks
24201
24202 # Do we need the lib prefix for modules?
24203 need_lib_prefix=$need_lib_prefix
24204
24205 # Do we need a version for libraries?
24206 need_version=$need_version
24207
24208 # Whether dlopen is supported.
24209 dlopen_support=$enable_dlopen
24210
24211 # Whether dlopen of programs is supported.
24212 dlopen_self=$enable_dlopen_self
24213
24214 # Whether dlopen of statically linked programs is supported.
24215 dlopen_self_static=$enable_dlopen_self_static
24216
24217 # Compiler flag to prevent dynamic linking.
24218 link_static_flag=$lt_lt_prog_compiler_static_RC
24219
24220 # Compiler flag to turn off builtin functions.
24221 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24222
24223 # Compiler flag to allow reflexive dlopens.
24224 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24225
24226 # Compiler flag to generate shared objects directly from archives.
24227 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24228
24229 # Compiler flag to generate thread-safe objects.
24230 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24231
24232 # Library versioning type.
24233 version_type=$version_type
24234
24235 # Format of library name prefix.
24236 libname_spec=$lt_libname_spec
24237
24238 # List of archive names.  First name is the real one, the rest are links.
24239 # The last name is the one that the linker finds with -lNAME.
24240 library_names_spec=$lt_library_names_spec
24241
24242 # The coded name of the library, if different from the real name.
24243 soname_spec=$lt_soname_spec
24244
24245 # Commands used to build and install an old-style archive.
24246 RANLIB=$lt_RANLIB
24247 old_archive_cmds=$lt_old_archive_cmds_RC
24248 old_postinstall_cmds=$lt_old_postinstall_cmds
24249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24250
24251 # Create an old-style archive from a shared archive.
24252 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24253
24254 # Create a temporary old-style archive to link instead of a shared archive.
24255 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24256
24257 # Commands used to build and install a shared archive.
24258 archive_cmds=$lt_archive_cmds_RC
24259 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24260 postinstall_cmds=$lt_postinstall_cmds
24261 postuninstall_cmds=$lt_postuninstall_cmds
24262
24263 # Commands used to build a loadable module (assumed same as above if empty)
24264 module_cmds=$lt_module_cmds_RC
24265 module_expsym_cmds=$lt_module_expsym_cmds_RC
24266
24267 # Commands to strip libraries.
24268 old_striplib=$lt_old_striplib
24269 striplib=$lt_striplib
24270
24271 # Dependencies to place before the objects being linked to create a
24272 # shared library.
24273 predep_objects=$lt_predep_objects_RC
24274
24275 # Dependencies to place after the objects being linked to create a
24276 # shared library.
24277 postdep_objects=$lt_postdep_objects_RC
24278
24279 # Dependencies to place before the objects being linked to create a
24280 # shared library.
24281 predeps=$lt_predeps_RC
24282
24283 # Dependencies to place after the objects being linked to create a
24284 # shared library.
24285 postdeps=$lt_postdeps_RC
24286
24287 # The library search path used internally by the compiler when linking
24288 # a shared library.
24289 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24290
24291 # Method to check whether dependent libraries are shared objects.
24292 deplibs_check_method=$lt_deplibs_check_method
24293
24294 # Command to use when deplibs_check_method == file_magic.
24295 file_magic_cmd=$lt_file_magic_cmd
24296
24297 # Flag that allows shared libraries with undefined symbols to be built.
24298 allow_undefined_flag=$lt_allow_undefined_flag_RC
24299
24300 # Flag that forces no undefined symbols.
24301 no_undefined_flag=$lt_no_undefined_flag_RC
24302
24303 # Commands used to finish a libtool library installation in a directory.
24304 finish_cmds=$lt_finish_cmds
24305
24306 # Same as above, but a single script fragment to be evaled but not shown.
24307 finish_eval=$lt_finish_eval
24308
24309 # Take the output of nm and produce a listing of raw symbols and C names.
24310 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24311
24312 # Transform the output of nm in a proper C declaration
24313 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24314
24315 # Transform the output of nm in a C name address pair
24316 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24317
24318 # This is the shared library runtime path variable.
24319 runpath_var=$runpath_var
24320
24321 # This is the shared library path variable.
24322 shlibpath_var=$shlibpath_var
24323
24324 # Is shlibpath searched before the hard-coded library search path?
24325 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24326
24327 # How to hardcode a shared library path into an executable.
24328 hardcode_action=$hardcode_action_RC
24329
24330 # Whether we should hardcode library paths into libraries.
24331 hardcode_into_libs=$hardcode_into_libs
24332
24333 # Flag to hardcode \$libdir into a binary during linking.
24334 # This must work even if \$libdir does not exist.
24335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24336
24337 # If ld is used when linking, flag to hardcode \$libdir into
24338 # a binary during linking. This must work even if \$libdir does
24339 # not exist.
24340 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24341
24342 # Whether we need a single -rpath flag with a separated argument.
24343 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24344
24345 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24346 # resulting binary.
24347 hardcode_direct=$hardcode_direct_RC
24348
24349 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24350 # resulting binary.
24351 hardcode_minus_L=$hardcode_minus_L_RC
24352
24353 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24354 # the resulting binary.
24355 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24356
24357 # Set to yes if building a shared library automatically hardcodes DIR into the library
24358 # and all subsequent libraries and executables linked against it.
24359 hardcode_automatic=$hardcode_automatic_RC
24360
24361 # Variables whose values should be saved in libtool wrapper scripts and
24362 # restored at relink time.
24363 variables_saved_for_relink="$variables_saved_for_relink"
24364
24365 # Whether libtool must link a program against all its dependency libraries.
24366 link_all_deplibs=$link_all_deplibs_RC
24367
24368 # Compile-time system search path for libraries
24369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24370
24371 # Run-time system search path for libraries
24372 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24373
24374 # Fix the shell variable \$srcfile for the compiler.
24375 fix_srcfile_path="$fix_srcfile_path_RC"
24376
24377 # Set to yes if exported symbols are required.
24378 always_export_symbols=$always_export_symbols_RC
24379
24380 # The commands to list exported symbols.
24381 export_symbols_cmds=$lt_export_symbols_cmds_RC
24382
24383 # The commands to extract the exported symbol list from a shared archive.
24384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24385
24386 # Symbols that should not be listed in the preloaded symbols.
24387 exclude_expsyms=$lt_exclude_expsyms_RC
24388
24389 # Symbols that must always be exported.
24390 include_expsyms=$lt_include_expsyms_RC
24391
24392 # ### END LIBTOOL TAG CONFIG: $tagname
24393
24394 __EOF__
24395
24396
24397 else
24398   # If there is no Makefile yet, we rely on a make rule to execute
24399   # `config.status --recheck' to rerun these tests and create the
24400   # libtool script then.
24401   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24402   if test -f "$ltmain_in"; then
24403     test -f Makefile && make "$ltmain"
24404   fi
24405 fi
24406
24407
24408 ac_ext=c
24409 ac_cpp='$CPP $CPPFLAGS'
24410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24413
24414 CC="$lt_save_CC"
24415
24416         ;;
24417
24418       *)
24419         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24420 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24421    { (exit 1); exit 1; }; }
24422         ;;
24423       esac
24424
24425       # Append the new tag name to the list of available tags.
24426       if test -n "$tagname" ; then
24427       available_tags="$available_tags $tagname"
24428     fi
24429     fi
24430   done
24431   IFS="$lt_save_ifs"
24432
24433   # Now substitute the updated list of available tags.
24434   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24435     mv "${ofile}T" "$ofile"
24436     chmod +x "$ofile"
24437   else
24438     rm -f "${ofile}T"
24439     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24440 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24441    { (exit 1); exit 1; }; }
24442   fi
24443 fi
24444
24445
24446
24447 # This can be used to rebuild libtool when needed
24448 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24449
24450 # Always use our own libtool.
24451 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24452
24453 # Prevent multiple expansion
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475 etags_version=`$ETAGS --version 2>&1`
24476 case "$etags_version" in
24477         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24478         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24479         *) ETAGSFLAGS="" ;;
24480 esac
24481 ETAGSFLAGS=$ETAGSFLAGS
24482
24483
24484 echo "$as_me:$LINENO: checking tool compatibility" >&5
24485 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24486
24487 if test "$GCC" != "yes"
24488 then
24489   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24490 echo "$as_me: error: gcc required but not found" >&2;}
24491    { (exit 1); exit 1; }; }
24492 fi
24493 if test "$GXX" != "yes"
24494 then
24495   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24496 echo "$as_me: error: g++ required but not found" >&2;}
24497    { (exit 1); exit 1; }; }
24498 fi
24499
24500 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24501 if test "$gccmajor" -lt "3"
24502 then
24503   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24504 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24505    { (exit 1); exit 1; }; }
24506 fi
24507
24508 if test -z "$llvm_cv_gnu_make_command"
24509 then
24510   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24511 echo "$as_me: error: GNU Make required but not found" >&2;}
24512    { (exit 1); exit 1; }; }
24513 fi
24514
24515 echo "$as_me:$LINENO: result: ok" >&5
24516 echo "${ECHO_T}ok" >&6
24517
24518 if test "$PYTHON" = "false" ; then
24519   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24520 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24521 fi
24522 if test "$QMTEST" = "false" ; then
24523   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24524 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24525 fi
24526 if test "$RUNTEST" = "false" ; then
24527   { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24528 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24529 fi
24530 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
24531 pymajor=`echo $pyversion | cut -d. -f1`
24532 pyminor=`echo $pyversion | cut -d. -f2`
24533 if test "$pymajor" -ge "2" ; then
24534   if test "$pymajor" -eq "2" ; then
24535     if test "$pyminor" -lt "2" ; then
24536       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24537 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24538     fi
24539   fi
24540 else
24541   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24542 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24543 fi
24544
24545 echo "$as_me:$LINENO: result: " >&5
24546 echo "${ECHO_T}" >&6
24547
24548
24549
24550 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24551 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24552 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24553   echo $ECHO_N "(cached) $ECHO_C" >&6
24554 else
24555   ac_check_lib_save_LIBS=$LIBS
24556 LIBS="-lelf  $LIBS"
24557 cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563
24564 /* Override any gcc2 internal prototype to avoid an error.  */
24565 #ifdef __cplusplus
24566 extern "C"
24567 #endif
24568 /* We use char because int might match the return type of a gcc2
24569    builtin and then its argument prototype would still apply.  */
24570 char elf_begin ();
24571 int
24572 main ()
24573 {
24574 elf_begin ();
24575   ;
24576   return 0;
24577 }
24578 _ACEOF
24579 rm -f conftest.$ac_objext conftest$ac_exeext
24580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24581   (eval $ac_link) 2>conftest.er1
24582   ac_status=$?
24583   grep -v '^ *+' conftest.er1 >conftest.err
24584   rm -f conftest.er1
24585   cat conftest.err >&5
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } &&
24588          { ac_try='test -z "$ac_c_werror_flag"
24589                          || test ! -s conftest.err'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; } &&
24595          { ac_try='test -s conftest$ac_exeext'
24596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597   (eval $ac_try) 2>&5
24598   ac_status=$?
24599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600   (exit $ac_status); }; }; then
24601   ac_cv_lib_elf_elf_begin=yes
24602 else
24603   echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24605
24606 ac_cv_lib_elf_elf_begin=no
24607 fi
24608 rm -f conftest.err conftest.$ac_objext \
24609       conftest$ac_exeext conftest.$ac_ext
24610 LIBS=$ac_check_lib_save_LIBS
24611 fi
24612 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24613 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24614 if test $ac_cv_lib_elf_elf_begin = yes; then
24615   cat >>confdefs.h <<_ACEOF
24616 #define HAVE_LIBELF 1
24617 _ACEOF
24618
24619   LIBS="-lelf $LIBS"
24620
24621 fi
24622
24623
24624 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24625 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24626 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24627   echo $ECHO_N "(cached) $ECHO_C" >&6
24628 else
24629   ac_func_search_save_LIBS=$LIBS
24630 ac_cv_search_lt_dlopen=no
24631 cat >conftest.$ac_ext <<_ACEOF
24632 /* confdefs.h.  */
24633 _ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h.  */
24637
24638 /* Override any gcc2 internal prototype to avoid an error.  */
24639 #ifdef __cplusplus
24640 extern "C"
24641 #endif
24642 /* We use char because int might match the return type of a gcc2
24643    builtin and then its argument prototype would still apply.  */
24644 char lt_dlopen ();
24645 int
24646 main ()
24647 {
24648 lt_dlopen ();
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655   (eval $ac_link) 2>conftest.er1
24656   ac_status=$?
24657   grep -v '^ *+' conftest.er1 >conftest.err
24658   rm -f conftest.er1
24659   cat conftest.err >&5
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); } &&
24662          { ac_try='test -z "$ac_c_werror_flag"
24663                          || test ! -s conftest.err'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; } &&
24669          { ac_try='test -s conftest$ac_exeext'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; }; then
24675   ac_cv_search_lt_dlopen="none required"
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 fi
24681 rm -f conftest.err conftest.$ac_objext \
24682       conftest$ac_exeext conftest.$ac_ext
24683 if test "$ac_cv_search_lt_dlopen" = no; then
24684   for ac_lib in ltdl; do
24685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24686     cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h.  */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h.  */
24692
24693 /* Override any gcc2 internal prototype to avoid an error.  */
24694 #ifdef __cplusplus
24695 extern "C"
24696 #endif
24697 /* We use char because int might match the return type of a gcc2
24698    builtin and then its argument prototype would still apply.  */
24699 char lt_dlopen ();
24700 int
24701 main ()
24702 {
24703 lt_dlopen ();
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24710   (eval $ac_link) 2>conftest.er1
24711   ac_status=$?
24712   grep -v '^ *+' conftest.er1 >conftest.err
24713   rm -f conftest.er1
24714   cat conftest.err >&5
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); } &&
24717          { ac_try='test -z "$ac_c_werror_flag"
24718                          || test ! -s conftest.err'
24719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720   (eval $ac_try) 2>&5
24721   ac_status=$?
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); }; } &&
24724          { ac_try='test -s conftest$ac_exeext'
24725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726   (eval $ac_try) 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; }; then
24730   ac_cv_search_lt_dlopen="-l$ac_lib"
24731 break
24732 else
24733   echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736 fi
24737 rm -f conftest.err conftest.$ac_objext \
24738       conftest$ac_exeext conftest.$ac_ext
24739   done
24740 fi
24741 LIBS=$ac_func_search_save_LIBS
24742 fi
24743 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24744 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24745 if test "$ac_cv_search_lt_dlopen" != no; then
24746   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24747
24748 cat >>confdefs.h <<\_ACEOF
24749 #define HAVE_LT_DLOPEN 1
24750 _ACEOF
24751
24752 else
24753   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24754                            not be available" >&5
24755 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24756                            not be available" >&2;}
24757 fi
24758
24759
24760 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24761 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24762 if test "${ac_cv_search_dlopen+set}" = set; then
24763   echo $ECHO_N "(cached) $ECHO_C" >&6
24764 else
24765   ac_func_search_save_LIBS=$LIBS
24766 ac_cv_search_dlopen=no
24767 cat >conftest.$ac_ext <<_ACEOF
24768 /* confdefs.h.  */
24769 _ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h.  */
24773
24774 /* Override any gcc2 internal prototype to avoid an error.  */
24775 #ifdef __cplusplus
24776 extern "C"
24777 #endif
24778 /* We use char because int might match the return type of a gcc2
24779    builtin and then its argument prototype would still apply.  */
24780 char dlopen ();
24781 int
24782 main ()
24783 {
24784 dlopen ();
24785   ;
24786   return 0;
24787 }
24788 _ACEOF
24789 rm -f conftest.$ac_objext conftest$ac_exeext
24790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24791   (eval $ac_link) 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } &&
24798          { ac_try='test -z "$ac_c_werror_flag"
24799                          || test ! -s conftest.err'
24800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801   (eval $ac_try) 2>&5
24802   ac_status=$?
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); }; } &&
24805          { ac_try='test -s conftest$ac_exeext'
24806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807   (eval $ac_try) 2>&5
24808   ac_status=$?
24809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); }; }; then
24811   ac_cv_search_dlopen="none required"
24812 else
24813   echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816 fi
24817 rm -f conftest.err conftest.$ac_objext \
24818       conftest$ac_exeext conftest.$ac_ext
24819 if test "$ac_cv_search_dlopen" = no; then
24820   for ac_lib in dl; do
24821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24822     cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828
24829 /* Override any gcc2 internal prototype to avoid an error.  */
24830 #ifdef __cplusplus
24831 extern "C"
24832 #endif
24833 /* We use char because int might match the return type of a gcc2
24834    builtin and then its argument prototype would still apply.  */
24835 char dlopen ();
24836 int
24837 main ()
24838 {
24839 dlopen ();
24840   ;
24841   return 0;
24842 }
24843 _ACEOF
24844 rm -f conftest.$ac_objext conftest$ac_exeext
24845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24846   (eval $ac_link) 2>conftest.er1
24847   ac_status=$?
24848   grep -v '^ *+' conftest.er1 >conftest.err
24849   rm -f conftest.er1
24850   cat conftest.err >&5
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); } &&
24853          { ac_try='test -z "$ac_c_werror_flag"
24854                          || test ! -s conftest.err'
24855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856   (eval $ac_try) 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; } &&
24860          { ac_try='test -s conftest$ac_exeext'
24861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862   (eval $ac_try) 2>&5
24863   ac_status=$?
24864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865   (exit $ac_status); }; }; then
24866   ac_cv_search_dlopen="-l$ac_lib"
24867 break
24868 else
24869   echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24871
24872 fi
24873 rm -f conftest.err conftest.$ac_objext \
24874       conftest$ac_exeext conftest.$ac_ext
24875   done
24876 fi
24877 LIBS=$ac_func_search_save_LIBS
24878 fi
24879 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24880 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24881 if test "$ac_cv_search_dlopen" != no; then
24882   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24883
24884 cat >>confdefs.h <<\_ACEOF
24885 #define HAVE_DLOPEN 1
24886 _ACEOF
24887
24888 else
24889   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24890 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24891 fi
24892
24893
24894 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24895 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24896 if test "${ac_cv_search_mallinfo+set}" = set; then
24897   echo $ECHO_N "(cached) $ECHO_C" >&6
24898 else
24899   ac_func_search_save_LIBS=$LIBS
24900 ac_cv_search_mallinfo=no
24901 cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h.  */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h.  */
24907
24908 /* Override any gcc2 internal prototype to avoid an error.  */
24909 #ifdef __cplusplus
24910 extern "C"
24911 #endif
24912 /* We use char because int might match the return type of a gcc2
24913    builtin and then its argument prototype would still apply.  */
24914 char mallinfo ();
24915 int
24916 main ()
24917 {
24918 mallinfo ();
24919   ;
24920   return 0;
24921 }
24922 _ACEOF
24923 rm -f conftest.$ac_objext conftest$ac_exeext
24924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24925   (eval $ac_link) 2>conftest.er1
24926   ac_status=$?
24927   grep -v '^ *+' conftest.er1 >conftest.err
24928   rm -f conftest.er1
24929   cat conftest.err >&5
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); } &&
24932          { ac_try='test -z "$ac_c_werror_flag"
24933                          || test ! -s conftest.err'
24934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); }; } &&
24939          { ac_try='test -s conftest$ac_exeext'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; }; then
24945   ac_cv_search_mallinfo="none required"
24946 else
24947   echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950 fi
24951 rm -f conftest.err conftest.$ac_objext \
24952       conftest$ac_exeext conftest.$ac_ext
24953 if test "$ac_cv_search_mallinfo" = no; then
24954   for ac_lib in malloc; do
24955     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24956     cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h.  */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h.  */
24962
24963 /* Override any gcc2 internal prototype to avoid an error.  */
24964 #ifdef __cplusplus
24965 extern "C"
24966 #endif
24967 /* We use char because int might match the return type of a gcc2
24968    builtin and then its argument prototype would still apply.  */
24969 char mallinfo ();
24970 int
24971 main ()
24972 {
24973 mallinfo ();
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24980   (eval $ac_link) 2>conftest.er1
24981   ac_status=$?
24982   grep -v '^ *+' conftest.er1 >conftest.err
24983   rm -f conftest.er1
24984   cat conftest.err >&5
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); } &&
24987          { ac_try='test -z "$ac_c_werror_flag"
24988                          || test ! -s conftest.err'
24989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990   (eval $ac_try) 2>&5
24991   ac_status=$?
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); }; } &&
24994          { ac_try='test -s conftest$ac_exeext'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; }; then
25000   ac_cv_search_mallinfo="-l$ac_lib"
25001 break
25002 else
25003   echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25005
25006 fi
25007 rm -f conftest.err conftest.$ac_objext \
25008       conftest$ac_exeext conftest.$ac_ext
25009   done
25010 fi
25011 LIBS=$ac_func_search_save_LIBS
25012 fi
25013 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25014 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25015 if test "$ac_cv_search_mallinfo" != no; then
25016   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25017
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_MALLINFO 1
25020 _ACEOF
25021
25022 fi
25023
25024
25025 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25026 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25027 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25028   echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030   ac_func_search_save_LIBS=$LIBS
25031 ac_cv_search_pthread_mutex_lock=no
25032 cat >conftest.$ac_ext <<_ACEOF
25033 /* confdefs.h.  */
25034 _ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h.  */
25038
25039 /* Override any gcc2 internal prototype to avoid an error.  */
25040 #ifdef __cplusplus
25041 extern "C"
25042 #endif
25043 /* We use char because int might match the return type of a gcc2
25044    builtin and then its argument prototype would still apply.  */
25045 char pthread_mutex_lock ();
25046 int
25047 main ()
25048 {
25049 pthread_mutex_lock ();
25050   ;
25051   return 0;
25052 }
25053 _ACEOF
25054 rm -f conftest.$ac_objext conftest$ac_exeext
25055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25056   (eval $ac_link) 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } &&
25063          { ac_try='test -z "$ac_c_werror_flag"
25064                          || test ! -s conftest.err'
25065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066   (eval $ac_try) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); }; } &&
25070          { ac_try='test -s conftest$ac_exeext'
25071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072   (eval $ac_try) 2>&5
25073   ac_status=$?
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; }; then
25076   ac_cv_search_pthread_mutex_lock="none required"
25077 else
25078   echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 fi
25082 rm -f conftest.err conftest.$ac_objext \
25083       conftest$ac_exeext conftest.$ac_ext
25084 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25085   for ac_lib in pthread; do
25086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25087     cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h.  */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h.  */
25093
25094 /* Override any gcc2 internal prototype to avoid an error.  */
25095 #ifdef __cplusplus
25096 extern "C"
25097 #endif
25098 /* We use char because int might match the return type of a gcc2
25099    builtin and then its argument prototype would still apply.  */
25100 char pthread_mutex_lock ();
25101 int
25102 main ()
25103 {
25104 pthread_mutex_lock ();
25105   ;
25106   return 0;
25107 }
25108 _ACEOF
25109 rm -f conftest.$ac_objext conftest$ac_exeext
25110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25111   (eval $ac_link) 2>conftest.er1
25112   ac_status=$?
25113   grep -v '^ *+' conftest.er1 >conftest.err
25114   rm -f conftest.er1
25115   cat conftest.err >&5
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); } &&
25118          { ac_try='test -z "$ac_c_werror_flag"
25119                          || test ! -s conftest.err'
25120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121   (eval $ac_try) 2>&5
25122   ac_status=$?
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); }; } &&
25125          { ac_try='test -s conftest$ac_exeext'
25126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127   (eval $ac_try) 2>&5
25128   ac_status=$?
25129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130   (exit $ac_status); }; }; then
25131   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25132 break
25133 else
25134   echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25136
25137 fi
25138 rm -f conftest.err conftest.$ac_objext \
25139       conftest$ac_exeext conftest.$ac_ext
25140   done
25141 fi
25142 LIBS=$ac_func_search_save_LIBS
25143 fi
25144 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25145 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25146 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25147   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25148
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_PTHREAD_MUTEX_LOCK 1
25151 _ACEOF
25152
25153 fi
25154
25155
25156
25157 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25158 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25159 if test "${ac_cv_header_stdc+set}" = set; then
25160   echo $ECHO_N "(cached) $ECHO_C" >&6
25161 else
25162   cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h.  */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h.  */
25168 #include <stdlib.h>
25169 #include <stdarg.h>
25170 #include <string.h>
25171 #include <float.h>
25172
25173 int
25174 main ()
25175 {
25176
25177   ;
25178   return 0;
25179 }
25180 _ACEOF
25181 rm -f conftest.$ac_objext
25182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25183   (eval $ac_compile) 2>conftest.er1
25184   ac_status=$?
25185   grep -v '^ *+' conftest.er1 >conftest.err
25186   rm -f conftest.er1
25187   cat conftest.err >&5
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } &&
25190          { ac_try='test -z "$ac_c_werror_flag"
25191                          || test ! -s conftest.err'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; } &&
25197          { ac_try='test -s conftest.$ac_objext'
25198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199   (eval $ac_try) 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; }; then
25203   ac_cv_header_stdc=yes
25204 else
25205   echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208 ac_cv_header_stdc=no
25209 fi
25210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25211
25212 if test $ac_cv_header_stdc = yes; then
25213   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25214   cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h.  */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h.  */
25220 #include <string.h>
25221
25222 _ACEOF
25223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25224   $EGREP "memchr" >/dev/null 2>&1; then
25225   :
25226 else
25227   ac_cv_header_stdc=no
25228 fi
25229 rm -f conftest*
25230
25231 fi
25232
25233 if test $ac_cv_header_stdc = yes; then
25234   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25235   cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h.  */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h.  */
25241 #include <stdlib.h>
25242
25243 _ACEOF
25244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25245   $EGREP "free" >/dev/null 2>&1; then
25246   :
25247 else
25248   ac_cv_header_stdc=no
25249 fi
25250 rm -f conftest*
25251
25252 fi
25253
25254 if test $ac_cv_header_stdc = yes; then
25255   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25256   if test "$cross_compiling" = yes; then
25257   :
25258 else
25259   cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h.  */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h.  */
25265 #include <ctype.h>
25266 #if ((' ' & 0x0FF) == 0x020)
25267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25269 #else
25270 # define ISLOWER(c) \
25271                    (('a' <= (c) && (c) <= 'i') \
25272                      || ('j' <= (c) && (c) <= 'r') \
25273                      || ('s' <= (c) && (c) <= 'z'))
25274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25275 #endif
25276
25277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25278 int
25279 main ()
25280 {
25281   int i;
25282   for (i = 0; i < 256; i++)
25283     if (XOR (islower (i), ISLOWER (i))
25284         || toupper (i) != TOUPPER (i))
25285       exit(2);
25286   exit (0);
25287 }
25288 _ACEOF
25289 rm -f conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291   (eval $ac_link) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296   (eval $ac_try) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }; }; then
25300   :
25301 else
25302   echo "$as_me: program exited with status $ac_status" >&5
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 ( exit $ac_status )
25307 ac_cv_header_stdc=no
25308 fi
25309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25310 fi
25311 fi
25312 fi
25313 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25314 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25315 if test $ac_cv_header_stdc = yes; then
25316
25317 cat >>confdefs.h <<\_ACEOF
25318 #define STDC_HEADERS 1
25319 _ACEOF
25320
25321 fi
25322
25323
25324 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25325 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25326 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25327   echo $ECHO_N "(cached) $ECHO_C" >&6
25328 else
25329   cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h.  */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h.  */
25335 #include <sys/types.h>
25336 #include <sys/wait.h>
25337 #ifndef WEXITSTATUS
25338 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25339 #endif
25340 #ifndef WIFEXITED
25341 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25342 #endif
25343
25344 int
25345 main ()
25346 {
25347   int s;
25348   wait (&s);
25349   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25350   ;
25351   return 0;
25352 }
25353 _ACEOF
25354 rm -f conftest.$ac_objext
25355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25356   (eval $ac_compile) 2>conftest.er1
25357   ac_status=$?
25358   grep -v '^ *+' conftest.er1 >conftest.err
25359   rm -f conftest.er1
25360   cat conftest.err >&5
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); } &&
25363          { ac_try='test -z "$ac_c_werror_flag"
25364                          || test ! -s conftest.err'
25365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366   (eval $ac_try) 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; } &&
25370          { ac_try='test -s conftest.$ac_objext'
25371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372   (eval $ac_try) 2>&5
25373   ac_status=$?
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); }; }; then
25376   ac_cv_header_sys_wait_h=yes
25377 else
25378   echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25380
25381 ac_cv_header_sys_wait_h=no
25382 fi
25383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25384 fi
25385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25386 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25387 if test $ac_cv_header_sys_wait_h = yes; then
25388
25389 cat >>confdefs.h <<\_ACEOF
25390 #define HAVE_SYS_WAIT_H 1
25391 _ACEOF
25392
25393 fi
25394
25395
25396
25397
25398
25399
25400 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25401 do
25402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25404   echo "$as_me:$LINENO: checking for $ac_header" >&5
25405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25407   echo $ECHO_N "(cached) $ECHO_C" >&6
25408 fi
25409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25411 else
25412   # Is the header compilable?
25413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25415 cat >conftest.$ac_ext <<_ACEOF
25416 /* confdefs.h.  */
25417 _ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h.  */
25421 $ac_includes_default
25422 #include <$ac_header>
25423 _ACEOF
25424 rm -f conftest.$ac_objext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25426   (eval $ac_compile) 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } &&
25433          { ac_try='test -z "$ac_c_werror_flag"
25434                          || test ! -s conftest.err'
25435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436   (eval $ac_try) 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; } &&
25440          { ac_try='test -s conftest.$ac_objext'
25441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); }; }; then
25446   ac_header_compiler=yes
25447 else
25448   echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25450
25451 ac_header_compiler=no
25452 fi
25453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25455 echo "${ECHO_T}$ac_header_compiler" >&6
25456
25457 # Is the header present?
25458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25460 cat >conftest.$ac_ext <<_ACEOF
25461 /* confdefs.h.  */
25462 _ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h.  */
25466 #include <$ac_header>
25467 _ACEOF
25468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25470   ac_status=$?
25471   grep -v '^ *+' conftest.er1 >conftest.err
25472   rm -f conftest.er1
25473   cat conftest.err >&5
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); } >/dev/null; then
25476   if test -s conftest.err; then
25477     ac_cpp_err=$ac_c_preproc_warn_flag
25478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25479   else
25480     ac_cpp_err=
25481   fi
25482 else
25483   ac_cpp_err=yes
25484 fi
25485 if test -z "$ac_cpp_err"; then
25486   ac_header_preproc=yes
25487 else
25488   echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491   ac_header_preproc=no
25492 fi
25493 rm -f conftest.err conftest.$ac_ext
25494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25495 echo "${ECHO_T}$ac_header_preproc" >&6
25496
25497 # So?  What about this header?
25498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25499   yes:no: )
25500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25504     ac_header_preproc=yes
25505     ;;
25506   no:yes:* )
25507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25519     (
25520       cat <<\_ASBOX
25521 ## ----------------------------------- ##
25522 ## Report this to llvmbugs@cs.uiuc.edu ##
25523 ## ----------------------------------- ##
25524 _ASBOX
25525     ) |
25526       sed "s/^/$as_me: WARNING:     /" >&2
25527     ;;
25528 esac
25529 echo "$as_me:$LINENO: checking for $ac_header" >&5
25530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   eval "$as_ac_Header=\$ac_header_preproc"
25535 fi
25536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25538
25539 fi
25540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25541   cat >>confdefs.h <<_ACEOF
25542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25543 _ACEOF
25544
25545 fi
25546
25547 done
25548
25549
25550
25551
25552
25553
25554 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25555 do
25556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25558   echo "$as_me:$LINENO: checking for $ac_header" >&5
25559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25561   echo $ECHO_N "(cached) $ECHO_C" >&6
25562 fi
25563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25565 else
25566   # Is the header compilable?
25567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25569 cat >conftest.$ac_ext <<_ACEOF
25570 /* confdefs.h.  */
25571 _ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h.  */
25575 $ac_includes_default
25576 #include <$ac_header>
25577 _ACEOF
25578 rm -f conftest.$ac_objext
25579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580   (eval $ac_compile) 2>conftest.er1
25581   ac_status=$?
25582   grep -v '^ *+' conftest.er1 >conftest.err
25583   rm -f conftest.er1
25584   cat conftest.err >&5
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); } &&
25587          { ac_try='test -z "$ac_c_werror_flag"
25588                          || test ! -s conftest.err'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; } &&
25594          { ac_try='test -s conftest.$ac_objext'
25595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596   (eval $ac_try) 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); }; }; then
25600   ac_header_compiler=yes
25601 else
25602   echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_header_compiler=no
25606 fi
25607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25609 echo "${ECHO_T}$ac_header_compiler" >&6
25610
25611 # Is the header present?
25612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25614 cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h.  */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h.  */
25620 #include <$ac_header>
25621 _ACEOF
25622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25624   ac_status=$?
25625   grep -v '^ *+' conftest.er1 >conftest.err
25626   rm -f conftest.er1
25627   cat conftest.err >&5
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); } >/dev/null; then
25630   if test -s conftest.err; then
25631     ac_cpp_err=$ac_c_preproc_warn_flag
25632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25633   else
25634     ac_cpp_err=
25635   fi
25636 else
25637   ac_cpp_err=yes
25638 fi
25639 if test -z "$ac_cpp_err"; then
25640   ac_header_preproc=yes
25641 else
25642   echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25644
25645   ac_header_preproc=no
25646 fi
25647 rm -f conftest.err conftest.$ac_ext
25648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25649 echo "${ECHO_T}$ac_header_preproc" >&6
25650
25651 # So?  What about this header?
25652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25653   yes:no: )
25654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25658     ac_header_preproc=yes
25659     ;;
25660   no:yes:* )
25661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25673     (
25674       cat <<\_ASBOX
25675 ## ----------------------------------- ##
25676 ## Report this to llvmbugs@cs.uiuc.edu ##
25677 ## ----------------------------------- ##
25678 _ASBOX
25679     ) |
25680       sed "s/^/$as_me: WARNING:     /" >&2
25681     ;;
25682 esac
25683 echo "$as_me:$LINENO: checking for $ac_header" >&5
25684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25686   echo $ECHO_N "(cached) $ECHO_C" >&6
25687 else
25688   eval "$as_ac_Header=\$ac_header_preproc"
25689 fi
25690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25692
25693 fi
25694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25695   cat >>confdefs.h <<_ACEOF
25696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25697 _ACEOF
25698
25699 fi
25700
25701 done
25702
25703
25704
25705
25706 for ac_header in malloc.h unistd.h windows.h
25707 do
25708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25710   echo "$as_me:$LINENO: checking for $ac_header" >&5
25711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25713   echo $ECHO_N "(cached) $ECHO_C" >&6
25714 fi
25715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25717 else
25718   # Is the header compilable?
25719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25721 cat >conftest.$ac_ext <<_ACEOF
25722 /* confdefs.h.  */
25723 _ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h.  */
25727 $ac_includes_default
25728 #include <$ac_header>
25729 _ACEOF
25730 rm -f conftest.$ac_objext
25731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25732   (eval $ac_compile) 2>conftest.er1
25733   ac_status=$?
25734   grep -v '^ *+' conftest.er1 >conftest.err
25735   rm -f conftest.er1
25736   cat conftest.err >&5
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); } &&
25739          { ac_try='test -z "$ac_c_werror_flag"
25740                          || test ! -s conftest.err'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; } &&
25746          { ac_try='test -s conftest.$ac_objext'
25747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748   (eval $ac_try) 2>&5
25749   ac_status=$?
25750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); }; }; then
25752   ac_header_compiler=yes
25753 else
25754   echo "$as_me: failed program was:" >&5
25755 sed 's/^/| /' conftest.$ac_ext >&5
25756
25757 ac_header_compiler=no
25758 fi
25759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25761 echo "${ECHO_T}$ac_header_compiler" >&6
25762
25763 # Is the header present?
25764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25766 cat >conftest.$ac_ext <<_ACEOF
25767 /* confdefs.h.  */
25768 _ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h.  */
25772 #include <$ac_header>
25773 _ACEOF
25774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25776   ac_status=$?
25777   grep -v '^ *+' conftest.er1 >conftest.err
25778   rm -f conftest.er1
25779   cat conftest.err >&5
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } >/dev/null; then
25782   if test -s conftest.err; then
25783     ac_cpp_err=$ac_c_preproc_warn_flag
25784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25785   else
25786     ac_cpp_err=
25787   fi
25788 else
25789   ac_cpp_err=yes
25790 fi
25791 if test -z "$ac_cpp_err"; then
25792   ac_header_preproc=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797   ac_header_preproc=no
25798 fi
25799 rm -f conftest.err conftest.$ac_ext
25800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25801 echo "${ECHO_T}$ac_header_preproc" >&6
25802
25803 # So?  What about this header?
25804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25805   yes:no: )
25806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25810     ac_header_preproc=yes
25811     ;;
25812   no:yes:* )
25813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25825     (
25826       cat <<\_ASBOX
25827 ## ----------------------------------- ##
25828 ## Report this to llvmbugs@cs.uiuc.edu ##
25829 ## ----------------------------------- ##
25830 _ASBOX
25831     ) |
25832       sed "s/^/$as_me: WARNING:     /" >&2
25833     ;;
25834 esac
25835 echo "$as_me:$LINENO: checking for $ac_header" >&5
25836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25838   echo $ECHO_N "(cached) $ECHO_C" >&6
25839 else
25840   eval "$as_ac_Header=\$ac_header_preproc"
25841 fi
25842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25844
25845 fi
25846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25847   cat >>confdefs.h <<_ACEOF
25848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25849 _ACEOF
25850
25851 fi
25852
25853 done
25854
25855 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25856 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25857 if test "${ac_cv_header_time+set}" = set; then
25858   echo $ECHO_N "(cached) $ECHO_C" >&6
25859 else
25860   cat >conftest.$ac_ext <<_ACEOF
25861 /* confdefs.h.  */
25862 _ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h.  */
25866 #include <sys/types.h>
25867 #include <sys/time.h>
25868 #include <time.h>
25869
25870 int
25871 main ()
25872 {
25873 if ((struct tm *) 0)
25874 return 0;
25875   ;
25876   return 0;
25877 }
25878 _ACEOF
25879 rm -f conftest.$ac_objext
25880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25881   (eval $ac_compile) 2>conftest.er1
25882   ac_status=$?
25883   grep -v '^ *+' conftest.er1 >conftest.err
25884   rm -f conftest.er1
25885   cat conftest.err >&5
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); } &&
25888          { ac_try='test -z "$ac_c_werror_flag"
25889                          || test ! -s conftest.err'
25890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891   (eval $ac_try) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); }; } &&
25895          { ac_try='test -s conftest.$ac_objext'
25896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897   (eval $ac_try) 2>&5
25898   ac_status=$?
25899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900   (exit $ac_status); }; }; then
25901   ac_cv_header_time=yes
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906 ac_cv_header_time=no
25907 fi
25908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25909 fi
25910 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25911 echo "${ECHO_T}$ac_cv_header_time" >&6
25912 if test $ac_cv_header_time = yes; then
25913
25914 cat >>confdefs.h <<\_ACEOF
25915 #define TIME_WITH_SYS_TIME 1
25916 _ACEOF
25917
25918 fi
25919
25920 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25921 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25922 if test "${ac_cv_header_mmap_anon+set}" = set; then
25923   echo $ECHO_N "(cached) $ECHO_C" >&6
25924 else
25925    ac_ext=c
25926 ac_cpp='$CPP $CPPFLAGS'
25927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25930
25931   cat >conftest.$ac_ext <<_ACEOF
25932 /* confdefs.h.  */
25933 _ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h.  */
25937 #include <sys/mman.h>
25938 #include <unistd.h>
25939 #include <fcntl.h>
25940 int
25941 main ()
25942 {
25943 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25944   ;
25945   return 0;
25946 }
25947 _ACEOF
25948 rm -f conftest.$ac_objext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25950   (eval $ac_compile) 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } &&
25957          { ac_try='test -z "$ac_c_werror_flag"
25958                          || test ! -s conftest.err'
25959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960   (eval $ac_try) 2>&5
25961   ac_status=$?
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); }; } &&
25964          { ac_try='test -s conftest.$ac_objext'
25965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966   (eval $ac_try) 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); }; }; then
25970   ac_cv_header_mmap_anon=yes
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975 ac_cv_header_mmap_anon=no
25976 fi
25977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25978   ac_ext=c
25979 ac_cpp='$CPP $CPPFLAGS'
25980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25983
25984
25985 fi
25986 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25987 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25988 if test "$ac_cv_header_mmap_anon" = yes; then
25989
25990 cat >>confdefs.h <<\_ACEOF
25991 #define HAVE_MMAP_ANONYMOUS
25992 _ACEOF
25993
25994 fi
25995
25996
25997
25998
25999 for ac_header in inttypes.h stdint.h
26000 do
26001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26003   echo "$as_me:$LINENO: checking for $ac_header" >&5
26004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26006   echo $ECHO_N "(cached) $ECHO_C" >&6
26007 fi
26008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26010 else
26011   # Is the header compilable?
26012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26015 /* confdefs.h.  */
26016 _ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h.  */
26020 $ac_includes_default
26021 #include <$ac_header>
26022 _ACEOF
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025   (eval $ac_compile) 2>conftest.er1
26026   ac_status=$?
26027   grep -v '^ *+' conftest.er1 >conftest.err
26028   rm -f conftest.er1
26029   cat conftest.err >&5
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); } &&
26032          { ac_try='test -z "$ac_c_werror_flag"
26033                          || test ! -s conftest.err'
26034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035   (eval $ac_try) 2>&5
26036   ac_status=$?
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); }; } &&
26039          { ac_try='test -s conftest.$ac_objext'
26040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); }; }; then
26045   ac_header_compiler=yes
26046 else
26047   echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050 ac_header_compiler=no
26051 fi
26052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26054 echo "${ECHO_T}$ac_header_compiler" >&6
26055
26056 # Is the header present?
26057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26059 cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065 #include <$ac_header>
26066 _ACEOF
26067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26069   ac_status=$?
26070   grep -v '^ *+' conftest.er1 >conftest.err
26071   rm -f conftest.er1
26072   cat conftest.err >&5
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); } >/dev/null; then
26075   if test -s conftest.err; then
26076     ac_cpp_err=$ac_c_preproc_warn_flag
26077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26078   else
26079     ac_cpp_err=
26080   fi
26081 else
26082   ac_cpp_err=yes
26083 fi
26084 if test -z "$ac_cpp_err"; then
26085   ac_header_preproc=yes
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090   ac_header_preproc=no
26091 fi
26092 rm -f conftest.err conftest.$ac_ext
26093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26094 echo "${ECHO_T}$ac_header_preproc" >&6
26095
26096 # So?  What about this header?
26097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26098   yes:no: )
26099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26103     ac_header_preproc=yes
26104     ;;
26105   no:yes:* )
26106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26118     (
26119       cat <<\_ASBOX
26120 ## ----------------------------------- ##
26121 ## Report this to llvmbugs@cs.uiuc.edu ##
26122 ## ----------------------------------- ##
26123 _ASBOX
26124     ) |
26125       sed "s/^/$as_me: WARNING:     /" >&2
26126     ;;
26127 esac
26128 echo "$as_me:$LINENO: checking for $ac_header" >&5
26129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26131   echo $ECHO_N "(cached) $ECHO_C" >&6
26132 else
26133   eval "$as_ac_Header=\$ac_header_preproc"
26134 fi
26135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26137
26138 fi
26139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26140   cat >>confdefs.h <<_ACEOF
26141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26142 _ACEOF
26143
26144 fi
26145
26146 done
26147
26148
26149
26150 echo "$as_me:$LINENO: checking for pid_t" >&5
26151 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26152 if test "${ac_cv_type_pid_t+set}" = set; then
26153   echo $ECHO_N "(cached) $ECHO_C" >&6
26154 else
26155   cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 $ac_includes_default
26162 int
26163 main ()
26164 {
26165 if ((pid_t *) 0)
26166   return 0;
26167 if (sizeof (pid_t))
26168   return 0;
26169   ;
26170   return 0;
26171 }
26172 _ACEOF
26173 rm -f conftest.$ac_objext
26174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26175   (eval $ac_compile) 2>conftest.er1
26176   ac_status=$?
26177   grep -v '^ *+' conftest.er1 >conftest.err
26178   rm -f conftest.er1
26179   cat conftest.err >&5
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } &&
26182          { ac_try='test -z "$ac_c_werror_flag"
26183                          || test ! -s conftest.err'
26184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185   (eval $ac_try) 2>&5
26186   ac_status=$?
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); }; } &&
26189          { ac_try='test -s conftest.$ac_objext'
26190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191   (eval $ac_try) 2>&5
26192   ac_status=$?
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); }; }; then
26195   ac_cv_type_pid_t=yes
26196 else
26197   echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200 ac_cv_type_pid_t=no
26201 fi
26202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26203 fi
26204 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26205 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26206 if test $ac_cv_type_pid_t = yes; then
26207   :
26208 else
26209
26210 cat >>confdefs.h <<_ACEOF
26211 #define pid_t int
26212 _ACEOF
26213
26214 fi
26215
26216 echo "$as_me:$LINENO: checking for size_t" >&5
26217 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26218 if test "${ac_cv_type_size_t+set}" = set; then
26219   echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221   cat >conftest.$ac_ext <<_ACEOF
26222 /* confdefs.h.  */
26223 _ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h.  */
26227 $ac_includes_default
26228 int
26229 main ()
26230 {
26231 if ((size_t *) 0)
26232   return 0;
26233 if (sizeof (size_t))
26234   return 0;
26235   ;
26236   return 0;
26237 }
26238 _ACEOF
26239 rm -f conftest.$ac_objext
26240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26241   (eval $ac_compile) 2>conftest.er1
26242   ac_status=$?
26243   grep -v '^ *+' conftest.er1 >conftest.err
26244   rm -f conftest.er1
26245   cat conftest.err >&5
26246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247   (exit $ac_status); } &&
26248          { ac_try='test -z "$ac_c_werror_flag"
26249                          || test ! -s conftest.err'
26250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251   (eval $ac_try) 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; } &&
26255          { ac_try='test -s conftest.$ac_objext'
26256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257   (eval $ac_try) 2>&5
26258   ac_status=$?
26259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); }; }; then
26261   ac_cv_type_size_t=yes
26262 else
26263   echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26265
26266 ac_cv_type_size_t=no
26267 fi
26268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26269 fi
26270 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26271 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26272 if test $ac_cv_type_size_t = yes; then
26273   :
26274 else
26275
26276 cat >>confdefs.h <<_ACEOF
26277 #define size_t unsigned
26278 _ACEOF
26279
26280 fi
26281
26282 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26283 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26284 if test "${ac_cv_type_signal+set}" = set; then
26285   echo $ECHO_N "(cached) $ECHO_C" >&6
26286 else
26287   cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293 #include <sys/types.h>
26294 #include <signal.h>
26295 #ifdef signal
26296 # undef signal
26297 #endif
26298 #ifdef __cplusplus
26299 extern "C" void (*signal (int, void (*)(int)))(int);
26300 #else
26301 void (*signal ()) ();
26302 #endif
26303
26304 int
26305 main ()
26306 {
26307 int i;
26308   ;
26309   return 0;
26310 }
26311 _ACEOF
26312 rm -f conftest.$ac_objext
26313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26314   (eval $ac_compile) 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } &&
26321          { ac_try='test -z "$ac_c_werror_flag"
26322                          || test ! -s conftest.err'
26323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324   (eval $ac_try) 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); }; } &&
26328          { ac_try='test -s conftest.$ac_objext'
26329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330   (eval $ac_try) 2>&5
26331   ac_status=$?
26332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333   (exit $ac_status); }; }; then
26334   ac_cv_type_signal=void
26335 else
26336   echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26338
26339 ac_cv_type_signal=int
26340 fi
26341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26342 fi
26343 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26344 echo "${ECHO_T}$ac_cv_type_signal" >&6
26345
26346 cat >>confdefs.h <<_ACEOF
26347 #define RETSIGTYPE $ac_cv_type_signal
26348 _ACEOF
26349
26350
26351 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26352 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26353 if test "${ac_cv_struct_tm+set}" = set; then
26354   echo $ECHO_N "(cached) $ECHO_C" >&6
26355 else
26356   cat >conftest.$ac_ext <<_ACEOF
26357 /* confdefs.h.  */
26358 _ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h.  */
26362 #include <sys/types.h>
26363 #include <time.h>
26364
26365 int
26366 main ()
26367 {
26368 struct tm *tp; tp->tm_sec;
26369   ;
26370   return 0;
26371 }
26372 _ACEOF
26373 rm -f conftest.$ac_objext
26374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26375   (eval $ac_compile) 2>conftest.er1
26376   ac_status=$?
26377   grep -v '^ *+' conftest.er1 >conftest.err
26378   rm -f conftest.er1
26379   cat conftest.err >&5
26380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); } &&
26382          { ac_try='test -z "$ac_c_werror_flag"
26383                          || test ! -s conftest.err'
26384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385   (eval $ac_try) 2>&5
26386   ac_status=$?
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); }; } &&
26389          { ac_try='test -s conftest.$ac_objext'
26390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391   (eval $ac_try) 2>&5
26392   ac_status=$?
26393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394   (exit $ac_status); }; }; then
26395   ac_cv_struct_tm=time.h
26396 else
26397   echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26399
26400 ac_cv_struct_tm=sys/time.h
26401 fi
26402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26403 fi
26404 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26405 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26406 if test $ac_cv_struct_tm = sys/time.h; then
26407
26408 cat >>confdefs.h <<\_ACEOF
26409 #define TM_IN_SYS_TIME 1
26410 _ACEOF
26411
26412 fi
26413
26414 echo "$as_me:$LINENO: checking for int64_t" >&5
26415 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26416 if test "${ac_cv_type_int64_t+set}" = set; then
26417   echo $ECHO_N "(cached) $ECHO_C" >&6
26418 else
26419   cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425 $ac_includes_default
26426 int
26427 main ()
26428 {
26429 if ((int64_t *) 0)
26430   return 0;
26431 if (sizeof (int64_t))
26432   return 0;
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 rm -f conftest.$ac_objext
26438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26439   (eval $ac_compile) 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } &&
26446          { ac_try='test -z "$ac_c_werror_flag"
26447                          || test ! -s conftest.err'
26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449   (eval $ac_try) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; } &&
26453          { ac_try='test -s conftest.$ac_objext'
26454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455   (eval $ac_try) 2>&5
26456   ac_status=$?
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); }; }; then
26459   ac_cv_type_int64_t=yes
26460 else
26461   echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464 ac_cv_type_int64_t=no
26465 fi
26466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26467 fi
26468 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26469 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26470 if test $ac_cv_type_int64_t = yes; then
26471
26472 cat >>confdefs.h <<_ACEOF
26473 #define HAVE_INT64_T 1
26474 _ACEOF
26475
26476
26477 else
26478   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26479 echo "$as_me: error: Type int64_t required but not found" >&2;}
26480    { (exit 1); exit 1; }; }
26481 fi
26482
26483 echo "$as_me:$LINENO: checking for uint64_t" >&5
26484 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26485 if test "${ac_cv_type_uint64_t+set}" = set; then
26486   echo $ECHO_N "(cached) $ECHO_C" >&6
26487 else
26488   cat >conftest.$ac_ext <<_ACEOF
26489 /* confdefs.h.  */
26490 _ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h.  */
26494 $ac_includes_default
26495 int
26496 main ()
26497 {
26498 if ((uint64_t *) 0)
26499   return 0;
26500 if (sizeof (uint64_t))
26501   return 0;
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 rm -f conftest.$ac_objext
26507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26508   (eval $ac_compile) 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); } &&
26515          { ac_try='test -z "$ac_c_werror_flag"
26516                          || test ! -s conftest.err'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; } &&
26522          { ac_try='test -s conftest.$ac_objext'
26523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524   (eval $ac_try) 2>&5
26525   ac_status=$?
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); }; }; then
26528   ac_cv_type_uint64_t=yes
26529 else
26530   echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 ac_cv_type_uint64_t=no
26534 fi
26535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26536 fi
26537 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26538 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26539 if test $ac_cv_type_uint64_t = yes; then
26540
26541 cat >>confdefs.h <<_ACEOF
26542 #define HAVE_UINT64_T 1
26543 _ACEOF
26544
26545
26546 else
26547   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26548 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26549 if test "${ac_cv_type_u_int64_t+set}" = set; then
26550   echo $ECHO_N "(cached) $ECHO_C" >&6
26551 else
26552   cat >conftest.$ac_ext <<_ACEOF
26553 /* confdefs.h.  */
26554 _ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h.  */
26558 $ac_includes_default
26559 int
26560 main ()
26561 {
26562 if ((u_int64_t *) 0)
26563   return 0;
26564 if (sizeof (u_int64_t))
26565   return 0;
26566   ;
26567   return 0;
26568 }
26569 _ACEOF
26570 rm -f conftest.$ac_objext
26571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26572   (eval $ac_compile) 2>conftest.er1
26573   ac_status=$?
26574   grep -v '^ *+' conftest.er1 >conftest.err
26575   rm -f conftest.er1
26576   cat conftest.err >&5
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); } &&
26579          { ac_try='test -z "$ac_c_werror_flag"
26580                          || test ! -s conftest.err'
26581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582   (eval $ac_try) 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); }; } &&
26586          { ac_try='test -s conftest.$ac_objext'
26587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588   (eval $ac_try) 2>&5
26589   ac_status=$?
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); }; }; then
26592   ac_cv_type_u_int64_t=yes
26593 else
26594   echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26596
26597 ac_cv_type_u_int64_t=no
26598 fi
26599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26600 fi
26601 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26602 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26603 if test $ac_cv_type_u_int64_t = yes; then
26604
26605 cat >>confdefs.h <<_ACEOF
26606 #define HAVE_U_INT64_T 1
26607 _ACEOF
26608
26609
26610 else
26611   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26612 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26613    { (exit 1); exit 1; }; }
26614 fi
26615
26616 fi
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26627 do
26628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26629 echo "$as_me:$LINENO: checking for $ac_func" >&5
26630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26631 if eval "test \"\${$as_ac_var+set}\" = set"; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26642 #define $ac_func innocuous_$ac_func
26643
26644 /* System header to define __stub macros and hopefully few prototypes,
26645     which can conflict with char $ac_func (); below.
26646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26647     <limits.h> exists even on freestanding compilers.  */
26648
26649 #ifdef __STDC__
26650 # include <limits.h>
26651 #else
26652 # include <assert.h>
26653 #endif
26654
26655 #undef $ac_func
26656
26657 /* Override any gcc2 internal prototype to avoid an error.  */
26658 #ifdef __cplusplus
26659 extern "C"
26660 {
26661 #endif
26662 /* We use char because int might match the return type of a gcc2
26663    builtin and then its argument prototype would still apply.  */
26664 char $ac_func ();
26665 /* The GNU C library defines this for functions which it implements
26666     to always fail with ENOSYS.  Some functions are actually named
26667     something starting with __ and the normal name is an alias.  */
26668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26669 choke me
26670 #else
26671 char (*f) () = $ac_func;
26672 #endif
26673 #ifdef __cplusplus
26674 }
26675 #endif
26676
26677 int
26678 main ()
26679 {
26680 return f != $ac_func;
26681   ;
26682   return 0;
26683 }
26684 _ACEOF
26685 rm -f conftest.$ac_objext conftest$ac_exeext
26686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26687   (eval $ac_link) 2>conftest.er1
26688   ac_status=$?
26689   grep -v '^ *+' conftest.er1 >conftest.err
26690   rm -f conftest.er1
26691   cat conftest.err >&5
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); } &&
26694          { ac_try='test -z "$ac_c_werror_flag"
26695                          || test ! -s conftest.err'
26696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697   (eval $ac_try) 2>&5
26698   ac_status=$?
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); }; } &&
26701          { ac_try='test -s conftest$ac_exeext'
26702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703   (eval $ac_try) 2>&5
26704   ac_status=$?
26705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706   (exit $ac_status); }; }; then
26707   eval "$as_ac_var=yes"
26708 else
26709   echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26711
26712 eval "$as_ac_var=no"
26713 fi
26714 rm -f conftest.err conftest.$ac_objext \
26715       conftest$ac_exeext conftest.$ac_ext
26716 fi
26717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26719 if test `eval echo '${'$as_ac_var'}'` = yes; then
26720   cat >>confdefs.h <<_ACEOF
26721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26722 _ACEOF
26723
26724 fi
26725 done
26726
26727
26728
26729
26730 for ac_func in strdup strtoq strtoll
26731 do
26732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26733 echo "$as_me:$LINENO: checking for $ac_func" >&5
26734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26735 if eval "test \"\${$as_ac_var+set}\" = set"; then
26736   echo $ECHO_N "(cached) $ECHO_C" >&6
26737 else
26738   cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h.  */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h.  */
26744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26746 #define $ac_func innocuous_$ac_func
26747
26748 /* System header to define __stub macros and hopefully few prototypes,
26749     which can conflict with char $ac_func (); below.
26750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26751     <limits.h> exists even on freestanding compilers.  */
26752
26753 #ifdef __STDC__
26754 # include <limits.h>
26755 #else
26756 # include <assert.h>
26757 #endif
26758
26759 #undef $ac_func
26760
26761 /* Override any gcc2 internal prototype to avoid an error.  */
26762 #ifdef __cplusplus
26763 extern "C"
26764 {
26765 #endif
26766 /* We use char because int might match the return type of a gcc2
26767    builtin and then its argument prototype would still apply.  */
26768 char $ac_func ();
26769 /* The GNU C library defines this for functions which it implements
26770     to always fail with ENOSYS.  Some functions are actually named
26771     something starting with __ and the normal name is an alias.  */
26772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26773 choke me
26774 #else
26775 char (*f) () = $ac_func;
26776 #endif
26777 #ifdef __cplusplus
26778 }
26779 #endif
26780
26781 int
26782 main ()
26783 {
26784 return f != $ac_func;
26785   ;
26786   return 0;
26787 }
26788 _ACEOF
26789 rm -f conftest.$ac_objext conftest$ac_exeext
26790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26791   (eval $ac_link) 2>conftest.er1
26792   ac_status=$?
26793   grep -v '^ *+' conftest.er1 >conftest.err
26794   rm -f conftest.er1
26795   cat conftest.err >&5
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); } &&
26798          { ac_try='test -z "$ac_c_werror_flag"
26799                          || test ! -s conftest.err'
26800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801   (eval $ac_try) 2>&5
26802   ac_status=$?
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); }; } &&
26805          { ac_try='test -s conftest$ac_exeext'
26806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807   (eval $ac_try) 2>&5
26808   ac_status=$?
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); }; }; then
26811   eval "$as_ac_var=yes"
26812 else
26813   echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26815
26816 eval "$as_ac_var=no"
26817 fi
26818 rm -f conftest.err conftest.$ac_objext \
26819       conftest$ac_exeext conftest.$ac_ext
26820 fi
26821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26823 if test `eval echo '${'$as_ac_var'}'` = yes; then
26824   cat >>confdefs.h <<_ACEOF
26825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26826 _ACEOF
26827
26828 fi
26829 done
26830
26831 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26832 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26833 if test "${llvm_cv_c_printf_a+set}" = set; then
26834   echo $ECHO_N "(cached) $ECHO_C" >&6
26835 else
26836   ac_ext=c
26837 ac_cpp='$CPP $CPPFLAGS'
26838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26841
26842  if test "$cross_compiling" = yes; then
26843   llvmac_cv_c_printf_a=no
26844 else
26845   cat >conftest.$ac_ext <<_ACEOF
26846
26847   /* confdefs.h.  */
26848 _ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h.  */
26852
26853 #include <stdio.h>
26854 #include <stdlib.h>
26855
26856 int
26857 main ()
26858 {
26859
26860 volatile double A, B;
26861 char Buffer[100];
26862 A = 1;
26863 A /= 10.0;
26864 sprintf(Buffer, "%a", A);
26865 B = atof(Buffer);
26866 if (A != B)
26867   return (1);
26868 if (A != 0x1.999999999999ap-4)
26869   return (1);
26870 return (0);
26871   ;
26872   return 0;
26873 }
26874 _ACEOF
26875 rm -f conftest$ac_exeext
26876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26877   (eval $ac_link) 2>&5
26878   ac_status=$?
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; }; then
26886   llvm_cv_c_printf_a=yes
26887 else
26888   echo "$as_me: program exited with status $ac_status" >&5
26889 echo "$as_me: failed program was:" >&5
26890 sed 's/^/| /' conftest.$ac_ext >&5
26891
26892 ( exit $ac_status )
26893 llvmac_cv_c_printf_a=no
26894 fi
26895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26896 fi
26897  ac_ext=c
26898 ac_cpp='$CPP $CPPFLAGS'
26899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26902
26903 fi
26904 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26905 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26906  if test "$llvm_cv_c_printf_a" = "yes"; then
26907
26908 cat >>confdefs.h <<\_ACEOF
26909 #define HAVE_PRINTF_A 1
26910 _ACEOF
26911
26912  fi
26913
26914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26915 # for constant arguments.  Useless!
26916 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26917 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26918 if test "${ac_cv_working_alloca_h+set}" = set; then
26919   echo $ECHO_N "(cached) $ECHO_C" >&6
26920 else
26921   cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927 #include <alloca.h>
26928 int
26929 main ()
26930 {
26931 char *p = (char *) alloca (2 * sizeof (int));
26932   ;
26933   return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26938   (eval $ac_link) 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } &&
26945          { ac_try='test -z "$ac_c_werror_flag"
26946                          || test ! -s conftest.err'
26947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948   (eval $ac_try) 2>&5
26949   ac_status=$?
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); }; } &&
26952          { ac_try='test -s conftest$ac_exeext'
26953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954   (eval $ac_try) 2>&5
26955   ac_status=$?
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); }; }; then
26958   ac_cv_working_alloca_h=yes
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963 ac_cv_working_alloca_h=no
26964 fi
26965 rm -f conftest.err conftest.$ac_objext \
26966       conftest$ac_exeext conftest.$ac_ext
26967 fi
26968 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26969 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26970 if test $ac_cv_working_alloca_h = yes; then
26971
26972 cat >>confdefs.h <<\_ACEOF
26973 #define HAVE_ALLOCA_H 1
26974 _ACEOF
26975
26976 fi
26977
26978 echo "$as_me:$LINENO: checking for alloca" >&5
26979 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26980 if test "${ac_cv_func_alloca_works+set}" = set; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983   cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h.  */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h.  */
26989 #ifdef __GNUC__
26990 # define alloca __builtin_alloca
26991 #else
26992 # ifdef _MSC_VER
26993 #  include <malloc.h>
26994 #  define alloca _alloca
26995 # else
26996 #  if HAVE_ALLOCA_H
26997 #   include <alloca.h>
26998 #  else
26999 #   ifdef _AIX
27000  #pragma alloca
27001 #   else
27002 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27003 char *alloca ();
27004 #    endif
27005 #   endif
27006 #  endif
27007 # endif
27008 #endif
27009
27010 int
27011 main ()
27012 {
27013 char *p = (char *) alloca (1);
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27020   (eval $ac_link) 2>conftest.er1
27021   ac_status=$?
27022   grep -v '^ *+' conftest.er1 >conftest.err
27023   rm -f conftest.er1
27024   cat conftest.err >&5
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); } &&
27027          { ac_try='test -z "$ac_c_werror_flag"
27028                          || test ! -s conftest.err'
27029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030   (eval $ac_try) 2>&5
27031   ac_status=$?
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); }; } &&
27034          { ac_try='test -s conftest$ac_exeext'
27035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036   (eval $ac_try) 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; }; then
27040   ac_cv_func_alloca_works=yes
27041 else
27042   echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045 ac_cv_func_alloca_works=no
27046 fi
27047 rm -f conftest.err conftest.$ac_objext \
27048       conftest$ac_exeext conftest.$ac_ext
27049 fi
27050 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27051 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27052
27053 if test $ac_cv_func_alloca_works = yes; then
27054
27055 cat >>confdefs.h <<\_ACEOF
27056 #define HAVE_ALLOCA 1
27057 _ACEOF
27058
27059 else
27060   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27061 # that cause trouble.  Some versions do not even contain alloca or
27062 # contain a buggy version.  If you still want to use their alloca,
27063 # use ar to extract alloca.o from them instead of compiling alloca.c.
27064
27065 ALLOCA=alloca.$ac_objext
27066
27067 cat >>confdefs.h <<\_ACEOF
27068 #define C_ALLOCA 1
27069 _ACEOF
27070
27071
27072 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27073 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27074 if test "${ac_cv_os_cray+set}" = set; then
27075   echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077   cat >conftest.$ac_ext <<_ACEOF
27078 /* confdefs.h.  */
27079 _ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h.  */
27083 #if defined(CRAY) && ! defined(CRAY2)
27084 webecray
27085 #else
27086 wenotbecray
27087 #endif
27088
27089 _ACEOF
27090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091   $EGREP "webecray" >/dev/null 2>&1; then
27092   ac_cv_os_cray=yes
27093 else
27094   ac_cv_os_cray=no
27095 fi
27096 rm -f conftest*
27097
27098 fi
27099 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27100 echo "${ECHO_T}$ac_cv_os_cray" >&6
27101 if test $ac_cv_os_cray = yes; then
27102   for ac_func in _getb67 GETB67 getb67; do
27103     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27104 echo "$as_me:$LINENO: checking for $ac_func" >&5
27105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27106 if eval "test \"\${$as_ac_var+set}\" = set"; then
27107   echo $ECHO_N "(cached) $ECHO_C" >&6
27108 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27117 #define $ac_func innocuous_$ac_func
27118
27119 /* System header to define __stub macros and hopefully few prototypes,
27120     which can conflict with char $ac_func (); below.
27121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27122     <limits.h> exists even on freestanding compilers.  */
27123
27124 #ifdef __STDC__
27125 # include <limits.h>
27126 #else
27127 # include <assert.h>
27128 #endif
27129
27130 #undef $ac_func
27131
27132 /* Override any gcc2 internal prototype to avoid an error.  */
27133 #ifdef __cplusplus
27134 extern "C"
27135 {
27136 #endif
27137 /* We use char because int might match the return type of a gcc2
27138    builtin and then its argument prototype would still apply.  */
27139 char $ac_func ();
27140 /* The GNU C library defines this for functions which it implements
27141     to always fail with ENOSYS.  Some functions are actually named
27142     something starting with __ and the normal name is an alias.  */
27143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27144 choke me
27145 #else
27146 char (*f) () = $ac_func;
27147 #endif
27148 #ifdef __cplusplus
27149 }
27150 #endif
27151
27152 int
27153 main ()
27154 {
27155 return f != $ac_func;
27156   ;
27157   return 0;
27158 }
27159 _ACEOF
27160 rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27162   (eval $ac_link) 2>conftest.er1
27163   ac_status=$?
27164   grep -v '^ *+' conftest.er1 >conftest.err
27165   rm -f conftest.er1
27166   cat conftest.err >&5
27167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168   (exit $ac_status); } &&
27169          { ac_try='test -z "$ac_c_werror_flag"
27170                          || test ! -s conftest.err'
27171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27172   (eval $ac_try) 2>&5
27173   ac_status=$?
27174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175   (exit $ac_status); }; } &&
27176          { ac_try='test -s conftest$ac_exeext'
27177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178   (eval $ac_try) 2>&5
27179   ac_status=$?
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); }; }; then
27182   eval "$as_ac_var=yes"
27183 else
27184   echo "$as_me: failed program was:" >&5
27185 sed 's/^/| /' conftest.$ac_ext >&5
27186
27187 eval "$as_ac_var=no"
27188 fi
27189 rm -f conftest.err conftest.$ac_objext \
27190       conftest$ac_exeext conftest.$ac_ext
27191 fi
27192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27194 if test `eval echo '${'$as_ac_var'}'` = yes; then
27195
27196 cat >>confdefs.h <<_ACEOF
27197 #define CRAY_STACKSEG_END $ac_func
27198 _ACEOF
27199
27200     break
27201 fi
27202
27203   done
27204 fi
27205
27206 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27207 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27208 if test "${ac_cv_c_stack_direction+set}" = set; then
27209   echo $ECHO_N "(cached) $ECHO_C" >&6
27210 else
27211   if test "$cross_compiling" = yes; then
27212   ac_cv_c_stack_direction=0
27213 else
27214   cat >conftest.$ac_ext <<_ACEOF
27215 /* confdefs.h.  */
27216 _ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h.  */
27220 int
27221 find_stack_direction ()
27222 {
27223   static char *addr = 0;
27224   auto char dummy;
27225   if (addr == 0)
27226     {
27227       addr = &dummy;
27228       return find_stack_direction ();
27229     }
27230   else
27231     return (&dummy > addr) ? 1 : -1;
27232 }
27233
27234 int
27235 main ()
27236 {
27237   exit (find_stack_direction () < 0);
27238 }
27239 _ACEOF
27240 rm -f conftest$ac_exeext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27242   (eval $ac_link) 2>&5
27243   ac_status=$?
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247   (eval $ac_try) 2>&5
27248   ac_status=$?
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); }; }; then
27251   ac_cv_c_stack_direction=1
27252 else
27253   echo "$as_me: program exited with status $ac_status" >&5
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257 ( exit $ac_status )
27258 ac_cv_c_stack_direction=-1
27259 fi
27260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27261 fi
27262 fi
27263 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27264 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27265
27266 cat >>confdefs.h <<_ACEOF
27267 #define STACK_DIRECTION $ac_cv_c_stack_direction
27268 _ACEOF
27269
27270
27271 fi
27272
27273
27274 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27275 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27276 if test "${ac_cv_func_rand48+set}" = set; then
27277   echo $ECHO_N "(cached) $ECHO_C" >&6
27278 else
27279   ac_ext=cc
27280 ac_cpp='$CXXCPP $CPPFLAGS'
27281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27284
27285    cat >conftest.$ac_ext <<_ACEOF
27286 /* confdefs.h.  */
27287 _ACEOF
27288 cat confdefs.h >>conftest.$ac_ext
27289 cat >>conftest.$ac_ext <<_ACEOF
27290 /* end confdefs.h.  */
27291 #include <stdlib.h>
27292 int
27293 main ()
27294 {
27295 srand48(0);lrand48();drand48();
27296   ;
27297   return 0;
27298 }
27299 _ACEOF
27300 rm -f conftest.$ac_objext
27301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27302   (eval $ac_compile) 2>conftest.er1
27303   ac_status=$?
27304   grep -v '^ *+' conftest.er1 >conftest.err
27305   rm -f conftest.er1
27306   cat conftest.err >&5
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } &&
27309          { ac_try='test -z "$ac_cxx_werror_flag"
27310                          || test ! -s conftest.err'
27311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312   (eval $ac_try) 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; } &&
27316          { ac_try='test -s conftest.$ac_objext'
27317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318   (eval $ac_try) 2>&5
27319   ac_status=$?
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); }; }; then
27322   ac_cv_func_rand48=yes
27323 else
27324   echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327 ac_cv_func_rand48=no
27328 fi
27329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27330   ac_ext=c
27331 ac_cpp='$CPP $CPPFLAGS'
27332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27335
27336 fi
27337 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27338 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27339
27340 if test "$ac_cv_func_rand48" = "yes" ; then
27341
27342 cat >>confdefs.h <<\_ACEOF
27343 #define HAVE_RAND48 1
27344 _ACEOF
27345
27346 fi
27347
27348
27349 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27350 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27351 if test "${ac_cv_cxx_namespaces+set}" = set; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354   ac_ext=cc
27355 ac_cpp='$CXXCPP $CPPFLAGS'
27356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27359
27360  cat >conftest.$ac_ext <<_ACEOF
27361 /* confdefs.h.  */
27362 _ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h.  */
27366 namespace Outer { namespace Inner { int i = 0; }}
27367 int
27368 main ()
27369 {
27370 using namespace Outer::Inner; return i;
27371   ;
27372   return 0;
27373 }
27374 _ACEOF
27375 rm -f conftest.$ac_objext
27376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27377   (eval $ac_compile) 2>conftest.er1
27378   ac_status=$?
27379   grep -v '^ *+' conftest.er1 >conftest.err
27380   rm -f conftest.er1
27381   cat conftest.err >&5
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); } &&
27384          { ac_try='test -z "$ac_cxx_werror_flag"
27385                          || test ! -s conftest.err'
27386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387   (eval $ac_try) 2>&5
27388   ac_status=$?
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); }; } &&
27391          { ac_try='test -s conftest.$ac_objext'
27392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393   (eval $ac_try) 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; }; then
27397   ac_cv_cxx_namespaces=yes
27398 else
27399   echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27401
27402 ac_cv_cxx_namespaces=no
27403 fi
27404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27405  ac_ext=c
27406 ac_cpp='$CPP $CPPFLAGS'
27407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27410
27411
27412 fi
27413 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27414 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27415 if test "$ac_cv_cxx_namespaces" = yes; then
27416
27417 cat >>confdefs.h <<\_ACEOF
27418 #define HAVE_NAMESPACES
27419 _ACEOF
27420
27421 fi
27422
27423 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27424 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27425 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27426   echo $ECHO_N "(cached) $ECHO_C" >&6
27427 else
27428
27429   ac_ext=cc
27430 ac_cpp='$CXXCPP $CPPFLAGS'
27431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27434
27435   cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441 #include <ext/hash_map>
27442 #ifdef HAVE_NAMESPACES
27443 using namespace std;
27444 #endif
27445 int
27446 main ()
27447 {
27448 hash_map<int, int> t;
27449   ;
27450   return 0;
27451 }
27452 _ACEOF
27453 rm -f conftest.$ac_objext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27455   (eval $ac_compile) 2>conftest.er1
27456   ac_status=$?
27457   grep -v '^ *+' conftest.er1 >conftest.err
27458   rm -f conftest.er1
27459   cat conftest.err >&5
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); } &&
27462          { ac_try='test -z "$ac_cxx_werror_flag"
27463                          || test ! -s conftest.err'
27464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465   (eval $ac_try) 2>&5
27466   ac_status=$?
27467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); }; } &&
27469          { ac_try='test -s conftest.$ac_objext'
27470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471   (eval $ac_try) 2>&5
27472   ac_status=$?
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); }; }; then
27475   ac_cv_cxx_have_std_ext_hash_map=yes
27476 else
27477   echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27479
27480 ac_cv_cxx_have_std_ext_hash_map=no
27481 fi
27482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27483   ac_ext=c
27484 ac_cpp='$CPP $CPPFLAGS'
27485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27488
27489 fi
27490 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27491 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27492  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27493  then
27494
27495 cat >>confdefs.h <<\_ACEOF
27496 #define HAVE_STD_EXT_HASH_MAP 1
27497 _ACEOF
27498
27499  else
27500
27501 cat >>confdefs.h <<\_ACEOF
27502 #define HAVE_STD_EXT_HASH_MAP 0
27503 _ACEOF
27504
27505  fi
27506
27507  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27508 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27509 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27510   echo $ECHO_N "(cached) $ECHO_C" >&6
27511 else
27512
27513   ac_ext=cc
27514 ac_cpp='$CXXCPP $CPPFLAGS'
27515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27518
27519   cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525 #include <ext/hash_map>
27526 #ifdef HAVE_NAMESPACES
27527 using namespace __gnu_cxx;
27528 #endif
27529 int
27530 main ()
27531 {
27532 hash_map<int,int> t;
27533   ;
27534   return 0;
27535 }
27536 _ACEOF
27537 rm -f conftest.$ac_objext
27538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27539   (eval $ac_compile) 2>conftest.er1
27540   ac_status=$?
27541   grep -v '^ *+' conftest.er1 >conftest.err
27542   rm -f conftest.er1
27543   cat conftest.err >&5
27544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545   (exit $ac_status); } &&
27546          { ac_try='test -z "$ac_cxx_werror_flag"
27547                          || test ! -s conftest.err'
27548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549   (eval $ac_try) 2>&5
27550   ac_status=$?
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); }; } &&
27553          { ac_try='test -s conftest.$ac_objext'
27554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555   (eval $ac_try) 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); }; }; then
27559   ac_cv_cxx_have_gnu_ext_hash_map=yes
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564 ac_cv_cxx_have_gnu_ext_hash_map=no
27565 fi
27566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27567   ac_ext=c
27568 ac_cpp='$CPP $CPPFLAGS'
27569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27572
27573 fi
27574 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27575 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27576  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27577  then
27578
27579 cat >>confdefs.h <<\_ACEOF
27580 #define HAVE_GNU_EXT_HASH_MAP 1
27581 _ACEOF
27582
27583  else
27584
27585 cat >>confdefs.h <<\_ACEOF
27586 #define HAVE_GNU_EXT_HASH_MAP 0
27587 _ACEOF
27588
27589  fi
27590
27591  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27592 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27593 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27594   echo $ECHO_N "(cached) $ECHO_C" >&6
27595 else
27596
27597   ac_ext=cc
27598 ac_cpp='$CXXCPP $CPPFLAGS'
27599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27602
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 #include <hash_map>
27610 int
27611 main ()
27612 {
27613 hash_map<int,int> t;
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 rm -f conftest.$ac_objext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27620   (eval $ac_compile) 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } &&
27627          { ac_try='test -z "$ac_cxx_werror_flag"
27628                          || test ! -s conftest.err'
27629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630   (eval $ac_try) 2>&5
27631   ac_status=$?
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); }; } &&
27634          { ac_try='test -s conftest.$ac_objext'
27635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636   (eval $ac_try) 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); }; }; then
27640   ac_cv_cxx_have_global_hash_map=yes
27641 else
27642   echo "$as_me: failed program was:" >&5
27643 sed 's/^/| /' conftest.$ac_ext >&5
27644
27645 ac_cv_cxx_have_global_hash_map=no
27646 fi
27647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27648   ac_ext=c
27649 ac_cpp='$CPP $CPPFLAGS'
27650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27653
27654 fi
27655 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27656 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27657  if test "$ac_cv_cxx_have_global_hash_map" = yes
27658  then
27659
27660 cat >>confdefs.h <<\_ACEOF
27661 #define HAVE_GLOBAL_HASH_MAP 1
27662 _ACEOF
27663
27664  else
27665
27666 cat >>confdefs.h <<\_ACEOF
27667 #define HAVE_GLOBAL_HASH_MAP 0
27668 _ACEOF
27669
27670  fi
27671
27672 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27673 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27674 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27675   echo $ECHO_N "(cached) $ECHO_C" >&6
27676 else
27677
27678   ac_ext=cc
27679 ac_cpp='$CXXCPP $CPPFLAGS'
27680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27683
27684   cat >conftest.$ac_ext <<_ACEOF
27685 /* confdefs.h.  */
27686 _ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h.  */
27690 #include <ext/hash_set>
27691 #ifdef HAVE_NAMESPACES
27692 using namespace std;
27693 #endif
27694 int
27695 main ()
27696 {
27697 hash_set<int> t;
27698   ;
27699   return 0;
27700 }
27701 _ACEOF
27702 rm -f conftest.$ac_objext
27703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27704   (eval $ac_compile) 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } &&
27711          { ac_try='test -z "$ac_cxx_werror_flag"
27712                          || test ! -s conftest.err'
27713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714   (eval $ac_try) 2>&5
27715   ac_status=$?
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); }; } &&
27718          { ac_try='test -s conftest.$ac_objext'
27719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720   (eval $ac_try) 2>&5
27721   ac_status=$?
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); }; }; then
27724   ac_cv_cxx_have_std_ext_hash_set=yes
27725 else
27726   echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729 ac_cv_cxx_have_std_ext_hash_set=no
27730 fi
27731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27732   ac_ext=c
27733 ac_cpp='$CPP $CPPFLAGS'
27734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27737
27738 fi
27739 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27740 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27741  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27742  then
27743
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_STD_EXT_HASH_SET 1
27746 _ACEOF
27747
27748  else
27749
27750 cat >>confdefs.h <<\_ACEOF
27751 #define HAVE_STD_EXT_HASH_SET 0
27752 _ACEOF
27753
27754  fi
27755
27756  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27757 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27758 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27759   echo $ECHO_N "(cached) $ECHO_C" >&6
27760 else
27761
27762   ac_ext=cc
27763 ac_cpp='$CXXCPP $CPPFLAGS'
27764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27767
27768   cat >conftest.$ac_ext <<_ACEOF
27769 /* confdefs.h.  */
27770 _ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h.  */
27774 #include <ext/hash_set>
27775 #ifdef HAVE_NAMESPACES
27776 using namespace __gnu_cxx;
27777 #endif
27778 int
27779 main ()
27780 {
27781 hash_set<int> t;
27782   ;
27783   return 0;
27784 }
27785 _ACEOF
27786 rm -f conftest.$ac_objext
27787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27788   (eval $ac_compile) 2>conftest.er1
27789   ac_status=$?
27790   grep -v '^ *+' conftest.er1 >conftest.err
27791   rm -f conftest.er1
27792   cat conftest.err >&5
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); } &&
27795          { ac_try='test -z "$ac_cxx_werror_flag"
27796                          || test ! -s conftest.err'
27797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798   (eval $ac_try) 2>&5
27799   ac_status=$?
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); }; } &&
27802          { ac_try='test -s conftest.$ac_objext'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; }; then
27808   ac_cv_cxx_have_gnu_ext_hash_set=yes
27809 else
27810   echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27812
27813 ac_cv_cxx_have_gnu_ext_hash_set=no
27814 fi
27815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27816   ac_ext=c
27817 ac_cpp='$CPP $CPPFLAGS'
27818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27821
27822 fi
27823 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27824 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27825  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27826  then
27827
27828 cat >>confdefs.h <<\_ACEOF
27829 #define HAVE_GNU_EXT_HASH_SET 1
27830 _ACEOF
27831
27832  else
27833
27834 cat >>confdefs.h <<\_ACEOF
27835 #define HAVE_GNU_EXT_HASH_SET 0
27836 _ACEOF
27837
27838  fi
27839
27840  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27841 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27842 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27843   echo $ECHO_N "(cached) $ECHO_C" >&6
27844 else
27845
27846   ac_ext=cc
27847 ac_cpp='$CXXCPP $CPPFLAGS'
27848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27851
27852   cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858 #include <hash_set>
27859 int
27860 main ()
27861 {
27862 hash_set<int> t; return 0;
27863   ;
27864   return 0;
27865 }
27866 _ACEOF
27867 rm -f conftest.$ac_objext
27868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27869   (eval $ac_compile) 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } &&
27876          { ac_try='test -z "$ac_cxx_werror_flag"
27877                          || test ! -s conftest.err'
27878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879   (eval $ac_try) 2>&5
27880   ac_status=$?
27881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882   (exit $ac_status); }; } &&
27883          { ac_try='test -s conftest.$ac_objext'
27884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885   (eval $ac_try) 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; }; then
27889   ac_cv_cxx_have_global_hash_set=yes
27890 else
27891   echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27893
27894 ac_cv_cxx_have_global_hash_set=no
27895 fi
27896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27897   ac_ext=c
27898 ac_cpp='$CPP $CPPFLAGS'
27899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27902
27903 fi
27904 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27905 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27906  if test "$ac_cv_cxx_have_global_hash_set" = yes
27907  then
27908
27909 cat >>confdefs.h <<\_ACEOF
27910 #define HAVE_GLOBAL_HASH_SET 1
27911 _ACEOF
27912
27913  else
27914
27915 cat >>confdefs.h <<\_ACEOF
27916 #define HAVE_GLOBAL_HASH_SET 0
27917 _ACEOF
27918
27919  fi
27920
27921 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27922 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27923 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27924   echo $ECHO_N "(cached) $ECHO_C" >&6
27925 else
27926
27927   ac_ext=cc
27928 ac_cpp='$CXXCPP $CPPFLAGS'
27929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27932
27933   cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 #include <iterator>
27940 #ifdef HAVE_NAMESPACES
27941 using namespace std;
27942 #endif
27943 int
27944 main ()
27945 {
27946 iterator<int,int,int> t; return 0;
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 rm -f conftest.$ac_objext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27953   (eval $ac_compile) 2>conftest.er1
27954   ac_status=$?
27955   grep -v '^ *+' conftest.er1 >conftest.err
27956   rm -f conftest.er1
27957   cat conftest.err >&5
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); } &&
27960          { ac_try='test -z "$ac_cxx_werror_flag"
27961                          || test ! -s conftest.err'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; } &&
27967          { ac_try='test -s conftest.$ac_objext'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; }; then
27973   ac_cv_cxx_have_std_iterator=yes
27974 else
27975   echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 ac_cv_cxx_have_std_iterator=no
27979 fi
27980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27981   ac_ext=c
27982 ac_cpp='$CPP $CPPFLAGS'
27983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27986
27987
27988 fi
27989 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27990 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
27991 if test "$ac_cv_cxx_have_std_iterator" = yes
27992 then
27993
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_STD_ITERATOR 1
27996 _ACEOF
27997
27998 else
27999
28000 cat >>confdefs.h <<\_ACEOF
28001 #define HAVE_STD_ITERATOR 0
28002 _ACEOF
28003
28004 fi
28005
28006 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28007 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28008 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28009   echo $ECHO_N "(cached) $ECHO_C" >&6
28010 else
28011
28012   ac_ext=cc
28013 ac_cpp='$CXXCPP $CPPFLAGS'
28014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28017
28018   cat >conftest.$ac_ext <<_ACEOF
28019 /* confdefs.h.  */
28020 _ACEOF
28021 cat confdefs.h >>conftest.$ac_ext
28022 cat >>conftest.$ac_ext <<_ACEOF
28023 /* end confdefs.h.  */
28024 #include <iterator>
28025 #ifdef HAVE_NAMESPACES
28026 using namespace std;
28027 #endif
28028 int
28029 main ()
28030 {
28031 bidirectional_iterator<int,int> t; return 0;
28032   ;
28033   return 0;
28034 }
28035 _ACEOF
28036 rm -f conftest.$ac_objext
28037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28038   (eval $ac_compile) 2>conftest.er1
28039   ac_status=$?
28040   grep -v '^ *+' conftest.er1 >conftest.err
28041   rm -f conftest.er1
28042   cat conftest.err >&5
28043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); } &&
28045          { ac_try='test -z "$ac_cxx_werror_flag"
28046                          || test ! -s conftest.err'
28047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048   (eval $ac_try) 2>&5
28049   ac_status=$?
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); }; } &&
28052          { ac_try='test -s conftest.$ac_objext'
28053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054   (eval $ac_try) 2>&5
28055   ac_status=$?
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); }; }; then
28058   ac_cv_cxx_have_bi_iterator=yes
28059 else
28060   echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28062
28063 ac_cv_cxx_have_bi_iterator=no
28064 fi
28065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28066   ac_ext=c
28067 ac_cpp='$CPP $CPPFLAGS'
28068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28071
28072
28073 fi
28074 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28075 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28076 if test "$ac_cv_cxx_have_bi_iterator" = yes
28077 then
28078
28079 cat >>confdefs.h <<\_ACEOF
28080 #define HAVE_BI_ITERATOR 1
28081 _ACEOF
28082
28083 else
28084
28085 cat >>confdefs.h <<\_ACEOF
28086 #define HAVE_BI_ITERATOR 0
28087 _ACEOF
28088
28089 fi
28090
28091 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28092 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28093 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28094   echo $ECHO_N "(cached) $ECHO_C" >&6
28095 else
28096
28097   ac_ext=cc
28098 ac_cpp='$CXXCPP $CPPFLAGS'
28099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28102
28103   cat >conftest.$ac_ext <<_ACEOF
28104 /* confdefs.h.  */
28105 _ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h.  */
28109 #include <iterator>
28110 #ifdef HAVE_NAMESPACES
28111 using namespace std;
28112 #endif
28113 int
28114 main ()
28115 {
28116 forward_iterator<int,int> t; return 0;
28117   ;
28118   return 0;
28119 }
28120 _ACEOF
28121 rm -f conftest.$ac_objext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28123   (eval $ac_compile) 2>conftest.er1
28124   ac_status=$?
28125   grep -v '^ *+' conftest.er1 >conftest.err
28126   rm -f conftest.er1
28127   cat conftest.err >&5
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); } &&
28130          { ac_try='test -z "$ac_cxx_werror_flag"
28131                          || test ! -s conftest.err'
28132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133   (eval $ac_try) 2>&5
28134   ac_status=$?
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); }; } &&
28137          { ac_try='test -s conftest.$ac_objext'
28138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139   (eval $ac_try) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; }; then
28143   ac_cv_cxx_have_fwd_iterator=yes
28144 else
28145   echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28147
28148 ac_cv_cxx_have_fwd_iterator=no
28149 fi
28150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28151   ac_ext=c
28152 ac_cpp='$CPP $CPPFLAGS'
28153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28156
28157
28158 fi
28159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28160 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28161 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28162 then
28163
28164 cat >>confdefs.h <<\_ACEOF
28165 #define HAVE_FWD_ITERATOR 1
28166 _ACEOF
28167
28168 else
28169
28170 cat >>confdefs.h <<\_ACEOF
28171 #define HAVE_FWD_ITERATOR 0
28172 _ACEOF
28173
28174 fi
28175
28176
28177 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28178 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28179 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28180   echo $ECHO_N "(cached) $ECHO_C" >&6
28181 else
28182   ac_ext=cc
28183 ac_cpp='$CXXCPP $CPPFLAGS'
28184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28187
28188    cat >conftest.$ac_ext <<_ACEOF
28189 /* confdefs.h.  */
28190 _ACEOF
28191 cat confdefs.h >>conftest.$ac_ext
28192 cat >>conftest.$ac_ext <<_ACEOF
28193 /* end confdefs.h.  */
28194 #include <math.h>
28195 int
28196 main ()
28197 {
28198 float f; isnan(f);
28199   ;
28200   return 0;
28201 }
28202 _ACEOF
28203 rm -f conftest.$ac_objext
28204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28205   (eval $ac_compile) 2>conftest.er1
28206   ac_status=$?
28207   grep -v '^ *+' conftest.er1 >conftest.err
28208   rm -f conftest.er1
28209   cat conftest.err >&5
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); } &&
28212          { ac_try='test -z "$ac_cxx_werror_flag"
28213                          || test ! -s conftest.err'
28214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215   (eval $ac_try) 2>&5
28216   ac_status=$?
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); }; } &&
28219          { ac_try='test -s conftest.$ac_objext'
28220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221   (eval $ac_try) 2>&5
28222   ac_status=$?
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); }; }; then
28225   ac_cv_func_isnan_in_math_h=yes
28226 else
28227   echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28229
28230 ac_cv_func_isnan_in_math_h=no
28231 fi
28232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28233   ac_ext=c
28234 ac_cpp='$CPP $CPPFLAGS'
28235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28238
28239 fi
28240 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28241 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28242
28243
28244 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28245
28246 cat >>confdefs.h <<\_ACEOF
28247 #define HAVE_ISNAN_IN_MATH_H 1
28248 _ACEOF
28249
28250 fi
28251
28252 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28253 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28254 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28255   echo $ECHO_N "(cached) $ECHO_C" >&6
28256 else
28257   ac_ext=cc
28258 ac_cpp='$CXXCPP $CPPFLAGS'
28259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28262
28263    cat >conftest.$ac_ext <<_ACEOF
28264 /* confdefs.h.  */
28265 _ACEOF
28266 cat confdefs.h >>conftest.$ac_ext
28267 cat >>conftest.$ac_ext <<_ACEOF
28268 /* end confdefs.h.  */
28269 #include <cmath>
28270 int
28271 main ()
28272 {
28273 float f; isnan(f);
28274   ;
28275   return 0;
28276 }
28277 _ACEOF
28278 rm -f conftest.$ac_objext
28279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28280   (eval $ac_compile) 2>conftest.er1
28281   ac_status=$?
28282   grep -v '^ *+' conftest.er1 >conftest.err
28283   rm -f conftest.er1
28284   cat conftest.err >&5
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); } &&
28287          { ac_try='test -z "$ac_cxx_werror_flag"
28288                          || test ! -s conftest.err'
28289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290   (eval $ac_try) 2>&5
28291   ac_status=$?
28292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); }; } &&
28294          { ac_try='test -s conftest.$ac_objext'
28295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296   (eval $ac_try) 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; }; then
28300   ac_cv_func_isnan_in_cmath=yes
28301 else
28302   echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305 ac_cv_func_isnan_in_cmath=no
28306 fi
28307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28308   ac_ext=c
28309 ac_cpp='$CPP $CPPFLAGS'
28310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28313
28314 fi
28315 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28316 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28317
28318 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28319
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_ISNAN_IN_CMATH 1
28322 _ACEOF
28323
28324 fi
28325
28326 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28327 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28328 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28329   echo $ECHO_N "(cached) $ECHO_C" >&6
28330 else
28331   ac_ext=cc
28332 ac_cpp='$CXXCPP $CPPFLAGS'
28333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28336
28337    cat >conftest.$ac_ext <<_ACEOF
28338 /* confdefs.h.  */
28339 _ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h.  */
28343 #include <cmath>
28344 int
28345 main ()
28346 {
28347 float f; std::isnan(f);
28348   ;
28349   return 0;
28350 }
28351 _ACEOF
28352 rm -f conftest.$ac_objext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28354   (eval $ac_compile) 2>conftest.er1
28355   ac_status=$?
28356   grep -v '^ *+' conftest.er1 >conftest.err
28357   rm -f conftest.er1
28358   cat conftest.err >&5
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); } &&
28361          { ac_try='test -z "$ac_cxx_werror_flag"
28362                          || test ! -s conftest.err'
28363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364   (eval $ac_try) 2>&5
28365   ac_status=$?
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); }; } &&
28368          { ac_try='test -s conftest.$ac_objext'
28369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370   (eval $ac_try) 2>&5
28371   ac_status=$?
28372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373   (exit $ac_status); }; }; then
28374   ac_cv_func_std_isnan_in_cmath=yes
28375 else
28376   echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28378
28379 ac_cv_func_std_isnan_in_cmath=no
28380 fi
28381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28382   ac_ext=c
28383 ac_cpp='$CPP $CPPFLAGS'
28384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387
28388 fi
28389 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28390 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28391
28392 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28393
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_STD_ISNAN_IN_CMATH 1
28396 _ACEOF
28397
28398 fi
28399
28400
28401 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28402 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28403 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28404   echo $ECHO_N "(cached) $ECHO_C" >&6
28405 else
28406   ac_ext=cc
28407 ac_cpp='$CXXCPP $CPPFLAGS'
28408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28411
28412    cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h.  */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h.  */
28418 #include <math.h>
28419 int
28420 main ()
28421 {
28422 float f; isinf(f);
28423   ;
28424   return 0;
28425 }
28426 _ACEOF
28427 rm -f conftest.$ac_objext
28428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28429   (eval $ac_compile) 2>conftest.er1
28430   ac_status=$?
28431   grep -v '^ *+' conftest.er1 >conftest.err
28432   rm -f conftest.er1
28433   cat conftest.err >&5
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); } &&
28436          { ac_try='test -z "$ac_cxx_werror_flag"
28437                          || test ! -s conftest.err'
28438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439   (eval $ac_try) 2>&5
28440   ac_status=$?
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); }; } &&
28443          { ac_try='test -s conftest.$ac_objext'
28444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445   (eval $ac_try) 2>&5
28446   ac_status=$?
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); }; }; then
28449   ac_cv_func_isinf_in_math_h=yes
28450 else
28451   echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28453
28454 ac_cv_func_isinf_in_math_h=no
28455 fi
28456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28457   ac_ext=c
28458 ac_cpp='$CPP $CPPFLAGS'
28459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28462
28463 fi
28464 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28465 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28466
28467 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28468
28469 cat >>confdefs.h <<\_ACEOF
28470 #define HAVE_ISINF_IN_MATH_H 1
28471 _ACEOF
28472
28473 fi
28474
28475 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28476 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28477 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28478   echo $ECHO_N "(cached) $ECHO_C" >&6
28479 else
28480   ac_ext=cc
28481 ac_cpp='$CXXCPP $CPPFLAGS'
28482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28485
28486    cat >conftest.$ac_ext <<_ACEOF
28487 /* confdefs.h.  */
28488 _ACEOF
28489 cat confdefs.h >>conftest.$ac_ext
28490 cat >>conftest.$ac_ext <<_ACEOF
28491 /* end confdefs.h.  */
28492 #include <cmath>
28493 int
28494 main ()
28495 {
28496 float f; isinf(f);
28497   ;
28498   return 0;
28499 }
28500 _ACEOF
28501 rm -f conftest.$ac_objext
28502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28503   (eval $ac_compile) 2>conftest.er1
28504   ac_status=$?
28505   grep -v '^ *+' conftest.er1 >conftest.err
28506   rm -f conftest.er1
28507   cat conftest.err >&5
28508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509   (exit $ac_status); } &&
28510          { ac_try='test -z "$ac_cxx_werror_flag"
28511                          || test ! -s conftest.err'
28512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513   (eval $ac_try) 2>&5
28514   ac_status=$?
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); }; } &&
28517          { ac_try='test -s conftest.$ac_objext'
28518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519   (eval $ac_try) 2>&5
28520   ac_status=$?
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); }; }; then
28523   ac_cv_func_isinf_in_cmath=yes
28524 else
28525   echo "$as_me: failed program was:" >&5
28526 sed 's/^/| /' conftest.$ac_ext >&5
28527
28528 ac_cv_func_isinf_in_cmath=no
28529 fi
28530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28531   ac_ext=c
28532 ac_cpp='$CPP $CPPFLAGS'
28533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28536
28537 fi
28538 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28539 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28540
28541 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28542
28543 cat >>confdefs.h <<\_ACEOF
28544 #define HAVE_ISINF_IN_CMATH 1
28545 _ACEOF
28546
28547 fi
28548
28549 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28550 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28551 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28552   echo $ECHO_N "(cached) $ECHO_C" >&6
28553 else
28554   ac_ext=cc
28555 ac_cpp='$CXXCPP $CPPFLAGS'
28556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28559
28560    cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h.  */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h.  */
28566 #include <cmath>
28567 int
28568 main ()
28569 {
28570 float f; std::isinf(f)}
28571   ;
28572   return 0;
28573 }
28574 _ACEOF
28575 rm -f conftest.$ac_objext
28576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28577   (eval $ac_compile) 2>conftest.er1
28578   ac_status=$?
28579   grep -v '^ *+' conftest.er1 >conftest.err
28580   rm -f conftest.er1
28581   cat conftest.err >&5
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } &&
28584          { ac_try='test -z "$ac_cxx_werror_flag"
28585                          || test ! -s conftest.err'
28586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587   (eval $ac_try) 2>&5
28588   ac_status=$?
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); }; } &&
28591          { ac_try='test -s conftest.$ac_objext'
28592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593   (eval $ac_try) 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; }; then
28597   ac_cv_func_std_isinf_in_cmath=yes
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602 ac_cv_func_std_isinf_in_cmath=no
28603 fi
28604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28605   ac_ext=c
28606 ac_cpp='$CPP $CPPFLAGS'
28607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28610
28611 fi
28612 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28613 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28614
28615 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28616
28617 cat >>confdefs.h <<\_ACEOF
28618 #define HAVE_STD_ISINF_IN_CMATH 1
28619 _ACEOF
28620
28621 fi
28622
28623 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28624 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28625 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28626   echo $ECHO_N "(cached) $ECHO_C" >&6
28627 else
28628   ac_ext=cc
28629 ac_cpp='$CXXCPP $CPPFLAGS'
28630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28633
28634    cat >conftest.$ac_ext <<_ACEOF
28635 /* confdefs.h.  */
28636 _ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h.  */
28640 #include <ieeefp.h>
28641 int
28642 main ()
28643 {
28644 float f; finite(f);
28645   ;
28646   return 0;
28647 }
28648 _ACEOF
28649 rm -f conftest.$ac_objext
28650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28651   (eval $ac_compile) 2>conftest.er1
28652   ac_status=$?
28653   grep -v '^ *+' conftest.er1 >conftest.err
28654   rm -f conftest.er1
28655   cat conftest.err >&5
28656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657   (exit $ac_status); } &&
28658          { ac_try='test -z "$ac_cxx_werror_flag"
28659                          || test ! -s conftest.err'
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); }; } &&
28665          { ac_try='test -s conftest.$ac_objext'
28666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667   (eval $ac_try) 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); }; }; then
28671   ac_cv_func_finite_in_ieeefp_h=yes
28672 else
28673   echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28675
28676 ac_cv_func_finite_in_ieeefp_h=no
28677 fi
28678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28679   ac_ext=c
28680 ac_cpp='$CPP $CPPFLAGS'
28681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28684
28685 fi
28686 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28687 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28688
28689 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28690
28691 cat >>confdefs.h <<\_ACEOF
28692 #define HAVE_FINITE_IN_IEEEFP_H 1
28693 _ACEOF
28694
28695 fi
28696
28697
28698
28699
28700
28701 for ac_header in stdlib.h unistd.h
28702 do
28703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28705   echo "$as_me:$LINENO: checking for $ac_header" >&5
28706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28708   echo $ECHO_N "(cached) $ECHO_C" >&6
28709 fi
28710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28712 else
28713   # Is the header compilable?
28714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28716 cat >conftest.$ac_ext <<_ACEOF
28717 /* confdefs.h.  */
28718 _ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h.  */
28722 $ac_includes_default
28723 #include <$ac_header>
28724 _ACEOF
28725 rm -f conftest.$ac_objext
28726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28727   (eval $ac_compile) 2>conftest.er1
28728   ac_status=$?
28729   grep -v '^ *+' conftest.er1 >conftest.err
28730   rm -f conftest.er1
28731   cat conftest.err >&5
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); } &&
28734          { ac_try='test -z "$ac_c_werror_flag"
28735                          || test ! -s conftest.err'
28736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737   (eval $ac_try) 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); }; } &&
28741          { ac_try='test -s conftest.$ac_objext'
28742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743   (eval $ac_try) 2>&5
28744   ac_status=$?
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); }; }; then
28747   ac_header_compiler=yes
28748 else
28749   echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752 ac_header_compiler=no
28753 fi
28754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28756 echo "${ECHO_T}$ac_header_compiler" >&6
28757
28758 # Is the header present?
28759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28761 cat >conftest.$ac_ext <<_ACEOF
28762 /* confdefs.h.  */
28763 _ACEOF
28764 cat confdefs.h >>conftest.$ac_ext
28765 cat >>conftest.$ac_ext <<_ACEOF
28766 /* end confdefs.h.  */
28767 #include <$ac_header>
28768 _ACEOF
28769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } >/dev/null; then
28777   if test -s conftest.err; then
28778     ac_cpp_err=$ac_c_preproc_warn_flag
28779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28780   else
28781     ac_cpp_err=
28782   fi
28783 else
28784   ac_cpp_err=yes
28785 fi
28786 if test -z "$ac_cpp_err"; then
28787   ac_header_preproc=yes
28788 else
28789   echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28791
28792   ac_header_preproc=no
28793 fi
28794 rm -f conftest.err conftest.$ac_ext
28795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28796 echo "${ECHO_T}$ac_header_preproc" >&6
28797
28798 # So?  What about this header?
28799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28800   yes:no: )
28801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28805     ac_header_preproc=yes
28806     ;;
28807   no:yes:* )
28808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28820     (
28821       cat <<\_ASBOX
28822 ## ----------------------------------- ##
28823 ## Report this to llvmbugs@cs.uiuc.edu ##
28824 ## ----------------------------------- ##
28825 _ASBOX
28826     ) |
28827       sed "s/^/$as_me: WARNING:     /" >&2
28828     ;;
28829 esac
28830 echo "$as_me:$LINENO: checking for $ac_header" >&5
28831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28833   echo $ECHO_N "(cached) $ECHO_C" >&6
28834 else
28835   eval "$as_ac_Header=\$ac_header_preproc"
28836 fi
28837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28839
28840 fi
28841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842   cat >>confdefs.h <<_ACEOF
28843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28844 _ACEOF
28845
28846 fi
28847
28848 done
28849
28850
28851 for ac_func in getpagesize
28852 do
28853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28854 echo "$as_me:$LINENO: checking for $ac_func" >&5
28855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28856 if eval "test \"\${$as_ac_var+set}\" = set"; then
28857   echo $ECHO_N "(cached) $ECHO_C" >&6
28858 else
28859   cat >conftest.$ac_ext <<_ACEOF
28860 /* confdefs.h.  */
28861 _ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h.  */
28865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28867 #define $ac_func innocuous_$ac_func
28868
28869 /* System header to define __stub macros and hopefully few prototypes,
28870     which can conflict with char $ac_func (); below.
28871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28872     <limits.h> exists even on freestanding compilers.  */
28873
28874 #ifdef __STDC__
28875 # include <limits.h>
28876 #else
28877 # include <assert.h>
28878 #endif
28879
28880 #undef $ac_func
28881
28882 /* Override any gcc2 internal prototype to avoid an error.  */
28883 #ifdef __cplusplus
28884 extern "C"
28885 {
28886 #endif
28887 /* We use char because int might match the return type of a gcc2
28888    builtin and then its argument prototype would still apply.  */
28889 char $ac_func ();
28890 /* The GNU C library defines this for functions which it implements
28891     to always fail with ENOSYS.  Some functions are actually named
28892     something starting with __ and the normal name is an alias.  */
28893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28894 choke me
28895 #else
28896 char (*f) () = $ac_func;
28897 #endif
28898 #ifdef __cplusplus
28899 }
28900 #endif
28901
28902 int
28903 main ()
28904 {
28905 return f != $ac_func;
28906   ;
28907   return 0;
28908 }
28909 _ACEOF
28910 rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28912   (eval $ac_link) 2>conftest.er1
28913   ac_status=$?
28914   grep -v '^ *+' conftest.er1 >conftest.err
28915   rm -f conftest.er1
28916   cat conftest.err >&5
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); } &&
28919          { ac_try='test -z "$ac_c_werror_flag"
28920                          || test ! -s conftest.err'
28921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922   (eval $ac_try) 2>&5
28923   ac_status=$?
28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925   (exit $ac_status); }; } &&
28926          { ac_try='test -s conftest$ac_exeext'
28927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928   (eval $ac_try) 2>&5
28929   ac_status=$?
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); }; }; then
28932   eval "$as_ac_var=yes"
28933 else
28934   echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28936
28937 eval "$as_ac_var=no"
28938 fi
28939 rm -f conftest.err conftest.$ac_objext \
28940       conftest$ac_exeext conftest.$ac_ext
28941 fi
28942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28944 if test `eval echo '${'$as_ac_var'}'` = yes; then
28945   cat >>confdefs.h <<_ACEOF
28946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28947 _ACEOF
28948
28949 fi
28950 done
28951
28952 echo "$as_me:$LINENO: checking for working mmap" >&5
28953 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28954 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28955   echo $ECHO_N "(cached) $ECHO_C" >&6
28956 else
28957   if test "$cross_compiling" = yes; then
28958   ac_cv_func_mmap_fixed_mapped=no
28959 else
28960   cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966 $ac_includes_default
28967 /* malloc might have been renamed as rpl_malloc. */
28968 #undef malloc
28969
28970 /* Thanks to Mike Haertel and Jim Avera for this test.
28971    Here is a matrix of mmap possibilities:
28972         mmap private not fixed
28973         mmap private fixed at somewhere currently unmapped
28974         mmap private fixed at somewhere already mapped
28975         mmap shared not fixed
28976         mmap shared fixed at somewhere currently unmapped
28977         mmap shared fixed at somewhere already mapped
28978    For private mappings, we should verify that changes cannot be read()
28979    back from the file, nor mmap's back from the file at a different
28980    address.  (There have been systems where private was not correctly
28981    implemented like the infamous i386 svr4.0, and systems where the
28982    VM page cache was not coherent with the file system buffer cache
28983    like early versions of FreeBSD and possibly contemporary NetBSD.)
28984    For shared mappings, we should conversely verify that changes get
28985    propagated back to all the places they're supposed to be.
28986
28987    Grep wants private fixed already mapped.
28988    The main things grep needs to know about mmap are:
28989    * does it exist and is it safe to write into the mmap'd area
28990    * how to use it (BSD variants)  */
28991
28992 #include <fcntl.h>
28993 #include <sys/mman.h>
28994
28995 #if !STDC_HEADERS && !HAVE_STDLIB_H
28996 char *malloc ();
28997 #endif
28998
28999 /* This mess was copied from the GNU getpagesize.h.  */
29000 #if !HAVE_GETPAGESIZE
29001 /* Assume that all systems that can run configure have sys/param.h.  */
29002 # if !HAVE_SYS_PARAM_H
29003 #  define HAVE_SYS_PARAM_H 1
29004 # endif
29005
29006 # ifdef _SC_PAGESIZE
29007 #  define getpagesize() sysconf(_SC_PAGESIZE)
29008 # else /* no _SC_PAGESIZE */
29009 #  if HAVE_SYS_PARAM_H
29010 #   include <sys/param.h>
29011 #   ifdef EXEC_PAGESIZE
29012 #    define getpagesize() EXEC_PAGESIZE
29013 #   else /* no EXEC_PAGESIZE */
29014 #    ifdef NBPG
29015 #     define getpagesize() NBPG * CLSIZE
29016 #     ifndef CLSIZE
29017 #      define CLSIZE 1
29018 #     endif /* no CLSIZE */
29019 #    else /* no NBPG */
29020 #     ifdef NBPC
29021 #      define getpagesize() NBPC
29022 #     else /* no NBPC */
29023 #      ifdef PAGESIZE
29024 #       define getpagesize() PAGESIZE
29025 #      endif /* PAGESIZE */
29026 #     endif /* no NBPC */
29027 #    endif /* no NBPG */
29028 #   endif /* no EXEC_PAGESIZE */
29029 #  else /* no HAVE_SYS_PARAM_H */
29030 #   define getpagesize() 8192   /* punt totally */
29031 #  endif /* no HAVE_SYS_PARAM_H */
29032 # endif /* no _SC_PAGESIZE */
29033
29034 #endif /* no HAVE_GETPAGESIZE */
29035
29036 int
29037 main ()
29038 {
29039   char *data, *data2, *data3;
29040   int i, pagesize;
29041   int fd;
29042
29043   pagesize = getpagesize ();
29044
29045   /* First, make a file with some known garbage in it. */
29046   data = (char *) malloc (pagesize);
29047   if (!data)
29048     exit (1);
29049   for (i = 0; i < pagesize; ++i)
29050     *(data + i) = rand ();
29051   umask (0);
29052   fd = creat ("conftest.mmap", 0600);
29053   if (fd < 0)
29054     exit (1);
29055   if (write (fd, data, pagesize) != pagesize)
29056     exit (1);
29057   close (fd);
29058
29059   /* Next, try to mmap the file at a fixed address which already has
29060      something else allocated at it.  If we can, also make sure that
29061      we see the same garbage.  */
29062   fd = open ("conftest.mmap", O_RDWR);
29063   if (fd < 0)
29064     exit (1);
29065   data2 = (char *) malloc (2 * pagesize);
29066   if (!data2)
29067     exit (1);
29068   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29069   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29070                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29071     exit (1);
29072   for (i = 0; i < pagesize; ++i)
29073     if (*(data + i) != *(data2 + i))
29074       exit (1);
29075
29076   /* Finally, make sure that changes to the mapped area do not
29077      percolate back to the file as seen by read().  (This is a bug on
29078      some variants of i386 svr4.0.)  */
29079   for (i = 0; i < pagesize; ++i)
29080     *(data2 + i) = *(data2 + i) + 1;
29081   data3 = (char *) malloc (pagesize);
29082   if (!data3)
29083     exit (1);
29084   if (read (fd, data3, pagesize) != pagesize)
29085     exit (1);
29086   for (i = 0; i < pagesize; ++i)
29087     if (*(data + i) != *(data3 + i))
29088       exit (1);
29089   close (fd);
29090   exit (0);
29091 }
29092 _ACEOF
29093 rm -f conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095   (eval $ac_link) 2>&5
29096   ac_status=$?
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100   (eval $ac_try) 2>&5
29101   ac_status=$?
29102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103   (exit $ac_status); }; }; then
29104   ac_cv_func_mmap_fixed_mapped=yes
29105 else
29106   echo "$as_me: program exited with status $ac_status" >&5
29107 echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29109
29110 ( exit $ac_status )
29111 ac_cv_func_mmap_fixed_mapped=no
29112 fi
29113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29114 fi
29115 fi
29116 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29117 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29119
29120 cat >>confdefs.h <<\_ACEOF
29121 #define HAVE_MMAP 1
29122 _ACEOF
29123
29124 fi
29125 rm -f conftest.mmap
29126
29127 echo "$as_me:$LINENO: checking for mmap of files" >&5
29128 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29129 if test "${ac_cv_func_mmap_file+set}" = set; then
29130   echo $ECHO_N "(cached) $ECHO_C" >&6
29131 else
29132    ac_ext=c
29133 ac_cpp='$CPP $CPPFLAGS'
29134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29137
29138   if test "$cross_compiling" = yes; then
29139   ac_cv_func_mmap_file=no
29140 else
29141   cat >conftest.$ac_ext <<_ACEOF
29142
29143     /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148
29149 #include <sys/types.h>
29150 #include <sys/mman.h>
29151 #include <fcntl.h>
29152
29153 int
29154 main ()
29155 {
29156
29157   int fd;
29158   fd = creat ("foo",0777);
29159   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29160   unlink ("foo");
29161   return (fd != (int) MAP_FAILED);
29162   ;
29163   return 0;
29164 }
29165 _ACEOF
29166 rm -f conftest$ac_exeext
29167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29168   (eval $ac_link) 2>&5
29169   ac_status=$?
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173   (eval $ac_try) 2>&5
29174   ac_status=$?
29175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176   (exit $ac_status); }; }; then
29177   ac_cv_func_mmap_file=yes
29178 else
29179   echo "$as_me: program exited with status $ac_status" >&5
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29182
29183 ( exit $ac_status )
29184 ac_cv_func_mmap_file=no
29185 fi
29186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29187 fi
29188   ac_ext=c
29189 ac_cpp='$CPP $CPPFLAGS'
29190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29193
29194
29195 fi
29196 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29197 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29198 if test "$ac_cv_func_mmap_file" = yes; then
29199
29200 cat >>confdefs.h <<\_ACEOF
29201 #define HAVE_MMAP_FILE
29202 _ACEOF
29203
29204    MMAP_FILE=yes
29205
29206 fi
29207
29208 echo "$as_me:$LINENO: checking for mprotect" >&5
29209 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29210 if test "${ac_cv_func_mprotect+set}" = set; then
29211   echo $ECHO_N "(cached) $ECHO_C" >&6
29212 else
29213   cat >conftest.$ac_ext <<_ACEOF
29214 /* confdefs.h.  */
29215 _ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h.  */
29219 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29221 #define mprotect innocuous_mprotect
29222
29223 /* System header to define __stub macros and hopefully few prototypes,
29224     which can conflict with char mprotect (); below.
29225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29226     <limits.h> exists even on freestanding compilers.  */
29227
29228 #ifdef __STDC__
29229 # include <limits.h>
29230 #else
29231 # include <assert.h>
29232 #endif
29233
29234 #undef mprotect
29235
29236 /* Override any gcc2 internal prototype to avoid an error.  */
29237 #ifdef __cplusplus
29238 extern "C"
29239 {
29240 #endif
29241 /* We use char because int might match the return type of a gcc2
29242    builtin and then its argument prototype would still apply.  */
29243 char mprotect ();
29244 /* The GNU C library defines this for functions which it implements
29245     to always fail with ENOSYS.  Some functions are actually named
29246     something starting with __ and the normal name is an alias.  */
29247 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29248 choke me
29249 #else
29250 char (*f) () = mprotect;
29251 #endif
29252 #ifdef __cplusplus
29253 }
29254 #endif
29255
29256 int
29257 main ()
29258 {
29259 return f != mprotect;
29260   ;
29261   return 0;
29262 }
29263 _ACEOF
29264 rm -f conftest.$ac_objext conftest$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266   (eval $ac_link) 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } &&
29273          { ac_try='test -z "$ac_c_werror_flag"
29274                          || test ! -s conftest.err'
29275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276   (eval $ac_try) 2>&5
29277   ac_status=$?
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); }; } &&
29280          { ac_try='test -s conftest$ac_exeext'
29281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282   (eval $ac_try) 2>&5
29283   ac_status=$?
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); }; }; then
29286   ac_cv_func_mprotect=yes
29287 else
29288   echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29290
29291 ac_cv_func_mprotect=no
29292 fi
29293 rm -f conftest.err conftest.$ac_objext \
29294       conftest$ac_exeext conftest.$ac_ext
29295 fi
29296 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29297 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29298 if test $ac_cv_func_mprotect = yes; then
29299   :
29300 else
29301   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29302 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29303    { (exit 1); exit 1; }; }
29304 fi
29305
29306
29307 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29308 then
29309   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29310 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29311 fi
29312 if test "$ac_cv_func_mmap_file" = "no"
29313 then
29314   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29315 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29316 fi
29317
29318
29319 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29320 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29321 if test "${llvm_cv_llvmgcc+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324   llvm_cv_llvmgcc='llvmgcc_not_found'
29325 if test -d "$LLVMGCCDIR" ; then
29326   if test -x "$LLVMGCCDIR/bin/gcc" ; then
29327     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29328   fi
29329 fi
29330 fi
29331 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29332 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29333
29334 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29335 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29336 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29337   echo $ECHO_N "(cached) $ECHO_C" >&6
29338 else
29339   llvm_cv_llvmgcc_sanity="no"
29340 if test -x "$llvm_cv_llvmgcc" ; then
29341   cp /dev/null conftest.c
29342   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29343   if test $? -eq 0 ; then
29344     llvm_cv_llvmgcc_sanity="yes"
29345   fi
29346   rm conftest.c
29347 fi
29348 fi
29349 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29350 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29351
29352 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29353   LLVMGCC="$llvm_cv_llvmgcc"
29354
29355   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29356   LLVMCC1=$llvmcc1path
29357
29358   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29359   LLVMCC1PLUS=$llvmcc1pluspath
29360
29361 fi
29362
29363 SHLIBEXT=$libltdl_cv_shlibext
29364
29365
29366 # Translate the various configuration directories and other basic
29367 # information into substitutions that will end up in Makefile.config.in
29368 # that these configured values can be used by the makefiles
29369 eval LLVM_PREFIX="${prefix}";
29370 eval LLVM_BINDIR="${prefix}/bin";
29371 eval LLVM_LIBDIR="${prefix}/lib";
29372 eval LLVM_DATADIR="${prefix}/share/llvm";
29373 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29374 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29375 eval LLVM_INCLUDEDIR="${prefix}/include";
29376 eval LLVM_INFODIR="${prefix}/info";
29377 eval LLVM_MANDIR="${prefix}/man";
29378 LLVM_CONFIGTIME=`date`
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390 # Place the various directores into the config.h file as #defines so that we
29391 # can know about the installation paths within LLVM.
29392
29393 cat >>confdefs.h <<_ACEOF
29394 #define LLVM_PREFIX "$LLVM_PREFIX"
29395 _ACEOF
29396
29397
29398 cat >>confdefs.h <<_ACEOF
29399 #define LLVM_BINDIR "$LLVM_BINDIR"
29400 _ACEOF
29401
29402
29403 cat >>confdefs.h <<_ACEOF
29404 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29405 _ACEOF
29406
29407
29408 cat >>confdefs.h <<_ACEOF
29409 #define LLVM_DATADIR "$LLVM_DATADIR"
29410 _ACEOF
29411
29412
29413 cat >>confdefs.h <<_ACEOF
29414 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29415 _ACEOF
29416
29417
29418 cat >>confdefs.h <<_ACEOF
29419 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29420 _ACEOF
29421
29422
29423 cat >>confdefs.h <<_ACEOF
29424 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29425 _ACEOF
29426
29427
29428 cat >>confdefs.h <<_ACEOF
29429 #define LLVM_INFODIR "$LLVM_INFODIR"
29430 _ACEOF
29431
29432
29433 cat >>confdefs.h <<_ACEOF
29434 #define LLVM_MANDIR "$LLVM_MANDIR"
29435 _ACEOF
29436
29437
29438 cat >>confdefs.h <<_ACEOF
29439 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29440 _ACEOF
29441
29442
29443
29444           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29445
29446
29447           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29448
29449           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29450
29451           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29452
29453           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29454
29455           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29456
29457
29458           ac_config_files="$ac_config_files Makefile.config"
29459
29460
29461                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29462
29463
29464           ac_config_files="$ac_config_files docs/doxygen.cfg"
29465
29466
29467           ac_config_commands="$ac_config_commands Makefile"
29468
29469
29470           ac_config_commands="$ac_config_commands Makefile.common"
29471
29472
29473           ac_config_commands="$ac_config_commands examples/Makefile"
29474
29475
29476           ac_config_commands="$ac_config_commands lib/Makefile"
29477
29478
29479           ac_config_commands="$ac_config_commands runtime/Makefile"
29480
29481
29482           ac_config_commands="$ac_config_commands test/Makefile"
29483
29484
29485           ac_config_commands="$ac_config_commands test/Makefile.tests"
29486
29487
29488           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29489
29490
29491           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29492
29493
29494           ac_config_commands="$ac_config_commands tools/Makefile"
29495
29496
29497           ac_config_commands="$ac_config_commands utils/Makefile"
29498
29499
29500           ac_config_commands="$ac_config_commands projects/Makefile"
29501
29502
29503
29504 cat >confcache <<\_ACEOF
29505 # This file is a shell script that caches the results of configure
29506 # tests run on this system so they can be shared between configure
29507 # scripts and configure runs, see configure's option --config-cache.
29508 # It is not useful on other systems.  If it contains results you don't
29509 # want to keep, you may remove or edit it.
29510 #
29511 # config.status only pays attention to the cache file if you give it
29512 # the --recheck option to rerun configure.
29513 #
29514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29516 # following values.
29517
29518 _ACEOF
29519
29520 # The following way of writing the cache mishandles newlines in values,
29521 # but we know of no workaround that is simple, portable, and efficient.
29522 # So, don't put newlines in cache variables' values.
29523 # Ultrix sh set writes to stderr and can't be redirected directly,
29524 # and sets the high bit in the cache file unless we assign to the vars.
29525 {
29526   (set) 2>&1 |
29527     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29528     *ac_space=\ *)
29529       # `set' does not quote correctly, so add quotes (double-quote
29530       # substitution turns \\\\ into \\, and sed turns \\ into \).
29531       sed -n \
29532         "s/'/'\\\\''/g;
29533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29534       ;;
29535     *)
29536       # `set' quotes correctly as required by POSIX, so do not add quotes.
29537       sed -n \
29538         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29539       ;;
29540     esac;
29541 } |
29542   sed '
29543      t clear
29544      : clear
29545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29546      t end
29547      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29548      : end' >>confcache
29549 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29550   if test -w $cache_file; then
29551     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29552     cat confcache >$cache_file
29553   else
29554     echo "not updating unwritable cache $cache_file"
29555   fi
29556 fi
29557 rm -f confcache
29558
29559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29560 # Let make expand exec_prefix.
29561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29562
29563 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29564 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29565 # trailing colons and then remove the whole line if VPATH becomes empty
29566 # (actually we leave an empty line to preserve line numbers).
29567 if test "x$srcdir" = x.; then
29568   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29569 s/:*\$(srcdir):*/:/;
29570 s/:*\${srcdir}:*/:/;
29571 s/:*@srcdir@:*/:/;
29572 s/^\([^=]*=[     ]*\):*/\1/;
29573 s/:*$//;
29574 s/^[^=]*=[       ]*$//;
29575 }'
29576 fi
29577
29578 DEFS=-DHAVE_CONFIG_H
29579
29580 ac_libobjs=
29581 ac_ltlibobjs=
29582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29583   # 1. Remove the extension, and $U if already installed.
29584   ac_i=`echo "$ac_i" |
29585          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29586   # 2. Add them.
29587   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29588   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29589 done
29590 LIBOBJS=$ac_libobjs
29591
29592 LTLIBOBJS=$ac_ltlibobjs
29593
29594
29595 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29596   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29597 Usually this means the macro was only invoked conditionally." >&5
29598 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29599 Usually this means the macro was only invoked conditionally." >&2;}
29600    { (exit 1); exit 1; }; }
29601 fi
29602 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29603   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29604 Usually this means the macro was only invoked conditionally." >&5
29605 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29606 Usually this means the macro was only invoked conditionally." >&2;}
29607    { (exit 1); exit 1; }; }
29608 fi
29609
29610 : ${CONFIG_STATUS=./config.status}
29611 ac_clean_files_save=$ac_clean_files
29612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29615 cat >$CONFIG_STATUS <<_ACEOF
29616 #! $SHELL
29617 # Generated by $as_me.
29618 # Run this file to recreate the current configuration.
29619 # Compiler output produced by configure, useful for debugging
29620 # configure, is in config.log if it exists.
29621
29622 debug=false
29623 ac_cs_recheck=false
29624 ac_cs_silent=false
29625 SHELL=\${CONFIG_SHELL-$SHELL}
29626 _ACEOF
29627
29628 cat >>$CONFIG_STATUS <<\_ACEOF
29629 ## --------------------- ##
29630 ## M4sh Initialization.  ##
29631 ## --------------------- ##
29632
29633 # Be Bourne compatible
29634 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29635   emulate sh
29636   NULLCMD=:
29637   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29638   # is contrary to our usage.  Disable this feature.
29639   alias -g '${1+"$@"}'='"$@"'
29640 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29641   set -o posix
29642 fi
29643 DUALCASE=1; export DUALCASE # for MKS sh
29644
29645 # Support unset when possible.
29646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29647   as_unset=unset
29648 else
29649   as_unset=false
29650 fi
29651
29652
29653 # Work around bugs in pre-3.0 UWIN ksh.
29654 $as_unset ENV MAIL MAILPATH
29655 PS1='$ '
29656 PS2='> '
29657 PS4='+ '
29658
29659 # NLS nuisances.
29660 for as_var in \
29661   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29662   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29663   LC_TELEPHONE LC_TIME
29664 do
29665   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29666     eval $as_var=C; export $as_var
29667   else
29668     $as_unset $as_var
29669   fi
29670 done
29671
29672 # Required to use basename.
29673 if expr a : '\(a\)' >/dev/null 2>&1; then
29674   as_expr=expr
29675 else
29676   as_expr=false
29677 fi
29678
29679 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29680   as_basename=basename
29681 else
29682   as_basename=false
29683 fi
29684
29685
29686 # Name of the executable.
29687 as_me=`$as_basename "$0" ||
29688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29689          X"$0" : 'X\(//\)$' \| \
29690          X"$0" : 'X\(/\)$' \| \
29691          .     : '\(.\)' 2>/dev/null ||
29692 echo X/"$0" |
29693     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29694           /^X\/\(\/\/\)$/{ s//\1/; q; }
29695           /^X\/\(\/\).*/{ s//\1/; q; }
29696           s/.*/./; q'`
29697
29698
29699 # PATH needs CR, and LINENO needs CR and PATH.
29700 # Avoid depending upon Character Ranges.
29701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29704 as_cr_digits='0123456789'
29705 as_cr_alnum=$as_cr_Letters$as_cr_digits
29706
29707 # The user is always right.
29708 if test "${PATH_SEPARATOR+set}" != set; then
29709   echo "#! /bin/sh" >conf$$.sh
29710   echo  "exit 0"   >>conf$$.sh
29711   chmod +x conf$$.sh
29712   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29713     PATH_SEPARATOR=';'
29714   else
29715     PATH_SEPARATOR=:
29716   fi
29717   rm -f conf$$.sh
29718 fi
29719
29720
29721   as_lineno_1=$LINENO
29722   as_lineno_2=$LINENO
29723   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29724   test "x$as_lineno_1" != "x$as_lineno_2" &&
29725   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29726   # Find who we are.  Look in the path if we contain no path at all
29727   # relative or not.
29728   case $0 in
29729     *[\\/]* ) as_myself=$0 ;;
29730     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29731 for as_dir in $PATH
29732 do
29733   IFS=$as_save_IFS
29734   test -z "$as_dir" && as_dir=.
29735   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29736 done
29737
29738        ;;
29739   esac
29740   # We did not find ourselves, most probably we were run as `sh COMMAND'
29741   # in which case we are not to be found in the path.
29742   if test "x$as_myself" = x; then
29743     as_myself=$0
29744   fi
29745   if test ! -f "$as_myself"; then
29746     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29747 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29748    { (exit 1); exit 1; }; }
29749   fi
29750   case $CONFIG_SHELL in
29751   '')
29752     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29753 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29754 do
29755   IFS=$as_save_IFS
29756   test -z "$as_dir" && as_dir=.
29757   for as_base in sh bash ksh sh5; do
29758          case $as_dir in
29759          /*)
29760            if ("$as_dir/$as_base" -c '
29761   as_lineno_1=$LINENO
29762   as_lineno_2=$LINENO
29763   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29764   test "x$as_lineno_1" != "x$as_lineno_2" &&
29765   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29766              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29767              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29768              CONFIG_SHELL=$as_dir/$as_base
29769              export CONFIG_SHELL
29770              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29771            fi;;
29772          esac
29773        done
29774 done
29775 ;;
29776   esac
29777
29778   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29779   # uniformly replaced by the line number.  The first 'sed' inserts a
29780   # line-number line before each line; the second 'sed' does the real
29781   # work.  The second script uses 'N' to pair each line-number line
29782   # with the numbered line, and appends trailing '-' during
29783   # substitution so that $LINENO is not a special case at line end.
29784   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29785   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29786   sed '=' <$as_myself |
29787     sed '
29788       N
29789       s,$,-,
29790       : loop
29791       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29792       t loop
29793       s,-$,,
29794       s,^['$as_cr_digits']*\n,,
29795     ' >$as_me.lineno &&
29796   chmod +x $as_me.lineno ||
29797     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29798 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29799    { (exit 1); exit 1; }; }
29800
29801   # Don't try to exec as it changes $[0], causing all sort of problems
29802   # (the dirname of $[0] is not the place where we might find the
29803   # original and so on.  Autoconf is especially sensible to this).
29804   . ./$as_me.lineno
29805   # Exit status is that of the last command.
29806   exit
29807 }
29808
29809
29810 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29811   *c*,-n*) ECHO_N= ECHO_C='
29812 ' ECHO_T='      ' ;;
29813   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29814   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29815 esac
29816
29817 if expr a : '\(a\)' >/dev/null 2>&1; then
29818   as_expr=expr
29819 else
29820   as_expr=false
29821 fi
29822
29823 rm -f conf$$ conf$$.exe conf$$.file
29824 echo >conf$$.file
29825 if ln -s conf$$.file conf$$ 2>/dev/null; then
29826   # We could just check for DJGPP; but this test a) works b) is more generic
29827   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29828   if test -f conf$$.exe; then
29829     # Don't use ln at all; we don't have any links
29830     as_ln_s='cp -p'
29831   else
29832     as_ln_s='ln -s'
29833   fi
29834 elif ln conf$$.file conf$$ 2>/dev/null; then
29835   as_ln_s=ln
29836 else
29837   as_ln_s='cp -p'
29838 fi
29839 rm -f conf$$ conf$$.exe conf$$.file
29840
29841 if mkdir -p . 2>/dev/null; then
29842   as_mkdir_p=:
29843 else
29844   test -d ./-p && rmdir ./-p
29845   as_mkdir_p=false
29846 fi
29847
29848 as_executable_p="test -f"
29849
29850 # Sed expression to map a string onto a valid CPP name.
29851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29852
29853 # Sed expression to map a string onto a valid variable name.
29854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29855
29856
29857 # IFS
29858 # We need space, tab and new line, in precisely that order.
29859 as_nl='
29860 '
29861 IFS="   $as_nl"
29862
29863 # CDPATH.
29864 $as_unset CDPATH
29865
29866 exec 6>&1
29867
29868 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29869 # report actual input values of CONFIG_FILES etc. instead of their
29870 # values after options handling.  Logging --version etc. is OK.
29871 exec 5>>config.log
29872 {
29873   echo
29874   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29875 ## Running $as_me. ##
29876 _ASBOX
29877 } >&5
29878 cat >&5 <<_CSEOF
29879
29880 This file was extended by llvm $as_me 1.4, which was
29881 generated by GNU Autoconf 2.59.  Invocation command line was
29882
29883   CONFIG_FILES    = $CONFIG_FILES
29884   CONFIG_HEADERS  = $CONFIG_HEADERS
29885   CONFIG_LINKS    = $CONFIG_LINKS
29886   CONFIG_COMMANDS = $CONFIG_COMMANDS
29887   $ $0 $@
29888
29889 _CSEOF
29890 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29891 echo >&5
29892 _ACEOF
29893
29894 # Files that config.status was made for.
29895 if test -n "$ac_config_files"; then
29896   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29897 fi
29898
29899 if test -n "$ac_config_headers"; then
29900   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29901 fi
29902
29903 if test -n "$ac_config_links"; then
29904   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29905 fi
29906
29907 if test -n "$ac_config_commands"; then
29908   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29909 fi
29910
29911 cat >>$CONFIG_STATUS <<\_ACEOF
29912
29913 ac_cs_usage="\
29914 \`$as_me' instantiates files from templates according to the
29915 current configuration.
29916
29917 Usage: $0 [OPTIONS] [FILE]...
29918
29919   -h, --help       print this help, then exit
29920   -V, --version    print version number, then exit
29921   -q, --quiet      do not print progress messages
29922   -d, --debug      don't remove temporary files
29923       --recheck    update $as_me by reconfiguring in the same conditions
29924   --file=FILE[:TEMPLATE]
29925                    instantiate the configuration file FILE
29926   --header=FILE[:TEMPLATE]
29927                    instantiate the configuration header FILE
29928
29929 Configuration files:
29930 $config_files
29931
29932 Configuration headers:
29933 $config_headers
29934
29935 Configuration links:
29936 $config_links
29937
29938 Configuration commands:
29939 $config_commands
29940
29941 Report bugs to <bug-autoconf@gnu.org>."
29942 _ACEOF
29943
29944 cat >>$CONFIG_STATUS <<_ACEOF
29945 ac_cs_version="\\
29946 llvm config.status 1.4
29947 configured by $0, generated by GNU Autoconf 2.59,
29948   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29949
29950 Copyright (C) 2003 Free Software Foundation, Inc.
29951 This config.status script is free software; the Free Software Foundation
29952 gives unlimited permission to copy, distribute and modify it."
29953 srcdir=$srcdir
29954 INSTALL="$INSTALL"
29955 _ACEOF
29956
29957 cat >>$CONFIG_STATUS <<\_ACEOF
29958 # If no file are specified by the user, then we need to provide default
29959 # value.  By we need to know if files were specified by the user.
29960 ac_need_defaults=:
29961 while test $# != 0
29962 do
29963   case $1 in
29964   --*=*)
29965     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29966     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29967     ac_shift=:
29968     ;;
29969   -*)
29970     ac_option=$1
29971     ac_optarg=$2
29972     ac_shift=shift
29973     ;;
29974   *) # This is not an option, so the user has probably given explicit
29975      # arguments.
29976      ac_option=$1
29977      ac_need_defaults=false;;
29978   esac
29979
29980   case $ac_option in
29981   # Handling of the options.
29982 _ACEOF
29983 cat >>$CONFIG_STATUS <<\_ACEOF
29984   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29985     ac_cs_recheck=: ;;
29986   --version | --vers* | -V )
29987     echo "$ac_cs_version"; exit 0 ;;
29988   --he | --h)
29989     # Conflict between --help and --header
29990     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29991 Try \`$0 --help' for more information." >&5
29992 echo "$as_me: error: ambiguous option: $1
29993 Try \`$0 --help' for more information." >&2;}
29994    { (exit 1); exit 1; }; };;
29995   --help | --hel | -h )
29996     echo "$ac_cs_usage"; exit 0 ;;
29997   --debug | --d* | -d )
29998     debug=: ;;
29999   --file | --fil | --fi | --f )
30000     $ac_shift
30001     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30002     ac_need_defaults=false;;
30003   --header | --heade | --head | --hea )
30004     $ac_shift
30005     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30006     ac_need_defaults=false;;
30007   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30008   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30009     ac_cs_silent=: ;;
30010
30011   # This is an error.
30012   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30013 Try \`$0 --help' for more information." >&5
30014 echo "$as_me: error: unrecognized option: $1
30015 Try \`$0 --help' for more information." >&2;}
30016    { (exit 1); exit 1; }; } ;;
30017
30018   *) ac_config_targets="$ac_config_targets $1" ;;
30019
30020   esac
30021   shift
30022 done
30023
30024 ac_configure_extra_args=
30025
30026 if $ac_cs_silent; then
30027   exec 6>/dev/null
30028   ac_configure_extra_args="$ac_configure_extra_args --silent"
30029 fi
30030
30031 _ACEOF
30032 cat >>$CONFIG_STATUS <<_ACEOF
30033 if \$ac_cs_recheck; then
30034   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30035   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30036 fi
30037
30038 _ACEOF
30039
30040 cat >>$CONFIG_STATUS <<_ACEOF
30041 #
30042 # INIT-COMMANDS section.
30043 #
30044
30045 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30046 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30047 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30048 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30049 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30050 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30051 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30052 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30053 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
30054 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30055 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30056 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30057
30058 _ACEOF
30059
30060
30061
30062 cat >>$CONFIG_STATUS <<\_ACEOF
30063 for ac_config_target in $ac_config_targets
30064 do
30065   case "$ac_config_target" in
30066   # Handling of arguments.
30067   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30068   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30069   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30070   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30071   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30072   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30073   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30074   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30075   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30076   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30077   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30078   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30079   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30080   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30081   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30082   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
30083   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30084   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30085   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30086   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30087   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30088   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30089   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30090   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30091   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30092   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30093 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30094    { (exit 1); exit 1; }; };;
30095   esac
30096 done
30097
30098 # If the user did not use the arguments to specify the items to instantiate,
30099 # then the envvar interface is used.  Set only those that are not.
30100 # We use the long form for the default assignment because of an extremely
30101 # bizarre bug on SunOS 4.1.3.
30102 if $ac_need_defaults; then
30103   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30104   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30105   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30106   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30107 fi
30108
30109 # Have a temporary directory for convenience.  Make it in the build tree
30110 # simply because there is no reason to put it here, and in addition,
30111 # creating and moving files from /tmp can sometimes cause problems.
30112 # Create a temporary directory, and hook for its removal unless debugging.
30113 $debug ||
30114 {
30115   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30116   trap '{ (exit 1); exit 1; }' 1 2 13 15
30117 }
30118
30119 # Create a (secure) tmp directory for tmp files.
30120
30121 {
30122   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30123   test -n "$tmp" && test -d "$tmp"
30124 }  ||
30125 {
30126   tmp=./confstat$$-$RANDOM
30127   (umask 077 && mkdir $tmp)
30128 } ||
30129 {
30130    echo "$me: cannot create a temporary directory in ." >&2
30131    { (exit 1); exit 1; }
30132 }
30133
30134 _ACEOF
30135
30136 cat >>$CONFIG_STATUS <<_ACEOF
30137
30138 #
30139 # CONFIG_FILES section.
30140 #
30141
30142 # No need to generate the scripts if there are no CONFIG_FILES.
30143 # This happens for instance when ./config.status config.h
30144 if test -n "\$CONFIG_FILES"; then
30145   # Protect against being on the right side of a sed subst in config.status.
30146   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30147    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30148 s,@SHELL@,$SHELL,;t t
30149 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30150 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30151 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30152 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30153 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30154 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30155 s,@exec_prefix@,$exec_prefix,;t t
30156 s,@prefix@,$prefix,;t t
30157 s,@program_transform_name@,$program_transform_name,;t t
30158 s,@bindir@,$bindir,;t t
30159 s,@sbindir@,$sbindir,;t t
30160 s,@libexecdir@,$libexecdir,;t t
30161 s,@datadir@,$datadir,;t t
30162 s,@sysconfdir@,$sysconfdir,;t t
30163 s,@sharedstatedir@,$sharedstatedir,;t t
30164 s,@localstatedir@,$localstatedir,;t t
30165 s,@libdir@,$libdir,;t t
30166 s,@includedir@,$includedir,;t t
30167 s,@oldincludedir@,$oldincludedir,;t t
30168 s,@infodir@,$infodir,;t t
30169 s,@mandir@,$mandir,;t t
30170 s,@build_alias@,$build_alias,;t t
30171 s,@host_alias@,$host_alias,;t t
30172 s,@target_alias@,$target_alias,;t t
30173 s,@DEFS@,$DEFS,;t t
30174 s,@ECHO_C@,$ECHO_C,;t t
30175 s,@ECHO_N@,$ECHO_N,;t t
30176 s,@ECHO_T@,$ECHO_T,;t t
30177 s,@LIBS@,$LIBS,;t t
30178 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30179 s,@subdirs@,$subdirs,;t t
30180 s,@build@,$build,;t t
30181 s,@build_cpu@,$build_cpu,;t t
30182 s,@build_vendor@,$build_vendor,;t t
30183 s,@build_os@,$build_os,;t t
30184 s,@host@,$host,;t t
30185 s,@host_cpu@,$host_cpu,;t t
30186 s,@host_vendor@,$host_vendor,;t t
30187 s,@host_os@,$host_os,;t t
30188 s,@target@,$target,;t t
30189 s,@target_cpu@,$target_cpu,;t t
30190 s,@target_vendor@,$target_vendor,;t t
30191 s,@target_os@,$target_os,;t t
30192 s,@OS@,$OS,;t t
30193 s,@ARCH@,$ARCH,;t t
30194 s,@ENDIAN@,$ENDIAN,;t t
30195 s,@CC@,$CC,;t t
30196 s,@CFLAGS@,$CFLAGS,;t t
30197 s,@LDFLAGS@,$LDFLAGS,;t t
30198 s,@CPPFLAGS@,$CPPFLAGS,;t t
30199 s,@ac_ct_CC@,$ac_ct_CC,;t t
30200 s,@EXEEXT@,$EXEEXT,;t t
30201 s,@OBJEXT@,$OBJEXT,;t t
30202 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30203 s,@JIT@,$JIT,;t t
30204 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30205 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30206 s,@CPP@,$CPP,;t t
30207 s,@CXX@,$CXX,;t t
30208 s,@CXXFLAGS@,$CXXFLAGS,;t t
30209 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30210 s,@LEX@,$LEX,;t t
30211 s,@LEXLIB@,$LEXLIB,;t t
30212 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30213 s,@FLEX@,$FLEX,;t t
30214 s,@YACC@,$YACC,;t t
30215 s,@BISON@,$BISON,;t t
30216 s,@ifGNUmake@,$ifGNUmake,;t t
30217 s,@LN_S@,$LN_S,;t t
30218 s,@DATE@,$DATE,;t t
30219 s,@FIND@,$FIND,;t t
30220 s,@GREP@,$GREP,;t t
30221 s,@MKDIR@,$MKDIR,;t t
30222 s,@MV@,$MV,;t t
30223 s,@PAX@,$PAX,;t t
30224 s,@RANLIB@,$RANLIB,;t t
30225 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30226 s,@RM@,$RM,;t t
30227 s,@SED@,$SED,;t t
30228 s,@TAR@,$TAR,;t t
30229 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30230 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30231 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30232 s,@BZIP2@,$BZIP2,;t t
30233 s,@DOT@,$DOT,;t t
30234 s,@DOXYGEN@,$DOXYGEN,;t t
30235 s,@ETAGS@,$ETAGS,;t t
30236 s,@GROFF@,$GROFF,;t t
30237 s,@GZIP@,$GZIP,;t t
30238 s,@POD2HTML@,$POD2HTML,;t t
30239 s,@POD2MAN@,$POD2MAN,;t t
30240 s,@PYTHON@,$PYTHON,;t t
30241 s,@QMTEST@,$QMTEST,;t t
30242 s,@RUNTEST@,$RUNTEST,;t t
30243 s,@ZIP@,$ZIP,;t t
30244 s,@EGREP@,$EGREP,;t t
30245 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30246 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30247 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30248 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30249 s,@LIBADD_DL@,$LIBADD_DL,;t t
30250 s,@ECHO@,$ECHO,;t t
30251 s,@AR@,$AR,;t t
30252 s,@ac_ct_AR@,$ac_ct_AR,;t t
30253 s,@STRIP@,$STRIP,;t t
30254 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30255 s,@CXXCPP@,$CXXCPP,;t t
30256 s,@F77@,$F77,;t t
30257 s,@FFLAGS@,$FFLAGS,;t t
30258 s,@ac_ct_F77@,$ac_ct_F77,;t t
30259 s,@LIBTOOL@,$LIBTOOL,;t t
30260 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30261 s,@ALLOCA@,$ALLOCA,;t t
30262 s,@MMAP_FILE@,$MMAP_FILE,;t t
30263 s,@LLVMGCC@,$LLVMGCC,;t t
30264 s,@LLVMCC1@,$LLVMCC1,;t t
30265 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30266 s,@SHLIBEXT@,$SHLIBEXT,;t t
30267 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30268 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30269 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30270 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30271 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30272 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30273 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30274 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30275 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30276 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30277 s,@LIBOBJS@,$LIBOBJS,;t t
30278 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30279 CEOF
30280
30281 _ACEOF
30282
30283   cat >>$CONFIG_STATUS <<\_ACEOF
30284   # Split the substitutions into bite-sized pieces for seds with
30285   # small command number limits, like on Digital OSF/1 and HP-UX.
30286   ac_max_sed_lines=48
30287   ac_sed_frag=1 # Number of current file.
30288   ac_beg=1 # First line for current file.
30289   ac_end=$ac_max_sed_lines # Line after last line for current file.
30290   ac_more_lines=:
30291   ac_sed_cmds=
30292   while $ac_more_lines; do
30293     if test $ac_beg -gt 1; then
30294       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30295     else
30296       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30297     fi
30298     if test ! -s $tmp/subs.frag; then
30299       ac_more_lines=false
30300     else
30301       # The purpose of the label and of the branching condition is to
30302       # speed up the sed processing (if there are no `@' at all, there
30303       # is no need to browse any of the substitutions).
30304       # These are the two extra sed commands mentioned above.
30305       (echo ':t
30306   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30307       if test -z "$ac_sed_cmds"; then
30308         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30309       else
30310         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30311       fi
30312       ac_sed_frag=`expr $ac_sed_frag + 1`
30313       ac_beg=$ac_end
30314       ac_end=`expr $ac_end + $ac_max_sed_lines`
30315     fi
30316   done
30317   if test -z "$ac_sed_cmds"; then
30318     ac_sed_cmds=cat
30319   fi
30320 fi # test -n "$CONFIG_FILES"
30321
30322 _ACEOF
30323 cat >>$CONFIG_STATUS <<\_ACEOF
30324 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30325   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30326   case $ac_file in
30327   - | *:- | *:-:* ) # input from stdin
30328         cat >$tmp/stdin
30329         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30331   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30332         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30333   * )   ac_file_in=$ac_file.in ;;
30334   esac
30335
30336   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30337   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30339          X"$ac_file" : 'X\(//\)[^/]' \| \
30340          X"$ac_file" : 'X\(//\)$' \| \
30341          X"$ac_file" : 'X\(/\)' \| \
30342          .     : '\(.\)' 2>/dev/null ||
30343 echo X"$ac_file" |
30344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30346           /^X\(\/\/\)$/{ s//\1/; q; }
30347           /^X\(\/\).*/{ s//\1/; q; }
30348           s/.*/./; q'`
30349   { if $as_mkdir_p; then
30350     mkdir -p "$ac_dir"
30351   else
30352     as_dir="$ac_dir"
30353     as_dirs=
30354     while test ! -d "$as_dir"; do
30355       as_dirs="$as_dir $as_dirs"
30356       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30358          X"$as_dir" : 'X\(//\)[^/]' \| \
30359          X"$as_dir" : 'X\(//\)$' \| \
30360          X"$as_dir" : 'X\(/\)' \| \
30361          .     : '\(.\)' 2>/dev/null ||
30362 echo X"$as_dir" |
30363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30364           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30365           /^X\(\/\/\)$/{ s//\1/; q; }
30366           /^X\(\/\).*/{ s//\1/; q; }
30367           s/.*/./; q'`
30368     done
30369     test ! -n "$as_dirs" || mkdir $as_dirs
30370   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30371 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30372    { (exit 1); exit 1; }; }; }
30373
30374   ac_builddir=.
30375
30376 if test "$ac_dir" != .; then
30377   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30378   # A "../" for each directory in $ac_dir_suffix.
30379   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30380 else
30381   ac_dir_suffix= ac_top_builddir=
30382 fi
30383
30384 case $srcdir in
30385   .)  # No --srcdir option.  We are building in place.
30386     ac_srcdir=.
30387     if test -z "$ac_top_builddir"; then
30388        ac_top_srcdir=.
30389     else
30390        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30391     fi ;;
30392   [\\/]* | ?:[\\/]* )  # Absolute path.
30393     ac_srcdir=$srcdir$ac_dir_suffix;
30394     ac_top_srcdir=$srcdir ;;
30395   *) # Relative path.
30396     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30397     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30398 esac
30399
30400 # Do not use `cd foo && pwd` to compute absolute paths, because
30401 # the directories may not exist.
30402 case `pwd` in
30403 .) ac_abs_builddir="$ac_dir";;
30404 *)
30405   case "$ac_dir" in
30406   .) ac_abs_builddir=`pwd`;;
30407   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30408   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30409   esac;;
30410 esac
30411 case $ac_abs_builddir in
30412 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30413 *)
30414   case ${ac_top_builddir}. in
30415   .) ac_abs_top_builddir=$ac_abs_builddir;;
30416   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30417   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30418   esac;;
30419 esac
30420 case $ac_abs_builddir in
30421 .) ac_abs_srcdir=$ac_srcdir;;
30422 *)
30423   case $ac_srcdir in
30424   .) ac_abs_srcdir=$ac_abs_builddir;;
30425   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30426   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30427   esac;;
30428 esac
30429 case $ac_abs_builddir in
30430 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30431 *)
30432   case $ac_top_srcdir in
30433   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30434   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30435   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30436   esac;;
30437 esac
30438
30439
30440   case $INSTALL in
30441   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30442   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30443   esac
30444
30445   if test x"$ac_file" != x-; then
30446     { echo "$as_me:$LINENO: creating $ac_file" >&5
30447 echo "$as_me: creating $ac_file" >&6;}
30448     rm -f "$ac_file"
30449   fi
30450   # Let's still pretend it is `configure' which instantiates (i.e., don't
30451   # use $as_me), people would be surprised to read:
30452   #    /* config.h.  Generated by config.status.  */
30453   if test x"$ac_file" = x-; then
30454     configure_input=
30455   else
30456     configure_input="$ac_file.  "
30457   fi
30458   configure_input=$configure_input"Generated from `echo $ac_file_in |
30459                                      sed 's,.*/,,'` by configure."
30460
30461   # First look for the input files in the build tree, otherwise in the
30462   # src tree.
30463   ac_file_inputs=`IFS=:
30464     for f in $ac_file_in; do
30465       case $f in
30466       -) echo $tmp/stdin ;;
30467       [\\/$]*)
30468          # Absolute (can't be DOS-style, as IFS=:)
30469          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30470 echo "$as_me: error: cannot find input file: $f" >&2;}
30471    { (exit 1); exit 1; }; }
30472          echo "$f";;
30473       *) # Relative
30474          if test -f "$f"; then
30475            # Build tree
30476            echo "$f"
30477          elif test -f "$srcdir/$f"; then
30478            # Source tree
30479            echo "$srcdir/$f"
30480          else
30481            # /dev/null tree
30482            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30483 echo "$as_me: error: cannot find input file: $f" >&2;}
30484    { (exit 1); exit 1; }; }
30485          fi;;
30486       esac
30487     done` || { (exit 1); exit 1; }
30488 _ACEOF
30489 cat >>$CONFIG_STATUS <<_ACEOF
30490   sed "$ac_vpsub
30491 $extrasub
30492 _ACEOF
30493 cat >>$CONFIG_STATUS <<\_ACEOF
30494 :t
30495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30496 s,@configure_input@,$configure_input,;t t
30497 s,@srcdir@,$ac_srcdir,;t t
30498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30499 s,@top_srcdir@,$ac_top_srcdir,;t t
30500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30501 s,@builddir@,$ac_builddir,;t t
30502 s,@abs_builddir@,$ac_abs_builddir,;t t
30503 s,@top_builddir@,$ac_top_builddir,;t t
30504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30505 s,@INSTALL@,$ac_INSTALL,;t t
30506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30507   rm -f $tmp/stdin
30508   if test x"$ac_file" != x-; then
30509     mv $tmp/out $ac_file
30510   else
30511     cat $tmp/out
30512     rm -f $tmp/out
30513   fi
30514
30515 done
30516 _ACEOF
30517 cat >>$CONFIG_STATUS <<\_ACEOF
30518
30519 #
30520 # CONFIG_HEADER section.
30521 #
30522
30523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30525 #
30526 # ac_d sets the value in "#define NAME VALUE" lines.
30527 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30528 ac_dB='[         ].*$,\1#\2'
30529 ac_dC=' '
30530 ac_dD=',;t'
30531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30532 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30533 ac_uB='$,\1#\2define\3'
30534 ac_uC=' '
30535 ac_uD=',;t'
30536
30537 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30538   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30539   case $ac_file in
30540   - | *:- | *:-:* ) # input from stdin
30541         cat >$tmp/stdin
30542         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30544   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30545         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30546   * )   ac_file_in=$ac_file.in ;;
30547   esac
30548
30549   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30550 echo "$as_me: creating $ac_file" >&6;}
30551
30552   # First look for the input files in the build tree, otherwise in the
30553   # src tree.
30554   ac_file_inputs=`IFS=:
30555     for f in $ac_file_in; do
30556       case $f in
30557       -) echo $tmp/stdin ;;
30558       [\\/$]*)
30559          # Absolute (can't be DOS-style, as IFS=:)
30560          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30561 echo "$as_me: error: cannot find input file: $f" >&2;}
30562    { (exit 1); exit 1; }; }
30563          # Do quote $f, to prevent DOS paths from being IFS'd.
30564          echo "$f";;
30565       *) # Relative
30566          if test -f "$f"; then
30567            # Build tree
30568            echo "$f"
30569          elif test -f "$srcdir/$f"; then
30570            # Source tree
30571            echo "$srcdir/$f"
30572          else
30573            # /dev/null tree
30574            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30575 echo "$as_me: error: cannot find input file: $f" >&2;}
30576    { (exit 1); exit 1; }; }
30577          fi;;
30578       esac
30579     done` || { (exit 1); exit 1; }
30580   # Remove the trailing spaces.
30581   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30582
30583 _ACEOF
30584
30585 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30586 # `conftest.undefs', that substitutes the proper values into
30587 # config.h.in to produce config.h.  The first handles `#define'
30588 # templates, and the second `#undef' templates.
30589 # And first: Protect against being on the right side of a sed subst in
30590 # config.status.  Protect against being in an unquoted here document
30591 # in config.status.
30592 rm -f conftest.defines conftest.undefs
30593 # Using a here document instead of a string reduces the quoting nightmare.
30594 # Putting comments in sed scripts is not portable.
30595 #
30596 # `end' is used to avoid that the second main sed command (meant for
30597 # 0-ary CPP macros) applies to n-ary macro definitions.
30598 # See the Autoconf documentation for `clear'.
30599 cat >confdef2sed.sed <<\_ACEOF
30600 s/[\\&,]/\\&/g
30601 s,[\\$`],\\&,g
30602 t clear
30603 : clear
30604 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30605 t end
30606 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30607 : end
30608 _ACEOF
30609 # If some macros were called several times there might be several times
30610 # the same #defines, which is useless.  Nevertheless, we may not want to
30611 # sort them, since we want the *last* AC-DEFINE to be honored.
30612 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30613 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30614 rm -f confdef2sed.sed
30615
30616 # This sed command replaces #undef with comments.  This is necessary, for
30617 # example, in the case of _POSIX_SOURCE, which is predefined and required
30618 # on some systems where configure will not decide to define it.
30619 cat >>conftest.undefs <<\_ACEOF
30620 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30621 _ACEOF
30622
30623 # Break up conftest.defines because some shells have a limit on the size
30624 # of here documents, and old seds have small limits too (100 cmds).
30625 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30626 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30627 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30628 echo '  :' >>$CONFIG_STATUS
30629 rm -f conftest.tail
30630 while grep . conftest.defines >/dev/null
30631 do
30632   # Write a limited-size here document to $tmp/defines.sed.
30633   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30634   # Speed up: don't consider the non `#define' lines.
30635   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30636   # Work around the forget-to-reset-the-flag bug.
30637   echo 't clr' >>$CONFIG_STATUS
30638   echo ': clr' >>$CONFIG_STATUS
30639   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30640   echo 'CEOF
30641   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30642   rm -f $tmp/in
30643   mv $tmp/out $tmp/in
30644 ' >>$CONFIG_STATUS
30645   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30646   rm -f conftest.defines
30647   mv conftest.tail conftest.defines
30648 done
30649 rm -f conftest.defines
30650 echo '  fi # grep' >>$CONFIG_STATUS
30651 echo >>$CONFIG_STATUS
30652
30653 # Break up conftest.undefs because some shells have a limit on the size
30654 # of here documents, and old seds have small limits too (100 cmds).
30655 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30656 rm -f conftest.tail
30657 while grep . conftest.undefs >/dev/null
30658 do
30659   # Write a limited-size here document to $tmp/undefs.sed.
30660   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30661   # Speed up: don't consider the non `#undef'
30662   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30663   # Work around the forget-to-reset-the-flag bug.
30664   echo 't clr' >>$CONFIG_STATUS
30665   echo ': clr' >>$CONFIG_STATUS
30666   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30667   echo 'CEOF
30668   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30669   rm -f $tmp/in
30670   mv $tmp/out $tmp/in
30671 ' >>$CONFIG_STATUS
30672   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30673   rm -f conftest.undefs
30674   mv conftest.tail conftest.undefs
30675 done
30676 rm -f conftest.undefs
30677
30678 cat >>$CONFIG_STATUS <<\_ACEOF
30679   # Let's still pretend it is `configure' which instantiates (i.e., don't
30680   # use $as_me), people would be surprised to read:
30681   #    /* config.h.  Generated by config.status.  */
30682   if test x"$ac_file" = x-; then
30683     echo "/* Generated by configure.  */" >$tmp/config.h
30684   else
30685     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30686   fi
30687   cat $tmp/in >>$tmp/config.h
30688   rm -f $tmp/in
30689   if test x"$ac_file" != x-; then
30690     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30691       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30692 echo "$as_me: $ac_file is unchanged" >&6;}
30693     else
30694       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30696          X"$ac_file" : 'X\(//\)[^/]' \| \
30697          X"$ac_file" : 'X\(//\)$' \| \
30698          X"$ac_file" : 'X\(/\)' \| \
30699          .     : '\(.\)' 2>/dev/null ||
30700 echo X"$ac_file" |
30701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30703           /^X\(\/\/\)$/{ s//\1/; q; }
30704           /^X\(\/\).*/{ s//\1/; q; }
30705           s/.*/./; q'`
30706       { if $as_mkdir_p; then
30707     mkdir -p "$ac_dir"
30708   else
30709     as_dir="$ac_dir"
30710     as_dirs=
30711     while test ! -d "$as_dir"; do
30712       as_dirs="$as_dir $as_dirs"
30713       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30715          X"$as_dir" : 'X\(//\)[^/]' \| \
30716          X"$as_dir" : 'X\(//\)$' \| \
30717          X"$as_dir" : 'X\(/\)' \| \
30718          .     : '\(.\)' 2>/dev/null ||
30719 echo X"$as_dir" |
30720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30722           /^X\(\/\/\)$/{ s//\1/; q; }
30723           /^X\(\/\).*/{ s//\1/; q; }
30724           s/.*/./; q'`
30725     done
30726     test ! -n "$as_dirs" || mkdir $as_dirs
30727   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30729    { (exit 1); exit 1; }; }; }
30730
30731       rm -f $ac_file
30732       mv $tmp/config.h $ac_file
30733     fi
30734   else
30735     cat $tmp/config.h
30736     rm -f $tmp/config.h
30737   fi
30738 done
30739 _ACEOF
30740 cat >>$CONFIG_STATUS <<\_ACEOF
30741
30742 #
30743 # CONFIG_LINKS section.
30744 #
30745
30746 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30747   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30748   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30749
30750   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30751 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30752
30753   if test ! -r $srcdir/$ac_source; then
30754     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30755 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30756    { (exit 1); exit 1; }; }
30757   fi
30758   rm -f $ac_dest
30759
30760   # Make relative symlinks.
30761   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30763          X"$ac_dest" : 'X\(//\)[^/]' \| \
30764          X"$ac_dest" : 'X\(//\)$' \| \
30765          X"$ac_dest" : 'X\(/\)' \| \
30766          .     : '\(.\)' 2>/dev/null ||
30767 echo X"$ac_dest" |
30768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30770           /^X\(\/\/\)$/{ s//\1/; q; }
30771           /^X\(\/\).*/{ s//\1/; q; }
30772           s/.*/./; q'`
30773   { if $as_mkdir_p; then
30774     mkdir -p "$ac_dest_dir"
30775   else
30776     as_dir="$ac_dest_dir"
30777     as_dirs=
30778     while test ! -d "$as_dir"; do
30779       as_dirs="$as_dir $as_dirs"
30780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30782          X"$as_dir" : 'X\(//\)[^/]' \| \
30783          X"$as_dir" : 'X\(//\)$' \| \
30784          X"$as_dir" : 'X\(/\)' \| \
30785          .     : '\(.\)' 2>/dev/null ||
30786 echo X"$as_dir" |
30787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30789           /^X\(\/\/\)$/{ s//\1/; q; }
30790           /^X\(\/\).*/{ s//\1/; q; }
30791           s/.*/./; q'`
30792     done
30793     test ! -n "$as_dirs" || mkdir $as_dirs
30794   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30795 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30796    { (exit 1); exit 1; }; }; }
30797
30798   ac_builddir=.
30799
30800 if test "$ac_dest_dir" != .; then
30801   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30802   # A "../" for each directory in $ac_dir_suffix.
30803   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30804 else
30805   ac_dir_suffix= ac_top_builddir=
30806 fi
30807
30808 case $srcdir in
30809   .)  # No --srcdir option.  We are building in place.
30810     ac_srcdir=.
30811     if test -z "$ac_top_builddir"; then
30812        ac_top_srcdir=.
30813     else
30814        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30815     fi ;;
30816   [\\/]* | ?:[\\/]* )  # Absolute path.
30817     ac_srcdir=$srcdir$ac_dir_suffix;
30818     ac_top_srcdir=$srcdir ;;
30819   *) # Relative path.
30820     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30821     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30822 esac
30823
30824 # Do not use `cd foo && pwd` to compute absolute paths, because
30825 # the directories may not exist.
30826 case `pwd` in
30827 .) ac_abs_builddir="$ac_dest_dir";;
30828 *)
30829   case "$ac_dest_dir" in
30830   .) ac_abs_builddir=`pwd`;;
30831   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30832   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30833   esac;;
30834 esac
30835 case $ac_abs_builddir in
30836 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30837 *)
30838   case ${ac_top_builddir}. in
30839   .) ac_abs_top_builddir=$ac_abs_builddir;;
30840   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30841   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30842   esac;;
30843 esac
30844 case $ac_abs_builddir in
30845 .) ac_abs_srcdir=$ac_srcdir;;
30846 *)
30847   case $ac_srcdir in
30848   .) ac_abs_srcdir=$ac_abs_builddir;;
30849   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30850   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30851   esac;;
30852 esac
30853 case $ac_abs_builddir in
30854 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30855 *)
30856   case $ac_top_srcdir in
30857   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30858   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30859   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30860   esac;;
30861 esac
30862
30863
30864   case $srcdir in
30865   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30866       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30867   esac
30868
30869   # Try a symlink, then a hard link, then a copy.
30870   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30871     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30872     cp -p $srcdir/$ac_source $ac_dest ||
30873     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30874 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30875    { (exit 1); exit 1; }; }
30876 done
30877 _ACEOF
30878 cat >>$CONFIG_STATUS <<\_ACEOF
30879
30880 #
30881 # CONFIG_COMMANDS section.
30882 #
30883 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30884   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30885   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30886   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30888          X"$ac_dest" : 'X\(//\)[^/]' \| \
30889          X"$ac_dest" : 'X\(//\)$' \| \
30890          X"$ac_dest" : 'X\(/\)' \| \
30891          .     : '\(.\)' 2>/dev/null ||
30892 echo X"$ac_dest" |
30893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30894           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30895           /^X\(\/\/\)$/{ s//\1/; q; }
30896           /^X\(\/\).*/{ s//\1/; q; }
30897           s/.*/./; q'`
30898   { if $as_mkdir_p; then
30899     mkdir -p "$ac_dir"
30900   else
30901     as_dir="$ac_dir"
30902     as_dirs=
30903     while test ! -d "$as_dir"; do
30904       as_dirs="$as_dir $as_dirs"
30905       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30907          X"$as_dir" : 'X\(//\)[^/]' \| \
30908          X"$as_dir" : 'X\(//\)$' \| \
30909          X"$as_dir" : 'X\(/\)' \| \
30910          .     : '\(.\)' 2>/dev/null ||
30911 echo X"$as_dir" |
30912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30913           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30914           /^X\(\/\/\)$/{ s//\1/; q; }
30915           /^X\(\/\).*/{ s//\1/; q; }
30916           s/.*/./; q'`
30917     done
30918     test ! -n "$as_dirs" || mkdir $as_dirs
30919   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30921    { (exit 1); exit 1; }; }; }
30922
30923   ac_builddir=.
30924
30925 if test "$ac_dir" != .; then
30926   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30927   # A "../" for each directory in $ac_dir_suffix.
30928   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30929 else
30930   ac_dir_suffix= ac_top_builddir=
30931 fi
30932
30933 case $srcdir in
30934   .)  # No --srcdir option.  We are building in place.
30935     ac_srcdir=.
30936     if test -z "$ac_top_builddir"; then
30937        ac_top_srcdir=.
30938     else
30939        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30940     fi ;;
30941   [\\/]* | ?:[\\/]* )  # Absolute path.
30942     ac_srcdir=$srcdir$ac_dir_suffix;
30943     ac_top_srcdir=$srcdir ;;
30944   *) # Relative path.
30945     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30946     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30947 esac
30948
30949 # Do not use `cd foo && pwd` to compute absolute paths, because
30950 # the directories may not exist.
30951 case `pwd` in
30952 .) ac_abs_builddir="$ac_dir";;
30953 *)
30954   case "$ac_dir" in
30955   .) ac_abs_builddir=`pwd`;;
30956   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30957   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30958   esac;;
30959 esac
30960 case $ac_abs_builddir in
30961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30962 *)
30963   case ${ac_top_builddir}. in
30964   .) ac_abs_top_builddir=$ac_abs_builddir;;
30965   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30966   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30967   esac;;
30968 esac
30969 case $ac_abs_builddir in
30970 .) ac_abs_srcdir=$ac_srcdir;;
30971 *)
30972   case $ac_srcdir in
30973   .) ac_abs_srcdir=$ac_abs_builddir;;
30974   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30975   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30976   esac;;
30977 esac
30978 case $ac_abs_builddir in
30979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30980 *)
30981   case $ac_top_srcdir in
30982   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30983   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30984   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30985   esac;;
30986 esac
30987
30988
30989   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30990 echo "$as_me: executing $ac_dest commands" >&6;}
30991   case $ac_dest in
30992     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30993     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
30994     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
30995     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
30996     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
30997     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30998     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
30999     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31000     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
31001     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31002     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31003     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31004   esac
31005 done
31006 _ACEOF
31007
31008 cat >>$CONFIG_STATUS <<\_ACEOF
31009
31010 { (exit 0); exit 0; }
31011 _ACEOF
31012 chmod +x $CONFIG_STATUS
31013 ac_clean_files=$ac_clean_files_save
31014
31015
31016 # configure is writing to config.log, and then calls config.status.
31017 # config.status does its own redirection, appending to config.log.
31018 # Unfortunately, on DOS this fails, as config.log is still kept open
31019 # by configure, so config.status won't be able to write to it; its
31020 # output is simply discarded.  So we exec the FD to /dev/null,
31021 # effectively closing config.log, so it can be properly (re)opened and
31022 # appended to by config.status.  When coming back to configure, we
31023 # need to make the FD available again.
31024 if test "$no_create" != yes; then
31025   ac_cs_success=:
31026   ac_config_status_args=
31027   test "$silent" = yes &&
31028     ac_config_status_args="$ac_config_status_args --quiet"
31029   exec 5>/dev/null
31030   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31031   exec 5>>config.log
31032   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31033   # would make configure fail if this is the last instruction.
31034   $ac_cs_success || { (exit 1); exit 1; }
31035 fi
31036
31037 #
31038 # CONFIG_SUBDIRS section.
31039 #
31040 if test "$no_recursion" != yes; then
31041
31042   # Remove --cache-file and --srcdir arguments so they do not pile up.
31043   ac_sub_configure_args=
31044   ac_prev=
31045   for ac_arg in $ac_configure_args; do
31046     if test -n "$ac_prev"; then
31047       ac_prev=
31048       continue
31049     fi
31050     case $ac_arg in
31051     -cache-file | --cache-file | --cache-fil | --cache-fi \
31052     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31053       ac_prev=cache_file ;;
31054     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31055     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31056     | --c=*)
31057       ;;
31058     --config-cache | -C)
31059       ;;
31060     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31061       ac_prev=srcdir ;;
31062     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31063       ;;
31064     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31065       ac_prev=prefix ;;
31066     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31067       ;;
31068     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31069     esac
31070   done
31071
31072   # Always prepend --prefix to ensure using the same prefix
31073   # in subdir configurations.
31074   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31075
31076   ac_popdir=`pwd`
31077   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31078
31079     # Do not complain, so a configure script can configure whichever
31080     # parts of a large source tree are present.
31081     test -d $srcdir/$ac_dir || continue
31082
31083     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31084 echo "$as_me: configuring in $ac_dir" >&6;}
31085     { if $as_mkdir_p; then
31086     mkdir -p "$ac_dir"
31087   else
31088     as_dir="$ac_dir"
31089     as_dirs=
31090     while test ! -d "$as_dir"; do
31091       as_dirs="$as_dir $as_dirs"
31092       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31094          X"$as_dir" : 'X\(//\)[^/]' \| \
31095          X"$as_dir" : 'X\(//\)$' \| \
31096          X"$as_dir" : 'X\(/\)' \| \
31097          .     : '\(.\)' 2>/dev/null ||
31098 echo X"$as_dir" |
31099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31100           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31101           /^X\(\/\/\)$/{ s//\1/; q; }
31102           /^X\(\/\).*/{ s//\1/; q; }
31103           s/.*/./; q'`
31104     done
31105     test ! -n "$as_dirs" || mkdir $as_dirs
31106   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31108    { (exit 1); exit 1; }; }; }
31109
31110     ac_builddir=.
31111
31112 if test "$ac_dir" != .; then
31113   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31114   # A "../" for each directory in $ac_dir_suffix.
31115   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31116 else
31117   ac_dir_suffix= ac_top_builddir=
31118 fi
31119
31120 case $srcdir in
31121   .)  # No --srcdir option.  We are building in place.
31122     ac_srcdir=.
31123     if test -z "$ac_top_builddir"; then
31124        ac_top_srcdir=.
31125     else
31126        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31127     fi ;;
31128   [\\/]* | ?:[\\/]* )  # Absolute path.
31129     ac_srcdir=$srcdir$ac_dir_suffix;
31130     ac_top_srcdir=$srcdir ;;
31131   *) # Relative path.
31132     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31133     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31134 esac
31135
31136 # Do not use `cd foo && pwd` to compute absolute paths, because
31137 # the directories may not exist.
31138 case `pwd` in
31139 .) ac_abs_builddir="$ac_dir";;
31140 *)
31141   case "$ac_dir" in
31142   .) ac_abs_builddir=`pwd`;;
31143   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31144   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31145   esac;;
31146 esac
31147 case $ac_abs_builddir in
31148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31149 *)
31150   case ${ac_top_builddir}. in
31151   .) ac_abs_top_builddir=$ac_abs_builddir;;
31152   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31153   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31154   esac;;
31155 esac
31156 case $ac_abs_builddir in
31157 .) ac_abs_srcdir=$ac_srcdir;;
31158 *)
31159   case $ac_srcdir in
31160   .) ac_abs_srcdir=$ac_abs_builddir;;
31161   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31162   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31163   esac;;
31164 esac
31165 case $ac_abs_builddir in
31166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31167 *)
31168   case $ac_top_srcdir in
31169   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31170   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31171   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31172   esac;;
31173 esac
31174
31175
31176     cd $ac_dir
31177
31178     # Check for guested configure; otherwise get Cygnus style configure.
31179     if test -f $ac_srcdir/configure.gnu; then
31180       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31181     elif test -f $ac_srcdir/configure; then
31182       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31183     elif test -f $ac_srcdir/configure.in; then
31184       ac_sub_configure=$ac_configure
31185     else
31186       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31188       ac_sub_configure=
31189     fi
31190
31191     # The recursion is here.
31192     if test -n "$ac_sub_configure"; then
31193       # Make the cache file name correct relative to the subdirectory.
31194       case $cache_file in
31195       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31196       *) # Relative path.
31197         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31198       esac
31199
31200       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31201 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31202       # The eval makes quoting arguments work.
31203       eval $ac_sub_configure $ac_sub_configure_args \
31204            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31205         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31206 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31207    { (exit 1); exit 1; }; }
31208     fi
31209
31210     cd $ac_popdir
31211   done
31212 fi
31213
31214
31215 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31216  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31217 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31218  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31219 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31220  { echo "$as_me:$LINENO: WARNING: ***** " >&5
31221 echo "$as_me: WARNING: ***** " >&2;}
31222  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31223 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31224  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31225 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31226  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31227 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31228 fi