Back out include/llvm/System changes until a satisfactory solution can
[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.3.
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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.3'
427 PACKAGE_STRING='LLVM 1.3'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_subdirs_all="$ac_subdirs_all projects/${i}"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_unique_file=""Makefile.config.in""
469 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures LLVM 1.3 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014   --target=TARGET   configure for building compilers for TARGET [HOST]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019   case $ac_init_help in
1020      short | recursive ) echo "Configuration of LLVM 1.3:";;
1021    esac
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --enable-optimized      Compile with optimizations enabled (default is NO)
1035   --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1036   --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1037   --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054
1055 Some influential environment variables:
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   CPP         C preprocessor
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 LLVM configure 1.3
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by LLVM $as_me 1.3, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 ac_aux_dir=
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521   if test -f $ac_dir/install-sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install-sh -c"
1524     break
1525   elif test -f $ac_dir/install.sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install.sh -c"
1528     break
1529   elif test -f $ac_dir/shtool; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/shtool install -c"
1532     break
1533   fi
1534 done
1535 if test -z "$ac_aux_dir"; then
1536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538    { (exit 1); exit 1; }; }
1539 fi
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544
1545 if test ${srcdir} != "."
1546 then
1547         if test -f ${srcdir}/include/Config/config.h
1548         then
1549                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551    { (exit 1); exit 1; }; }
1552         fi
1553 fi
1554
1555 for i in `ls ${srcdir}/projects`
1556 do
1557   if test ${i} != "CVS"
1558   then
1559     if test -f ${srcdir}/projects/${i}/configure
1560     then
1561
1562
1563 subdirs="$subdirs projects/${i}"
1564
1565     fi
1566   fi
1567 done
1568
1569           ac_config_headers="$ac_config_headers include/Config/config.h"
1570
1571
1572                                                             ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1573
1574
1575           ac_config_commands="$ac_config_commands Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands Makefile.common"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands runtime/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands test/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands test/Makefile.tests"
1591
1592
1593           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1594
1595
1596           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1597
1598
1599           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1603
1604
1605           ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1606
1607
1608           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1612
1613
1614           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1615
1616
1617           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1636
1637
1638           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1642
1643
1644           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1654
1655
1656           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1657
1658
1659           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1660
1661
1662           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1714
1715
1716           ac_config_commands="$ac_config_commands tools/Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands utils/Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands projects/Makefile"
1723
1724
1725
1726 # Find a good install program.  We prefer a C program (faster),
1727 # so one script is as good as another.  But avoid the broken or
1728 # incompatible versions:
1729 # SysV /etc/install, /usr/sbin/install
1730 # SunOS /usr/etc/install
1731 # IRIX /sbin/install
1732 # AIX /bin/install
1733 # AmigaOS /C/install, which installs bootblocks on floppy discs
1734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1737 # OS/2's system install, which has a completely different semantic
1738 # ./install, which can be erroneously created by make from ./install.sh.
1739 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1740 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1741 if test -z "$INSTALL"; then
1742 if test "${ac_cv_path_install+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   # Account for people who put trailing slashes in PATH elements.
1751 case $as_dir/ in
1752   ./ | .// | /cC/* | \
1753   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1754   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1755   /usr/ucb/* ) ;;
1756   *)
1757     # OSF1 and SCO ODT 3.0 have their own names for install.
1758     # Don't use installbsd from OSF since it installs stuff as root
1759     # by default.
1760     for ac_prog in ginstall scoinst install; do
1761       for ac_exec_ext in '' $ac_executable_extensions; do
1762         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1763           if test $ac_prog = install &&
1764             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1765             # AIX install.  It has an incompatible calling convention.
1766             :
1767           elif test $ac_prog = install &&
1768             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1769             # program-specific install script used by HP pwplus--don't use.
1770             :
1771           else
1772             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1773             break 3
1774           fi
1775         fi
1776       done
1777     done
1778     ;;
1779 esac
1780 done
1781
1782
1783 fi
1784   if test "${ac_cv_path_install+set}" = set; then
1785     INSTALL=$ac_cv_path_install
1786   else
1787     # As a last resort, use the slow shell script.  We don't cache a
1788     # path for INSTALL within a source directory, because that will
1789     # break other packages using the cache if that directory is
1790     # removed, or if the path is relative.
1791     INSTALL=$ac_install_sh
1792   fi
1793 fi
1794 echo "$as_me:$LINENO: result: $INSTALL" >&5
1795 echo "${ECHO_T}$INSTALL" >&6
1796
1797 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1798 # It thinks the first close brace ends the variable substitution.
1799 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1800
1801 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1802
1803 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1804
1805
1806 # Make sure we can run config.sub.
1807 $ac_config_sub sun4 >/dev/null 2>&1 ||
1808   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1809 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1810    { (exit 1); exit 1; }; }
1811
1812 echo "$as_me:$LINENO: checking build system type" >&5
1813 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1814 if test "${ac_cv_build+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   ac_cv_build_alias=$build_alias
1818 test -z "$ac_cv_build_alias" &&
1819   ac_cv_build_alias=`$ac_config_guess`
1820 test -z "$ac_cv_build_alias" &&
1821   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1822 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1823    { (exit 1); exit 1; }; }
1824 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1825   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1826 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1827    { (exit 1); exit 1; }; }
1828
1829 fi
1830 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1831 echo "${ECHO_T}$ac_cv_build" >&6
1832 build=$ac_cv_build
1833 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1834 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1835 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1836
1837
1838 echo "$as_me:$LINENO: checking host system type" >&5
1839 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1840 if test "${ac_cv_host+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   ac_cv_host_alias=$host_alias
1844 test -z "$ac_cv_host_alias" &&
1845   ac_cv_host_alias=$ac_cv_build_alias
1846 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1847   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1848 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1849    { (exit 1); exit 1; }; }
1850
1851 fi
1852 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853 echo "${ECHO_T}$ac_cv_host" >&6
1854 host=$ac_cv_host
1855 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1856 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1857 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1858
1859
1860 echo "$as_me:$LINENO: checking target system type" >&5
1861 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1862 if test "${ac_cv_target+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   ac_cv_target_alias=$target_alias
1866 test "x$ac_cv_target_alias" = "x" &&
1867   ac_cv_target_alias=$ac_cv_host_alias
1868 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1869   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1870 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1871    { (exit 1); exit 1; }; }
1872
1873 fi
1874 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1875 echo "${ECHO_T}$ac_cv_target" >&6
1876 target=$ac_cv_target
1877 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1878 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1879 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1880
1881
1882 # The aliases save the names the user supplied, while $host etc.
1883 # will get canonicalized.
1884 test -n "$target_alias" &&
1885   test "$program_prefix$program_suffix$program_transform_name" = \
1886     NONENONEs,x,x, &&
1887   program_prefix=${target_alias}-
1888
1889 case $build in
1890         *-*-linux*)
1891              OS=Linux
1892
1893                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1894                          then
1895                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1896
1897                          fi
1898                  ;;
1899         *-*-solaris*)
1900              OS=SunOS
1901
1902                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1903                          then
1904                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1905
1906                          fi
1907                  ;;
1908         *-*-cygwin*)
1909              OS=Cygwin
1910
1911                  ;;
1912         *-*-darwin*)
1913              OS=Darwin
1914
1915                  ;;
1916         *-*-aix*)
1917              OS=AIX
1918
1919                  ;;
1920         *)       OS=Unknown
1921
1922                  ;;
1923 esac
1924
1925 case $target in
1926         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1927
1928                             ;;
1929 esac
1930
1931 case $target in
1932         i*86-*)           ARCH=x86
1933
1934                           ;;
1935         sparc*-*)         ARCH=Sparc
1936
1937                           ;;
1938         powerpc*-*)       ARCH=PowerPC
1939
1940                           ;;
1941         *)                ARCH=Unknown
1942
1943                           ;;
1944 esac
1945
1946 ac_ext=cc
1947 ac_cpp='$CXXCPP $CPPFLAGS'
1948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1951 if test -n "$ac_tool_prefix"; then
1952   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1953   do
1954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CXX+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CXX"; then
1962   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 CXX=$ac_cv_prog_CXX
1981 if test -n "$CXX"; then
1982   echo "$as_me:$LINENO: result: $CXX" >&5
1983 echo "${ECHO_T}$CXX" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989     test -n "$CXX" && break
1990   done
1991 fi
1992 if test -z "$CXX"; then
1993   ac_ct_CXX=$CXX
1994   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1995 do
1996   # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$ac_ct_CXX"; then
2004   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013     ac_cv_prog_ac_ct_CXX="$ac_prog"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2023 if test -n "$ac_ct_CXX"; then
2024   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2025 echo "${ECHO_T}$ac_ct_CXX" >&6
2026 else
2027   echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031   test -n "$ac_ct_CXX" && break
2032 done
2033 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2034
2035   CXX=$ac_ct_CXX
2036 fi
2037
2038
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041      "checking for C++ compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044   (eval $ac_compiler --version </dev/null >&5) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049   (eval $ac_compiler -v </dev/null >&5) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054   (eval $ac_compiler -V </dev/null >&5) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }
2058
2059 cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h.  */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h.  */
2065
2066 int
2067 main ()
2068 {
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 ac_clean_files_save=$ac_clean_files
2075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076 # Try to create an executable without -o first, disregard a.out.
2077 # It will help us diagnose broken compilers, and finding out an intuition
2078 # of exeext.
2079 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2080 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083   (eval $ac_link_default) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; then
2087   # Find the output, starting from the most likely.  This scheme is
2088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089 # resort.
2090
2091 # Be careful to initialize this variable, since it used to be cached.
2092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2093 ac_cv_exeext=
2094 # b.out is created by i960 compilers.
2095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2096 do
2097   test -f "$ac_file" || continue
2098   case $ac_file in
2099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100         ;;
2101     conftest.$ac_ext )
2102         # This is the source file.
2103         ;;
2104     [ab].out )
2105         # We found the default executable, but exeext='' is most
2106         # certainly right.
2107         break;;
2108     *.* )
2109         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110         # FIXME: I believe we export ac_cv_exeext for Libtool,
2111         # but it would be cool to find out if it's true.  Does anybody
2112         # maintain Libtool? --akim.
2113         export ac_cv_exeext
2114         break;;
2115     * )
2116         break;;
2117   esac
2118 done
2119 else
2120   echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: C++ compiler cannot create executables
2126 See \`config.log' for more details." >&2;}
2127    { (exit 77); exit 77; }; }
2128 fi
2129
2130 ac_exeext=$ac_cv_exeext
2131 echo "$as_me:$LINENO: result: $ac_file" >&5
2132 echo "${ECHO_T}$ac_file" >&6
2133
2134 # Check the compiler produces executables we can run.  If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2137 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141   if { ac_try='./$ac_file'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147     cross_compiling=no
2148   else
2149     if test "$cross_compiling" = maybe; then
2150         cross_compiling=yes
2151     else
2152         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C++ compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159     fi
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6
2164
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check the compiler produces executables we can run.  If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6
2173
2174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177   (eval $ac_link) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; then
2181   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2183 # work properly (i.e., refer to `conftest.exe'), while it won't with
2184 # `rm'.
2185 for ac_file in conftest.exe conftest conftest.*; do
2186   test -f "$ac_file" || continue
2187   case $ac_file in
2188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190           export ac_cv_exeext
2191           break;;
2192     * ) break;;
2193   esac
2194 done
2195 else
2196   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199 See \`config.log' for more details." >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 rm -f conftest$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205 echo "${ECHO_T}$ac_cv_exeext" >&6
2206
2207 rm -f conftest.$ac_ext
2208 EXEEXT=$ac_cv_exeext
2209 ac_exeext=$EXEEXT
2210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212 if test "${ac_cv_objext+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h.  */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h.  */
2221
2222 int
2223 main ()
2224 {
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.o conftest.obj
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; then
2236   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237   case $ac_file in
2238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240        break;;
2241   esac
2242 done
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252 fi
2253
2254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257 echo "${ECHO_T}$ac_cv_objext" >&6
2258 OBJEXT=$ac_cv_objext
2259 ac_objext=$OBJEXT
2260 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271
2272 int
2273 main ()
2274 {
2275 #ifndef __GNUC__
2276        choke me
2277 #endif
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>conftest.er1
2286   ac_status=$?
2287   grep -v '^ *+' conftest.er1 >conftest.err
2288   rm -f conftest.er1
2289   cat conftest.err >&5
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); } &&
2292          { ac_try='test -z "$ac_cxx_werror_flag"
2293                          || test ! -s conftest.err'
2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295   (eval $ac_try) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; } &&
2299          { ac_try='test -s conftest.$ac_objext'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; }; then
2305   ac_compiler_gnu=yes
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 ac_compiler_gnu=no
2311 fi
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2314
2315 fi
2316 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2318 GXX=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CXXFLAGS=${CXXFLAGS+set}
2320 ac_save_CXXFLAGS=$CXXFLAGS
2321 CXXFLAGS="-g"
2322 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2323 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cxx_g+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h.  */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h.  */
2333
2334 int
2335 main ()
2336 {
2337
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>conftest.er1
2345   ac_status=$?
2346   grep -v '^ *+' conftest.er1 >conftest.err
2347   rm -f conftest.er1
2348   cat conftest.err >&5
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); } &&
2351          { ac_try='test -z "$ac_cxx_werror_flag"
2352                          || test ! -s conftest.err'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; } &&
2358          { ac_try='test -s conftest.$ac_objext'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; }; then
2364   ac_cv_prog_cxx_g=yes
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_cv_prog_cxx_g=no
2370 fi
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2375 if test "$ac_test_CXXFLAGS" = set; then
2376   CXXFLAGS=$ac_save_CXXFLAGS
2377 elif test $ac_cv_prog_cxx_g = yes; then
2378   if test "$GXX" = yes; then
2379     CXXFLAGS="-g -O2"
2380   else
2381     CXXFLAGS="-g"
2382   fi
2383 else
2384   if test "$GXX" = yes; then
2385     CXXFLAGS="-O2"
2386   else
2387     CXXFLAGS=
2388   fi
2389 fi
2390 for ac_declaration in \
2391    '' \
2392    'extern "C" void std::exit (int) throw (); using std::exit;' \
2393    'extern "C" void std::exit (int); using std::exit;' \
2394    'extern "C" void exit (int) throw ();' \
2395    'extern "C" void exit (int);' \
2396    'void exit (int);'
2397 do
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404 $ac_declaration
2405 #include <stdlib.h>
2406 int
2407 main ()
2408 {
2409 exit (42);
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416   (eval $ac_compile) 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } &&
2423          { ac_try='test -z "$ac_cxx_werror_flag"
2424                          || test ! -s conftest.err'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   :
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 continue
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444   cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450 $ac_declaration
2451 int
2452 main ()
2453 {
2454 exit (42);
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461   (eval $ac_compile) 2>conftest.er1
2462   ac_status=$?
2463   grep -v '^ *+' conftest.er1 >conftest.err
2464   rm -f conftest.er1
2465   cat conftest.err >&5
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -z "$ac_cxx_werror_flag"
2469                          || test ! -s conftest.err'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; } &&
2475          { ac_try='test -s conftest.$ac_objext'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   break
2482 else
2483   echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 fi
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488 done
2489 rm -f conftest*
2490 if test -n "$ac_declaration"; then
2491   echo '#ifdef __cplusplus' >>confdefs.h
2492   echo $ac_declaration      >>confdefs.h
2493   echo '#endif'             >>confdefs.h
2494 fi
2495
2496 ac_ext=c
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 if test -n "$ac_tool_prefix"; then
2508   for ac_prog in gcc
2509   do
2510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$CC"; then
2518   ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533
2534 fi
2535 fi
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538   echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6
2540 else
2541   echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543 fi
2544
2545     test -n "$CC" && break
2546   done
2547 fi
2548 if test -z "$CC"; then
2549   ac_ct_CC=$CC
2550   for ac_prog in gcc
2551 do
2552   # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$ac_ct_CC"; then
2560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569     ac_cv_prog_ac_ct_CC="$ac_prog"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575
2576 fi
2577 fi
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 echo "${ECHO_T}$ac_ct_CC" >&6
2582 else
2583   echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2585 fi
2586
2587   test -n "$ac_ct_CC" && break
2588 done
2589
2590   CC=$ac_ct_CC
2591 fi
2592
2593
2594 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: no acceptable C compiler found in \$PATH
2597 See \`config.log' for more details." >&2;}
2598    { (exit 1); exit 1; }; }
2599
2600 # Provide some information about the compiler.
2601 echo "$as_me:$LINENO:" \
2602      "checking for C compiler version" >&5
2603 ac_compiler=`set X $ac_compile; echo $2`
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2605   (eval $ac_compiler --version </dev/null >&5) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }
2609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2610   (eval $ac_compiler -v </dev/null >&5) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }
2614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2615   (eval $ac_compiler -V </dev/null >&5) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }
2619
2620 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635 #ifndef __GNUC__
2636        choke me
2637 #endif
2638
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   ac_compiler_gnu=yes
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 ac_compiler_gnu=no
2671 fi
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2674
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2678 GCC=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2681 CFLAGS="-g"
2682 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 int
2695 main ()
2696 {
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704   (eval $ac_compile) 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag"
2712                          || test ! -s conftest.err'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; } &&
2718          { ac_try='test -s conftest.$ac_objext'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; }; then
2724   ac_cv_prog_cc_g=yes
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 ac_cv_prog_cc_g=no
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 fi
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2735 if test "$ac_test_CFLAGS" = set; then
2736   CFLAGS=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738   if test "$GCC" = yes; then
2739     CFLAGS="-g -O2"
2740   else
2741     CFLAGS="-g"
2742   fi
2743 else
2744   if test "$GCC" = yes; then
2745     CFLAGS="-O2"
2746   else
2747     CFLAGS=
2748   fi
2749 fi
2750 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2751 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2752 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   ac_cv_prog_cc_stdc=no
2756 ac_save_CC=$CC
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 #include <stdarg.h>
2764 #include <stdio.h>
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2771      char **p;
2772      int i;
2773 {
2774   return p[i];
2775 }
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2777 {
2778   char *s;
2779   va_list v;
2780   va_start (v,p);
2781   s = g (p, va_arg (v,int));
2782   va_end (v);
2783   return s;
2784 }
2785
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2787    function prototypes and stuff, but not '\xHH' hex character constants.
2788    These don't provoke an error unfortunately, instead are silently treated
2789    as 'x'.  The following induces an error, until -std1 is added to get
2790    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2791    array size at least.  It's necessary to write '\x00'==0 to get something
2792    that's true only with -std1.  */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2794
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2799 int argc;
2800 char **argv;
2801 int
2802 main ()
2803 {
2804 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 # Don't try gcc -ansi; that turns off useful extensions and
2810 # breaks some systems' header files.
2811 # AIX                   -qlanglvl=ansi
2812 # Ultrix and OSF/1      -std1
2813 # HP-UX 10.20 and later -Ae
2814 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2815 # SVR4                  -Xc -D__EXTENSIONS__
2816 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2817 do
2818   CC="$ac_save_CC $ac_arg"
2819   rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821   (eval $ac_compile) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -z "$ac_c_werror_flag"
2829                          || test ! -s conftest.err'
2830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831   (eval $ac_try) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; } &&
2835          { ac_try='test -s conftest.$ac_objext'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; }; then
2841   ac_cv_prog_cc_stdc=$ac_arg
2842 break
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 fi
2848 rm -f conftest.err conftest.$ac_objext
2849 done
2850 rm -f conftest.$ac_ext conftest.$ac_objext
2851 CC=$ac_save_CC
2852
2853 fi
2854
2855 case "x$ac_cv_prog_cc_stdc" in
2856   x|xno)
2857     echo "$as_me:$LINENO: result: none needed" >&5
2858 echo "${ECHO_T}none needed" >&6 ;;
2859   *)
2860     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2862     CC="$CC $ac_cv_prog_cc_stdc" ;;
2863 esac
2864
2865 # Some people use a C++ compiler to compile C.  Since we use `exit',
2866 # in C++ we need to declare it.  In case someone uses the same compiler
2867 # for both compiling C and C++ we need to have the C++ compiler decide
2868 # the declaration of exit, since it's the most demanding environment.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #ifndef __cplusplus
2871   choke me
2872 #endif
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876   (eval $ac_compile) 2>conftest.er1
2877   ac_status=$?
2878   grep -v '^ *+' conftest.er1 >conftest.err
2879   rm -f conftest.er1
2880   cat conftest.err >&5
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          { ac_try='test -z "$ac_c_werror_flag"
2884                          || test ! -s conftest.err'
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); }; } &&
2890          { ac_try='test -s conftest.$ac_objext'
2891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892   (eval $ac_try) 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; }; then
2896   for ac_declaration in \
2897    '' \
2898    'extern "C" void std::exit (int) throw (); using std::exit;' \
2899    'extern "C" void std::exit (int); using std::exit;' \
2900    'extern "C" void exit (int) throw ();' \
2901    'extern "C" void exit (int);' \
2902    'void exit (int);'
2903 do
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 $ac_declaration
2911 #include <stdlib.h>
2912 int
2913 main ()
2914 {
2915 exit (42);
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922   (eval $ac_compile) 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -z "$ac_c_werror_flag"
2930                          || test ! -s conftest.err'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; } &&
2936          { ac_try='test -s conftest.$ac_objext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   :
2943 else
2944   echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 continue
2948 fi
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956 $ac_declaration
2957 int
2958 main ()
2959 {
2960 exit (42);
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967   (eval $ac_compile) 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } &&
2974          { ac_try='test -z "$ac_c_werror_flag"
2975                          || test ! -s conftest.err'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   break
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 fi
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 done
2995 rm -f conftest*
2996 if test -n "$ac_declaration"; then
2997   echo '#ifdef __cplusplus' >>confdefs.h
2998   echo $ac_declaration      >>confdefs.h
2999   echo '#endif'             >>confdefs.h
3000 fi
3001
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 fi
3007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3020 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3021 # On Suns, sometimes $CPP names a directory.
3022 if test -n "$CPP" && test -d "$CPP"; then
3023   CPP=
3024 fi
3025 if test -z "$CPP"; then
3026   if test "${ac_cv_prog_CPP+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029       # Double quotes because CPP needs to be expanded
3030     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3031     do
3032       ac_preproc_ok=false
3033 for ac_c_preproc_warn_flag in '' yes
3034 do
3035   # Use a header file that comes with gcc, so configuring glibc
3036   # with a fresh cross-compiler works.
3037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038   # <limits.h> exists even on freestanding compilers.
3039   # On the NeXT, cc -E runs the code through the compiler's parser,
3040   # not just through cpp. "Syntax error" is here to catch this case.
3041   cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052                      Syntax error
3053 _ACEOF
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } >/dev/null; then
3062   if test -s conftest.err; then
3063     ac_cpp_err=$ac_c_preproc_warn_flag
3064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065   else
3066     ac_cpp_err=
3067   fi
3068 else
3069   ac_cpp_err=yes
3070 fi
3071 if test -z "$ac_cpp_err"; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077   # Broken: fails on valid input.
3078 continue
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081
3082   # OK, works on sane cases.  Now check whether non-existent headers
3083   # can be detected and how.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #include <ac_nonexistent.h>
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_c_preproc_warn_flag
3102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103   else
3104     ac_cpp_err=
3105   fi
3106 else
3107   ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110   # Broken: success on invalid input.
3111 continue
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116   # Passes both tests.
3117 ac_preproc_ok=:
3118 break
3119 fi
3120 rm -f conftest.err conftest.$ac_ext
3121
3122 done
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3126   break
3127 fi
3128
3129     done
3130     ac_cv_prog_CPP=$CPP
3131
3132 fi
3133   CPP=$ac_cv_prog_CPP
3134 else
3135   ac_cv_prog_CPP=$CPP
3136 fi
3137 echo "$as_me:$LINENO: result: $CPP" >&5
3138 echo "${ECHO_T}$CPP" >&6
3139 ac_preproc_ok=false
3140 for ac_c_preproc_warn_flag in '' yes
3141 do
3142   # Use a header file that comes with gcc, so configuring glibc
3143   # with a fresh cross-compiler works.
3144   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3145   # <limits.h> exists even on freestanding compilers.
3146   # On the NeXT, cc -E runs the code through the compiler's parser,
3147   # not just through cpp. "Syntax error" is here to catch this case.
3148   cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154 #ifdef __STDC__
3155 # include <limits.h>
3156 #else
3157 # include <assert.h>
3158 #endif
3159                      Syntax error
3160 _ACEOF
3161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } >/dev/null; then
3169   if test -s conftest.err; then
3170     ac_cpp_err=$ac_c_preproc_warn_flag
3171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172   else
3173     ac_cpp_err=
3174   fi
3175 else
3176   ac_cpp_err=yes
3177 fi
3178 if test -z "$ac_cpp_err"; then
3179   :
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184   # Broken: fails on valid input.
3185 continue
3186 fi
3187 rm -f conftest.err conftest.$ac_ext
3188
3189   # OK, works on sane cases.  Now check whether non-existent headers
3190   # can be detected and how.
3191   cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #include <ac_nonexistent.h>
3198 _ACEOF
3199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } >/dev/null; then
3207   if test -s conftest.err; then
3208     ac_cpp_err=$ac_c_preproc_warn_flag
3209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210   else
3211     ac_cpp_err=
3212   fi
3213 else
3214   ac_cpp_err=yes
3215 fi
3216 if test -z "$ac_cpp_err"; then
3217   # Broken: success on invalid input.
3218 continue
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223   # Passes both tests.
3224 ac_preproc_ok=:
3225 break
3226 fi
3227 rm -f conftest.err conftest.$ac_ext
3228
3229 done
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then
3233   :
3234 else
3235   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3238 See \`config.log' for more details." >&2;}
3239    { (exit 1); exit 1; }; }
3240 fi
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
3248
3249 if test "$GCC" != "yes"
3250 then
3251         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3252 echo "$as_me: error: gcc required but not found" >&2;}
3253    { (exit 1); exit 1; }; }
3254 fi
3255 if test "$GXX" != "yes"
3256 then
3257         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3258 echo "$as_me: error: g++ required but not found" >&2;}
3259    { (exit 1); exit 1; }; }
3260 fi
3261
3262 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3263 if test "$gccmajor" -lt "3"
3264 then
3265         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3266 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3267    { (exit 1); exit 1; }; }
3268 fi
3269
3270  echo "$as_me:$LINENO: checking for GNU make" >&5
3271 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3272 if test "${_cv_gnu_make_command+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   _cv_gnu_make_command='' ;
3276                 for a in "$MAKE" make gmake gnumake ; do
3277                         if test -z "$a" ; then continue ; fi ;
3278                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3279                                 _cv_gnu_make_command=$a ;
3280                                 break;
3281                         fi
3282                 done ;
3283
3284 fi
3285 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3286 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3287         if test  "x$_cv_gnu_make_command" != "x"  ; then
3288                 ifGNUmake='' ;
3289         else
3290                 ifGNUmake='#' ;
3291                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3292 echo "${ECHO_T}\"Not found\"" >&6;
3293         fi
3294
3295
3296 if test -z "$_cv_gnu_make_command"
3297 then
3298         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3299 echo "$as_me: error: GNU Make required but not found" >&2;}
3300    { (exit 1); exit 1; }; }
3301 fi
3302
3303
3304 echo "$as_me:$LINENO: checking " >&5
3305 echo $ECHO_N "checking ... $ECHO_C" >&6
3306 if test "${ac_cv_has_flex+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   for ac_prog in flex lex
3310 do
3311   # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_LEX+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   if test -n "$LEX"; then
3319   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_exec_ext in '' $ac_executable_extensions; do
3327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328     ac_cv_prog_LEX="$ac_prog"
3329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333 done
3334
3335 fi
3336 fi
3337 LEX=$ac_cv_prog_LEX
3338 if test -n "$LEX"; then
3339   echo "$as_me:$LINENO: result: $LEX" >&5
3340 echo "${ECHO_T}$LEX" >&6
3341 else
3342   echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346   test -n "$LEX" && break
3347 done
3348 test -n "$LEX" || LEX=":"
3349
3350 if test -z "$LEXLIB"
3351 then
3352   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3353 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3354 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   ac_check_lib_save_LIBS=$LIBS
3358 LIBS="-lfl  $LIBS"
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365
3366 /* Override any gcc2 internal prototype to avoid an error.  */
3367 #ifdef __cplusplus
3368 extern "C"
3369 #endif
3370 /* We use char because int might match the return type of a gcc2
3371    builtin and then its argument prototype would still apply.  */
3372 char yywrap ();
3373 int
3374 main ()
3375 {
3376 yywrap ();
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383   (eval $ac_link) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } &&
3390          { ac_try='test -z "$ac_c_werror_flag"
3391                          || test ! -s conftest.err'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; } &&
3397          { ac_try='test -s conftest$ac_exeext'
3398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399   (eval $ac_try) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }; }; then
3403   ac_cv_lib_fl_yywrap=yes
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 ac_cv_lib_fl_yywrap=no
3409 fi
3410 rm -f conftest.err conftest.$ac_objext \
3411       conftest$ac_exeext conftest.$ac_ext
3412 LIBS=$ac_check_lib_save_LIBS
3413 fi
3414 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3415 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3416 if test $ac_cv_lib_fl_yywrap = yes; then
3417   LEXLIB="-lfl"
3418 else
3419   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3420 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3421 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   ac_check_lib_save_LIBS=$LIBS
3425 LIBS="-ll  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
3434 #ifdef __cplusplus
3435 extern "C"
3436 #endif
3437 /* We use char because int might match the return type of a gcc2
3438    builtin and then its argument prototype would still apply.  */
3439 char yywrap ();
3440 int
3441 main ()
3442 {
3443 yywrap ();
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext conftest$ac_exeext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450   (eval $ac_link) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } &&
3457          { ac_try='test -z "$ac_c_werror_flag"
3458                          || test ! -s conftest.err'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; } &&
3464          { ac_try='test -s conftest$ac_exeext'
3465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466   (eval $ac_try) 2>&5
3467   ac_status=$?
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); }; }; then
3470   ac_cv_lib_l_yywrap=yes
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 ac_cv_lib_l_yywrap=no
3476 fi
3477 rm -f conftest.err conftest.$ac_objext \
3478       conftest$ac_exeext conftest.$ac_ext
3479 LIBS=$ac_check_lib_save_LIBS
3480 fi
3481 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3482 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3483 if test $ac_cv_lib_l_yywrap = yes; then
3484   LEXLIB="-ll"
3485 fi
3486
3487 fi
3488
3489 fi
3490
3491 if test "x$LEX" != "x:"; then
3492   echo "$as_me:$LINENO: checking lex output file root" >&5
3493 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3494 if test "${ac_cv_prog_lex_root+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   # The minimal lex program is just a single line: %%.  But some broken lexes
3498 # (Solaris, I think it was) want two %% lines, so accommodate them.
3499 cat >conftest.l <<_ACEOF
3500 %%
3501 %%
3502 _ACEOF
3503 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3504   (eval $LEX conftest.l) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }
3508 if test -f lex.yy.c; then
3509   ac_cv_prog_lex_root=lex.yy
3510 elif test -f lexyy.c; then
3511   ac_cv_prog_lex_root=lexyy
3512 else
3513   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3514 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3515    { (exit 1); exit 1; }; }
3516 fi
3517 fi
3518 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3519 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3520 rm -f conftest.l
3521 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3522
3523 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3524 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3525 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   # POSIX says lex can declare yytext either as a pointer or an array; the
3529 # default is implementation-dependent. Figure out which it is, since
3530 # not all implementations provide the %pointer and %array declarations.
3531 ac_cv_prog_lex_yytext_pointer=no
3532 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3533 ac_save_LIBS=$LIBS
3534 LIBS="$LIBS $LEXLIB"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 `cat $LEX_OUTPUT_ROOT.c`
3537 _ACEOF
3538 rm -f conftest.$ac_objext conftest$ac_exeext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540   (eval $ac_link) 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } &&
3547          { ac_try='test -z "$ac_c_werror_flag"
3548                          || test ! -s conftest.err'
3549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550   (eval $ac_try) 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; } &&
3554          { ac_try='test -s conftest$ac_exeext'
3555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556   (eval $ac_try) 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; }; then
3560   ac_cv_prog_lex_yytext_pointer=yes
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 fi
3566 rm -f conftest.err conftest.$ac_objext \
3567       conftest$ac_exeext conftest.$ac_ext
3568 LIBS=$ac_save_LIBS
3569 rm -f "${LEX_OUTPUT_ROOT}.c"
3570
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3573 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3574 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3575
3576 cat >>confdefs.h <<\_ACEOF
3577 #define YYTEXT_POINTER 1
3578 _ACEOF
3579
3580 fi
3581
3582 fi
3583
3584 fi
3585 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3586 echo "${ECHO_T}$ac_cv_has_flex" >&6
3587 if test "$LEX" != "flex"; then
3588   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3589 echo "$as_me: error: flex not found but required" >&2;}
3590    { (exit 1); exit 1; }; }
3591 fi
3592
3593 echo "$as_me:$LINENO: checking " >&5
3594 echo $ECHO_N "checking ... $ECHO_C" >&6
3595 if test "${ac_cv_has_bison+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   for ac_prog in 'bison -y' byacc
3599 do
3600   # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 echo "$as_me:$LINENO: checking for $ac_word" >&5
3603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604 if test "${ac_cv_prog_YACC+set}" = set; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   if test -n "$YACC"; then
3608   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615   for ac_exec_ext in '' $ac_executable_extensions; do
3616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617     ac_cv_prog_YACC="$ac_prog"
3618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622 done
3623
3624 fi
3625 fi
3626 YACC=$ac_cv_prog_YACC
3627 if test -n "$YACC"; then
3628   echo "$as_me:$LINENO: result: $YACC" >&5
3629 echo "${ECHO_T}$YACC" >&6
3630 else
3631   echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3633 fi
3634
3635   test -n "$YACC" && break
3636 done
3637 test -n "$YACC" || YACC="yacc"
3638
3639
3640 fi
3641 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3642 echo "${ECHO_T}$ac_cv_has_bison" >&6
3643 if test "$YACC" != "bison -y"; then
3644   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3645 echo "$as_me: error: bison not found but required" >&2;}
3646    { (exit 1); exit 1; }; }
3647 else
3648   BISON=bison
3649
3650 fi
3651
3652 # Check whether --enable-shared or --disable-shared was given.
3653 if test "${enable_shared+set}" = set; then
3654   enableval="$enable_shared"
3655   p=${PACKAGE-default}
3656     case $enableval in
3657     yes) enable_shared=yes ;;
3658     no) enable_shared=no ;;
3659     *)
3660       enable_shared=no
3661       # Look at the argument we got.  We use all the common list separators.
3662       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3663       for pkg in $enableval; do
3664         IFS="$lt_save_ifs"
3665         if test "X$pkg" = "X$p"; then
3666           enable_shared=yes
3667         fi
3668       done
3669       IFS="$lt_save_ifs"
3670       ;;
3671     esac
3672 else
3673   enable_shared=yes
3674 fi;
3675
3676 # Check whether --enable-static or --disable-static was given.
3677 if test "${enable_static+set}" = set; then
3678   enableval="$enable_static"
3679   p=${PACKAGE-default}
3680     case $enableval in
3681     yes) enable_static=yes ;;
3682     no) enable_static=no ;;
3683     *)
3684      enable_static=no
3685       # Look at the argument we got.  We use all the common list separators.
3686       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687       for pkg in $enableval; do
3688         IFS="$lt_save_ifs"
3689         if test "X$pkg" = "X$p"; then
3690           enable_static=yes
3691         fi
3692       done
3693       IFS="$lt_save_ifs"
3694       ;;
3695     esac
3696 else
3697   enable_static=yes
3698 fi;
3699
3700 # Check whether --enable-fast-install or --disable-fast-install was given.
3701 if test "${enable_fast_install+set}" = set; then
3702   enableval="$enable_fast_install"
3703   p=${PACKAGE-default}
3704     case $enableval in
3705     yes) enable_fast_install=yes ;;
3706     no) enable_fast_install=no ;;
3707     *)
3708       enable_fast_install=no
3709       # Look at the argument we got.  We use all the common list separators.
3710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3711       for pkg in $enableval; do
3712         IFS="$lt_save_ifs"
3713         if test "X$pkg" = "X$p"; then
3714           enable_fast_install=yes
3715         fi
3716       done
3717       IFS="$lt_save_ifs"
3718       ;;
3719     esac
3720 else
3721   enable_fast_install=yes
3722 fi;
3723
3724 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3725 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3726 if test "${lt_cv_path_SED+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   # Loop through the user's path and test for sed and gsed.
3730 # Then use that list of sed's as ones to test for truncation.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734   IFS=$as_save_IFS
3735   test -z "$as_dir" && as_dir=.
3736   for lt_ac_prog in sed gsed; do
3737     for ac_exec_ext in '' $ac_executable_extensions; do
3738       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3739         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3740       fi
3741     done
3742   done
3743 done
3744 lt_ac_max=0
3745 lt_ac_count=0
3746 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3747 # along with /bin/sed that truncates output.
3748 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3749   test ! -f $lt_ac_sed && break
3750   cat /dev/null > conftest.in
3751   lt_ac_count=0
3752   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3753   # Check for GNU sed and select it if it is found.
3754   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3755     lt_cv_path_SED=$lt_ac_sed
3756     break
3757   fi
3758   while true; do
3759     cat conftest.in conftest.in >conftest.tmp
3760     mv conftest.tmp conftest.in
3761     cp conftest.in conftest.nl
3762     echo >>conftest.nl
3763     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3764     cmp -s conftest.out conftest.nl || break
3765     # 10000 chars as input seems more than enough
3766     test $lt_ac_count -gt 10 && break
3767     lt_ac_count=`expr $lt_ac_count + 1`
3768     if test $lt_ac_count -gt $lt_ac_max; then
3769       lt_ac_max=$lt_ac_count
3770       lt_cv_path_SED=$lt_ac_sed
3771     fi
3772   done
3773 done
3774 SED=$lt_cv_path_SED
3775
3776 fi
3777
3778 echo "$as_me:$LINENO: result: $SED" >&5
3779 echo "${ECHO_T}$SED" >&6
3780
3781 echo "$as_me:$LINENO: checking for egrep" >&5
3782 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3783 if test "${ac_cv_prog_egrep+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3787     then ac_cv_prog_egrep='grep -E'
3788     else ac_cv_prog_egrep='egrep'
3789     fi
3790 fi
3791 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3792 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3793  EGREP=$ac_cv_prog_egrep
3794
3795
3796
3797 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3798 if test "${with_gnu_ld+set}" = set; then
3799   withval="$with_gnu_ld"
3800   test "$withval" = no || with_gnu_ld=yes
3801 else
3802   with_gnu_ld=no
3803 fi;
3804 ac_prog=ld
3805 if test "$GCC" = yes; then
3806   # Check if gcc -print-prog-name=ld gives a path.
3807   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3808 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3809   case $host in
3810   *-*-mingw*)
3811     # gcc leaves a trailing carriage return which upsets mingw
3812     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3813   *)
3814     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3815   esac
3816   case $ac_prog in
3817     # Accept absolute paths.
3818     [\\/]* | ?:[\\/]*)
3819       re_direlt='/[^/][^/]*/\.\./'
3820       # Canonicalize the path of ld
3821       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3822       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3823         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3824       done
3825       test -z "$LD" && LD="$ac_prog"
3826       ;;
3827   "")
3828     # If it fails, then pretend we aren't using GCC.
3829     ac_prog=ld
3830     ;;
3831   *)
3832     # If it is relative, then search for the first ld in PATH.
3833     with_gnu_ld=unknown
3834     ;;
3835   esac
3836 elif test "$with_gnu_ld" = yes; then
3837   echo "$as_me:$LINENO: checking for GNU ld" >&5
3838 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3839 else
3840   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3841 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3842 fi
3843 if test "${lt_cv_path_LD+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   if test -z "$LD"; then
3847   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3848   for ac_dir in $PATH; do
3849     IFS="$lt_save_ifs"
3850     test -z "$ac_dir" && ac_dir=.
3851     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3852       lt_cv_path_LD="$ac_dir/$ac_prog"
3853       # Check to see if the program is GNU ld.  I'd rather use --version,
3854       # but apparently some GNU ld's only accept -v.
3855       # Break only if it was the GNU/non-GNU ld that we prefer.
3856       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3857       *GNU* | *'with BFD'*)
3858         test "$with_gnu_ld" != no && break
3859         ;;
3860       *)
3861         test "$with_gnu_ld" != yes && break
3862         ;;
3863       esac
3864     fi
3865   done
3866   IFS="$lt_save_ifs"
3867 else
3868   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3869 fi
3870 fi
3871
3872 LD="$lt_cv_path_LD"
3873 if test -n "$LD"; then
3874   echo "$as_me:$LINENO: result: $LD" >&5
3875 echo "${ECHO_T}$LD" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3882    { (exit 1); exit 1; }; }
3883 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3885 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3889 case `"$LD" -v 2>&1 </dev/null` in
3890 *GNU* | *'with BFD'*)
3891   lt_cv_prog_gnu_ld=yes
3892   ;;
3893 *)
3894   lt_cv_prog_gnu_ld=no
3895   ;;
3896 esac
3897 fi
3898 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3899 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3900 with_gnu_ld=$lt_cv_prog_gnu_ld
3901
3902
3903 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3904 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3905 if test "${lt_cv_ld_reload_flag+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   lt_cv_ld_reload_flag='-r'
3909 fi
3910 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3911 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3912 reload_flag=$lt_cv_ld_reload_flag
3913 case $reload_flag in
3914 "" | " "*) ;;
3915 *) reload_flag=" $reload_flag" ;;
3916 esac
3917 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3918
3919 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3920 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3921 if test "${lt_cv_path_NM+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   if test -n "$NM"; then
3925   # Let the user override the test.
3926   lt_cv_path_NM="$NM"
3927 else
3928   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3929   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3930     IFS="$lt_save_ifs"
3931     test -z "$ac_dir" && ac_dir=.
3932     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3933     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3934       # Check to see if the nm accepts a BSD-compat flag.
3935       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3936       #   nm: unknown option "B" ignored
3937       # Tru64's nm complains that /dev/null is an invalid object file
3938       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3939       */dev/null* | *'Invalid file or object type'*)
3940         lt_cv_path_NM="$tmp_nm -B"
3941         break
3942         ;;
3943       *)
3944         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3945         */dev/null*)
3946           lt_cv_path_NM="$tmp_nm -p"
3947           break
3948           ;;
3949         *)
3950           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3951           continue # so that we can try to find one that supports BSD flags
3952           ;;
3953         esac
3954       esac
3955     fi
3956   done
3957   IFS="$lt_save_ifs"
3958   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3959 fi
3960 fi
3961 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3962 echo "${ECHO_T}$lt_cv_path_NM" >&6
3963 NM="$lt_cv_path_NM"
3964
3965 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3966 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3967 LN_S=$as_ln_s
3968 if test "$LN_S" = "ln -s"; then
3969   echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971 else
3972   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3973 echo "${ECHO_T}no, using $LN_S" >&6
3974 fi
3975
3976 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3977 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3978 if test "${lt_cv_deplibs_check_method+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   lt_cv_file_magic_cmd='$MAGIC_CMD'
3982 lt_cv_file_magic_test_file=
3983 lt_cv_deplibs_check_method='unknown'
3984 # Need to set the preceding variable on all platforms that support
3985 # interlibrary dependencies.
3986 # 'none' -- dependencies not supported.
3987 # `unknown' -- same as none, but documents that we really don't know.
3988 # 'pass_all' -- all dependencies passed with no checks.
3989 # 'test_compile' -- check by making test program.
3990 # 'file_magic [[regex]]' -- check by looking for files in library path
3991 # which responds to the $file_magic_cmd with a given extended regex.
3992 # If you have `file' or equivalent on your system and you're not sure
3993 # whether `pass_all' will *always* work, you probably want this one.
3994
3995 case $host_os in
3996 aix4* | aix5*)
3997   lt_cv_deplibs_check_method=pass_all
3998   ;;
3999
4000 beos*)
4001   lt_cv_deplibs_check_method=pass_all
4002   ;;
4003
4004 bsdi4*)
4005   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4006   lt_cv_file_magic_cmd='/usr/bin/file -L'
4007   lt_cv_file_magic_test_file=/shlib/libc.so
4008   ;;
4009
4010 cygwin* | mingw* | pw32*)
4011   # win32_libid is a shell function defined in ltmain.sh
4012   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4013   lt_cv_file_magic_cmd='win32_libid'
4014   ;;
4015
4016 darwin* | rhapsody*)
4017   # this will be overwritten by pass_all, but leave it in just in case
4018   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4019   lt_cv_file_magic_cmd='/usr/bin/file -L'
4020   case "$host_os" in
4021   rhapsody* | darwin1.[012])
4022     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4023     ;;
4024   *) # Darwin 1.3 on
4025     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4026     ;;
4027   esac
4028   lt_cv_deplibs_check_method=pass_all
4029   ;;
4030
4031 freebsd*)
4032   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4033     case $host_cpu in
4034     i*86 )
4035       # Not sure whether the presence of OpenBSD here was a mistake.
4036       # Let's accept both of them until this is cleared up.
4037       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4038       lt_cv_file_magic_cmd=/usr/bin/file
4039       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4040       ;;
4041     esac
4042   else
4043     lt_cv_deplibs_check_method=pass_all
4044   fi
4045   ;;
4046
4047 gnu*)
4048   lt_cv_deplibs_check_method=pass_all
4049   ;;
4050
4051 hpux10.20* | hpux11*)
4052   lt_cv_file_magic_cmd=/usr/bin/file
4053   case "$host_cpu" in
4054   ia64*)
4055     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4056     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4057     ;;
4058   hppa*64*)
4059     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]'
4060     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4061     ;;
4062   *)
4063     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4064     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4065     ;;
4066   esac
4067   ;;
4068
4069 irix5* | irix6* | nonstopux*)
4070   case $host_os in
4071   irix5* | nonstopux*)
4072     # this will be overridden with pass_all, but let us keep it just in case
4073     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4074     ;;
4075   *)
4076     case $LD in
4077     *-32|*"-32 ") libmagic=32-bit;;
4078     *-n32|*"-n32 ") libmagic=N32;;
4079     *-64|*"-64 ") libmagic=64-bit;;
4080     *) libmagic=never-match;;
4081     esac
4082     # this will be overridden with pass_all, but let us keep it just in case
4083     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4084     ;;
4085   esac
4086   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4087   lt_cv_deplibs_check_method=pass_all
4088   ;;
4089
4090 # This must be Linux ELF.
4091 linux*)
4092   case $host_cpu in
4093   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4094     lt_cv_deplibs_check_method=pass_all ;;
4095   *)
4096     # glibc up to 2.1.1 does not perform some relocations on ARM
4097     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4098   esac
4099   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4100   ;;
4101
4102 netbsd*)
4103   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4105   else
4106     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4107   fi
4108   ;;
4109
4110 newos6*)
4111   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4112   lt_cv_file_magic_cmd=/usr/bin/file
4113   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4114   ;;
4115
4116 nto-qnx)
4117   lt_cv_deplibs_check_method=unknown
4118   ;;
4119
4120 openbsd*)
4121   lt_cv_file_magic_cmd=/usr/bin/file
4122   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4123   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4124     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4125   else
4126     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4127   fi
4128   ;;
4129
4130 osf3* | osf4* | osf5*)
4131   # this will be overridden with pass_all, but let us keep it just in case
4132   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4133   lt_cv_file_magic_test_file=/shlib/libc.so
4134   lt_cv_deplibs_check_method=pass_all
4135   ;;
4136
4137 sco3.2v5*)
4138   lt_cv_deplibs_check_method=pass_all
4139   ;;
4140
4141 solaris*)
4142   lt_cv_deplibs_check_method=pass_all
4143   lt_cv_file_magic_test_file=/lib/libc.so
4144   ;;
4145
4146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4147   case $host_vendor in
4148   motorola)
4149     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]'
4150     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4151     ;;
4152   ncr)
4153     lt_cv_deplibs_check_method=pass_all
4154     ;;
4155   sequent)
4156     lt_cv_file_magic_cmd='/bin/file'
4157     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4158     ;;
4159   sni)
4160     lt_cv_file_magic_cmd='/bin/file'
4161     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4162     lt_cv_file_magic_test_file=/lib/libc.so
4163     ;;
4164   siemens)
4165     lt_cv_deplibs_check_method=pass_all
4166     ;;
4167   esac
4168   ;;
4169
4170 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4171   lt_cv_deplibs_check_method=pass_all
4172   ;;
4173 esac
4174
4175 fi
4176 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4177 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4178 file_magic_cmd=$lt_cv_file_magic_cmd
4179 deplibs_check_method=$lt_cv_deplibs_check_method
4180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4181
4182
4183
4184
4185 # If no C compiler was specified, use CC.
4186 LTCC=${LTCC-"$CC"}
4187
4188 # Allow CC to be a program name with arguments.
4189 compiler=$CC
4190
4191 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4192 if test "${enable_libtool_lock+set}" = set; then
4193   enableval="$enable_libtool_lock"
4194
4195 fi;
4196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4197
4198 # Some flags need to be propagated to the compiler or linker for good
4199 # libtool support.
4200 case $host in
4201 ia64-*-hpux*)
4202   # Find out which ABI we are using.
4203   echo 'int i;' > conftest.$ac_ext
4204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205   (eval $ac_compile) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; then
4209     case `/usr/bin/file conftest.$ac_objext` in
4210     *ELF-32*)
4211       HPUX_IA64_MODE="32"
4212       ;;
4213     *ELF-64*)
4214       HPUX_IA64_MODE="64"
4215       ;;
4216     esac
4217   fi
4218   rm -rf conftest*
4219   ;;
4220 *-*-irix6*)
4221   # Find out which ABI we are using.
4222   echo '#line 4222 "configure"' > conftest.$ac_ext
4223   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224   (eval $ac_compile) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }; then
4228    if test "$lt_cv_prog_gnu_ld" = yes; then
4229     case `/usr/bin/file conftest.$ac_objext` in
4230     *32-bit*)
4231       LD="${LD-ld} -melf32bsmip"
4232       ;;
4233     *N32*)
4234       LD="${LD-ld} -melf32bmipn32"
4235       ;;
4236     *64-bit*)
4237       LD="${LD-ld} -melf64bmip"
4238       ;;
4239     esac
4240    else
4241     case `/usr/bin/file conftest.$ac_objext` in
4242     *32-bit*)
4243       LD="${LD-ld} -32"
4244       ;;
4245     *N32*)
4246       LD="${LD-ld} -n32"
4247       ;;
4248     *64-bit*)
4249       LD="${LD-ld} -64"
4250       ;;
4251     esac
4252    fi
4253   fi
4254   rm -rf conftest*
4255   ;;
4256
4257 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4258   # Find out which ABI we are using.
4259   echo 'int i;' > conftest.$ac_ext
4260   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261   (eval $ac_compile) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; then
4265     case "`/usr/bin/file conftest.o`" in
4266     *32-bit*)
4267       case $host in
4268         x86_64-*linux*)
4269           LD="${LD-ld} -m elf_i386"
4270           ;;
4271         ppc64-*linux*)
4272           LD="${LD-ld} -m elf32ppclinux"
4273           ;;
4274         s390x-*linux*)
4275           LD="${LD-ld} -m elf_s390"
4276           ;;
4277         sparc64-*linux*)
4278           LD="${LD-ld} -m elf32_sparc"
4279           ;;
4280       esac
4281       ;;
4282     *64-bit*)
4283       case $host in
4284         x86_64-*linux*)
4285           LD="${LD-ld} -m elf_x86_64"
4286           ;;
4287         ppc*-*linux*|powerpc*-*linux*)
4288           LD="${LD-ld} -m elf64ppc"
4289           ;;
4290         s390*-*linux*)
4291           LD="${LD-ld} -m elf64_s390"
4292           ;;
4293         sparc*-*linux*)
4294           LD="${LD-ld} -m elf64_sparc"
4295           ;;
4296       esac
4297       ;;
4298     esac
4299   fi
4300   rm -rf conftest*
4301   ;;
4302
4303 *-*-sco3.2v5*)
4304   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4305   SAVE_CFLAGS="$CFLAGS"
4306   CFLAGS="$CFLAGS -belf"
4307   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4308 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4309 if test "${lt_cv_cc_needs_belf+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318      cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335   (eval $ac_link) 2>conftest.er1
4336   ac_status=$?
4337   grep -v '^ *+' conftest.er1 >conftest.err
4338   rm -f conftest.er1
4339   cat conftest.err >&5
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } &&
4342          { ac_try='test -z "$ac_c_werror_flag"
4343                          || test ! -s conftest.err'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; } &&
4349          { ac_try='test -s conftest$ac_exeext'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; }; then
4355   lt_cv_cc_needs_belf=yes
4356 else
4357   echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 lt_cv_cc_needs_belf=no
4361 fi
4362 rm -f conftest.err conftest.$ac_objext \
4363       conftest$ac_exeext conftest.$ac_ext
4364      ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369
4370 fi
4371 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4373   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4374     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4375     CFLAGS="$SAVE_CFLAGS"
4376   fi
4377   ;;
4378
4379 esac
4380
4381 need_locks="$enable_libtool_lock"
4382
4383
4384
4385 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4387 if test "${ac_cv_header_stdc+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <stdlib.h>
4397 #include <stdarg.h>
4398 #include <string.h>
4399 #include <float.h>
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411   (eval $ac_compile) 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } &&
4418          { ac_try='test -z "$ac_c_werror_flag"
4419                          || test ! -s conftest.err'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; } &&
4425          { ac_try='test -s conftest.$ac_objext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_cv_header_stdc=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 ac_cv_header_stdc=no
4437 fi
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439
4440 if test $ac_cv_header_stdc = yes; then
4441   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4442   cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448 #include <string.h>
4449
4450 _ACEOF
4451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452   $EGREP "memchr" >/dev/null 2>&1; then
4453   :
4454 else
4455   ac_cv_header_stdc=no
4456 fi
4457 rm -f conftest*
4458
4459 fi
4460
4461 if test $ac_cv_header_stdc = yes; then
4462   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4463   cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <stdlib.h>
4470
4471 _ACEOF
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473   $EGREP "free" >/dev/null 2>&1; then
4474   :
4475 else
4476   ac_cv_header_stdc=no
4477 fi
4478 rm -f conftest*
4479
4480 fi
4481
4482 if test $ac_cv_header_stdc = yes; then
4483   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4484   if test "$cross_compiling" = yes; then
4485   :
4486 else
4487   cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #include <ctype.h>
4494 #if ((' ' & 0x0FF) == 0x020)
4495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4497 #else
4498 # define ISLOWER(c) \
4499                    (('a' <= (c) && (c) <= 'i') \
4500                      || ('j' <= (c) && (c) <= 'r') \
4501                      || ('s' <= (c) && (c) <= 'z'))
4502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4503 #endif
4504
4505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4506 int
4507 main ()
4508 {
4509   int i;
4510   for (i = 0; i < 256; i++)
4511     if (XOR (islower (i), ISLOWER (i))
4512         || toupper (i) != TOUPPER (i))
4513       exit(2);
4514   exit (0);
4515 }
4516 _ACEOF
4517 rm -f conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519   (eval $ac_link) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   :
4529 else
4530   echo "$as_me: program exited with status $ac_status" >&5
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ( exit $ac_status )
4535 ac_cv_header_stdc=no
4536 fi
4537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 fi
4540 fi
4541 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4542 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4543 if test $ac_cv_header_stdc = yes; then
4544
4545 cat >>confdefs.h <<\_ACEOF
4546 #define STDC_HEADERS 1
4547 _ACEOF
4548
4549 fi
4550
4551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4562                   inttypes.h stdint.h unistd.h
4563 do
4564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4565 echo "$as_me:$LINENO: checking for $ac_header" >&5
4566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 $ac_includes_default
4577
4578 #include <$ac_header>
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } &&
4589          { ac_try='test -z "$ac_c_werror_flag"
4590                          || test ! -s conftest.err'
4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592   (eval $ac_try) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; } &&
4596          { ac_try='test -s conftest.$ac_objext'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; }; then
4602   eval "$as_ac_Header=yes"
4603 else
4604   echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 eval "$as_ac_Header=no"
4608 fi
4609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614   cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616 _ACEOF
4617
4618 fi
4619
4620 done
4621
4622
4623
4624 for ac_header in dlfcn.h
4625 do
4626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4628   echo "$as_me:$LINENO: checking for $ac_header" >&5
4629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 fi
4633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4635 else
4636   # Is the header compilable?
4637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 $ac_includes_default
4646 #include <$ac_header>
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650   (eval $ac_compile) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } &&
4657          { ac_try='test -z "$ac_c_werror_flag"
4658                          || test ! -s conftest.err'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest.$ac_objext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_header_compiler=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_header_compiler=no
4676 fi
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679 echo "${ECHO_T}$ac_header_compiler" >&6
4680
4681 # Is the header present?
4682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h.  */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h.  */
4690 #include <$ac_header>
4691 _ACEOF
4692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } >/dev/null; then
4700   if test -s conftest.err; then
4701     ac_cpp_err=$ac_c_preproc_warn_flag
4702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4703   else
4704     ac_cpp_err=
4705   fi
4706 else
4707   ac_cpp_err=yes
4708 fi
4709 if test -z "$ac_cpp_err"; then
4710   ac_header_preproc=yes
4711 else
4712   echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715   ac_header_preproc=no
4716 fi
4717 rm -f conftest.err conftest.$ac_ext
4718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4719 echo "${ECHO_T}$ac_header_preproc" >&6
4720
4721 # So?  What about this header?
4722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4723   yes:no: )
4724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4728     ac_header_preproc=yes
4729     ;;
4730   no:yes:* )
4731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4743     (
4744       cat <<\_ASBOX
4745 ## ----------------------------------- ##
4746 ## Report this to llvmbugs@cs.uiuc.edu ##
4747 ## ----------------------------------- ##
4748 _ASBOX
4749     ) |
4750       sed "s/^/$as_me: WARNING:     /" >&2
4751     ;;
4752 esac
4753 echo "$as_me:$LINENO: checking for $ac_header" >&5
4754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   eval "$as_ac_Header=\$ac_header_preproc"
4759 fi
4760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762
4763 fi
4764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4765   cat >>confdefs.h <<_ACEOF
4766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4767 _ACEOF
4768
4769 fi
4770
4771 done
4772
4773 ac_ext=cc
4774 ac_cpp='$CXXCPP $CPPFLAGS'
4775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4778 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4779 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4780 if test -z "$CXXCPP"; then
4781   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784       # Double quotes because CXXCPP needs to be expanded
4785     for CXXCPP in "$CXX -E" "/lib/cpp"
4786     do
4787       ac_preproc_ok=false
4788 for ac_cxx_preproc_warn_flag in '' yes
4789 do
4790   # Use a header file that comes with gcc, so configuring glibc
4791   # with a fresh cross-compiler works.
4792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4793   # <limits.h> exists even on freestanding compilers.
4794   # On the NeXT, cc -E runs the code through the compiler's parser,
4795   # not just through cpp. "Syntax error" is here to catch this case.
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 #ifdef __STDC__
4803 # include <limits.h>
4804 #else
4805 # include <assert.h>
4806 #endif
4807                      Syntax error
4808 _ACEOF
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } >/dev/null; then
4817   if test -s conftest.err; then
4818     ac_cpp_err=$ac_cxx_preproc_warn_flag
4819     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4820   else
4821     ac_cpp_err=
4822   fi
4823 else
4824   ac_cpp_err=yes
4825 fi
4826 if test -z "$ac_cpp_err"; then
4827   :
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832   # Broken: fails on valid input.
4833 continue
4834 fi
4835 rm -f conftest.err conftest.$ac_ext
4836
4837   # OK, works on sane cases.  Now check whether non-existent headers
4838   # can be detected and how.
4839   cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <ac_nonexistent.h>
4846 _ACEOF
4847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849   ac_status=$?
4850   grep -v '^ *+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } >/dev/null; then
4855   if test -s conftest.err; then
4856     ac_cpp_err=$ac_cxx_preproc_warn_flag
4857     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4858   else
4859     ac_cpp_err=
4860   fi
4861 else
4862   ac_cpp_err=yes
4863 fi
4864 if test -z "$ac_cpp_err"; then
4865   # Broken: success on invalid input.
4866 continue
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871   # Passes both tests.
4872 ac_preproc_ok=:
4873 break
4874 fi
4875 rm -f conftest.err conftest.$ac_ext
4876
4877 done
4878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4879 rm -f conftest.err conftest.$ac_ext
4880 if $ac_preproc_ok; then
4881   break
4882 fi
4883
4884     done
4885     ac_cv_prog_CXXCPP=$CXXCPP
4886
4887 fi
4888   CXXCPP=$ac_cv_prog_CXXCPP
4889 else
4890   ac_cv_prog_CXXCPP=$CXXCPP
4891 fi
4892 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4893 echo "${ECHO_T}$CXXCPP" >&6
4894 ac_preproc_ok=false
4895 for ac_cxx_preproc_warn_flag in '' yes
4896 do
4897   # Use a header file that comes with gcc, so configuring glibc
4898   # with a fresh cross-compiler works.
4899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900   # <limits.h> exists even on freestanding compilers.
4901   # On the NeXT, cc -E runs the code through the compiler's parser,
4902   # not just through cpp. "Syntax error" is here to catch this case.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #ifdef __STDC__
4910 # include <limits.h>
4911 #else
4912 # include <assert.h>
4913 #endif
4914                      Syntax error
4915 _ACEOF
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_cxx_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   :
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939   # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944   # OK, works on sane cases.  Now check whether non-existent headers
4945   # can be detected and how.
4946   cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } >/dev/null; then
4962   if test -s conftest.err; then
4963     ac_cpp_err=$ac_cxx_preproc_warn_flag
4964     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4965   else
4966     ac_cpp_err=
4967   fi
4968 else
4969   ac_cpp_err=yes
4970 fi
4971 if test -z "$ac_cpp_err"; then
4972   # Broken: success on invalid input.
4973 continue
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978   # Passes both tests.
4979 ac_preproc_ok=:
4980 break
4981 fi
4982 rm -f conftest.err conftest.$ac_ext
4983
4984 done
4985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4986 rm -f conftest.err conftest.$ac_ext
4987 if $ac_preproc_ok; then
4988   :
4989 else
4990   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4991 See \`config.log' for more details." >&5
4992 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4993 See \`config.log' for more details." >&2;}
4994    { (exit 1); exit 1; }; }
4995 fi
4996
4997 ac_ext=cc
4998 ac_cpp='$CXXCPP $CPPFLAGS'
4999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5002
5003
5004 ac_ext=f
5005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5008 if test -n "$ac_tool_prefix"; then
5009   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5010   do
5011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_F77+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   if test -n "$F77"; then
5019   ac_cv_prog_F77="$F77" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035 fi
5036 fi
5037 F77=$ac_cv_prog_F77
5038 if test -n "$F77"; then
5039   echo "$as_me:$LINENO: result: $F77" >&5
5040 echo "${ECHO_T}$F77" >&6
5041 else
5042   echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5044 fi
5045
5046     test -n "$F77" && break
5047   done
5048 fi
5049 if test -z "$F77"; then
5050   ac_ct_F77=$F77
5051   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5052 do
5053   # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   if test -n "$ac_ct_F77"; then
5061   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068   for ac_exec_ext in '' $ac_executable_extensions; do
5069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070     ac_cv_prog_ac_ct_F77="$ac_prog"
5071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075 done
5076
5077 fi
5078 fi
5079 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5080 if test -n "$ac_ct_F77"; then
5081   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5082 echo "${ECHO_T}$ac_ct_F77" >&6
5083 else
5084   echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5086 fi
5087
5088   test -n "$ac_ct_F77" && break
5089 done
5090
5091   F77=$ac_ct_F77
5092 fi
5093
5094
5095 # Provide some information about the compiler.
5096 echo "$as_me:5096:" \
5097      "checking for Fortran 77 compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5100   (eval $ac_compiler --version </dev/null >&5) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }
5104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5105   (eval $ac_compiler -v </dev/null >&5) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }
5109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5110   (eval $ac_compiler -V </dev/null >&5) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }
5114 rm -f a.out
5115
5116 # If we don't use `.F' as extension, the preprocessor is not run on the
5117 # input file.  (Note that this only needs to work for GNU compilers.)
5118 ac_save_ext=$ac_ext
5119 ac_ext=F
5120 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5121 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5122 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   cat >conftest.$ac_ext <<_ACEOF
5126       program main
5127 #ifndef __GNUC__
5128        choke me
5129 #endif
5130
5131       end
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135   (eval $ac_compile) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -z "$ac_f77_werror_flag"
5143                          || test ! -s conftest.err'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; } &&
5149          { ac_try='test -s conftest.$ac_objext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   ac_compiler_gnu=yes
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_compiler_gnu=no
5161 fi
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5164
5165 fi
5166 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5167 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5168 ac_ext=$ac_save_ext
5169 ac_test_FFLAGS=${FFLAGS+set}
5170 ac_save_FFLAGS=$FFLAGS
5171 FFLAGS=
5172 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5173 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5174 if test "${ac_cv_prog_f77_g+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   FFLAGS=-g
5178 cat >conftest.$ac_ext <<_ACEOF
5179       program main
5180
5181       end
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185   (eval $ac_compile) 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } &&
5192          { ac_try='test -z "$ac_f77_werror_flag"
5193                          || test ! -s conftest.err'
5194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195   (eval $ac_try) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; } &&
5199          { ac_try='test -s conftest.$ac_objext'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; }; then
5205   ac_cv_prog_f77_g=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_prog_f77_g=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213
5214 fi
5215 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5216 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5217 if test "$ac_test_FFLAGS" = set; then
5218   FFLAGS=$ac_save_FFLAGS
5219 elif test $ac_cv_prog_f77_g = yes; then
5220   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5221     FFLAGS="-g -O2"
5222   else
5223     FFLAGS="-g"
5224   fi
5225 else
5226   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5227     FFLAGS="-O2"
5228   else
5229     FFLAGS=
5230   fi
5231 fi
5232
5233 G77=`test $ac_compiler_gnu = yes && echo yes`
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241
5242 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5243
5244 # find the maximum length of command line arguments
5245 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5246 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5247 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250     i=0
5251   testring="ABCD"
5252
5253   case $build_os in
5254   msdosdjgpp*)
5255     # On DJGPP, this test can blow up pretty badly due to problems in libc
5256     # (any single argument exceeding 2000 bytes causes a buffer overrun
5257     # during glob expansion).  Even if it were fixed, the result of this
5258     # check would be larger than it should be.
5259     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5260     ;;
5261
5262   gnu*)
5263     # Under GNU Hurd, this test is not required because there is
5264     # no limit to the length of command line arguments.
5265     # Libtool will interpret -1 as no limit whatsoever
5266     lt_cv_sys_max_cmd_len=-1;
5267     ;;
5268
5269   cygwin* | mingw*)
5270     # On Win9x/ME, this test blows up -- it succeeds, but takes
5271     # about 5 minutes as the teststring grows exponentially.
5272     # Worse, since 9x/ME are not pre-emptively multitasking,
5273     # you end up with a "frozen" computer, even though with patience
5274     # the test eventually succeeds (with a max line length of 256k).
5275     # Instead, let's just punt: use the minimum linelength reported by
5276     # all of the supported platforms: 8192 (on NT/2K/XP).
5277     lt_cv_sys_max_cmd_len=8192;
5278     ;;
5279
5280  *)
5281     # If test is not a shell built-in, we'll probably end up computing a
5282     # maximum length that is only half of the actual maximum length, but
5283     # we can't tell.
5284     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5285                = "XX$testring") >/dev/null 2>&1 &&
5286             new_result=`expr "X$testring" : ".*" 2>&1` &&
5287             lt_cv_sys_max_cmd_len=$new_result &&
5288             test $i != 17 # 1/2 MB should be enough
5289     do
5290       i=`expr $i + 1`
5291       testring=$testring$testring
5292     done
5293     testring=
5294     # Add a significant safety factor because C++ compilers can tack on massive
5295     # amounts of additional arguments before passing them to the linker.
5296     # It appears as though 1/2 is a usable value.
5297     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5298     ;;
5299   esac
5300
5301 fi
5302
5303 if test -n $lt_cv_sys_max_cmd_len ; then
5304   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5305 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5306 else
5307   echo "$as_me:$LINENO: result: none" >&5
5308 echo "${ECHO_T}none" >&6
5309 fi
5310
5311
5312
5313
5314 # Check for command to grab the raw symbol name followed by C symbol from nm.
5315 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5316 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5317 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320
5321 # These are sane defaults that work on at least a few old systems.
5322 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5323
5324 # Character class describing NM global symbol codes.
5325 symcode='[BCDEGRST]'
5326
5327 # Regexp to match symbols that can be accessed directly from C.
5328 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5329
5330 # Transform the above into a raw symbol and a C symbol.
5331 symxfrm='\1 \2\3 \3'
5332
5333 # Transform an extracted symbol line into a proper C declaration
5334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5335
5336 # Transform an extracted symbol line into symbol name and symbol address
5337 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'"
5338
5339 # Define system-specific variables.
5340 case $host_os in
5341 aix*)
5342   symcode='[BCDT]'
5343   ;;
5344 cygwin* | mingw* | pw32*)
5345   symcode='[ABCDGISTW]'
5346   ;;
5347 hpux*) # Its linker distinguishes data from code symbols
5348   if test "$host_cpu" = ia64; then
5349     symcode='[ABCDEGRST]'
5350   fi
5351   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5352   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'"
5353   ;;
5354 irix* | nonstopux*)
5355   symcode='[BCDEGRST]'
5356   ;;
5357 osf*)
5358   symcode='[BCDEGQRST]'
5359   ;;
5360 solaris* | sysv5*)
5361   symcode='[BDT]'
5362   ;;
5363 sysv4)
5364   symcode='[DFNSTU]'
5365   ;;
5366 esac
5367
5368 # Handle CRLF in mingw tool chain
5369 opt_cr=
5370 case $build_os in
5371 mingw*)
5372   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5373   ;;
5374 esac
5375
5376 # If we're using GNU nm, then use its standard symbol codes.
5377 case `$NM -V 2>&1` in
5378 *GNU* | *'with BFD'*)
5379   symcode='[ABCDGISTW]' ;;
5380 esac
5381
5382 # Try without a prefix undercore, then with it.
5383 for ac_symprfx in "" "_"; do
5384
5385   # Write the raw and C identifiers.
5386   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5387
5388   # Check to see that the pipe works correctly.
5389   pipe_works=no
5390
5391   rm -f conftest*
5392   cat > conftest.$ac_ext <<EOF
5393 #ifdef __cplusplus
5394 extern "C" {
5395 #endif
5396 char nm_test_var;
5397 void nm_test_func(){}
5398 #ifdef __cplusplus
5399 }
5400 #endif
5401 int main(){nm_test_var='a';nm_test_func();return(0);}
5402 EOF
5403
5404   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405   (eval $ac_compile) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; then
5409     # Now try to grab the symbols.
5410     nlist=conftest.nm
5411     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5412   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } && test -s "$nlist"; then
5416       # Try sorting and uniquifying the output.
5417       if sort "$nlist" | uniq > "$nlist"T; then
5418         mv -f "$nlist"T "$nlist"
5419       else
5420         rm -f "$nlist"T
5421       fi
5422
5423       # Make sure that we snagged all the symbols we need.
5424       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5425         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5426           cat <<EOF > conftest.$ac_ext
5427 #ifdef __cplusplus
5428 extern "C" {
5429 #endif
5430
5431 EOF
5432           # Now generate the symbol file.
5433           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5434
5435           cat <<EOF >> conftest.$ac_ext
5436 #if defined (__STDC__) && __STDC__
5437 # define lt_ptr_t void *
5438 #else
5439 # define lt_ptr_t char *
5440 # define const
5441 #endif
5442
5443 /* The mapping between symbol names and symbols. */
5444 const struct {
5445   const char *name;
5446   lt_ptr_t address;
5447 }
5448 lt_preloaded_symbols[] =
5449 {
5450 EOF
5451           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5452           cat <<\EOF >> conftest.$ac_ext
5453   {0, (lt_ptr_t) 0}
5454 };
5455
5456 #ifdef __cplusplus
5457 }
5458 #endif
5459 EOF
5460           # Now try linking the two files.
5461           mv conftest.$ac_objext conftstm.$ac_objext
5462           lt_save_LIBS="$LIBS"
5463           lt_save_CFLAGS="$CFLAGS"
5464           LIBS="conftstm.$ac_objext"
5465           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5466           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467   (eval $ac_link) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5471             pipe_works=yes
5472           fi
5473           LIBS="$lt_save_LIBS"
5474           CFLAGS="$lt_save_CFLAGS"
5475         else
5476           echo "cannot find nm_test_func in $nlist" >&5
5477         fi
5478       else
5479         echo "cannot find nm_test_var in $nlist" >&5
5480       fi
5481     else
5482       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5483     fi
5484   else
5485     echo "$progname: failed program was:" >&5
5486     cat conftest.$ac_ext >&5
5487   fi
5488   rm -f conftest* conftst*
5489
5490   # Do not use the global_symbol_pipe unless it works.
5491   if test "$pipe_works" = yes; then
5492     break
5493   else
5494     lt_cv_sys_global_symbol_pipe=
5495   fi
5496 done
5497
5498 fi
5499
5500 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5501   lt_cv_sys_global_symbol_to_cdecl=
5502 fi
5503 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5504   echo "$as_me:$LINENO: result: failed" >&5
5505 echo "${ECHO_T}failed" >&6
5506 else
5507   echo "$as_me:$LINENO: result: ok" >&5
5508 echo "${ECHO_T}ok" >&6
5509 fi
5510
5511 echo "$as_me:$LINENO: checking for objdir" >&5
5512 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5513 if test "${lt_cv_objdir+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   rm -f .libs 2>/dev/null
5517 mkdir .libs 2>/dev/null
5518 if test -d .libs; then
5519   lt_cv_objdir=.libs
5520 else
5521   # MS-DOS does not allow filenames that begin with a dot.
5522   lt_cv_objdir=_libs
5523 fi
5524 rmdir .libs 2>/dev/null
5525 fi
5526 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5527 echo "${ECHO_T}$lt_cv_objdir" >&6
5528 objdir=$lt_cv_objdir
5529
5530
5531
5532
5533
5534 case $host_os in
5535 aix3*)
5536   # AIX sometimes has problems with the GCC collect2 program.  For some
5537   # reason, if we set the COLLECT_NAMES environment variable, the problems
5538   # vanish in a puff of smoke.
5539   if test "X${COLLECT_NAMES+set}" != Xset; then
5540     COLLECT_NAMES=
5541     export COLLECT_NAMES
5542   fi
5543   ;;
5544 esac
5545
5546 # Sed substitution that helps us do robust quoting.  It backslashifies
5547 # metacharacters that are still active within double-quoted strings.
5548 Xsed='sed -e s/^X//'
5549 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5550
5551 # Same as above, but do not quote variable references.
5552 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5553
5554 # Sed substitution to delay expansion of an escaped shell variable in a
5555 # double_quote_subst'ed string.
5556 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5557
5558 # Sed substitution to avoid accidental globbing in evaled expressions
5559 no_glob_subst='s/\*/\\\*/g'
5560
5561 # Constants:
5562 rm="rm -f"
5563
5564 # Global variables:
5565 default_ofile=mklib
5566 can_build_shared=yes
5567
5568 # All known linkers require a `.a' archive for static linking (except M$VC,
5569 # which needs '.lib').
5570 libext=a
5571 ltmain="$ac_aux_dir/ltmain.sh"
5572 ofile="$default_ofile"
5573 with_gnu_ld="$lt_cv_prog_gnu_ld"
5574
5575 if test -n "$ac_tool_prefix"; then
5576   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}ar; ac_word=$2
5578 echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580 if test "${ac_cv_prog_AR+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   if test -n "$AR"; then
5584   ac_cv_prog_AR="$AR" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591   for ac_exec_ext in '' $ac_executable_extensions; do
5592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_prog_AR="${ac_tool_prefix}ar"
5594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598 done
5599
5600 fi
5601 fi
5602 AR=$ac_cv_prog_AR
5603 if test -n "$AR"; then
5604   echo "$as_me:$LINENO: result: $AR" >&5
5605 echo "${ECHO_T}$AR" >&6
5606 else
5607   echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5609 fi
5610
5611 fi
5612 if test -z "$ac_cv_prog_AR"; then
5613   ac_ct_AR=$AR
5614   # Extract the first word of "ar", so it can be a program name with args.
5615 set dummy ar; ac_word=$2
5616 echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   if test -n "$ac_ct_AR"; then
5622   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629   for ac_exec_ext in '' $ac_executable_extensions; do
5630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631     ac_cv_prog_ac_ct_AR="ar"
5632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636 done
5637
5638   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5639 fi
5640 fi
5641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5642 if test -n "$ac_ct_AR"; then
5643   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5644 echo "${ECHO_T}$ac_ct_AR" >&6
5645 else
5646   echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6
5648 fi
5649
5650   AR=$ac_ct_AR
5651 else
5652   AR="$ac_cv_prog_AR"
5653 fi
5654
5655 if test -n "$ac_tool_prefix"; then
5656   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5658 echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660 if test "${ac_cv_prog_RANLIB+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   if test -n "$RANLIB"; then
5664   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671   for ac_exec_ext in '' $ac_executable_extensions; do
5672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678 done
5679
5680 fi
5681 fi
5682 RANLIB=$ac_cv_prog_RANLIB
5683 if test -n "$RANLIB"; then
5684   echo "$as_me:$LINENO: result: $RANLIB" >&5
5685 echo "${ECHO_T}$RANLIB" >&6
5686 else
5687   echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6
5689 fi
5690
5691 fi
5692 if test -z "$ac_cv_prog_RANLIB"; then
5693   ac_ct_RANLIB=$RANLIB
5694   # Extract the first word of "ranlib", so it can be a program name with args.
5695 set dummy ranlib; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   if test -n "$ac_ct_RANLIB"; then
5702   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709   for ac_exec_ext in '' $ac_executable_extensions; do
5710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711     ac_cv_prog_ac_ct_RANLIB="ranlib"
5712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716 done
5717
5718   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5719 fi
5720 fi
5721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5722 if test -n "$ac_ct_RANLIB"; then
5723   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5724 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5725 else
5726   echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5728 fi
5729
5730   RANLIB=$ac_ct_RANLIB
5731 else
5732   RANLIB="$ac_cv_prog_RANLIB"
5733 fi
5734
5735 if test -n "$ac_tool_prefix"; then
5736   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5737 set dummy ${ac_tool_prefix}strip; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_STRIP+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   if test -n "$STRIP"; then
5744   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751   for ac_exec_ext in '' $ac_executable_extensions; do
5752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758 done
5759
5760 fi
5761 fi
5762 STRIP=$ac_cv_prog_STRIP
5763 if test -n "$STRIP"; then
5764   echo "$as_me:$LINENO: result: $STRIP" >&5
5765 echo "${ECHO_T}$STRIP" >&6
5766 else
5767   echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5769 fi
5770
5771 fi
5772 if test -z "$ac_cv_prog_STRIP"; then
5773   ac_ct_STRIP=$STRIP
5774   # Extract the first word of "strip", so it can be a program name with args.
5775 set dummy strip; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -n "$ac_ct_STRIP"; then
5782   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_prog_ac_ct_STRIP="strip"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797
5798   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5799 fi
5800 fi
5801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5802 if test -n "$ac_ct_STRIP"; then
5803   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5804 echo "${ECHO_T}$ac_ct_STRIP" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809
5810   STRIP=$ac_ct_STRIP
5811 else
5812   STRIP="$ac_cv_prog_STRIP"
5813 fi
5814
5815
5816 old_CC="$CC"
5817 old_CFLAGS="$CFLAGS"
5818
5819 # Set sane defaults for various variables
5820 test -z "$AR" && AR=ar
5821 test -z "$AR_FLAGS" && AR_FLAGS=cru
5822 test -z "$AS" && AS=as
5823 test -z "$CC" && CC=cc
5824 test -z "$LTCC" && LTCC=$CC
5825 test -z "$DLLTOOL" && DLLTOOL=dlltool
5826 test -z "$LD" && LD=ld
5827 test -z "$LN_S" && LN_S="ln -s"
5828 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5829 test -z "$NM" && NM=nm
5830 test -z "$SED" && SED=sed
5831 test -z "$OBJDUMP" && OBJDUMP=objdump
5832 test -z "$RANLIB" && RANLIB=:
5833 test -z "$STRIP" && STRIP=:
5834 test -z "$ac_objext" && ac_objext=o
5835
5836 # Determine commands to create old-style static archives.
5837 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5838 old_postinstall_cmds='chmod 644 $oldlib'
5839 old_postuninstall_cmds=
5840
5841 if test -n "$RANLIB"; then
5842   case $host_os in
5843   openbsd*)
5844     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5845     ;;
5846   *)
5847     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5848     ;;
5849   esac
5850   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5851 fi
5852
5853 # Only perform the check for file, if the check method requires it
5854 case $deplibs_check_method in
5855 file_magic*)
5856   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5857     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5858 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   case $MAGIC_CMD in
5863 [\\/*] |  ?:[\\/]*)
5864   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5865   ;;
5866 *)
5867   lt_save_MAGIC_CMD="$MAGIC_CMD"
5868   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5870   for ac_dir in $ac_dummy; do
5871     IFS="$lt_save_ifs"
5872     test -z "$ac_dir" && ac_dir=.
5873     if test -f $ac_dir/${ac_tool_prefix}file; then
5874       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5875       if test -n "$file_magic_test_file"; then
5876         case $deplibs_check_method in
5877         "file_magic "*)
5878           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5879           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5880           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5881             $EGREP "$file_magic_regex" > /dev/null; then
5882             :
5883           else
5884             cat <<EOF 1>&2
5885
5886 *** Warning: the command libtool uses to detect shared libraries,
5887 *** $file_magic_cmd, produces output that libtool cannot recognize.
5888 *** The result is that libtool may fail to recognize shared libraries
5889 *** as such.  This will affect the creation of libtool libraries that
5890 *** depend on shared libraries, but programs linked with such libtool
5891 *** libraries will work regardless of this problem.  Nevertheless, you
5892 *** may want to report the problem to your system manager and/or to
5893 *** bug-libtool@gnu.org
5894
5895 EOF
5896           fi ;;
5897         esac
5898       fi
5899       break
5900     fi
5901   done
5902   IFS="$lt_save_ifs"
5903   MAGIC_CMD="$lt_save_MAGIC_CMD"
5904   ;;
5905 esac
5906 fi
5907
5908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909 if test -n "$MAGIC_CMD"; then
5910   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5911 echo "${ECHO_T}$MAGIC_CMD" >&6
5912 else
5913   echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5915 fi
5916
5917 if test -z "$lt_cv_path_MAGIC_CMD"; then
5918   if test -n "$ac_tool_prefix"; then
5919     echo "$as_me:$LINENO: checking for file" >&5
5920 echo $ECHO_N "checking for file... $ECHO_C" >&6
5921 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   case $MAGIC_CMD in
5925 [\\/*] |  ?:[\\/]*)
5926   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5927   ;;
5928 *)
5929   lt_save_MAGIC_CMD="$MAGIC_CMD"
5930   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5932   for ac_dir in $ac_dummy; do
5933     IFS="$lt_save_ifs"
5934     test -z "$ac_dir" && ac_dir=.
5935     if test -f $ac_dir/file; then
5936       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5937       if test -n "$file_magic_test_file"; then
5938         case $deplibs_check_method in
5939         "file_magic "*)
5940           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5941           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5942           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5943             $EGREP "$file_magic_regex" > /dev/null; then
5944             :
5945           else
5946             cat <<EOF 1>&2
5947
5948 *** Warning: the command libtool uses to detect shared libraries,
5949 *** $file_magic_cmd, produces output that libtool cannot recognize.
5950 *** The result is that libtool may fail to recognize shared libraries
5951 *** as such.  This will affect the creation of libtool libraries that
5952 *** depend on shared libraries, but programs linked with such libtool
5953 *** libraries will work regardless of this problem.  Nevertheless, you
5954 *** may want to report the problem to your system manager and/or to
5955 *** bug-libtool@gnu.org
5956
5957 EOF
5958           fi ;;
5959         esac
5960       fi
5961       break
5962     fi
5963   done
5964   IFS="$lt_save_ifs"
5965   MAGIC_CMD="$lt_save_MAGIC_CMD"
5966   ;;
5967 esac
5968 fi
5969
5970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971 if test -n "$MAGIC_CMD"; then
5972   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5973 echo "${ECHO_T}$MAGIC_CMD" >&6
5974 else
5975   echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5977 fi
5978
5979   else
5980     MAGIC_CMD=:
5981   fi
5982 fi
5983
5984   fi
5985   ;;
5986 esac
5987
5988 enable_dlopen=no
5989 enable_win32_dll=no
5990
5991 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5992 if test "${enable_libtool_lock+set}" = set; then
5993   enableval="$enable_libtool_lock"
5994
5995 fi;
5996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5997
5998
5999 # Check whether --with-pic or --without-pic was given.
6000 if test "${with_pic+set}" = set; then
6001   withval="$with_pic"
6002   pic_mode="$withval"
6003 else
6004   pic_mode=default
6005 fi;
6006 test -z "$pic_mode" && pic_mode=default
6007
6008 # Use C for the default configuration in the libtool script
6009 tagname=
6010 lt_save_CC="$CC"
6011 ac_ext=c
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
6017
6018 # Source file extension for C test sources.
6019 ac_ext=c
6020
6021 # Object file extension for compiled C test sources.
6022 objext=o
6023 objext=$objext
6024
6025 # Code to be used in simple compile tests
6026 lt_simple_compile_test_code="int some_variable = 0;\n"
6027
6028 # Code to be used in simple link tests
6029 lt_simple_link_test_code='int main(){return(0);}\n'
6030
6031
6032 # If no C compiler was specified, use CC.
6033 LTCC=${LTCC-"$CC"}
6034
6035 # Allow CC to be a program name with arguments.
6036 compiler=$CC
6037
6038
6039 #
6040 # Check for any special shared library compilation flags.
6041 #
6042 lt_prog_cc_shlib=
6043 if test "$GCC" = no; then
6044   case $host_os in
6045   sco3.2v5*)
6046     lt_prog_cc_shlib='-belf'
6047     ;;
6048   esac
6049 fi
6050 if test -n "$lt_prog_cc_shlib"; then
6051   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6052 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6053   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6054   else
6055     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6056 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6057     lt_cv_prog_cc_can_build_shared=no
6058   fi
6059 fi
6060
6061
6062 #
6063 # Check to make sure the static flag actually works.
6064 #
6065 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6066 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6067 if test "${lt_prog_compiler_static_works+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   lt_prog_compiler_static_works=no
6071    save_LDFLAGS="$LDFLAGS"
6072    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6073    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6074    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6075      # The compiler can only warn and ignore the option if not recognized
6076      # So say no if there are warnings
6077      if test -s conftest.err; then
6078        # Append any errors to the config.log.
6079        cat conftest.err 1>&5
6080      else
6081        lt_prog_compiler_static_works=yes
6082      fi
6083    fi
6084    $rm conftest*
6085    LDFLAGS="$save_LDFLAGS"
6086
6087 fi
6088 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6089 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6090
6091 if test x"$lt_prog_compiler_static_works" = xyes; then
6092     :
6093 else
6094     lt_prog_compiler_static=
6095 fi
6096
6097
6098
6099 ## CAVEAT EMPTOR:
6100 ## There is no encapsulation within the following macros, do not change
6101 ## the running order or otherwise move them around unless you know exactly
6102 ## what you are doing...
6103
6104 lt_prog_compiler_no_builtin_flag=
6105
6106 if test "$GCC" = yes; then
6107   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6108
6109   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6110 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6111 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   lt_cv_prog_compiler_rtti_exceptions=no
6115   ac_outfile=conftest.$ac_objext
6116    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6117    lt_compiler_flag="-fno-rtti -fno-exceptions"
6118    # Insert the option either (1) after the last *FLAGS variable, or
6119    # (2) before a word containing "conftest.", or (3) at the end.
6120    # Note that $ac_compile itself does not contain backslashes and begins
6121    # with a dollar sign (not a hyphen), so the echo should work correctly.
6122    # The option is referenced via a variable to avoid confusing sed.
6123    lt_compile=`echo "$ac_compile" | $SED \
6124    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6126    -e 's:$: $lt_compiler_flag:'`
6127    (eval echo "\"\$as_me:6127: $lt_compile\"" >&5)
6128    (eval "$lt_compile" 2>conftest.err)
6129    ac_status=$?
6130    cat conftest.err >&5
6131    echo "$as_me:6131: \$? = $ac_status" >&5
6132    if (exit $ac_status) && test -s "$ac_outfile"; then
6133      # The compiler can only warn and ignore the option if not recognized
6134      # So say no if there are warnings
6135      if test ! -s conftest.err; then
6136        lt_cv_prog_compiler_rtti_exceptions=yes
6137      fi
6138    fi
6139    $rm conftest*
6140
6141 fi
6142 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6143 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6144
6145 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6146     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6147 else
6148     :
6149 fi
6150
6151 fi
6152
6153 lt_prog_compiler_wl=
6154 lt_prog_compiler_pic=
6155 lt_prog_compiler_static=
6156
6157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6159
6160   if test "$GCC" = yes; then
6161     lt_prog_compiler_wl='-Wl,'
6162     lt_prog_compiler_static='-static'
6163
6164     case $host_os in
6165       aix*)
6166       # All AIX code is PIC.
6167       if test "$host_cpu" = ia64; then
6168         # AIX 5 now supports IA64 processor
6169         lt_prog_compiler_static='-Bstatic'
6170       fi
6171       ;;
6172
6173     amigaos*)
6174       # FIXME: we need at least 68020 code to build shared libraries, but
6175       # adding the `-m68020' flag to GCC prevents building anything better,
6176       # like `-m68040'.
6177       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6178       ;;
6179
6180     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6181       # PIC is the default for these OSes.
6182       ;;
6183
6184     mingw* | pw32* | os2*)
6185       # This hack is so that the source file can tell whether it is being
6186       # built for inclusion in a dll (and should export symbols for example).
6187       lt_prog_compiler_pic='-DDLL_EXPORT'
6188       ;;
6189
6190     darwin* | rhapsody*)
6191       # PIC is the default on this platform
6192       # Common symbols not allowed in MH_DYLIB files
6193       lt_prog_compiler_pic='-fno-common'
6194       ;;
6195
6196     msdosdjgpp*)
6197       # Just because we use GCC doesn't mean we suddenly get shared libraries
6198       # on systems that don't support them.
6199       lt_prog_compiler_can_build_shared=no
6200       enable_shared=no
6201       ;;
6202
6203     sysv4*MP*)
6204       if test -d /usr/nec; then
6205         lt_prog_compiler_pic=-Kconform_pic
6206       fi
6207       ;;
6208
6209     hpux*)
6210       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6211       # not for PA HP-UX.
6212       case "$host_cpu" in
6213       hppa*64*|ia64*)
6214         # +Z the default
6215         ;;
6216       *)
6217         lt_prog_compiler_pic='-fPIC'
6218         ;;
6219       esac
6220       ;;
6221
6222     *)
6223       lt_prog_compiler_pic='-fPIC'
6224       ;;
6225     esac
6226   else
6227     # PORTME Check for flag to pass linker flags through the system compiler.
6228     case $host_os in
6229     aix*)
6230       lt_prog_compiler_wl='-Wl,'
6231       if test "$host_cpu" = ia64; then
6232         # AIX 5 now supports IA64 processor
6233         lt_prog_compiler_static='-Bstatic'
6234       else
6235         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6236       fi
6237       ;;
6238
6239     mingw* | pw32* | os2*)
6240       # This hack is so that the source file can tell whether it is being
6241       # built for inclusion in a dll (and should export symbols for example).
6242       lt_prog_compiler_pic='-DDLL_EXPORT'
6243       ;;
6244
6245     hpux9* | hpux10* | hpux11*)
6246       lt_prog_compiler_wl='-Wl,'
6247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248       # not for PA HP-UX.
6249       case "$host_cpu" in
6250       hppa*64*|ia64*)
6251         # +Z the default
6252         ;;
6253       *)
6254         lt_prog_compiler_pic='+Z'
6255         ;;
6256       esac
6257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258       lt_prog_compiler_static='${wl}-a ${wl}archive'
6259       ;;
6260
6261     irix5* | irix6* | nonstopux*)
6262       lt_prog_compiler_wl='-Wl,'
6263       # PIC (with -KPIC) is the default.
6264       lt_prog_compiler_static='-non_shared'
6265       ;;
6266
6267     newsos6)
6268       lt_prog_compiler_pic='-KPIC'
6269       lt_prog_compiler_static='-Bstatic'
6270       ;;
6271
6272     linux*)
6273       case $CC in
6274       icc|ecc)
6275         lt_prog_compiler_wl='-Wl,'
6276         lt_prog_compiler_pic='-KPIC'
6277         lt_prog_compiler_static='-static'
6278         ;;
6279       ccc)
6280         lt_prog_compiler_wl='-Wl,'
6281         # All Alpha code is PIC.
6282         lt_prog_compiler_static='-non_shared'
6283         ;;
6284       esac
6285       ;;
6286
6287     osf3* | osf4* | osf5*)
6288       lt_prog_compiler_wl='-Wl,'
6289       # All OSF/1 code is PIC.
6290       lt_prog_compiler_static='-non_shared'
6291       ;;
6292
6293     sco3.2v5*)
6294       lt_prog_compiler_pic='-Kpic'
6295       lt_prog_compiler_static='-dn'
6296       ;;
6297
6298     solaris*)
6299       lt_prog_compiler_wl='-Wl,'
6300       lt_prog_compiler_pic='-KPIC'
6301       lt_prog_compiler_static='-Bstatic'
6302       ;;
6303
6304     sunos4*)
6305       lt_prog_compiler_wl='-Qoption ld '
6306       lt_prog_compiler_pic='-PIC'
6307       lt_prog_compiler_static='-Bstatic'
6308       ;;
6309
6310     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311       lt_prog_compiler_wl='-Wl,'
6312       lt_prog_compiler_pic='-KPIC'
6313       lt_prog_compiler_static='-Bstatic'
6314       ;;
6315
6316     sysv4*MP*)
6317       if test -d /usr/nec ;then
6318         lt_prog_compiler_pic='-Kconform_pic'
6319         lt_prog_compiler_static='-Bstatic'
6320       fi
6321       ;;
6322
6323     uts4*)
6324       lt_prog_compiler_pic='-pic'
6325       lt_prog_compiler_static='-Bstatic'
6326       ;;
6327
6328     *)
6329       lt_prog_compiler_can_build_shared=no
6330       ;;
6331     esac
6332   fi
6333
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6336
6337 #
6338 # Check to make sure the PIC flag actually works.
6339 #
6340 if test -n "$lt_prog_compiler_pic"; then
6341   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6342 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6343 if test "${lt_prog_compiler_pic_works+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   lt_prog_compiler_pic_works=no
6347   ac_outfile=conftest.$ac_objext
6348    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6350    # Insert the option either (1) after the last *FLAGS variable, or
6351    # (2) before a word containing "conftest.", or (3) at the end.
6352    # Note that $ac_compile itself does not contain backslashes and begins
6353    # with a dollar sign (not a hyphen), so the echo should work correctly.
6354    # The option is referenced via a variable to avoid confusing sed.
6355    lt_compile=`echo "$ac_compile" | $SED \
6356    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358    -e 's:$: $lt_compiler_flag:'`
6359    (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6360    (eval "$lt_compile" 2>conftest.err)
6361    ac_status=$?
6362    cat conftest.err >&5
6363    echo "$as_me:6363: \$? = $ac_status" >&5
6364    if (exit $ac_status) && test -s "$ac_outfile"; then
6365      # The compiler can only warn and ignore the option if not recognized
6366      # So say no if there are warnings
6367      if test ! -s conftest.err; then
6368        lt_prog_compiler_pic_works=yes
6369      fi
6370    fi
6371    $rm conftest*
6372
6373 fi
6374 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6375 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6376
6377 if test x"$lt_prog_compiler_pic_works" = xyes; then
6378     case $lt_prog_compiler_pic in
6379      "" | " "*) ;;
6380      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6381      esac
6382 else
6383     lt_prog_compiler_pic=
6384      lt_prog_compiler_can_build_shared=no
6385 fi
6386
6387 fi
6388 case "$host_os" in
6389   # For platforms which do not support PIC, -DPIC is meaningless:
6390   *djgpp*)
6391     lt_prog_compiler_pic=
6392     ;;
6393   *)
6394     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6395     ;;
6396 esac
6397
6398 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6399 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6400 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403   lt_cv_prog_compiler_c_o=no
6404    $rm -r conftest 2>/dev/null
6405    mkdir conftest
6406    cd conftest
6407    mkdir out
6408    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6409
6410    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6411    # that will create temporary files in the current directory regardless of
6412    # the output directory.  Thus, making CWD read-only will cause this test
6413    # to fail, enabling locking or at least warning the user not to do parallel
6414    # builds.
6415    chmod -w .
6416
6417    lt_compiler_flag="-o out/conftest2.$ac_objext"
6418    # Insert the option either (1) after the last *FLAGS variable, or
6419    # (2) before a word containing "conftest.", or (3) at the end.
6420    # Note that $ac_compile itself does not contain backslashes and begins
6421    # with a dollar sign (not a hyphen), so the echo should work correctly.
6422    lt_compile=`echo "$ac_compile" | $SED \
6423    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6425    -e 's:$: $lt_compiler_flag:'`
6426    (eval echo "\"\$as_me:6426: $lt_compile\"" >&5)
6427    (eval "$lt_compile" 2>out/conftest.err)
6428    ac_status=$?
6429    cat out/conftest.err >&5
6430    echo "$as_me:6430: \$? = $ac_status" >&5
6431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6432    then
6433      # The compiler can only warn and ignore the option if not recognized
6434      # So say no if there are warnings
6435      if test ! -s out/conftest.err; then
6436        lt_cv_prog_compiler_c_o=yes
6437      fi
6438    fi
6439    chmod u+w .
6440    $rm conftest* out/*
6441    rmdir out
6442    cd ..
6443    rmdir conftest
6444    $rm conftest*
6445
6446 fi
6447 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6448 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6449
6450
6451 hard_links="nottested"
6452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6453   # do not overwrite the value of need_locks provided by the user
6454   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6455 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6456   hard_links=yes
6457   $rm conftest*
6458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459   touch conftest.a
6460   ln conftest.a conftest.b 2>&5 || hard_links=no
6461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6462   echo "$as_me:$LINENO: result: $hard_links" >&5
6463 echo "${ECHO_T}$hard_links" >&6
6464   if test "$hard_links" = no; then
6465     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6466 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6467     need_locks=warn
6468   fi
6469 else
6470   need_locks=no
6471 fi
6472
6473 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6475
6476   runpath_var=
6477   allow_undefined_flag=
6478   enable_shared_with_static_runtimes=no
6479   archive_cmds=
6480   archive_expsym_cmds=
6481   old_archive_From_new_cmds=
6482   old_archive_from_expsyms_cmds=
6483   export_dynamic_flag_spec=
6484   whole_archive_flag_spec=
6485   thread_safe_flag_spec=
6486   hardcode_libdir_flag_spec=
6487   hardcode_libdir_flag_spec_ld=
6488   hardcode_libdir_separator=
6489   hardcode_direct=no
6490   hardcode_minus_L=no
6491   hardcode_shlibpath_var=unsupported
6492   link_all_deplibs=unknown
6493   hardcode_automatic=no
6494   module_cmds=
6495   module_expsym_cmds=
6496   always_export_symbols=no
6497   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6498   # include_expsyms should be a list of space-separated symbols to be *always*
6499   # included in the symbol list
6500   include_expsyms=
6501   # exclude_expsyms can be an extended regexp of symbols to exclude
6502   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6503   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6504   # as well as any symbol that contains `d'.
6505   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6506   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6507   # platforms (ab)use it in PIC code, but their linkers get confused if
6508   # the symbol is explicitly referenced.  Since portable code cannot
6509   # rely on this symbol name, it's probably fine to never include it in
6510   # preloaded symbol tables.
6511   extract_expsyms_cmds=
6512
6513   case $host_os in
6514   cygwin* | mingw* | pw32*)
6515     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6516     # When not using gcc, we currently assume that we are using
6517     # Microsoft Visual C++.
6518     if test "$GCC" != yes; then
6519       with_gnu_ld=no
6520     fi
6521     ;;
6522   openbsd*)
6523     with_gnu_ld=no
6524     ;;
6525   esac
6526
6527   ld_shlibs=yes
6528   if test "$with_gnu_ld" = yes; then
6529     # If archive_cmds runs LD, not CC, wlarc should be empty
6530     wlarc='${wl}'
6531
6532     # See if GNU ld supports shared libraries.
6533     case $host_os in
6534     aix3* | aix4* | aix5*)
6535       # On AIX/PPC, the GNU linker is very broken
6536       if test "$host_cpu" != ia64; then
6537         ld_shlibs=no
6538         cat <<EOF 1>&2
6539
6540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6541 *** to be unable to reliably create shared libraries on AIX.
6542 *** Therefore, libtool is disabling shared libraries support.  If you
6543 *** really care for shared libraries, you may want to modify your PATH
6544 *** so that a non-GNU linker is found, and then restart.
6545
6546 EOF
6547       fi
6548       ;;
6549
6550     amigaos*)
6551       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)'
6552       hardcode_libdir_flag_spec='-L$libdir'
6553       hardcode_minus_L=yes
6554
6555       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6556       # that the semantics of dynamic libraries on AmigaOS, at least up
6557       # to version 4, is to share data among multiple programs linked
6558       # with the same dynamic library.  Since this doesn't match the
6559       # behavior of shared libraries on other platforms, we can't use
6560       # them.
6561       ld_shlibs=no
6562       ;;
6563
6564     beos*)
6565       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6566         allow_undefined_flag=unsupported
6567         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6568         # support --undefined.  This deserves some investigation.  FIXME
6569         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6570       else
6571         ld_shlibs=no
6572       fi
6573       ;;
6574
6575     cygwin* | mingw* | pw32*)
6576       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6577       # as there is no search path for DLLs.
6578       hardcode_libdir_flag_spec='-L$libdir'
6579       allow_undefined_flag=unsupported
6580       always_export_symbols=no
6581       enable_shared_with_static_runtimes=yes
6582       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6583
6584       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6585         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6586         # If the export-symbols file already is a .def file (1st line
6587         # is EXPORTS), use it as is; otherwise, prepend...
6588         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6589           cp $export_symbols $output_objdir/$soname.def;
6590         else
6591           echo EXPORTS > $output_objdir/$soname.def;
6592           cat $export_symbols >> $output_objdir/$soname.def;
6593         fi~
6594         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6595       else
6596         ld_shlibs=no
6597       fi
6598       ;;
6599
6600     netbsd*)
6601       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6603         wlarc=
6604       else
6605         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6606         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6607       fi
6608       ;;
6609
6610     solaris* | sysv5*)
6611       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6612         ld_shlibs=no
6613         cat <<EOF 1>&2
6614
6615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6616 *** create shared libraries on Solaris systems.  Therefore, libtool
6617 *** is disabling shared libraries support.  We urge you to upgrade GNU
6618 *** binutils to release 2.9.1 or newer.  Another option is to modify
6619 *** your PATH or compiler configuration so that the native linker is
6620 *** used, and then restart.
6621
6622 EOF
6623       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6624         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6625         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6626       else
6627         ld_shlibs=no
6628       fi
6629       ;;
6630
6631     sunos4*)
6632       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6633       wlarc=
6634       hardcode_direct=yes
6635       hardcode_shlibpath_var=no
6636       ;;
6637
6638     *)
6639       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6640         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6642       else
6643         ld_shlibs=no
6644       fi
6645       ;;
6646     esac
6647
6648     if test "$ld_shlibs" = yes; then
6649       runpath_var=LD_RUN_PATH
6650       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6651       export_dynamic_flag_spec='${wl}--export-dynamic'
6652       # ancient GNU ld didn't support --whole-archive et. al.
6653       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6654         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6655       else
6656         whole_archive_flag_spec=
6657       fi
6658     fi
6659   else
6660     # PORTME fill in a description of your system's linker (not GNU ld)
6661     case $host_os in
6662     aix3*)
6663       allow_undefined_flag=unsupported
6664       always_export_symbols=yes
6665       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'
6666       # Note: this linker hardcodes the directories in LIBPATH if there
6667       # are no directories specified by -L.
6668       hardcode_minus_L=yes
6669       if test "$GCC" = yes && test -z "$link_static_flag"; then
6670         # Neither direct hardcoding nor static linking is supported with a
6671         # broken collect2.
6672         hardcode_direct=unsupported
6673       fi
6674       ;;
6675
6676     aix4* | aix5*)
6677       if test "$host_cpu" = ia64; then
6678         # On IA64, the linker does run time linking by default, so we don't
6679         # have to do anything special.
6680         aix_use_runtimelinking=no
6681         exp_sym_flag='-Bexport'
6682         no_entry_flag=""
6683       else
6684         # If we're using GNU nm, then we don't want the "-C" option.
6685         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6686         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6687           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'
6688         else
6689           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'
6690         fi
6691         aix_use_runtimelinking=no
6692
6693         # Test if we are trying to use run time linking or normal
6694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6695         # need to do runtime linking.
6696         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6697           for ld_flag in $LDFLAGS; do
6698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6699             aix_use_runtimelinking=yes
6700             break
6701           fi
6702           done
6703         esac
6704
6705         exp_sym_flag='-bexport'
6706         no_entry_flag='-bnoentry'
6707       fi
6708
6709       # When large executables or shared objects are built, AIX ld can
6710       # have problems creating the table of contents.  If linking a library
6711       # or program results in "error TOC overflow" add -mminimal-toc to
6712       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6713       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6714
6715       archive_cmds=''
6716       hardcode_direct=yes
6717       hardcode_libdir_separator=':'
6718       link_all_deplibs=yes
6719
6720       if test "$GCC" = yes; then
6721         case $host_os in aix4.012|aix4.012.*)
6722         # We only want to do this on AIX 4.2 and lower, the check
6723         # below for broken collect2 doesn't work under 4.3+
6724           collect2name=`${CC} -print-prog-name=collect2`
6725           if test -f "$collect2name" && \
6726            strings "$collect2name" | grep resolve_lib_name >/dev/null
6727           then
6728           # We have reworked collect2
6729           hardcode_direct=yes
6730           else
6731           # We have old collect2
6732           hardcode_direct=unsupported
6733           # It fails to find uninstalled libraries when the uninstalled
6734           # path is not listed in the libpath.  Setting hardcode_minus_L
6735           # to unsupported forces relinking
6736           hardcode_minus_L=yes
6737           hardcode_libdir_flag_spec='-L$libdir'
6738           hardcode_libdir_separator=
6739           fi
6740         esac
6741         shared_flag='-shared'
6742       else
6743         # not using gcc
6744         if test "$host_cpu" = ia64; then
6745         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6746         # chokes on -Wl,-G. The following line is correct:
6747           shared_flag='-G'
6748         else
6749         if test "$aix_use_runtimelinking" = yes; then
6750             shared_flag='${wl}-G'
6751           else
6752             shared_flag='${wl}-bM:SRE'
6753         fi
6754         fi
6755       fi
6756
6757       # It seems that -bexpall does not export symbols beginning with
6758       # underscore (_), so it is better to generate a list of symbols to export.
6759       always_export_symbols=yes
6760       if test "$aix_use_runtimelinking" = yes; then
6761         # Warning - without using the other runtime loading flags (-brtl),
6762         # -berok will link without error, but may produce a broken library.
6763         allow_undefined_flag='-berok'
6764        # Determine the default libpath from the value encoded in an empty executable.
6765        cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771
6772 int
6773 main ()
6774 {
6775
6776   ;
6777   return 0;
6778 }
6779 _ACEOF
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782   (eval $ac_link) 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -z "$ac_c_werror_flag"
6790                          || test ! -s conftest.err'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; } &&
6796          { ac_try='test -s conftest$ac_exeext'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; }; then
6802
6803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6804 }'`
6805 # Check for a 64-bit object if we didn't find anything.
6806 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; }
6807 }'`; fi
6808 else
6809   echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 fi
6813 rm -f conftest.err conftest.$ac_objext \
6814       conftest$ac_exeext conftest.$ac_ext
6815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6816
6817        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6818         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"
6819        else
6820         if test "$host_cpu" = ia64; then
6821           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6822           allow_undefined_flag="-z nodefs"
6823           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"
6824         else
6825          # Determine the default libpath from the value encoded in an empty executable.
6826          cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832
6833 int
6834 main ()
6835 {
6836
6837   ;
6838   return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest.$ac_objext conftest$ac_exeext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843   (eval $ac_link) 2>conftest.er1
6844   ac_status=$?
6845   grep -v '^ *+' conftest.er1 >conftest.err
6846   rm -f conftest.er1
6847   cat conftest.err >&5
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); } &&
6850          { ac_try='test -z "$ac_c_werror_flag"
6851                          || test ! -s conftest.err'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; } &&
6857          { ac_try='test -s conftest$ac_exeext'
6858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859   (eval $ac_try) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; }; then
6863
6864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6865 }'`
6866 # Check for a 64-bit object if we didn't find anything.
6867 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; }
6868 }'`; fi
6869 else
6870   echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 fi
6874 rm -f conftest.err conftest.$ac_objext \
6875       conftest$ac_exeext conftest.$ac_ext
6876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6877
6878          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6879           # Warning - without using the other run time loading flags,
6880           # -berok will link without error, but may produce a broken library.
6881           no_undefined_flag=' ${wl}-bernotok'
6882           allow_undefined_flag=' ${wl}-berok'
6883           # -bexpall does not export symbols beginning with underscore (_)
6884           always_export_symbols=yes
6885           # Exported symbols can be pulled into shared objects from archives
6886           whole_archive_flag_spec=' '
6887           archive_cmds_need_lc=yes
6888           # This is similar to how AIX traditionally builds it's shared libraries.
6889           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'
6890         fi
6891       fi
6892       ;;
6893
6894     amigaos*)
6895       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)'
6896       hardcode_libdir_flag_spec='-L$libdir'
6897       hardcode_minus_L=yes
6898       # see comment about different semantics on the GNU ld section
6899       ld_shlibs=no
6900       ;;
6901
6902     bsdi4*)
6903       export_dynamic_flag_spec=-rdynamic
6904       ;;
6905
6906     cygwin* | mingw* | pw32*)
6907       # When not using gcc, we currently assume that we are using
6908       # Microsoft Visual C++.
6909       # hardcode_libdir_flag_spec is actually meaningless, as there is
6910       # no search path for DLLs.
6911       hardcode_libdir_flag_spec=' '
6912       allow_undefined_flag=unsupported
6913       # Tell ltmain to make .lib files, not .a files.
6914       libext=lib
6915       # Tell ltmain to make .dll files, not .so files.
6916       shrext=".dll"
6917       # FIXME: Setting linknames here is a bad hack.
6918       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6919       # The linker will automatically build a .lib file if we build a DLL.
6920       old_archive_From_new_cmds='true'
6921       # FIXME: Should let the user specify the lib program.
6922       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6923       fix_srcfile_path='`cygpath -w "$srcfile"`'
6924       enable_shared_with_static_runtimes=yes
6925       ;;
6926
6927     darwin* | rhapsody*)
6928     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6929       archive_cmds_need_lc=no
6930       case "$host_os" in
6931       rhapsody* | darwin1.[012])
6932         allow_undefined_flag='-undefined suppress'
6933         ;;
6934       *) # Darwin 1.3 on
6935         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6936         ;;
6937       esac
6938       # FIXME: Relying on posixy $() will cause problems for
6939       #        cross-compilation, but unfortunately the echo tests do not
6940       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6941       #        `"' quotes if we put them in here... so don't!
6942         lt_int_apple_cc_single_mod=no
6943         output_verbose_link_cmd='echo'
6944         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6945           lt_int_apple_cc_single_mod=yes
6946         fi
6947         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6948           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6949         else
6950         archive_cmds='$CC -r ${wl}-bind_at_load -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'
6951       fi
6952       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6953       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6954         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6955           archive_expsym_cmds='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}'
6956         else
6957           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6958         fi
6959           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6960       hardcode_direct=no
6961       hardcode_automatic=yes
6962       hardcode_shlibpath_var=unsupported
6963       whole_archive_flag_spec='-all_load $convenience'
6964       link_all_deplibs=yes
6965     fi
6966       ;;
6967
6968     dgux*)
6969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970       hardcode_libdir_flag_spec='-L$libdir'
6971       hardcode_shlibpath_var=no
6972       ;;
6973
6974     freebsd1*)
6975       ld_shlibs=no
6976       ;;
6977
6978     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6979     # support.  Future versions do this automatically, but an explicit c++rt0.o
6980     # does not break anything, and helps significantly (at the cost of a little
6981     # extra space).
6982     freebsd2.2*)
6983       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6984       hardcode_libdir_flag_spec='-R$libdir'
6985       hardcode_direct=yes
6986       hardcode_shlibpath_var=no
6987       ;;
6988
6989     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6990     freebsd2*)
6991       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6992       hardcode_direct=yes
6993       hardcode_minus_L=yes
6994       hardcode_shlibpath_var=no
6995       ;;
6996
6997     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6998     freebsd*)
6999       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7000       hardcode_libdir_flag_spec='-R$libdir'
7001       hardcode_direct=yes
7002       hardcode_shlibpath_var=no
7003       ;;
7004
7005     hpux9*)
7006       if test "$GCC" = yes; then
7007         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'
7008       else
7009         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'
7010       fi
7011       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7012       hardcode_libdir_separator=:
7013       hardcode_direct=yes
7014
7015       # hardcode_minus_L: Not really in the search PATH,
7016       # but as the default location of the library.
7017       hardcode_minus_L=yes
7018       export_dynamic_flag_spec='${wl}-E'
7019       ;;
7020
7021     hpux10* | hpux11*)
7022       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7023         case "$host_cpu" in
7024         hppa*64*|ia64*)
7025           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7026           ;;
7027         *)
7028           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7029           ;;
7030         esac
7031       else
7032         case "$host_cpu" in
7033         hppa*64*|ia64*)
7034           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7035           ;;
7036         *)
7037           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7038           ;;
7039         esac
7040       fi
7041       if test "$with_gnu_ld" = no; then
7042         case "$host_cpu" in
7043         hppa*64*)
7044           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7045           hardcode_libdir_flag_spec_ld='+b $libdir'
7046           hardcode_libdir_separator=:
7047           hardcode_direct=no
7048           hardcode_shlibpath_var=no
7049           ;;
7050         ia64*)
7051           hardcode_libdir_flag_spec='-L$libdir'
7052           hardcode_direct=no
7053           hardcode_shlibpath_var=no
7054
7055           # hardcode_minus_L: Not really in the search PATH,
7056           # but as the default location of the library.
7057           hardcode_minus_L=yes
7058           ;;
7059         *)
7060           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7061           hardcode_libdir_separator=:
7062           hardcode_direct=yes
7063           export_dynamic_flag_spec='${wl}-E'
7064
7065           # hardcode_minus_L: Not really in the search PATH,
7066           # but as the default location of the library.
7067           hardcode_minus_L=yes
7068           ;;
7069         esac
7070       fi
7071       ;;
7072
7073     irix5* | irix6* | nonstopux*)
7074       if test "$GCC" = yes; then
7075         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'
7076       else
7077         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'
7078         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7079       fi
7080       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7081       hardcode_libdir_separator=:
7082       link_all_deplibs=yes
7083       ;;
7084
7085     netbsd*)
7086       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7087         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7088       else
7089         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7090       fi
7091       hardcode_libdir_flag_spec='-R$libdir'
7092       hardcode_direct=yes
7093       hardcode_shlibpath_var=no
7094       ;;
7095
7096     newsos6)
7097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7098       hardcode_direct=yes
7099       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7100       hardcode_libdir_separator=:
7101       hardcode_shlibpath_var=no
7102       ;;
7103
7104     openbsd*)
7105       hardcode_direct=yes
7106       hardcode_shlibpath_var=no
7107       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7108         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7109         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7110         export_dynamic_flag_spec='${wl}-E'
7111       else
7112        case $host_os in
7113          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7114            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7115            hardcode_libdir_flag_spec='-R$libdir'
7116            ;;
7117          *)
7118            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7119            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7120            ;;
7121        esac
7122       fi
7123       ;;
7124
7125     os2*)
7126       hardcode_libdir_flag_spec='-L$libdir'
7127       hardcode_minus_L=yes
7128       allow_undefined_flag=unsupported
7129       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'
7130       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7131       ;;
7132
7133     osf3*)
7134       if test "$GCC" = yes; then
7135         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7136         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'
7137       else
7138         allow_undefined_flag=' -expect_unresolved \*'
7139         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'
7140       fi
7141       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7142       hardcode_libdir_separator=:
7143       ;;
7144
7145     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7146       if test "$GCC" = yes; then
7147         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7148         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'
7149         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7150       else
7151         allow_undefined_flag=' -expect_unresolved \*'
7152         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'
7153         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7154         $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'
7155
7156         # Both c and cxx compiler support -rpath directly
7157         hardcode_libdir_flag_spec='-rpath $libdir'
7158       fi
7159       hardcode_libdir_separator=:
7160       ;;
7161
7162     sco3.2v5*)
7163       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7164       hardcode_shlibpath_var=no
7165       export_dynamic_flag_spec='${wl}-Bexport'
7166       runpath_var=LD_RUN_PATH
7167       hardcode_runpath_var=yes
7168       ;;
7169
7170     solaris*)
7171       no_undefined_flag=' -z text'
7172       if test "$GCC" = yes; then
7173         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7174         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7175           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7176       else
7177         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7179         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7180       fi
7181       hardcode_libdir_flag_spec='-R$libdir'
7182       hardcode_shlibpath_var=no
7183       case $host_os in
7184       solaris2.[0-5] | solaris2.[0-5].*) ;;
7185       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7186         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7187       esac
7188       link_all_deplibs=yes
7189       ;;
7190
7191     sunos4*)
7192       if test "x$host_vendor" = xsequent; then
7193         # Use $CC to link under sequent, because it throws in some extra .o
7194         # files that make .init and .fini sections work.
7195         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7196       else
7197         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7198       fi
7199       hardcode_libdir_flag_spec='-L$libdir'
7200       hardcode_direct=yes
7201       hardcode_minus_L=yes
7202       hardcode_shlibpath_var=no
7203       ;;
7204
7205     sysv4)
7206       case $host_vendor in
7207         sni)
7208           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7209           hardcode_direct=yes # is this really true???
7210         ;;
7211         siemens)
7212           ## LD is ld it makes a PLAMLIB
7213           ## CC just makes a GrossModule.
7214           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7215           reload_cmds='$CC -r -o $output$reload_objs'
7216           hardcode_direct=no
7217         ;;
7218         motorola)
7219           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7220           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7221         ;;
7222       esac
7223       runpath_var='LD_RUN_PATH'
7224       hardcode_shlibpath_var=no
7225       ;;
7226
7227     sysv4.3*)
7228       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7229       hardcode_shlibpath_var=no
7230       export_dynamic_flag_spec='-Bexport'
7231       ;;
7232
7233     sysv4*MP*)
7234       if test -d /usr/nec; then
7235         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236         hardcode_shlibpath_var=no
7237         runpath_var=LD_RUN_PATH
7238         hardcode_runpath_var=yes
7239         ld_shlibs=yes
7240       fi
7241       ;;
7242
7243     sysv4.2uw2*)
7244       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7245       hardcode_direct=yes
7246       hardcode_minus_L=no
7247       hardcode_shlibpath_var=no
7248       hardcode_runpath_var=yes
7249       runpath_var=LD_RUN_PATH
7250       ;;
7251
7252    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7253       no_undefined_flag='${wl}-z ${wl}text'
7254       if test "$GCC" = yes; then
7255         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7256       else
7257         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7258       fi
7259       runpath_var='LD_RUN_PATH'
7260       hardcode_shlibpath_var=no
7261       ;;
7262
7263     sysv5*)
7264       no_undefined_flag=' -z text'
7265       # $CC -shared without GNU ld will not create a library from C++
7266       # object files and a static libstdc++, better avoid it by now
7267       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7269                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7270       hardcode_libdir_flag_spec=
7271       hardcode_shlibpath_var=no
7272       runpath_var='LD_RUN_PATH'
7273       ;;
7274
7275     uts4*)
7276       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277       hardcode_libdir_flag_spec='-L$libdir'
7278       hardcode_shlibpath_var=no
7279       ;;
7280
7281     *)
7282       ld_shlibs=no
7283       ;;
7284     esac
7285   fi
7286
7287 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7288 echo "${ECHO_T}$ld_shlibs" >&6
7289 test "$ld_shlibs" = no && can_build_shared=no
7290
7291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7292 if test "$GCC" = yes; then
7293   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7294 fi
7295
7296 #
7297 # Do we need to explicitly link libc?
7298 #
7299 case "x$archive_cmds_need_lc" in
7300 x|xyes)
7301   # Assume -lc should be added
7302   archive_cmds_need_lc=yes
7303
7304   if test "$enable_shared" = yes && test "$GCC" = yes; then
7305     case $archive_cmds in
7306     *'~'*)
7307       # FIXME: we may have to deal with multi-command sequences.
7308       ;;
7309     '$CC '*)
7310       # Test whether the compiler implicitly links with -lc since on some
7311       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7312       # to ld, don't add -lc before -lgcc.
7313       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7314 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7315       $rm conftest*
7316       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7317
7318       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319   (eval $ac_compile) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); } 2>conftest.err; then
7323         soname=conftest
7324         lib=conftest
7325         libobjs=conftest.$ac_objext
7326         deplibs=
7327         wl=$lt_prog_compiler_wl
7328         compiler_flags=-v
7329         linker_flags=-v
7330         verstring=
7331         output_objdir=.
7332         libname=conftest
7333         lt_save_allow_undefined_flag=$allow_undefined_flag
7334         allow_undefined_flag=
7335         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7336   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }
7340         then
7341           archive_cmds_need_lc=no
7342         else
7343           archive_cmds_need_lc=yes
7344         fi
7345         allow_undefined_flag=$lt_save_allow_undefined_flag
7346       else
7347         cat conftest.err 1>&5
7348       fi
7349       $rm conftest*
7350       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7351 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7352       ;;
7353     esac
7354   fi
7355   ;;
7356 esac
7357
7358 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7360 hardcode_action=
7361 if test -n "$hardcode_libdir_flag_spec" || \
7362    test -n "$runpath_var " || \
7363    test "X$hardcode_automatic"="Xyes" ; then
7364
7365   # We can hardcode non-existant directories.
7366   if test "$hardcode_direct" != no &&
7367      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7368      # have to relink, otherwise we might link with an installed library
7369      # when we should be linking with a yet-to-be-installed one
7370      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7371      test "$hardcode_minus_L" != no; then
7372     # Linking always hardcodes the temporary library directory.
7373     hardcode_action=relink
7374   else
7375     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7376     hardcode_action=immediate
7377   fi
7378 else
7379   # We cannot hardcode anything, or else we can only hardcode existing
7380   # directories.
7381   hardcode_action=unsupported
7382 fi
7383 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7384 echo "${ECHO_T}$hardcode_action" >&6
7385
7386 if test "$hardcode_action" = relink; then
7387   # Fast installation is not supported
7388   enable_fast_install=no
7389 elif test "$shlibpath_overrides_runpath" = yes ||
7390      test "$enable_shared" = no; then
7391   # Fast installation is not necessary
7392   enable_fast_install=needless
7393 fi
7394
7395 striplib=
7396 old_striplib=
7397 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7400   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7401   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7402   echo "$as_me:$LINENO: result: yes" >&5
7403 echo "${ECHO_T}yes" >&6
7404 else
7405 # FIXME - insert some real tests, host_os isn't really good enough
7406   case $host_os in
7407    darwin*)
7408        if test -n "$STRIP" ; then
7409          striplib="$STRIP -x"
7410          echo "$as_me:$LINENO: result: yes" >&5
7411 echo "${ECHO_T}yes" >&6
7412        else
7413   echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 fi
7416        ;;
7417    *)
7418   echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7420     ;;
7421   esac
7422 fi
7423
7424 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7426 library_names_spec=
7427 libname_spec='lib$name'
7428 soname_spec=
7429 shrext=".so"
7430 postinstall_cmds=
7431 postuninstall_cmds=
7432 finish_cmds=
7433 finish_eval=
7434 shlibpath_var=
7435 shlibpath_overrides_runpath=unknown
7436 version_type=none
7437 dynamic_linker="$host_os ld.so"
7438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7439 if test "$GCC" = yes; then
7440   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7441   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7442     # if the path contains ";" then we assume it to be the separator
7443     # otherwise default to the standard path separator (i.e. ":") - it is
7444     # assumed that no part of a normal pathname contains ";" but that should
7445     # okay in the real world where ";" in dirpaths is itself problematic.
7446     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7447   else
7448     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7449   fi
7450 else
7451   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7452 fi
7453 need_lib_prefix=unknown
7454 hardcode_into_libs=no
7455
7456 # when you set need_version to no, make sure it does not cause -set_version
7457 # flags to be left without arguments
7458 need_version=unknown
7459
7460 case $host_os in
7461 aix3*)
7462   version_type=linux
7463   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7464   shlibpath_var=LIBPATH
7465
7466   # AIX 3 has no versioning support, so we append a major version to the name.
7467   soname_spec='${libname}${release}${shared_ext}$major'
7468   ;;
7469
7470 aix4* | aix5*)
7471   version_type=linux
7472   need_lib_prefix=no
7473   need_version=no
7474   hardcode_into_libs=yes
7475   if test "$host_cpu" = ia64; then
7476     # AIX 5 supports IA64
7477     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7478     shlibpath_var=LD_LIBRARY_PATH
7479   else
7480     # With GCC up to 2.95.x, collect2 would create an import file
7481     # for dependence libraries.  The import file would start with
7482     # the line `#! .'.  This would cause the generated library to
7483     # depend on `.', always an invalid library.  This was fixed in
7484     # development snapshots of GCC prior to 3.0.
7485     case $host_os in
7486       aix4 | aix4.[01] | aix4.[01].*)
7487       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7488            echo ' yes '
7489            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7490         :
7491       else
7492         can_build_shared=no
7493       fi
7494       ;;
7495     esac
7496     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7497     # soname into executable. Probably we can add versioning support to
7498     # collect2, so additional links can be useful in future.
7499     if test "$aix_use_runtimelinking" = yes; then
7500       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7501       # instead of lib<name>.a to let people know that these are not
7502       # typical AIX shared libraries.
7503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7504     else
7505       # We preserve .a as extension for shared libraries through AIX4.2
7506       # and later when we are not doing run time linking.
7507       library_names_spec='${libname}${release}.a $libname.a'
7508       soname_spec='${libname}${release}${shared_ext}$major'
7509     fi
7510     shlibpath_var=LIBPATH
7511   fi
7512   ;;
7513
7514 amigaos*)
7515   library_names_spec='$libname.ixlibrary $libname.a'
7516   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7517   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'
7518   ;;
7519
7520 beos*)
7521   library_names_spec='${libname}${shared_ext}'
7522   dynamic_linker="$host_os ld.so"
7523   shlibpath_var=LIBRARY_PATH
7524   ;;
7525
7526 bsdi4*)
7527   version_type=linux
7528   need_version=no
7529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7530   soname_spec='${libname}${release}${shared_ext}$major'
7531   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7532   shlibpath_var=LD_LIBRARY_PATH
7533   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7534   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7535   # the default ld.so.conf also contains /usr/contrib/lib and
7536   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7537   # libtool to hard-code these into programs
7538   ;;
7539
7540 cygwin* | mingw* | pw32*)
7541   version_type=windows
7542   shrext=".dll"
7543   need_version=no
7544   need_lib_prefix=no
7545
7546   case $GCC,$host_os in
7547   yes,cygwin* | yes,mingw* | yes,pw32*)
7548     library_names_spec='$libname.dll.a'
7549     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7550     postinstall_cmds='base_file=`basename \${file}`~
7551       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7552       dldir=$destdir/`dirname \$dlpath`~
7553       test -d \$dldir || mkdir -p \$dldir~
7554       $install_prog $dir/$dlname \$dldir/$dlname'
7555     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7556       dlpath=$dir/\$dldll~
7557        $rm \$dlpath'
7558     shlibpath_overrides_runpath=yes
7559
7560     case $host_os in
7561     cygwin*)
7562       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7563       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7564       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7565       ;;
7566     mingw*)
7567       # MinGW DLLs use traditional 'lib' prefix
7568       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7569       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7570       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7571         # It is most probably a Windows format PATH printed by
7572         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7573         # path with ; separators, and with drive letters. We can handle the
7574         # drive letters (cygwin fileutils understands them), so leave them,
7575         # especially as we might pass files found there to a mingw objdump,
7576         # which wouldn't understand a cygwinified path. Ahh.
7577         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7578       else
7579         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7580       fi
7581       ;;
7582     pw32*)
7583       # pw32 DLLs use 'pw' prefix rather than 'lib'
7584       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7585       ;;
7586     esac
7587     ;;
7588
7589   *)
7590     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7591     ;;
7592   esac
7593   dynamic_linker='Win32 ld.exe'
7594   # FIXME: first we should search . and the directory the executable is in
7595   shlibpath_var=PATH
7596   ;;
7597
7598 darwin* | rhapsody*)
7599   dynamic_linker="$host_os dyld"
7600   version_type=darwin
7601   need_lib_prefix=no
7602   need_version=no
7603   # FIXME: Relying on posixy $() will cause problems for
7604   #        cross-compilation, but unfortunately the echo tests do not
7605   #        yet detect zsh echo's removal of \ escapes.
7606   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7607   soname_spec='${libname}${release}${major}$shared_ext'
7608   shlibpath_overrides_runpath=yes
7609   shlibpath_var=DYLD_LIBRARY_PATH
7610   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7611   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7612   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7613   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"`
7614   fi
7615   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7616   ;;
7617
7618 dgux*)
7619   version_type=linux
7620   need_lib_prefix=no
7621   need_version=no
7622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7623   soname_spec='${libname}${release}${shared_ext}$major'
7624   shlibpath_var=LD_LIBRARY_PATH
7625   ;;
7626
7627 freebsd1*)
7628   dynamic_linker=no
7629   ;;
7630
7631 freebsd*)
7632   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7633   version_type=freebsd-$objformat
7634   case $version_type in
7635     freebsd-elf*)
7636       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7637       need_version=no
7638       need_lib_prefix=no
7639       ;;
7640     freebsd-*)
7641       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7642       need_version=yes
7643       ;;
7644   esac
7645   shlibpath_var=LD_LIBRARY_PATH
7646   case $host_os in
7647   freebsd2*)
7648     shlibpath_overrides_runpath=yes
7649     ;;
7650   freebsd3.01* | freebsdelf3.01*)
7651     shlibpath_overrides_runpath=yes
7652     hardcode_into_libs=yes
7653     ;;
7654   *) # from 3.2 on
7655     shlibpath_overrides_runpath=no
7656     hardcode_into_libs=yes
7657     ;;
7658   esac
7659   ;;
7660
7661 gnu*)
7662   version_type=linux
7663   need_lib_prefix=no
7664   need_version=no
7665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7666   soname_spec='${libname}${release}${shared_ext}$major'
7667   shlibpath_var=LD_LIBRARY_PATH
7668   hardcode_into_libs=yes
7669   ;;
7670
7671 hpux9* | hpux10* | hpux11*)
7672   # Give a soname corresponding to the major version so that dld.sl refuses to
7673   # link against other versions.
7674   version_type=sunos
7675   need_lib_prefix=no
7676   need_version=no
7677   case "$host_cpu" in
7678   ia64*)
7679     shrext='.so'
7680     hardcode_into_libs=yes
7681     dynamic_linker="$host_os dld.so"
7682     shlibpath_var=LD_LIBRARY_PATH
7683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7685     soname_spec='${libname}${release}${shared_ext}$major'
7686     if test "X$HPUX_IA64_MODE" = X32; then
7687       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7688     else
7689       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7690     fi
7691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7692     ;;
7693    hppa*64*)
7694      shrext='.sl'
7695      hardcode_into_libs=yes
7696      dynamic_linker="$host_os dld.sl"
7697      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7698      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7699      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7700      soname_spec='${libname}${release}${shared_ext}$major'
7701      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7702      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7703      ;;
7704    *)
7705     shrext='.sl'
7706     dynamic_linker="$host_os dld.sl"
7707     shlibpath_var=SHLIB_PATH
7708     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7710     soname_spec='${libname}${release}${shared_ext}$major'
7711     ;;
7712   esac
7713   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7714   postinstall_cmds='chmod 555 $lib'
7715   ;;
7716
7717 irix5* | irix6* | nonstopux*)
7718   case $host_os in
7719     nonstopux*) version_type=nonstopux ;;
7720     *)
7721         if test "$lt_cv_prog_gnu_ld" = yes; then
7722                 version_type=linux
7723         else
7724                 version_type=irix
7725         fi ;;
7726   esac
7727   need_lib_prefix=no
7728   need_version=no
7729   soname_spec='${libname}${release}${shared_ext}$major'
7730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7731   case $host_os in
7732   irix5* | nonstopux*)
7733     libsuff= shlibsuff=
7734     ;;
7735   *)
7736     case $LD in # libtool.m4 will add one of these switches to LD
7737     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7738       libsuff= shlibsuff= libmagic=32-bit;;
7739     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7740       libsuff=32 shlibsuff=N32 libmagic=N32;;
7741     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7742       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7743     *) libsuff= shlibsuff= libmagic=never-match;;
7744     esac
7745     ;;
7746   esac
7747   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7748   shlibpath_overrides_runpath=no
7749   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7750   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7751   hardcode_into_libs=yes
7752   ;;
7753
7754 # No shared lib support for Linux oldld, aout, or coff.
7755 linux*oldld* | linux*aout* | linux*coff*)
7756   dynamic_linker=no
7757   ;;
7758
7759 # This must be Linux ELF.
7760 linux*)
7761   version_type=linux
7762   need_lib_prefix=no
7763   need_version=no
7764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7765   soname_spec='${libname}${release}${shared_ext}$major'
7766   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7767   shlibpath_var=LD_LIBRARY_PATH
7768   shlibpath_overrides_runpath=no
7769   # This implies no fast_install, which is unacceptable.
7770   # Some rework will be needed to allow for fast_install
7771   # before this can be enabled.
7772   hardcode_into_libs=yes
7773
7774   # We used to test for /lib/ld.so.1 and disable shared libraries on
7775   # powerpc, because MkLinux only supported shared libraries with the
7776   # GNU dynamic linker.  Since this was broken with cross compilers,
7777   # most powerpc-linux boxes support dynamic linking these days and
7778   # people can always --disable-shared, the test was removed, and we
7779   # assume the GNU/Linux dynamic linker is in use.
7780   dynamic_linker='GNU/Linux ld.so'
7781   ;;
7782
7783 netbsd*)
7784   version_type=sunos
7785   need_lib_prefix=no
7786   need_version=no
7787   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7790     dynamic_linker='NetBSD (a.out) ld.so'
7791   else
7792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7793     soname_spec='${libname}${release}${shared_ext}$major'
7794     dynamic_linker='NetBSD ld.elf_so'
7795   fi
7796   shlibpath_var=LD_LIBRARY_PATH
7797   shlibpath_overrides_runpath=yes
7798   hardcode_into_libs=yes
7799   ;;
7800
7801 newsos6)
7802   version_type=linux
7803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804   shlibpath_var=LD_LIBRARY_PATH
7805   shlibpath_overrides_runpath=yes
7806   ;;
7807
7808 nto-qnx)
7809   version_type=linux
7810   need_lib_prefix=no
7811   need_version=no
7812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813   soname_spec='${libname}${release}${shared_ext}$major'
7814   shlibpath_var=LD_LIBRARY_PATH
7815   shlibpath_overrides_runpath=yes
7816   ;;
7817
7818 openbsd*)
7819   version_type=sunos
7820   need_lib_prefix=no
7821   need_version=no
7822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7824   shlibpath_var=LD_LIBRARY_PATH
7825   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826     case $host_os in
7827       openbsd2.[89] | openbsd2.[89].*)
7828         shlibpath_overrides_runpath=no
7829         ;;
7830       *)
7831         shlibpath_overrides_runpath=yes
7832         ;;
7833       esac
7834   else
7835     shlibpath_overrides_runpath=yes
7836   fi
7837   ;;
7838
7839 os2*)
7840   libname_spec='$name'
7841   shrext=".dll"
7842   need_lib_prefix=no
7843   library_names_spec='$libname${shared_ext} $libname.a'
7844   dynamic_linker='OS/2 ld.exe'
7845   shlibpath_var=LIBPATH
7846   ;;
7847
7848 osf3* | osf4* | osf5*)
7849   version_type=osf
7850   need_lib_prefix=no
7851   need_version=no
7852   soname_spec='${libname}${release}${shared_ext}$major'
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854   shlibpath_var=LD_LIBRARY_PATH
7855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7857   ;;
7858
7859 sco3.2v5*)
7860   version_type=osf
7861   soname_spec='${libname}${release}${shared_ext}$major'
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863   shlibpath_var=LD_LIBRARY_PATH
7864   ;;
7865
7866 solaris*)
7867   version_type=linux
7868   need_lib_prefix=no
7869   need_version=no
7870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871   soname_spec='${libname}${release}${shared_ext}$major'
7872   shlibpath_var=LD_LIBRARY_PATH
7873   shlibpath_overrides_runpath=yes
7874   hardcode_into_libs=yes
7875   # ldd complains unless libraries are executable
7876   postinstall_cmds='chmod +x $lib'
7877   ;;
7878
7879 sunos4*)
7880   version_type=sunos
7881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7882   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7883   shlibpath_var=LD_LIBRARY_PATH
7884   shlibpath_overrides_runpath=yes
7885   if test "$with_gnu_ld" = yes; then
7886     need_lib_prefix=no
7887   fi
7888   need_version=yes
7889   ;;
7890
7891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7892   version_type=linux
7893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894   soname_spec='${libname}${release}${shared_ext}$major'
7895   shlibpath_var=LD_LIBRARY_PATH
7896   case $host_vendor in
7897     sni)
7898       shlibpath_overrides_runpath=no
7899       need_lib_prefix=no
7900       export_dynamic_flag_spec='${wl}-Blargedynsym'
7901       runpath_var=LD_RUN_PATH
7902       ;;
7903     siemens)
7904       need_lib_prefix=no
7905       ;;
7906     motorola)
7907       need_lib_prefix=no
7908       need_version=no
7909       shlibpath_overrides_runpath=no
7910       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7911       ;;
7912   esac
7913   ;;
7914
7915 sysv4*MP*)
7916   if test -d /usr/nec ;then
7917     version_type=linux
7918     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7919     soname_spec='$libname${shared_ext}.$major'
7920     shlibpath_var=LD_LIBRARY_PATH
7921   fi
7922   ;;
7923
7924 uts4*)
7925   version_type=linux
7926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927   soname_spec='${libname}${release}${shared_ext}$major'
7928   shlibpath_var=LD_LIBRARY_PATH
7929   ;;
7930
7931 *)
7932   dynamic_linker=no
7933   ;;
7934 esac
7935 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7936 echo "${ECHO_T}$dynamic_linker" >&6
7937 test "$dynamic_linker" = no && can_build_shared=no
7938
7939 if test "x$enable_dlopen" != xyes; then
7940   enable_dlopen=unknown
7941   enable_dlopen_self=unknown
7942   enable_dlopen_self_static=unknown
7943 else
7944   lt_cv_dlopen=no
7945   lt_cv_dlopen_libs=
7946
7947   case $host_os in
7948   beos*)
7949     lt_cv_dlopen="load_add_on"
7950     lt_cv_dlopen_libs=
7951     lt_cv_dlopen_self=yes
7952     ;;
7953
7954   mingw* | pw32*)
7955     lt_cv_dlopen="LoadLibrary"
7956     lt_cv_dlopen_libs=
7957    ;;
7958
7959   cygwin*)
7960     lt_cv_dlopen="dlopen"
7961     lt_cv_dlopen_libs=
7962    ;;
7963
7964   darwin*)
7965   # if libdl is installed we need to link against it
7966     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7967 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   ac_check_lib_save_LIBS=$LIBS
7972 LIBS="-ldl  $LIBS"
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h.  */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h.  */
7979
7980 /* Override any gcc2 internal prototype to avoid an error.  */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 /* We use char because int might match the return type of a gcc2
7985    builtin and then its argument prototype would still apply.  */
7986 char dlopen ();
7987 int
7988 main ()
7989 {
7990 dlopen ();
7991   ;
7992   return 0;
7993 }
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997   (eval $ac_link) 2>conftest.er1
7998   ac_status=$?
7999   grep -v '^ *+' conftest.er1 >conftest.err
8000   rm -f conftest.er1
8001   cat conftest.err >&5
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } &&
8004          { ac_try='test -z "$ac_c_werror_flag"
8005                          || test ! -s conftest.err'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; } &&
8011          { ac_try='test -s conftest$ac_exeext'
8012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013   (eval $ac_try) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   ac_cv_lib_dl_dlopen=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_lib_dl_dlopen=no
8023 fi
8024 rm -f conftest.err conftest.$ac_objext \
8025       conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8027 fi
8028 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8029 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8030 if test $ac_cv_lib_dl_dlopen = yes; then
8031   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8032 else
8033
8034     lt_cv_dlopen="dyld"
8035     lt_cv_dlopen_libs=
8036     lt_cv_dlopen_self=yes
8037
8038 fi
8039
8040    ;;
8041
8042   *)
8043     echo "$as_me:$LINENO: checking for shl_load" >&5
8044 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8045 if test "${ac_cv_func_shl_load+set}" = set; then
8046   echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048   cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8056 #define shl_load innocuous_shl_load
8057
8058 /* System header to define __stub macros and hopefully few prototypes,
8059     which can conflict with char shl_load (); below.
8060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8061     <limits.h> exists even on freestanding compilers.  */
8062
8063 #ifdef __STDC__
8064 # include <limits.h>
8065 #else
8066 # include <assert.h>
8067 #endif
8068
8069 #undef shl_load
8070
8071 /* Override any gcc2 internal prototype to avoid an error.  */
8072 #ifdef __cplusplus
8073 extern "C"
8074 {
8075 #endif
8076 /* We use char because int might match the return type of a gcc2
8077    builtin and then its argument prototype would still apply.  */
8078 char shl_load ();
8079 /* The GNU C library defines this for functions which it implements
8080     to always fail with ENOSYS.  Some functions are actually named
8081     something starting with __ and the normal name is an alias.  */
8082 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8083 choke me
8084 #else
8085 char (*f) () = shl_load;
8086 #endif
8087 #ifdef __cplusplus
8088 }
8089 #endif
8090
8091 int
8092 main ()
8093 {
8094 return f != shl_load;
8095   ;
8096   return 0;
8097 }
8098 _ACEOF
8099 rm -f conftest.$ac_objext conftest$ac_exeext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8101   (eval $ac_link) 2>conftest.er1
8102   ac_status=$?
8103   grep -v '^ *+' conftest.er1 >conftest.err
8104   rm -f conftest.er1
8105   cat conftest.err >&5
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } &&
8108          { ac_try='test -z "$ac_c_werror_flag"
8109                          || test ! -s conftest.err'
8110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111   (eval $ac_try) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; } &&
8115          { ac_try='test -s conftest$ac_exeext'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121   ac_cv_func_shl_load=yes
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ac_cv_func_shl_load=no
8127 fi
8128 rm -f conftest.err conftest.$ac_objext \
8129       conftest$ac_exeext conftest.$ac_ext
8130 fi
8131 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8132 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8133 if test $ac_cv_func_shl_load = yes; then
8134   lt_cv_dlopen="shl_load"
8135 else
8136   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8137 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8138 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-ldld  $LIBS"
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149
8150 /* Override any gcc2 internal prototype to avoid an error.  */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 /* We use char because int might match the return type of a gcc2
8155    builtin and then its argument prototype would still apply.  */
8156 char shl_load ();
8157 int
8158 main ()
8159 {
8160 shl_load ();
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167   (eval $ac_link) 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } &&
8174          { ac_try='test -z "$ac_c_werror_flag"
8175                          || test ! -s conftest.err'
8176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177   (eval $ac_try) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; } &&
8181          { ac_try='test -s conftest$ac_exeext'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   ac_cv_lib_dld_shl_load=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_cv_lib_dld_shl_load=no
8193 fi
8194 rm -f conftest.err conftest.$ac_objext \
8195       conftest$ac_exeext conftest.$ac_ext
8196 LIBS=$ac_check_lib_save_LIBS
8197 fi
8198 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8199 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8200 if test $ac_cv_lib_dld_shl_load = yes; then
8201   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8202 else
8203   echo "$as_me:$LINENO: checking for dlopen" >&5
8204 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8205 if test "${ac_cv_func_dlopen+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h.  */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h.  */
8214 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8216 #define dlopen innocuous_dlopen
8217
8218 /* System header to define __stub macros and hopefully few prototypes,
8219     which can conflict with char dlopen (); below.
8220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8221     <limits.h> exists even on freestanding compilers.  */
8222
8223 #ifdef __STDC__
8224 # include <limits.h>
8225 #else
8226 # include <assert.h>
8227 #endif
8228
8229 #undef dlopen
8230
8231 /* Override any gcc2 internal prototype to avoid an error.  */
8232 #ifdef __cplusplus
8233 extern "C"
8234 {
8235 #endif
8236 /* We use char because int might match the return type of a gcc2
8237    builtin and then its argument prototype would still apply.  */
8238 char dlopen ();
8239 /* The GNU C library defines this for functions which it implements
8240     to always fail with ENOSYS.  Some functions are actually named
8241     something starting with __ and the normal name is an alias.  */
8242 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8243 choke me
8244 #else
8245 char (*f) () = dlopen;
8246 #endif
8247 #ifdef __cplusplus
8248 }
8249 #endif
8250
8251 int
8252 main ()
8253 {
8254 return f != dlopen;
8255   ;
8256   return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261   (eval $ac_link) 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -z "$ac_c_werror_flag"
8269                          || test ! -s conftest.err'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; } &&
8275          { ac_try='test -s conftest$ac_exeext'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; }; then
8281   ac_cv_func_dlopen=yes
8282 else
8283   echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_cv_func_dlopen=no
8287 fi
8288 rm -f conftest.err conftest.$ac_objext \
8289       conftest$ac_exeext conftest.$ac_ext
8290 fi
8291 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8292 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8293 if test $ac_cv_func_dlopen = yes; then
8294   lt_cv_dlopen="dlopen"
8295 else
8296   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   ac_check_lib_save_LIBS=$LIBS
8302 LIBS="-ldl  $LIBS"
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309
8310 /* Override any gcc2 internal prototype to avoid an error.  */
8311 #ifdef __cplusplus
8312 extern "C"
8313 #endif
8314 /* We use char because int might match the return type of a gcc2
8315    builtin and then its argument prototype would still apply.  */
8316 char dlopen ();
8317 int
8318 main ()
8319 {
8320 dlopen ();
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327   (eval $ac_link) 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -z "$ac_c_werror_flag"
8335                          || test ! -s conftest.err'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; } &&
8341          { ac_try='test -s conftest$ac_exeext'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; }; then
8347   ac_cv_lib_dl_dlopen=yes
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352 ac_cv_lib_dl_dlopen=no
8353 fi
8354 rm -f conftest.err conftest.$ac_objext \
8355       conftest$ac_exeext conftest.$ac_ext
8356 LIBS=$ac_check_lib_save_LIBS
8357 fi
8358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8360 if test $ac_cv_lib_dl_dlopen = yes; then
8361   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8362 else
8363   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8364 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8365 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   ac_check_lib_save_LIBS=$LIBS
8369 LIBS="-lsvld  $LIBS"
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376
8377 /* Override any gcc2 internal prototype to avoid an error.  */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 /* We use char because int might match the return type of a gcc2
8382    builtin and then its argument prototype would still apply.  */
8383 char dlopen ();
8384 int
8385 main ()
8386 {
8387 dlopen ();
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394   (eval $ac_link) 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } &&
8401          { ac_try='test -z "$ac_c_werror_flag"
8402                          || test ! -s conftest.err'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; } &&
8408          { ac_try='test -s conftest$ac_exeext'
8409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410   (eval $ac_try) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   ac_cv_lib_svld_dlopen=yes
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419 ac_cv_lib_svld_dlopen=no
8420 fi
8421 rm -f conftest.err conftest.$ac_objext \
8422       conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8424 fi
8425 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8426 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8427 if test $ac_cv_lib_svld_dlopen = yes; then
8428   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8429 else
8430   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8431 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8432 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   ac_check_lib_save_LIBS=$LIBS
8436 LIBS="-ldld  $LIBS"
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443
8444 /* Override any gcc2 internal prototype to avoid an error.  */
8445 #ifdef __cplusplus
8446 extern "C"
8447 #endif
8448 /* We use char because int might match the return type of a gcc2
8449    builtin and then its argument prototype would still apply.  */
8450 char dld_link ();
8451 int
8452 main ()
8453 {
8454 dld_link ();
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461   (eval $ac_link) 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -z "$ac_c_werror_flag"
8469                          || test ! -s conftest.err'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest$ac_exeext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_cv_lib_dld_dld_link=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 ac_cv_lib_dld_dld_link=no
8487 fi
8488 rm -f conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8493 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8494 if test $ac_cv_lib_dld_dld_link = yes; then
8495   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8496 fi
8497
8498
8499 fi
8500
8501
8502 fi
8503
8504
8505 fi
8506
8507
8508 fi
8509
8510
8511 fi
8512
8513     ;;
8514   esac
8515
8516   if test "x$lt_cv_dlopen" != xno; then
8517     enable_dlopen=yes
8518   else
8519     enable_dlopen=no
8520   fi
8521
8522   case $lt_cv_dlopen in
8523   dlopen)
8524     save_CPPFLAGS="$CPPFLAGS"
8525     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8526
8527     save_LDFLAGS="$LDFLAGS"
8528     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8529
8530     save_LIBS="$LIBS"
8531     LIBS="$lt_cv_dlopen_libs $LIBS"
8532
8533     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8534 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8535 if test "${lt_cv_dlopen_self+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538           if test "$cross_compiling" = yes; then :
8539   lt_cv_dlopen_self=cross
8540 else
8541   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8542   lt_status=$lt_dlunknown
8543   cat > conftest.$ac_ext <<EOF
8544 #line 8544 "configure"
8545 #include "confdefs.h"
8546
8547 #if HAVE_DLFCN_H
8548 #include <dlfcn.h>
8549 #endif
8550
8551 #include <stdio.h>
8552
8553 #ifdef RTLD_GLOBAL
8554 #  define LT_DLGLOBAL           RTLD_GLOBAL
8555 #else
8556 #  ifdef DL_GLOBAL
8557 #    define LT_DLGLOBAL         DL_GLOBAL
8558 #  else
8559 #    define LT_DLGLOBAL         0
8560 #  endif
8561 #endif
8562
8563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8564    find out it does not work in some platform. */
8565 #ifndef LT_DLLAZY_OR_NOW
8566 #  ifdef RTLD_LAZY
8567 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8568 #  else
8569 #    ifdef DL_LAZY
8570 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8571 #    else
8572 #      ifdef RTLD_NOW
8573 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8574 #      else
8575 #        ifdef DL_NOW
8576 #          define LT_DLLAZY_OR_NOW      DL_NOW
8577 #        else
8578 #          define LT_DLLAZY_OR_NOW      0
8579 #        endif
8580 #      endif
8581 #    endif
8582 #  endif
8583 #endif
8584
8585 #ifdef __cplusplus
8586 extern "C" void exit (int);
8587 #endif
8588
8589 void fnord() { int i=42;}
8590 int main ()
8591 {
8592   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8593   int status = $lt_dlunknown;
8594
8595   if (self)
8596     {
8597       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8598       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8599       /* dlclose (self); */
8600     }
8601
8602     exit (status);
8603 }
8604 EOF
8605   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606   (eval $ac_link) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8610     (./conftest; exit; ) 2>/dev/null
8611     lt_status=$?
8612     case x$lt_status in
8613       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8614       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8615       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8616     esac
8617   else :
8618     # compilation failed
8619     lt_cv_dlopen_self=no
8620   fi
8621 fi
8622 rm -fr conftest*
8623
8624
8625 fi
8626 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8627 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8628
8629     if test "x$lt_cv_dlopen_self" = xyes; then
8630       LDFLAGS="$LDFLAGS $link_static_flag"
8631       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8632 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8633 if test "${lt_cv_dlopen_self_static+set}" = set; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636           if test "$cross_compiling" = yes; then :
8637   lt_cv_dlopen_self_static=cross
8638 else
8639   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8640   lt_status=$lt_dlunknown
8641   cat > conftest.$ac_ext <<EOF
8642 #line 8642 "configure"
8643 #include "confdefs.h"
8644
8645 #if HAVE_DLFCN_H
8646 #include <dlfcn.h>
8647 #endif
8648
8649 #include <stdio.h>
8650
8651 #ifdef RTLD_GLOBAL
8652 #  define LT_DLGLOBAL           RTLD_GLOBAL
8653 #else
8654 #  ifdef DL_GLOBAL
8655 #    define LT_DLGLOBAL         DL_GLOBAL
8656 #  else
8657 #    define LT_DLGLOBAL         0
8658 #  endif
8659 #endif
8660
8661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8662    find out it does not work in some platform. */
8663 #ifndef LT_DLLAZY_OR_NOW
8664 #  ifdef RTLD_LAZY
8665 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8666 #  else
8667 #    ifdef DL_LAZY
8668 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8669 #    else
8670 #      ifdef RTLD_NOW
8671 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8672 #      else
8673 #        ifdef DL_NOW
8674 #          define LT_DLLAZY_OR_NOW      DL_NOW
8675 #        else
8676 #          define LT_DLLAZY_OR_NOW      0
8677 #        endif
8678 #      endif
8679 #    endif
8680 #  endif
8681 #endif
8682
8683 #ifdef __cplusplus
8684 extern "C" void exit (int);
8685 #endif
8686
8687 void fnord() { int i=42;}
8688 int main ()
8689 {
8690   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8691   int status = $lt_dlunknown;
8692
8693   if (self)
8694     {
8695       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8696       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8697       /* dlclose (self); */
8698     }
8699
8700     exit (status);
8701 }
8702 EOF
8703   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704   (eval $ac_link) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8708     (./conftest; exit; ) 2>/dev/null
8709     lt_status=$?
8710     case x$lt_status in
8711       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8712       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8713       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8714     esac
8715   else :
8716     # compilation failed
8717     lt_cv_dlopen_self_static=no
8718   fi
8719 fi
8720 rm -fr conftest*
8721
8722
8723 fi
8724 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8725 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8726     fi
8727
8728     CPPFLAGS="$save_CPPFLAGS"
8729     LDFLAGS="$save_LDFLAGS"
8730     LIBS="$save_LIBS"
8731     ;;
8732   esac
8733
8734   case $lt_cv_dlopen_self in
8735   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8736   *) enable_dlopen_self=unknown ;;
8737   esac
8738
8739   case $lt_cv_dlopen_self_static in
8740   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8741   *) enable_dlopen_self_static=unknown ;;
8742   esac
8743 fi
8744
8745
8746 # Report which librarie types wil actually be built
8747 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8748 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8749 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8750 echo "${ECHO_T}$can_build_shared" >&6
8751
8752 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8753 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8754 test "$can_build_shared" = "no" && enable_shared=no
8755
8756 # On AIX, shared libraries and static libraries use the same namespace, and
8757 # are all built from PIC.
8758 case "$host_os" in
8759 aix3*)
8760   test "$enable_shared" = yes && enable_static=no
8761   if test -n "$RANLIB"; then
8762     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8763     postinstall_cmds='$RANLIB $lib'
8764   fi
8765   ;;
8766
8767 aix4*)
8768   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8769     test "$enable_shared" = yes && enable_static=no
8770   fi
8771   ;;
8772   darwin* | rhapsody*)
8773   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8774     archive_cmds_need_lc=no
8775     case "$host_os" in
8776     rhapsody* | darwin1.[012])
8777       allow_undefined_flag='-undefined suppress'
8778       ;;
8779     *) # Darwin 1.3 on
8780       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8781       ;;
8782     esac
8783     # FIXME: Relying on posixy $() will cause problems for
8784     #        cross-compilation, but unfortunately the echo tests do not
8785     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8786     #          `"' quotes if we put them in here... so don't!
8787                 output_verbose_link_cmd='echo'
8788     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8789     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8790     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8791                   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}'
8792                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8793     hardcode_direct=no
8794     hardcode_automatic=yes
8795     hardcode_shlibpath_var=unsupported
8796     whole_archive_flag_spec='-all_load $convenience'
8797     link_all_deplibs=yes
8798     fi
8799     ;;
8800 esac
8801 echo "$as_me:$LINENO: result: $enable_shared" >&5
8802 echo "${ECHO_T}$enable_shared" >&6
8803
8804 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8805 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8806 # Make sure either enable_shared or enable_static is yes.
8807 test "$enable_shared" = yes || enable_static=yes
8808 echo "$as_me:$LINENO: result: $enable_static" >&5
8809 echo "${ECHO_T}$enable_static" >&6
8810
8811 # The else clause should only fire when bootstrapping the
8812 # libtool distribution, otherwise you forgot to ship ltmain.sh
8813 # with your package, and you will get complaints that there are
8814 # no rules to generate ltmain.sh.
8815 if test -f "$ltmain"; then
8816   # See if we are running on zsh, and set the options which allow our commands through
8817   # without removal of \ escapes.
8818   if test -n "${ZSH_VERSION+set}" ; then
8819     setopt NO_GLOB_SUBST
8820   fi
8821   # Now quote all the things that may contain metacharacters while being
8822   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8823   # variables and quote the copies for generation of the libtool script.
8824   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8825     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8826     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8827     deplibs_check_method reload_flag reload_cmds need_locks \
8828     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8829     lt_cv_sys_global_symbol_to_c_name_address \
8830     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8831     old_postinstall_cmds old_postuninstall_cmds \
8832     compiler \
8833     CC \
8834     LD \
8835     lt_prog_compiler_wl \
8836     lt_prog_compiler_pic \
8837     lt_prog_compiler_static \
8838     lt_prog_compiler_no_builtin_flag \
8839     export_dynamic_flag_spec \
8840     thread_safe_flag_spec \
8841     whole_archive_flag_spec \
8842     enable_shared_with_static_runtimes \
8843     old_archive_cmds \
8844     old_archive_from_new_cmds \
8845     predep_objects \
8846     postdep_objects \
8847     predeps \
8848     postdeps \
8849     compiler_lib_search_path \
8850     archive_cmds \
8851     archive_expsym_cmds \
8852     postinstall_cmds \
8853     postuninstall_cmds \
8854     old_archive_from_expsyms_cmds \
8855     allow_undefined_flag \
8856     no_undefined_flag \
8857     export_symbols_cmds \
8858     hardcode_libdir_flag_spec \
8859     hardcode_libdir_flag_spec_ld \
8860     hardcode_libdir_separator \
8861     hardcode_automatic \
8862     module_cmds \
8863     module_expsym_cmds \
8864     lt_cv_prog_compiler_c_o \
8865     exclude_expsyms \
8866     include_expsyms; do
8867
8868     case $var in
8869     old_archive_cmds | \
8870     old_archive_from_new_cmds | \
8871     archive_cmds | \
8872     archive_expsym_cmds | \
8873     module_cmds | \
8874     module_expsym_cmds | \
8875     old_archive_from_expsyms_cmds | \
8876     export_symbols_cmds | \
8877     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8878     postinstall_cmds | postuninstall_cmds | \
8879     old_postinstall_cmds | old_postuninstall_cmds | \
8880     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8881       # Double-quote double-evaled strings.
8882       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8883       ;;
8884     *)
8885       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8886       ;;
8887     esac
8888   done
8889
8890   case $lt_echo in
8891   *'\$0 --fallback-echo"')
8892     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8893     ;;
8894   esac
8895
8896 cfgfile="${ofile}T"
8897   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8898   $rm -f "$cfgfile"
8899   { echo "$as_me:$LINENO: creating $ofile" >&5
8900 echo "$as_me: creating $ofile" >&6;}
8901
8902   cat <<__EOF__ >> "$cfgfile"
8903 #! $SHELL
8904
8905 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8906 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8907 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8908 #
8909 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8910 # Free Software Foundation, Inc.
8911 #
8912 # This file is part of GNU Libtool:
8913 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8914 #
8915 # This program is free software; you can redistribute it and/or modify
8916 # it under the terms of the GNU General Public License as published by
8917 # the Free Software Foundation; either version 2 of the License, or
8918 # (at your option) any later version.
8919 #
8920 # This program is distributed in the hope that it will be useful, but
8921 # WITHOUT ANY WARRANTY; without even the implied warranty of
8922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8923 # General Public License for more details.
8924 #
8925 # You should have received a copy of the GNU General Public License
8926 # along with this program; if not, write to the Free Software
8927 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8928 #
8929 # As a special exception to the GNU General Public License, if you
8930 # distribute this file as part of a program that contains a
8931 # configuration script generated by Autoconf, you may include it under
8932 # the same distribution terms that you use for the rest of that program.
8933
8934 # A sed program that does not truncate output.
8935 SED=$lt_SED
8936
8937 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8938 Xsed="$SED -e s/^X//"
8939
8940 # The HP-UX ksh and POSIX shell print the target directory to stdout
8941 # if CDPATH is set.
8942 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8943
8944 # The names of the tagged configurations supported by this script.
8945 available_tags=
8946
8947 # ### BEGIN LIBTOOL CONFIG
8948
8949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8950
8951 # Shell to use when invoking shell scripts.
8952 SHELL=$lt_SHELL
8953
8954 # Whether or not to build shared libraries.
8955 build_libtool_libs=$enable_shared
8956
8957 # Whether or not to build static libraries.
8958 build_old_libs=$enable_static
8959
8960 # Whether or not to add -lc for building shared libraries.
8961 build_libtool_need_lc=$archive_cmds_need_lc
8962
8963 # Whether or not to disallow shared libs when runtime libs are static
8964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8965
8966 # Whether or not to optimize for fast installation.
8967 fast_install=$enable_fast_install
8968
8969 # The host system.
8970 host_alias=$host_alias
8971 host=$host
8972
8973 # An echo program that does not interpret backslashes.
8974 echo=$lt_echo
8975
8976 # The archiver.
8977 AR=$lt_AR
8978 AR_FLAGS=$lt_AR_FLAGS
8979
8980 # A C compiler.
8981 LTCC=$lt_LTCC
8982
8983 # A language-specific compiler.
8984 CC=$lt_compiler
8985
8986 # Is the compiler the GNU C compiler?
8987 with_gcc=$GCC
8988
8989 # An ERE matcher.
8990 EGREP=$lt_EGREP
8991
8992 # The linker used to build libraries.
8993 LD=$lt_LD
8994
8995 # Whether we need hard or soft links.
8996 LN_S=$lt_LN_S
8997
8998 # A BSD-compatible nm program.
8999 NM=$lt_NM
9000
9001 # A symbol stripping program
9002 STRIP=$STRIP
9003
9004 # Used to examine libraries when file_magic_cmd begins "file"
9005 MAGIC_CMD=$MAGIC_CMD
9006
9007 # Used on cygwin: DLL creation program.
9008 DLLTOOL="$DLLTOOL"
9009
9010 # Used on cygwin: object dumper.
9011 OBJDUMP="$OBJDUMP"
9012
9013 # Used on cygwin: assembler.
9014 AS="$AS"
9015
9016 # The name of the directory that contains temporary libtool files.
9017 objdir=$objdir
9018
9019 # How to create reloadable object files.
9020 reload_flag=$lt_reload_flag
9021 reload_cmds=$lt_reload_cmds
9022
9023 # How to pass a linker flag through the compiler.
9024 wl=$lt_lt_prog_compiler_wl
9025
9026 # Object file suffix (normally "o").
9027 objext="$ac_objext"
9028
9029 # Old archive suffix (normally "a").
9030 libext="$libext"
9031
9032 # Shared library suffix (normally ".so").
9033 shrext='$shrext'
9034
9035 # Executable file suffix (normally "").
9036 exeext="$exeext"
9037
9038 # Additional compiler flags for building library objects.
9039 pic_flag=$lt_lt_prog_compiler_pic
9040 pic_mode=$pic_mode
9041
9042 # What is the maximum length of a command?
9043 max_cmd_len=$lt_cv_sys_max_cmd_len
9044
9045 # Does compiler simultaneously support -c and -o options?
9046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9047
9048 # Must we lock files when doing compilation ?
9049 need_locks=$lt_need_locks
9050
9051 # Do we need the lib prefix for modules?
9052 need_lib_prefix=$need_lib_prefix
9053
9054 # Do we need a version for libraries?
9055 need_version=$need_version
9056
9057 # Whether dlopen is supported.
9058 dlopen_support=$enable_dlopen
9059
9060 # Whether dlopen of programs is supported.
9061 dlopen_self=$enable_dlopen_self
9062
9063 # Whether dlopen of statically linked programs is supported.
9064 dlopen_self_static=$enable_dlopen_self_static
9065
9066 # Compiler flag to prevent dynamic linking.
9067 link_static_flag=$lt_lt_prog_compiler_static
9068
9069 # Compiler flag to turn off builtin functions.
9070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9071
9072 # Compiler flag to allow reflexive dlopens.
9073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9074
9075 # Compiler flag to generate shared objects directly from archives.
9076 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9077
9078 # Compiler flag to generate thread-safe objects.
9079 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9080
9081 # Library versioning type.
9082 version_type=$version_type
9083
9084 # Format of library name prefix.
9085 libname_spec=$lt_libname_spec
9086
9087 # List of archive names.  First name is the real one, the rest are links.
9088 # The last name is the one that the linker finds with -lNAME.
9089 library_names_spec=$lt_library_names_spec
9090
9091 # The coded name of the library, if different from the real name.
9092 soname_spec=$lt_soname_spec
9093
9094 # Commands used to build and install an old-style archive.
9095 RANLIB=$lt_RANLIB
9096 old_archive_cmds=$lt_old_archive_cmds
9097 old_postinstall_cmds=$lt_old_postinstall_cmds
9098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9099
9100 # Create an old-style archive from a shared archive.
9101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9102
9103 # Create a temporary old-style archive to link instead of a shared archive.
9104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9105
9106 # Commands used to build and install a shared archive.
9107 archive_cmds=$lt_archive_cmds
9108 archive_expsym_cmds=$lt_archive_expsym_cmds
9109 postinstall_cmds=$lt_postinstall_cmds
9110 postuninstall_cmds=$lt_postuninstall_cmds
9111
9112 # Commands used to build a loadable module (assumed same as above if empty)
9113 module_cmds=$lt_module_cmds
9114 module_expsym_cmds=$lt_module_expsym_cmds
9115
9116 # Commands to strip libraries.
9117 old_striplib=$lt_old_striplib
9118 striplib=$lt_striplib
9119
9120 # Dependencies to place before the objects being linked to create a
9121 # shared library.
9122 predep_objects=$lt_predep_objects
9123
9124 # Dependencies to place after the objects being linked to create a
9125 # shared library.
9126 postdep_objects=$lt_postdep_objects
9127
9128 # Dependencies to place before the objects being linked to create a
9129 # shared library.
9130 predeps=$lt_predeps
9131
9132 # Dependencies to place after the objects being linked to create a
9133 # shared library.
9134 postdeps=$lt_postdeps
9135
9136 # The library search path used internally by the compiler when linking
9137 # a shared library.
9138 compiler_lib_search_path=$lt_compiler_lib_search_path
9139
9140 # Method to check whether dependent libraries are shared objects.
9141 deplibs_check_method=$lt_deplibs_check_method
9142
9143 # Command to use when deplibs_check_method == file_magic.
9144 file_magic_cmd=$lt_file_magic_cmd
9145
9146 # Flag that allows shared libraries with undefined symbols to be built.
9147 allow_undefined_flag=$lt_allow_undefined_flag
9148
9149 # Flag that forces no undefined symbols.
9150 no_undefined_flag=$lt_no_undefined_flag
9151
9152 # Commands used to finish a libtool library installation in a directory.
9153 finish_cmds=$lt_finish_cmds
9154
9155 # Same as above, but a single script fragment to be evaled but not shown.
9156 finish_eval=$lt_finish_eval
9157
9158 # Take the output of nm and produce a listing of raw symbols and C names.
9159 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9160
9161 # Transform the output of nm in a proper C declaration
9162 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9163
9164 # Transform the output of nm in a C name address pair
9165 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9166
9167 # This is the shared library runtime path variable.
9168 runpath_var=$runpath_var
9169
9170 # This is the shared library path variable.
9171 shlibpath_var=$shlibpath_var
9172
9173 # Is shlibpath searched before the hard-coded library search path?
9174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9175
9176 # How to hardcode a shared library path into an executable.
9177 hardcode_action=$hardcode_action
9178
9179 # Whether we should hardcode library paths into libraries.
9180 hardcode_into_libs=$hardcode_into_libs
9181
9182 # Flag to hardcode \$libdir into a binary during linking.
9183 # This must work even if \$libdir does not exist.
9184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9185
9186 # If ld is used when linking, flag to hardcode \$libdir into
9187 # a binary during linking. This must work even if \$libdir does
9188 # not exist.
9189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9190
9191 # Whether we need a single -rpath flag with a separated argument.
9192 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9193
9194 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9195 # resulting binary.
9196 hardcode_direct=$hardcode_direct
9197
9198 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9199 # resulting binary.
9200 hardcode_minus_L=$hardcode_minus_L
9201
9202 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9203 # the resulting binary.
9204 hardcode_shlibpath_var=$hardcode_shlibpath_var
9205
9206 # Set to yes if building a shared library automatically hardcodes DIR into the library
9207 # and all subsequent libraries and executables linked against it.
9208 hardcode_automatic=$hardcode_automatic
9209
9210 # Variables whose values should be saved in libtool wrapper scripts and
9211 # restored at relink time.
9212 variables_saved_for_relink="$variables_saved_for_relink"
9213
9214 # Whether libtool must link a program against all its dependency libraries.
9215 link_all_deplibs=$link_all_deplibs
9216
9217 # Compile-time system search path for libraries
9218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9219
9220 # Run-time system search path for libraries
9221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9222
9223 # Fix the shell variable \$srcfile for the compiler.
9224 fix_srcfile_path="$fix_srcfile_path"
9225
9226 # Set to yes if exported symbols are required.
9227 always_export_symbols=$always_export_symbols
9228
9229 # The commands to list exported symbols.
9230 export_symbols_cmds=$lt_export_symbols_cmds
9231
9232 # The commands to extract the exported symbol list from a shared archive.
9233 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9234
9235 # Symbols that should not be listed in the preloaded symbols.
9236 exclude_expsyms=$lt_exclude_expsyms
9237
9238 # Symbols that must always be exported.
9239 include_expsyms=$lt_include_expsyms
9240
9241 # ### END LIBTOOL CONFIG
9242
9243 __EOF__
9244
9245
9246   case $host_os in
9247   aix3*)
9248     cat <<\EOF >> "$cfgfile"
9249
9250 # AIX sometimes has problems with the GCC collect2 program.  For some
9251 # reason, if we set the COLLECT_NAMES environment variable, the problems
9252 # vanish in a puff of smoke.
9253 if test "X${COLLECT_NAMES+set}" != Xset; then
9254   COLLECT_NAMES=
9255   export COLLECT_NAMES
9256 fi
9257 EOF
9258     ;;
9259   esac
9260
9261   # We use sed instead of cat because bash on DJGPP gets confused if
9262   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9263   # text mode, it properly converts lines to CR/LF.  This bash problem
9264   # is reportedly fixed, but why not run on old versions too?
9265   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9266
9267   mv -f "$cfgfile" "$ofile" || \
9268     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9269   chmod +x "$ofile"
9270
9271 else
9272   # If there is no Makefile yet, we rely on a make rule to execute
9273   # `config.status --recheck' to rerun these tests and create the
9274   # libtool script then.
9275   test -f Makefile && make "$ltmain"
9276 fi
9277
9278
9279 ac_ext=c
9280 ac_cpp='$CPP $CPPFLAGS'
9281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9284
9285 CC="$lt_save_CC"
9286
9287
9288 # Check whether --with-tags or --without-tags was given.
9289 if test "${with_tags+set}" = set; then
9290   withval="$with_tags"
9291   tagnames="$withval"
9292 fi;
9293
9294 if test -f "$ltmain" && test -n "$tagnames"; then
9295   if test ! -f "${ofile}"; then
9296     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9297 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9298   fi
9299
9300   if test -z "$LTCC"; then
9301     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9302     if test -z "$LTCC"; then
9303       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9304 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9305     else
9306       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9307 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9308     fi
9309   fi
9310
9311   # Extract list of available tagged configurations in $ofile.
9312   # Note that this assumes the entire list is on one line.
9313   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9314
9315   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9316   for tagname in $tagnames; do
9317     IFS="$lt_save_ifs"
9318     # Check whether tagname contains only valid characters
9319     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9320     "") ;;
9321     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9322 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9323    { (exit 1); exit 1; }; }
9324         ;;
9325     esac
9326
9327     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9328     then
9329       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9330 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9331    { (exit 1); exit 1; }; }
9332     fi
9333
9334     # Update the list of available tags.
9335     if test -n "$tagname"; then
9336       echo appending configuration tag \"$tagname\" to $ofile
9337
9338       case $tagname in
9339       CXX)
9340         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9341           ac_ext=cc
9342 ac_cpp='$CXXCPP $CPPFLAGS'
9343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9346
9347
9348
9349
9350 archive_cmds_need_lc_CXX=no
9351 allow_undefined_flag_CXX=
9352 always_export_symbols_CXX=no
9353 archive_expsym_cmds_CXX=
9354 export_dynamic_flag_spec_CXX=
9355 hardcode_direct_CXX=no
9356 hardcode_libdir_flag_spec_CXX=
9357 hardcode_libdir_flag_spec_ld_CXX=
9358 hardcode_libdir_separator_CXX=
9359 hardcode_minus_L_CXX=no
9360 hardcode_automatic_CXX=no
9361 module_cmds_CXX=
9362 module_expsym_cmds_CXX=
9363 link_all_deplibs_CXX=unknown
9364 old_archive_cmds_CXX=$old_archive_cmds
9365 no_undefined_flag_CXX=
9366 whole_archive_flag_spec_CXX=
9367 enable_shared_with_static_runtimes_CXX=no
9368
9369 # Dependencies to place before and after the object being linked:
9370 predep_objects_CXX=
9371 postdep_objects_CXX=
9372 predeps_CXX=
9373 postdeps_CXX=
9374 compiler_lib_search_path_CXX=
9375
9376 # Source file extension for C++ test sources.
9377 ac_ext=cc
9378
9379 # Object file extension for compiled C++ test sources.
9380 objext=o
9381 objext_CXX=$objext
9382
9383 # Code to be used in simple compile tests
9384 lt_simple_compile_test_code="int some_variable = 0;\n"
9385
9386 # Code to be used in simple link tests
9387 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9388
9389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9390
9391 # If no C compiler was specified, use CC.
9392 LTCC=${LTCC-"$CC"}
9393
9394 # Allow CC to be a program name with arguments.
9395 compiler=$CC
9396
9397
9398 # Allow CC to be a program name with arguments.
9399 lt_save_CC=$CC
9400 lt_save_LD=$LD
9401 lt_save_GCC=$GCC
9402 GCC=$GXX
9403 lt_save_with_gnu_ld=$with_gnu_ld
9404 lt_save_path_LD=$lt_cv_path_LD
9405 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9406   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9407 else
9408   unset lt_cv_prog_gnu_ld
9409 fi
9410 if test -n "${lt_cv_path_LDCXX+set}"; then
9411   lt_cv_path_LD=$lt_cv_path_LDCXX
9412 else
9413   unset lt_cv_path_LD
9414 fi
9415 test -z "${LDCXX+set}" || LD=$LDCXX
9416 CC=${CXX-"c++"}
9417 compiler=$CC
9418 compiler_CXX=$CC
9419 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9420
9421 # We don't want -fno-exception wen compiling C++ code, so set the
9422 # no_builtin_flag separately
9423 if test "$GXX" = yes; then
9424   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9425 else
9426   lt_prog_compiler_no_builtin_flag_CXX=
9427 fi
9428
9429 if test "$GXX" = yes; then
9430   # Set up default GNU C++ configuration
9431
9432
9433 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9434 if test "${with_gnu_ld+set}" = set; then
9435   withval="$with_gnu_ld"
9436   test "$withval" = no || with_gnu_ld=yes
9437 else
9438   with_gnu_ld=no
9439 fi;
9440 ac_prog=ld
9441 if test "$GCC" = yes; then
9442   # Check if gcc -print-prog-name=ld gives a path.
9443   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9444 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9445   case $host in
9446   *-*-mingw*)
9447     # gcc leaves a trailing carriage return which upsets mingw
9448     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9449   *)
9450     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9451   esac
9452   case $ac_prog in
9453     # Accept absolute paths.
9454     [\\/]* | ?:[\\/]*)
9455       re_direlt='/[^/][^/]*/\.\./'
9456       # Canonicalize the path of ld
9457       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9458       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9459         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9460       done
9461       test -z "$LD" && LD="$ac_prog"
9462       ;;
9463   "")
9464     # If it fails, then pretend we aren't using GCC.
9465     ac_prog=ld
9466     ;;
9467   *)
9468     # If it is relative, then search for the first ld in PATH.
9469     with_gnu_ld=unknown
9470     ;;
9471   esac
9472 elif test "$with_gnu_ld" = yes; then
9473   echo "$as_me:$LINENO: checking for GNU ld" >&5
9474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9475 else
9476   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9478 fi
9479 if test "${lt_cv_path_LD+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   if test -z "$LD"; then
9483   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9484   for ac_dir in $PATH; do
9485     IFS="$lt_save_ifs"
9486     test -z "$ac_dir" && ac_dir=.
9487     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9488       lt_cv_path_LD="$ac_dir/$ac_prog"
9489       # Check to see if the program is GNU ld.  I'd rather use --version,
9490       # but apparently some GNU ld's only accept -v.
9491       # Break only if it was the GNU/non-GNU ld that we prefer.
9492       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9493       *GNU* | *'with BFD'*)
9494         test "$with_gnu_ld" != no && break
9495         ;;
9496       *)
9497         test "$with_gnu_ld" != yes && break
9498         ;;
9499       esac
9500     fi
9501   done
9502   IFS="$lt_save_ifs"
9503 else
9504   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9505 fi
9506 fi
9507
9508 LD="$lt_cv_path_LD"
9509 if test -n "$LD"; then
9510   echo "$as_me:$LINENO: result: $LD" >&5
9511 echo "${ECHO_T}$LD" >&6
9512 else
9513   echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6
9515 fi
9516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9518    { (exit 1); exit 1; }; }
9519 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9521 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9522   echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9525 case `"$LD" -v 2>&1 </dev/null` in
9526 *GNU* | *'with BFD'*)
9527   lt_cv_prog_gnu_ld=yes
9528   ;;
9529 *)
9530   lt_cv_prog_gnu_ld=no
9531   ;;
9532 esac
9533 fi
9534 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9535 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9536 with_gnu_ld=$lt_cv_prog_gnu_ld
9537
9538
9539
9540   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9541   # archiving commands below assume that GNU ld is being used.
9542   if test "$with_gnu_ld" = yes; then
9543     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544     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'
9545
9546     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9547     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9548
9549     # If archive_cmds runs LD, not CC, wlarc should be empty
9550     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9551     #     investigate it a little bit more. (MM)
9552     wlarc='${wl}'
9553
9554     # ancient GNU ld didn't support --whole-archive et. al.
9555     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9556         grep 'no-whole-archive' > /dev/null; then
9557       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9558     else
9559       whole_archive_flag_spec_CXX=
9560     fi
9561   else
9562     with_gnu_ld=no
9563     wlarc=
9564
9565     # A generic and very simple default shared library creation
9566     # command for GNU C++ for the case where it uses the native
9567     # linker, instead of GNU ld.  If possible, this setting should
9568     # overridden to take advantage of the native linker features on
9569     # the platform it is being used on.
9570     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9571   fi
9572
9573   # Commands to make compiler produce verbose output that lists
9574   # what "hidden" libraries, object files and flags are used when
9575   # linking a shared library.
9576   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9577
9578 else
9579   GXX=no
9580   with_gnu_ld=no
9581   wlarc=
9582 fi
9583
9584 # PORTME: fill in a description of your system's C++ link characteristics
9585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9587 ld_shlibs_CXX=yes
9588 case $host_os in
9589   aix3*)
9590     # FIXME: insert proper C++ library support
9591     ld_shlibs_CXX=no
9592     ;;
9593   aix4* | aix5*)
9594     if test "$host_cpu" = ia64; then
9595       # On IA64, the linker does run time linking by default, so we don't
9596       # have to do anything special.
9597       aix_use_runtimelinking=no
9598       exp_sym_flag='-Bexport'
9599       no_entry_flag=""
9600     else
9601       aix_use_runtimelinking=no
9602
9603       # Test if we are trying to use run time linking or normal
9604       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9605       # need to do runtime linking.
9606       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9607         for ld_flag in $LDFLAGS; do
9608           case $ld_flag in
9609           *-brtl*)
9610             aix_use_runtimelinking=yes
9611             break
9612             ;;
9613           esac
9614         done
9615       esac
9616
9617       exp_sym_flag='-bexport'
9618       no_entry_flag='-bnoentry'
9619     fi
9620
9621     # When large executables or shared objects are built, AIX ld can
9622     # have problems creating the table of contents.  If linking a library
9623     # or program results in "error TOC overflow" add -mminimal-toc to
9624     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9625     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9626
9627     archive_cmds_CXX=''
9628     hardcode_direct_CXX=yes
9629     hardcode_libdir_separator_CXX=':'
9630     link_all_deplibs_CXX=yes
9631
9632     if test "$GXX" = yes; then
9633       case $host_os in aix4.012|aix4.012.*)
9634       # We only want to do this on AIX 4.2 and lower, the check
9635       # below for broken collect2 doesn't work under 4.3+
9636         collect2name=`${CC} -print-prog-name=collect2`
9637         if test -f "$collect2name" && \
9638            strings "$collect2name" | grep resolve_lib_name >/dev/null
9639         then
9640           # We have reworked collect2
9641           hardcode_direct_CXX=yes
9642         else
9643           # We have old collect2
9644           hardcode_direct_CXX=unsupported
9645           # It fails to find uninstalled libraries when the uninstalled
9646           # path is not listed in the libpath.  Setting hardcode_minus_L
9647           # to unsupported forces relinking
9648           hardcode_minus_L_CXX=yes
9649           hardcode_libdir_flag_spec_CXX='-L$libdir'
9650           hardcode_libdir_separator_CXX=
9651         fi
9652       esac
9653       shared_flag='-shared'
9654     else
9655       # not using gcc
9656       if test "$host_cpu" = ia64; then
9657         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9658         # chokes on -Wl,-G. The following line is correct:
9659         shared_flag='-G'
9660       else
9661         if test "$aix_use_runtimelinking" = yes; then
9662           shared_flag='${wl}-G'
9663         else
9664           shared_flag='${wl}-bM:SRE'
9665         fi
9666       fi
9667     fi
9668
9669     # It seems that -bexpall does not export symbols beginning with
9670     # underscore (_), so it is better to generate a list of symbols to export.
9671     always_export_symbols_CXX=yes
9672     if test "$aix_use_runtimelinking" = yes; then
9673       # Warning - without using the other runtime loading flags (-brtl),
9674       # -berok will link without error, but may produce a broken library.
9675       allow_undefined_flag_CXX='-berok'
9676       # Determine the default libpath from the value encoded in an empty executable.
9677       cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683
9684 int
9685 main ()
9686 {
9687
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694   (eval $ac_link) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_cxx_werror_flag"
9702                          || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714
9715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9716 }'`
9717 # Check for a 64-bit object if we didn't find anything.
9718 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; }
9719 }'`; fi
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 fi
9725 rm -f conftest.err conftest.$ac_objext \
9726       conftest$ac_exeext conftest.$ac_ext
9727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9730
9731       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"
9732      else
9733       if test "$host_cpu" = ia64; then
9734         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9735         allow_undefined_flag_CXX="-z nodefs"
9736         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"
9737       else
9738         # Determine the default libpath from the value encoded in an empty executable.
9739         cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745
9746 int
9747 main ()
9748 {
9749
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_cxx_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776
9777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9778 }'`
9779 # Check for a 64-bit object if we didn't find anything.
9780 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; }
9781 }'`; fi
9782 else
9783   echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786 fi
9787 rm -f conftest.err conftest.$ac_objext \
9788       conftest$ac_exeext conftest.$ac_ext
9789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9790
9791         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9792         # Warning - without using the other run time loading flags,
9793         # -berok will link without error, but may produce a broken library.
9794         no_undefined_flag_CXX=' ${wl}-bernotok'
9795         allow_undefined_flag_CXX=' ${wl}-berok'
9796         # -bexpall does not export symbols beginning with underscore (_)
9797         always_export_symbols_CXX=yes
9798         # Exported symbols can be pulled into shared objects from archives
9799         whole_archive_flag_spec_CXX=' '
9800         archive_cmds_need_lc_CXX=yes
9801         # This is similar to how AIX traditionally builds it's shared libraries.
9802         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'
9803       fi
9804     fi
9805     ;;
9806   chorus*)
9807     case $cc_basename in
9808       *)
9809         # FIXME: insert proper C++ library support
9810         ld_shlibs_CXX=no
9811         ;;
9812     esac
9813     ;;
9814
9815   cygwin* | mingw* | pw32*)
9816     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9817     # as there is no search path for DLLs.
9818     hardcode_libdir_flag_spec_CXX='-L$libdir'
9819     allow_undefined_flag_CXX=unsupported
9820     always_export_symbols_CXX=no
9821     enable_shared_with_static_runtimes_CXX=yes
9822
9823     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9824       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'
9825       # If the export-symbols file already is a .def file (1st line
9826       # is EXPORTS), use it as is; otherwise, prepend...
9827       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9828         cp $export_symbols $output_objdir/$soname.def;
9829       else
9830         echo EXPORTS > $output_objdir/$soname.def;
9831         cat $export_symbols >> $output_objdir/$soname.def;
9832       fi~
9833       $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'
9834     else
9835       ld_shlibs_CXX=no
9836     fi
9837   ;;
9838
9839   darwin* | rhapsody*)
9840    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9841     archive_cmds_need_lc_CXX=no
9842     case "$host_os" in
9843     rhapsody* | darwin1.[012])
9844       allow_undefined_flag_CXX='-undefined suppress'
9845       ;;
9846     *) # Darwin 1.3 on
9847       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9848       ;;
9849     esac
9850         lt_int_apple_cc_single_mod=no
9851         output_verbose_link_cmd='echo'
9852         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9853           lt_int_apple_cc_single_mod=yes
9854         fi
9855         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9856           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9857         else
9858         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9859       fi
9860       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9861
9862     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9863       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9864         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}'
9865       else
9866         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9867       fi
9868         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9869     hardcode_direct_CXX=no
9870     hardcode_automatic_CXX=yes
9871     hardcode_shlibpath_var_CXX=unsupported
9872     whole_archive_flag_spec_CXX='-all_load $convenience'
9873     link_all_deplibs_CXX=yes
9874    fi
9875     ;;
9876
9877   dgux*)
9878     case $cc_basename in
9879       ec++)
9880         # FIXME: insert proper C++ library support
9881         ld_shlibs_CXX=no
9882         ;;
9883       ghcx)
9884         # Green Hills C++ Compiler
9885         # FIXME: insert proper C++ library support
9886         ld_shlibs_CXX=no
9887         ;;
9888       *)
9889         # FIXME: insert proper C++ library support
9890         ld_shlibs_CXX=no
9891         ;;
9892     esac
9893     ;;
9894   freebsd12*)
9895     # C++ shared libraries reported to be fairly broken before switch to ELF
9896     ld_shlibs_CXX=no
9897     ;;
9898   freebsd-elf*)
9899     archive_cmds_need_lc_CXX=no
9900     ;;
9901   freebsd*)
9902     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9903     # conventions
9904     ld_shlibs_CXX=yes
9905     ;;
9906   gnu*)
9907     ;;
9908   hpux9*)
9909     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9910     hardcode_libdir_separator_CXX=:
9911     export_dynamic_flag_spec_CXX='${wl}-E'
9912     hardcode_direct_CXX=yes
9913     hardcode_minus_L_CXX=yes # Not in the search PATH,
9914                                 # but as the default
9915                                 # location of the library.
9916
9917     case $cc_basename in
9918     CC)
9919       # FIXME: insert proper C++ library support
9920       ld_shlibs_CXX=no
9921       ;;
9922     aCC)
9923       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'
9924       # Commands to make compiler produce verbose output that lists
9925       # what "hidden" libraries, object files and flags are used when
9926       # linking a shared library.
9927       #
9928       # There doesn't appear to be a way to prevent this compiler from
9929       # explicitly linking system object files so we need to strip them
9930       # from the output so that they don't get included in the library
9931       # dependencies.
9932       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9933       ;;
9934     *)
9935       if test "$GXX" = yes; then
9936         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'
9937       else
9938         # FIXME: insert proper C++ library support
9939         ld_shlibs_CXX=no
9940       fi
9941       ;;
9942     esac
9943     ;;
9944   hpux10*|hpux11*)
9945     if test $with_gnu_ld = no; then
9946       case "$host_cpu" in
9947       hppa*64*)
9948         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9949         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9950         hardcode_libdir_separator_CXX=:
9951         ;;
9952       ia64*)
9953         hardcode_libdir_flag_spec_CXX='-L$libdir'
9954         ;;
9955       *)
9956         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9957         hardcode_libdir_separator_CXX=:
9958         export_dynamic_flag_spec_CXX='${wl}-E'
9959         ;;
9960       esac
9961     fi
9962     case "$host_cpu" in
9963     hppa*64*)
9964       hardcode_direct_CXX=no
9965       hardcode_shlibpath_var_CXX=no
9966       ;;
9967     ia64*)
9968       hardcode_direct_CXX=no
9969       hardcode_shlibpath_var_CXX=no
9970       hardcode_minus_L_CXX=yes # Not in the search PATH,
9971                                               # but as the default
9972                                               # location of the library.
9973       ;;
9974     *)
9975       hardcode_direct_CXX=yes
9976       hardcode_minus_L_CXX=yes # Not in the search PATH,
9977                                               # but as the default
9978                                               # location of the library.
9979       ;;
9980     esac
9981
9982     case $cc_basename in
9983       CC)
9984         # FIXME: insert proper C++ library support
9985         ld_shlibs_CXX=no
9986         ;;
9987       aCC)
9988         case "$host_cpu" in
9989         hppa*64*|ia64*)
9990           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9991           ;;
9992         *)
9993           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9994           ;;
9995         esac
9996         # Commands to make compiler produce verbose output that lists
9997         # what "hidden" libraries, object files and flags are used when
9998         # linking a shared library.
9999         #
10000         # There doesn't appear to be a way to prevent this compiler from
10001         # explicitly linking system object files so we need to strip them
10002         # from the output so that they don't get included in the library
10003         # dependencies.
10004         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'
10005         ;;
10006       *)
10007         if test "$GXX" = yes; then
10008           if test $with_gnu_ld = no; then
10009             case "$host_cpu" in
10010             ia64*|hppa*64*)
10011               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10012               ;;
10013             *)
10014               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'
10015               ;;
10016             esac
10017           fi
10018         else
10019           # FIXME: insert proper C++ library support
10020           ld_shlibs_CXX=no
10021         fi
10022         ;;
10023     esac
10024     ;;
10025   irix5* | irix6*)
10026     case $cc_basename in
10027       CC)
10028         # SGI C++
10029         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'
10030
10031         # Archives containing C++ object files must be created using
10032         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10033         # necessary to make sure instantiated templates are included
10034         # in the archive.
10035         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10036         ;;
10037       *)
10038         if test "$GXX" = yes; then
10039           if test "$with_gnu_ld" = no; then
10040             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'
10041           else
10042             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'
10043           fi
10044         fi
10045         link_all_deplibs_CXX=yes
10046         ;;
10047     esac
10048     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10049     hardcode_libdir_separator_CXX=:
10050     ;;
10051   linux*)
10052     case $cc_basename in
10053       KCC)
10054         # Kuck and Associates, Inc. (KAI) C++ Compiler
10055
10056         # KCC will only create a shared library if the output file
10057         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10058         # to its proper name (with version) after linking.
10059         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'
10060         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'
10061         # Commands to make compiler produce verbose output that lists
10062         # what "hidden" libraries, object files and flags are used when
10063         # linking a shared library.
10064         #
10065         # There doesn't appear to be a way to prevent this compiler from
10066         # explicitly linking system object files so we need to strip them
10067         # from the output so that they don't get included in the library
10068         # dependencies.
10069         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'
10070
10071         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10072         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10073
10074         # Archives containing C++ object files must be created using
10075         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10076         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10077         ;;
10078       icpc)
10079         # Intel C++
10080         with_gnu_ld=yes
10081         archive_cmds_need_lc_CXX=no
10082         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10083         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'
10084         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10085         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10086         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10087         ;;
10088       cxx)
10089         # Compaq C++
10090         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091         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'
10092
10093         runpath_var=LD_RUN_PATH
10094         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10095         hardcode_libdir_separator_CXX=:
10096
10097         # Commands to make compiler produce verbose output that lists
10098         # what "hidden" libraries, object files and flags are used when
10099         # linking a shared library.
10100         #
10101         # There doesn't appear to be a way to prevent this compiler from
10102         # explicitly linking system object files so we need to strip them
10103         # from the output so that they don't get included in the library
10104         # dependencies.
10105         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'
10106         ;;
10107     esac
10108     ;;
10109   lynxos*)
10110     # FIXME: insert proper C++ library support
10111     ld_shlibs_CXX=no
10112     ;;
10113   m88k*)
10114     # FIXME: insert proper C++ library support
10115     ld_shlibs_CXX=no
10116     ;;
10117   mvs*)
10118     case $cc_basename in
10119       cxx)
10120         # FIXME: insert proper C++ library support
10121         ld_shlibs_CXX=no
10122         ;;
10123       *)
10124         # FIXME: insert proper C++ library support
10125         ld_shlibs_CXX=no
10126         ;;
10127     esac
10128     ;;
10129   netbsd*)
10130     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10131       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10132       wlarc=
10133       hardcode_libdir_flag_spec_CXX='-R$libdir'
10134       hardcode_direct_CXX=yes
10135       hardcode_shlibpath_var_CXX=no
10136     fi
10137     # Workaround some broken pre-1.5 toolchains
10138     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10139     ;;
10140   osf3*)
10141     case $cc_basename in
10142       KCC)
10143         # Kuck and Associates, Inc. (KAI) C++ Compiler
10144
10145         # KCC will only create a shared library if the output file
10146         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10147         # to its proper name (with version) after linking.
10148         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'
10149
10150         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10151         hardcode_libdir_separator_CXX=:
10152
10153         # Archives containing C++ object files must be created using
10154         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10155         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10156
10157         ;;
10158       RCC)
10159         # Rational C++ 2.4.1
10160         # FIXME: insert proper C++ library support
10161         ld_shlibs_CXX=no
10162         ;;
10163       cxx)
10164         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10165         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'
10166
10167         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10168         hardcode_libdir_separator_CXX=:
10169
10170         # Commands to make compiler produce verbose output that lists
10171         # what "hidden" libraries, object files and flags are used when
10172         # linking a shared library.
10173         #
10174         # There doesn't appear to be a way to prevent this compiler from
10175         # explicitly linking system object files so we need to strip them
10176         # from the output so that they don't get included in the library
10177         # dependencies.
10178         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'
10179         ;;
10180       *)
10181         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10182           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10183           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'
10184
10185           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10186           hardcode_libdir_separator_CXX=:
10187
10188           # Commands to make compiler produce verbose output that lists
10189           # what "hidden" libraries, object files and flags are used when
10190           # linking a shared library.
10191           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10192
10193         else
10194           # FIXME: insert proper C++ library support
10195           ld_shlibs_CXX=no
10196         fi
10197         ;;
10198     esac
10199     ;;
10200   osf4* | osf5*)
10201     case $cc_basename in
10202       KCC)
10203         # Kuck and Associates, Inc. (KAI) C++ Compiler
10204
10205         # KCC will only create a shared library if the output file
10206         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10207         # to its proper name (with version) after linking.
10208         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'
10209
10210         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10211         hardcode_libdir_separator_CXX=:
10212
10213         # Archives containing C++ object files must be created using
10214         # the KAI C++ compiler.
10215         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10216         ;;
10217       RCC)
10218         # Rational C++ 2.4.1
10219         # FIXME: insert proper C++ library support
10220         ld_shlibs_CXX=no
10221         ;;
10222       cxx)
10223         allow_undefined_flag_CXX=' -expect_unresolved \*'
10224         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'
10225         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10226           echo "-hidden">> $lib.exp~
10227           $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~
10228           $rm $lib.exp'
10229
10230         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10231         hardcode_libdir_separator_CXX=:
10232
10233         # Commands to make compiler produce verbose output that lists
10234         # what "hidden" libraries, object files and flags are used when
10235         # linking a shared library.
10236         #
10237         # There doesn't appear to be a way to prevent this compiler from
10238         # explicitly linking system object files so we need to strip them
10239         # from the output so that they don't get included in the library
10240         # dependencies.
10241         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'
10242         ;;
10243       *)
10244         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10245           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10246          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'
10247
10248           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10249           hardcode_libdir_separator_CXX=:
10250
10251           # Commands to make compiler produce verbose output that lists
10252           # what "hidden" libraries, object files and flags are used when
10253           # linking a shared library.
10254           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10255
10256         else
10257           # FIXME: insert proper C++ library support
10258           ld_shlibs_CXX=no
10259         fi
10260         ;;
10261     esac
10262     ;;
10263   psos*)
10264     # FIXME: insert proper C++ library support
10265     ld_shlibs_CXX=no
10266     ;;
10267   sco*)
10268     archive_cmds_need_lc_CXX=no
10269     case $cc_basename in
10270       CC)
10271         # FIXME: insert proper C++ library support
10272         ld_shlibs_CXX=no
10273         ;;
10274       *)
10275         # FIXME: insert proper C++ library support
10276         ld_shlibs_CXX=no
10277         ;;
10278     esac
10279     ;;
10280   sunos4*)
10281     case $cc_basename in
10282       CC)
10283         # Sun C++ 4.x
10284         # FIXME: insert proper C++ library support
10285         ld_shlibs_CXX=no
10286         ;;
10287       lcc)
10288         # Lucid
10289         # FIXME: insert proper C++ library support
10290         ld_shlibs_CXX=no
10291         ;;
10292       *)
10293         # FIXME: insert proper C++ library support
10294         ld_shlibs_CXX=no
10295         ;;
10296     esac
10297     ;;
10298   solaris*)
10299     case $cc_basename in
10300       CC)
10301         # Sun C++ 4.2, 5.x and Centerline C++
10302         no_undefined_flag_CXX=' -zdefs'
10303         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10304         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10305         $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'
10306
10307         hardcode_libdir_flag_spec_CXX='-R$libdir'
10308         hardcode_shlibpath_var_CXX=no
10309         case $host_os in
10310           solaris2.0-5 | solaris2.0-5.*) ;;
10311           *)
10312             # The C++ compiler is used as linker so we must use $wl
10313             # flag to pass the commands to the underlying system
10314             # linker.
10315             # Supported since Solaris 2.6 (maybe 2.5.1?)
10316             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10317             ;;
10318         esac
10319         link_all_deplibs_CXX=yes
10320
10321         # Commands to make compiler produce verbose output that lists
10322         # what "hidden" libraries, object files and flags are used when
10323         # linking a shared library.
10324         #
10325         # There doesn't appear to be a way to prevent this compiler from
10326         # explicitly linking system object files so we need to strip them
10327         # from the output so that they don't get included in the library
10328         # dependencies.
10329         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'
10330
10331         # Archives containing C++ object files must be created using
10332         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10333         # necessary to make sure instantiated templates are included
10334         # in the archive.
10335         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10336         ;;
10337       gcx)
10338         # Green Hills C++ Compiler
10339         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10340
10341         # The C++ compiler must be used to create the archive.
10342         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10343         ;;
10344       *)
10345         # GNU C++ compiler with Solaris linker
10346         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10347           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10348           if $CC --version | grep -v '^2\.7' > /dev/null; then
10349             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10350             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10351                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10352
10353             # Commands to make compiler produce verbose output that lists
10354             # what "hidden" libraries, object files and flags are used when
10355             # linking a shared library.
10356             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10357           else
10358             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10359             # platform.
10360             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10361             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10362                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10363
10364             # Commands to make compiler produce verbose output that lists
10365             # what "hidden" libraries, object files and flags are used when
10366             # linking a shared library.
10367             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10368           fi
10369
10370           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10371         fi
10372         ;;
10373     esac
10374     ;;
10375   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10376     archive_cmds_need_lc_CXX=no
10377     ;;
10378   tandem*)
10379     case $cc_basename in
10380       NCC)
10381         # NonStop-UX NCC 3.20
10382         # FIXME: insert proper C++ library support
10383         ld_shlibs_CXX=no
10384         ;;
10385       *)
10386         # FIXME: insert proper C++ library support
10387         ld_shlibs_CXX=no
10388         ;;
10389     esac
10390     ;;
10391   vxworks*)
10392     # FIXME: insert proper C++ library support
10393     ld_shlibs_CXX=no
10394     ;;
10395   *)
10396     # FIXME: insert proper C++ library support
10397     ld_shlibs_CXX=no
10398     ;;
10399 esac
10400 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10401 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10402 test "$ld_shlibs_CXX" = no && can_build_shared=no
10403
10404 GCC_CXX="$GXX"
10405 LD_CXX="$LD"
10406
10407 ## CAVEAT EMPTOR:
10408 ## There is no encapsulation within the following macros, do not change
10409 ## the running order or otherwise move them around unless you know exactly
10410 ## what you are doing...
10411
10412 cat > conftest.$ac_ext <<EOF
10413 class Foo
10414 {
10415 public:
10416   Foo (void) { a = 0; }
10417 private:
10418   int a;
10419 };
10420 EOF
10421
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423   (eval $ac_compile) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; then
10427   # Parse the compiler output and extract the necessary
10428   # objects, libraries and library flags.
10429
10430   # Sentinel used to keep track of whether or not we are before
10431   # the conftest object file.
10432   pre_test_object_deps_done=no
10433
10434   # The `*' in the case matches for architectures that use `case' in
10435   # $output_verbose_cmd can trigger glob expansion during the loop
10436   # eval without this substitution.
10437   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10438
10439   for p in `eval $output_verbose_link_cmd`; do
10440     case $p in
10441
10442     -L* | -R* | -l*)
10443        # Some compilers place space between "-{L,R}" and the path.
10444        # Remove the space.
10445        if test $p = "-L" \
10446           || test $p = "-R"; then
10447          prev=$p
10448          continue
10449        else
10450          prev=
10451        fi
10452
10453        if test "$pre_test_object_deps_done" = no; then
10454          case $p in
10455          -L* | -R*)
10456            # Internal compiler library paths should come after those
10457            # provided the user.  The postdeps already come after the
10458            # user supplied libs so there is no need to process them.
10459            if test -z "$compiler_lib_search_path_CXX"; then
10460              compiler_lib_search_path_CXX="${prev}${p}"
10461            else
10462              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10463            fi
10464            ;;
10465          # The "-l" case would never come before the object being
10466          # linked, so don't bother handling this case.
10467          esac
10468        else
10469          if test -z "$postdeps_CXX"; then
10470            postdeps_CXX="${prev}${p}"
10471          else
10472            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10473          fi
10474        fi
10475        ;;
10476
10477     *.$objext)
10478        # This assumes that the test object file only shows up
10479        # once in the compiler output.
10480        if test "$p" = "conftest.$objext"; then
10481          pre_test_object_deps_done=yes
10482          continue
10483        fi
10484
10485        if test "$pre_test_object_deps_done" = no; then
10486          if test -z "$predep_objects_CXX"; then
10487            predep_objects_CXX="$p"
10488          else
10489            predep_objects_CXX="$predep_objects_CXX $p"
10490          fi
10491        else
10492          if test -z "$postdep_objects_CXX"; then
10493            postdep_objects_CXX="$p"
10494          else
10495            postdep_objects_CXX="$postdep_objects_CXX $p"
10496          fi
10497        fi
10498        ;;
10499
10500     *) ;; # Ignore the rest.
10501
10502     esac
10503   done
10504
10505   # Clean up.
10506   rm -f a.out a.exe
10507 else
10508   echo "libtool.m4: error: problem compiling CXX test program"
10509 fi
10510
10511 $rm -f confest.$objext
10512
10513 case " $postdeps_CXX " in
10514 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10515 esac
10516
10517 lt_prog_compiler_wl_CXX=
10518 lt_prog_compiler_pic_CXX=
10519 lt_prog_compiler_static_CXX=
10520
10521 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10522 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10523
10524   # C++ specific cases for pic, static, wl, etc.
10525   if test "$GXX" = yes; then
10526     lt_prog_compiler_wl_CXX='-Wl,'
10527     lt_prog_compiler_static_CXX='-static'
10528
10529     case $host_os in
10530     aix*)
10531       # All AIX code is PIC.
10532       if test "$host_cpu" = ia64; then
10533         # AIX 5 now supports IA64 processor
10534         lt_prog_compiler_static_CXX='-Bstatic'
10535       fi
10536       ;;
10537     amigaos*)
10538       # FIXME: we need at least 68020 code to build shared libraries, but
10539       # adding the `-m68020' flag to GCC prevents building anything better,
10540       # like `-m68040'.
10541       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10542       ;;
10543     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10544       # PIC is the default for these OSes.
10545       ;;
10546     mingw* | os2* | pw32*)
10547       # This hack is so that the source file can tell whether it is being
10548       # built for inclusion in a dll (and should export symbols for example).
10549       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10550       ;;
10551     darwin* | rhapsody*)
10552       # PIC is the default on this platform
10553       # Common symbols not allowed in MH_DYLIB files
10554       lt_prog_compiler_pic_CXX='-fno-common'
10555       ;;
10556     *djgpp*)
10557       # DJGPP does not support shared libraries at all
10558       lt_prog_compiler_pic_CXX=
10559       ;;
10560     sysv4*MP*)
10561       if test -d /usr/nec; then
10562         lt_prog_compiler_pic_CXX=-Kconform_pic
10563       fi
10564       ;;
10565     hpux*)
10566       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10567       # not for PA HP-UX.
10568       case "$host_cpu" in
10569       hppa*64*|ia64*)
10570         ;;
10571       *)
10572         lt_prog_compiler_pic_CXX='-fPIC'
10573         ;;
10574       esac
10575       ;;
10576     *)
10577       lt_prog_compiler_pic_CXX='-fPIC'
10578       ;;
10579     esac
10580   else
10581     case $host_os in
10582       aix4* | aix5*)
10583         # All AIX code is PIC.
10584         if test "$host_cpu" = ia64; then
10585           # AIX 5 now supports IA64 processor
10586           lt_prog_compiler_static_CXX='-Bstatic'
10587         else
10588           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10589         fi
10590         ;;
10591       chorus*)
10592         case $cc_basename in
10593         cxch68)
10594           # Green Hills C++ Compiler
10595           # _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"
10596           ;;
10597         esac
10598         ;;
10599       dgux*)
10600         case $cc_basename in
10601           ec++)
10602             lt_prog_compiler_pic_CXX='-KPIC'
10603             ;;
10604           ghcx)
10605             # Green Hills C++ Compiler
10606             lt_prog_compiler_pic_CXX='-pic'
10607             ;;
10608           *)
10609             ;;
10610         esac
10611         ;;
10612       freebsd*)
10613         # FreeBSD uses GNU C++
10614         ;;
10615       hpux9* | hpux10* | hpux11*)
10616         case $cc_basename in
10617           CC)
10618             lt_prog_compiler_wl_CXX='-Wl,'
10619             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10620             if test "$host_cpu" != ia64; then
10621               lt_prog_compiler_pic_CXX='+Z'
10622             fi
10623             ;;
10624           aCC)
10625             lt_prog_compiler_wl_CXX='-Wl,'
10626             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10627             case "$host_cpu" in
10628             hppa*64*|ia64*)
10629               # +Z the default
10630               ;;
10631             *)
10632               lt_prog_compiler_pic_CXX='+Z'
10633               ;;
10634             esac
10635             ;;
10636           *)
10637             ;;
10638         esac
10639         ;;
10640       irix5* | irix6* | nonstopux*)
10641         case $cc_basename in
10642           CC)
10643             lt_prog_compiler_wl_CXX='-Wl,'
10644             lt_prog_compiler_static_CXX='-non_shared'
10645             # CC pic flag -KPIC is the default.
10646             ;;
10647           *)
10648             ;;
10649         esac
10650         ;;
10651       linux*)
10652         case $cc_basename in
10653           KCC)
10654             # KAI C++ Compiler
10655             lt_prog_compiler_wl_CXX='--backend -Wl,'
10656             lt_prog_compiler_pic_CXX='-fPIC'
10657             ;;
10658           icpc)
10659             # Intel C++
10660             lt_prog_compiler_wl_CXX='-Wl,'
10661             lt_prog_compiler_pic_CXX='-KPIC'
10662             lt_prog_compiler_static_CXX='-static'
10663             ;;
10664           cxx)
10665             # Compaq C++
10666             # Make sure the PIC flag is empty.  It appears that all Alpha
10667             # Linux and Compaq Tru64 Unix objects are PIC.
10668             lt_prog_compiler_pic_CXX=
10669             lt_prog_compiler_static_CXX='-non_shared'
10670             ;;
10671           *)
10672             ;;
10673         esac
10674         ;;
10675       lynxos*)
10676         ;;
10677       m88k*)
10678         ;;
10679       mvs*)
10680         case $cc_basename in
10681           cxx)
10682             lt_prog_compiler_pic_CXX='-W c,exportall'
10683             ;;
10684           *)
10685             ;;
10686         esac
10687         ;;
10688       netbsd*)
10689         ;;
10690       osf3* | osf4* | osf5*)
10691         case $cc_basename in
10692           KCC)
10693             lt_prog_compiler_wl_CXX='--backend -Wl,'
10694             ;;
10695           RCC)
10696             # Rational C++ 2.4.1
10697             lt_prog_compiler_pic_CXX='-pic'
10698             ;;
10699           cxx)
10700             # Digital/Compaq C++
10701             lt_prog_compiler_wl_CXX='-Wl,'
10702             # Make sure the PIC flag is empty.  It appears that all Alpha
10703             # Linux and Compaq Tru64 Unix objects are PIC.
10704             lt_prog_compiler_pic_CXX=
10705             lt_prog_compiler_static_CXX='-non_shared'
10706             ;;
10707           *)
10708             ;;
10709         esac
10710         ;;
10711       psos*)
10712         ;;
10713       sco*)
10714         case $cc_basename in
10715           CC)
10716             lt_prog_compiler_pic_CXX='-fPIC'
10717             ;;
10718           *)
10719             ;;
10720         esac
10721         ;;
10722       solaris*)
10723         case $cc_basename in
10724           CC)
10725             # Sun C++ 4.2, 5.x and Centerline C++
10726             lt_prog_compiler_pic_CXX='-KPIC'
10727             lt_prog_compiler_static_CXX='-Bstatic'
10728             lt_prog_compiler_wl_CXX='-Qoption ld '
10729             ;;
10730           gcx)
10731             # Green Hills C++ Compiler
10732             lt_prog_compiler_pic_CXX='-PIC'
10733             ;;
10734           *)
10735             ;;
10736         esac
10737         ;;
10738       sunos4*)
10739         case $cc_basename in
10740           CC)
10741             # Sun C++ 4.x
10742             lt_prog_compiler_pic_CXX='-pic'
10743             lt_prog_compiler_static_CXX='-Bstatic'
10744             ;;
10745           lcc)
10746             # Lucid
10747             lt_prog_compiler_pic_CXX='-pic'
10748             ;;
10749           *)
10750             ;;
10751         esac
10752         ;;
10753       tandem*)
10754         case $cc_basename in
10755           NCC)
10756             # NonStop-UX NCC 3.20
10757             lt_prog_compiler_pic_CXX='-KPIC'
10758             ;;
10759           *)
10760             ;;
10761         esac
10762         ;;
10763       unixware*)
10764         ;;
10765       vxworks*)
10766         ;;
10767       *)
10768         lt_prog_compiler_can_build_shared_CXX=no
10769         ;;
10770     esac
10771   fi
10772
10773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10775
10776 #
10777 # Check to make sure the PIC flag actually works.
10778 #
10779 if test -n "$lt_prog_compiler_pic_CXX"; then
10780   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10782 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   lt_prog_compiler_pic_works_CXX=no
10786   ac_outfile=conftest.$ac_objext
10787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10788    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10789    # Insert the option either (1) after the last *FLAGS variable, or
10790    # (2) before a word containing "conftest.", or (3) at the end.
10791    # Note that $ac_compile itself does not contain backslashes and begins
10792    # with a dollar sign (not a hyphen), so the echo should work correctly.
10793    # The option is referenced via a variable to avoid confusing sed.
10794    lt_compile=`echo "$ac_compile" | $SED \
10795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10797    -e 's:$: $lt_compiler_flag:'`
10798    (eval echo "\"\$as_me:10798: $lt_compile\"" >&5)
10799    (eval "$lt_compile" 2>conftest.err)
10800    ac_status=$?
10801    cat conftest.err >&5
10802    echo "$as_me:10802: \$? = $ac_status" >&5
10803    if (exit $ac_status) && test -s "$ac_outfile"; then
10804      # The compiler can only warn and ignore the option if not recognized
10805      # So say no if there are warnings
10806      if test ! -s conftest.err; then
10807        lt_prog_compiler_pic_works_CXX=yes
10808      fi
10809    fi
10810    $rm conftest*
10811
10812 fi
10813 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10814 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10815
10816 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10817     case $lt_prog_compiler_pic_CXX in
10818      "" | " "*) ;;
10819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10820      esac
10821 else
10822     lt_prog_compiler_pic_CXX=
10823      lt_prog_compiler_can_build_shared_CXX=no
10824 fi
10825
10826 fi
10827 case "$host_os" in
10828   # For platforms which do not support PIC, -DPIC is meaningless:
10829   *djgpp*)
10830     lt_prog_compiler_pic_CXX=
10831     ;;
10832   *)
10833     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10834     ;;
10835 esac
10836
10837 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10839 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10840   echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842   lt_cv_prog_compiler_c_o_CXX=no
10843    $rm -r conftest 2>/dev/null
10844    mkdir conftest
10845    cd conftest
10846    mkdir out
10847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10848
10849    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10850    # that will create temporary files in the current directory regardless of
10851    # the output directory.  Thus, making CWD read-only will cause this test
10852    # to fail, enabling locking or at least warning the user not to do parallel
10853    # builds.
10854    chmod -w .
10855
10856    lt_compiler_flag="-o out/conftest2.$ac_objext"
10857    # Insert the option either (1) after the last *FLAGS variable, or
10858    # (2) before a word containing "conftest.", or (3) at the end.
10859    # Note that $ac_compile itself does not contain backslashes and begins
10860    # with a dollar sign (not a hyphen), so the echo should work correctly.
10861    lt_compile=`echo "$ac_compile" | $SED \
10862    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10864    -e 's:$: $lt_compiler_flag:'`
10865    (eval echo "\"\$as_me:10865: $lt_compile\"" >&5)
10866    (eval "$lt_compile" 2>out/conftest.err)
10867    ac_status=$?
10868    cat out/conftest.err >&5
10869    echo "$as_me:10869: \$? = $ac_status" >&5
10870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10871    then
10872      # The compiler can only warn and ignore the option if not recognized
10873      # So say no if there are warnings
10874      if test ! -s out/conftest.err; then
10875        lt_cv_prog_compiler_c_o_CXX=yes
10876      fi
10877    fi
10878    chmod u+w .
10879    $rm conftest* out/*
10880    rmdir out
10881    cd ..
10882    rmdir conftest
10883    $rm conftest*
10884
10885 fi
10886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10888
10889
10890 hard_links="nottested"
10891 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10892   # do not overwrite the value of need_locks provided by the user
10893   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10895   hard_links=yes
10896   $rm conftest*
10897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10898   touch conftest.a
10899   ln conftest.a conftest.b 2>&5 || hard_links=no
10900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10901   echo "$as_me:$LINENO: result: $hard_links" >&5
10902 echo "${ECHO_T}$hard_links" >&6
10903   if test "$hard_links" = no; then
10904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10906     need_locks=warn
10907   fi
10908 else
10909   need_locks=no
10910 fi
10911
10912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10914
10915   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10916   case $host_os in
10917   aix4* | aix5*)
10918     # If we're using GNU nm, then we don't want the "-C" option.
10919     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10920     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10921       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'
10922     else
10923       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'
10924     fi
10925     ;;
10926   pw32*)
10927     export_symbols_cmds_CXX="$ltdll_cmds"
10928   ;;
10929   cygwin* | mingw*)
10930     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10931   ;;
10932   *)
10933     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10934   ;;
10935   esac
10936
10937 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10938 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10939 test "$ld_shlibs_CXX" = no && can_build_shared=no
10940
10941 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10942 if test "$GCC" = yes; then
10943   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10944 fi
10945
10946 #
10947 # Do we need to explicitly link libc?
10948 #
10949 case "x$archive_cmds_need_lc_CXX" in
10950 x|xyes)
10951   # Assume -lc should be added
10952   archive_cmds_need_lc_CXX=yes
10953
10954   if test "$enable_shared" = yes && test "$GCC" = yes; then
10955     case $archive_cmds_CXX in
10956     *'~'*)
10957       # FIXME: we may have to deal with multi-command sequences.
10958       ;;
10959     '$CC '*)
10960       # Test whether the compiler implicitly links with -lc since on some
10961       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10962       # to ld, don't add -lc before -lgcc.
10963       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10964 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10965       $rm conftest*
10966       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10967
10968       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969   (eval $ac_compile) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } 2>conftest.err; then
10973         soname=conftest
10974         lib=conftest
10975         libobjs=conftest.$ac_objext
10976         deplibs=
10977         wl=$lt_prog_compiler_wl_CXX
10978         compiler_flags=-v
10979         linker_flags=-v
10980         verstring=
10981         output_objdir=.
10982         libname=conftest
10983         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10984         allow_undefined_flag_CXX=
10985         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10986   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); }
10990         then
10991           archive_cmds_need_lc_CXX=no
10992         else
10993           archive_cmds_need_lc_CXX=yes
10994         fi
10995         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10996       else
10997         cat conftest.err 1>&5
10998       fi
10999       $rm conftest*
11000       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11001 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11002       ;;
11003     esac
11004   fi
11005   ;;
11006 esac
11007
11008 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11009 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11010 hardcode_action_CXX=
11011 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11012    test -n "$runpath_var CXX" || \
11013    test "X$hardcode_automatic_CXX"="Xyes" ; then
11014
11015   # We can hardcode non-existant directories.
11016   if test "$hardcode_direct_CXX" != no &&
11017      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11018      # have to relink, otherwise we might link with an installed library
11019      # when we should be linking with a yet-to-be-installed one
11020      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11021      test "$hardcode_minus_L_CXX" != no; then
11022     # Linking always hardcodes the temporary library directory.
11023     hardcode_action_CXX=relink
11024   else
11025     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11026     hardcode_action_CXX=immediate
11027   fi
11028 else
11029   # We cannot hardcode anything, or else we can only hardcode existing
11030   # directories.
11031   hardcode_action_CXX=unsupported
11032 fi
11033 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11034 echo "${ECHO_T}$hardcode_action_CXX" >&6
11035
11036 if test "$hardcode_action_CXX" = relink; then
11037   # Fast installation is not supported
11038   enable_fast_install=no
11039 elif test "$shlibpath_overrides_runpath" = yes ||
11040      test "$enable_shared" = no; then
11041   # Fast installation is not necessary
11042   enable_fast_install=needless
11043 fi
11044
11045 striplib=
11046 old_striplib=
11047 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11048 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11049 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11050   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11051   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11052   echo "$as_me:$LINENO: result: yes" >&5
11053 echo "${ECHO_T}yes" >&6
11054 else
11055 # FIXME - insert some real tests, host_os isn't really good enough
11056   case $host_os in
11057    darwin*)
11058        if test -n "$STRIP" ; then
11059          striplib="$STRIP -x"
11060          echo "$as_me:$LINENO: result: yes" >&5
11061 echo "${ECHO_T}yes" >&6
11062        else
11063   echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11065 fi
11066        ;;
11067    *)
11068   echo "$as_me:$LINENO: result: no" >&5
11069 echo "${ECHO_T}no" >&6
11070     ;;
11071   esac
11072 fi
11073
11074 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11075 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11076 library_names_spec=
11077 libname_spec='lib$name'
11078 soname_spec=
11079 shrext=".so"
11080 postinstall_cmds=
11081 postuninstall_cmds=
11082 finish_cmds=
11083 finish_eval=
11084 shlibpath_var=
11085 shlibpath_overrides_runpath=unknown
11086 version_type=none
11087 dynamic_linker="$host_os ld.so"
11088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11089 if test "$GCC" = yes; then
11090   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11091   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11092     # if the path contains ";" then we assume it to be the separator
11093     # otherwise default to the standard path separator (i.e. ":") - it is
11094     # assumed that no part of a normal pathname contains ";" but that should
11095     # okay in the real world where ";" in dirpaths is itself problematic.
11096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11097   else
11098     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11099   fi
11100 else
11101   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11102 fi
11103 need_lib_prefix=unknown
11104 hardcode_into_libs=no
11105
11106 # when you set need_version to no, make sure it does not cause -set_version
11107 # flags to be left without arguments
11108 need_version=unknown
11109
11110 case $host_os in
11111 aix3*)
11112   version_type=linux
11113   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11114   shlibpath_var=LIBPATH
11115
11116   # AIX 3 has no versioning support, so we append a major version to the name.
11117   soname_spec='${libname}${release}${shared_ext}$major'
11118   ;;
11119
11120 aix4* | aix5*)
11121   version_type=linux
11122   need_lib_prefix=no
11123   need_version=no
11124   hardcode_into_libs=yes
11125   if test "$host_cpu" = ia64; then
11126     # AIX 5 supports IA64
11127     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11128     shlibpath_var=LD_LIBRARY_PATH
11129   else
11130     # With GCC up to 2.95.x, collect2 would create an import file
11131     # for dependence libraries.  The import file would start with
11132     # the line `#! .'.  This would cause the generated library to
11133     # depend on `.', always an invalid library.  This was fixed in
11134     # development snapshots of GCC prior to 3.0.
11135     case $host_os in
11136       aix4 | aix4.[01] | aix4.[01].*)
11137       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11138            echo ' yes '
11139            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11140         :
11141       else
11142         can_build_shared=no
11143       fi
11144       ;;
11145     esac
11146     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11147     # soname into executable. Probably we can add versioning support to
11148     # collect2, so additional links can be useful in future.
11149     if test "$aix_use_runtimelinking" = yes; then
11150       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11151       # instead of lib<name>.a to let people know that these are not
11152       # typical AIX shared libraries.
11153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154     else
11155       # We preserve .a as extension for shared libraries through AIX4.2
11156       # and later when we are not doing run time linking.
11157       library_names_spec='${libname}${release}.a $libname.a'
11158       soname_spec='${libname}${release}${shared_ext}$major'
11159     fi
11160     shlibpath_var=LIBPATH
11161   fi
11162   ;;
11163
11164 amigaos*)
11165   library_names_spec='$libname.ixlibrary $libname.a'
11166   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11167   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'
11168   ;;
11169
11170 beos*)
11171   library_names_spec='${libname}${shared_ext}'
11172   dynamic_linker="$host_os ld.so"
11173   shlibpath_var=LIBRARY_PATH
11174   ;;
11175
11176 bsdi4*)
11177   version_type=linux
11178   need_version=no
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180   soname_spec='${libname}${release}${shared_ext}$major'
11181   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11182   shlibpath_var=LD_LIBRARY_PATH
11183   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11184   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11185   # the default ld.so.conf also contains /usr/contrib/lib and
11186   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11187   # libtool to hard-code these into programs
11188   ;;
11189
11190 cygwin* | mingw* | pw32*)
11191   version_type=windows
11192   shrext=".dll"
11193   need_version=no
11194   need_lib_prefix=no
11195
11196   case $GCC,$host_os in
11197   yes,cygwin* | yes,mingw* | yes,pw32*)
11198     library_names_spec='$libname.dll.a'
11199     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11200     postinstall_cmds='base_file=`basename \${file}`~
11201       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11202       dldir=$destdir/`dirname \$dlpath`~
11203       test -d \$dldir || mkdir -p \$dldir~
11204       $install_prog $dir/$dlname \$dldir/$dlname'
11205     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206       dlpath=$dir/\$dldll~
11207        $rm \$dlpath'
11208     shlibpath_overrides_runpath=yes
11209
11210     case $host_os in
11211     cygwin*)
11212       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11213       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11214       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11215       ;;
11216     mingw*)
11217       # MinGW DLLs use traditional 'lib' prefix
11218       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11219       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11220       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11221         # It is most probably a Windows format PATH printed by
11222         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11223         # path with ; separators, and with drive letters. We can handle the
11224         # drive letters (cygwin fileutils understands them), so leave them,
11225         # especially as we might pass files found there to a mingw objdump,
11226         # which wouldn't understand a cygwinified path. Ahh.
11227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11228       else
11229         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11230       fi
11231       ;;
11232     pw32*)
11233       # pw32 DLLs use 'pw' prefix rather than 'lib'
11234       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11235       ;;
11236     esac
11237     ;;
11238
11239   *)
11240     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11241     ;;
11242   esac
11243   dynamic_linker='Win32 ld.exe'
11244   # FIXME: first we should search . and the directory the executable is in
11245   shlibpath_var=PATH
11246   ;;
11247
11248 darwin* | rhapsody*)
11249   dynamic_linker="$host_os dyld"
11250   version_type=darwin
11251   need_lib_prefix=no
11252   need_version=no
11253   # FIXME: Relying on posixy $() will cause problems for
11254   #        cross-compilation, but unfortunately the echo tests do not
11255   #        yet detect zsh echo's removal of \ escapes.
11256   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11257   soname_spec='${libname}${release}${major}$shared_ext'
11258   shlibpath_overrides_runpath=yes
11259   shlibpath_var=DYLD_LIBRARY_PATH
11260   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11261   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11262   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11263   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"`
11264   fi
11265   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11266   ;;
11267
11268 dgux*)
11269   version_type=linux
11270   need_lib_prefix=no
11271   need_version=no
11272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11273   soname_spec='${libname}${release}${shared_ext}$major'
11274   shlibpath_var=LD_LIBRARY_PATH
11275   ;;
11276
11277 freebsd1*)
11278   dynamic_linker=no
11279   ;;
11280
11281 freebsd*)
11282   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11283   version_type=freebsd-$objformat
11284   case $version_type in
11285     freebsd-elf*)
11286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11287       need_version=no
11288       need_lib_prefix=no
11289       ;;
11290     freebsd-*)
11291       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11292       need_version=yes
11293       ;;
11294   esac
11295   shlibpath_var=LD_LIBRARY_PATH
11296   case $host_os in
11297   freebsd2*)
11298     shlibpath_overrides_runpath=yes
11299     ;;
11300   freebsd3.01* | freebsdelf3.01*)
11301     shlibpath_overrides_runpath=yes
11302     hardcode_into_libs=yes
11303     ;;
11304   *) # from 3.2 on
11305     shlibpath_overrides_runpath=no
11306     hardcode_into_libs=yes
11307     ;;
11308   esac
11309   ;;
11310
11311 gnu*)
11312   version_type=linux
11313   need_lib_prefix=no
11314   need_version=no
11315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   shlibpath_var=LD_LIBRARY_PATH
11318   hardcode_into_libs=yes
11319   ;;
11320
11321 hpux9* | hpux10* | hpux11*)
11322   # Give a soname corresponding to the major version so that dld.sl refuses to
11323   # link against other versions.
11324   version_type=sunos
11325   need_lib_prefix=no
11326   need_version=no
11327   case "$host_cpu" in
11328   ia64*)
11329     shrext='.so'
11330     hardcode_into_libs=yes
11331     dynamic_linker="$host_os dld.so"
11332     shlibpath_var=LD_LIBRARY_PATH
11333     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335     soname_spec='${libname}${release}${shared_ext}$major'
11336     if test "X$HPUX_IA64_MODE" = X32; then
11337       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11338     else
11339       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11340     fi
11341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11342     ;;
11343    hppa*64*)
11344      shrext='.sl'
11345      hardcode_into_libs=yes
11346      dynamic_linker="$host_os dld.sl"
11347      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11348      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350      soname_spec='${libname}${release}${shared_ext}$major'
11351      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11352      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353      ;;
11354    *)
11355     shrext='.sl'
11356     dynamic_linker="$host_os dld.sl"
11357     shlibpath_var=SHLIB_PATH
11358     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360     soname_spec='${libname}${release}${shared_ext}$major'
11361     ;;
11362   esac
11363   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11364   postinstall_cmds='chmod 555 $lib'
11365   ;;
11366
11367 irix5* | irix6* | nonstopux*)
11368   case $host_os in
11369     nonstopux*) version_type=nonstopux ;;
11370     *)
11371         if test "$lt_cv_prog_gnu_ld" = yes; then
11372                 version_type=linux
11373         else
11374                 version_type=irix
11375         fi ;;
11376   esac
11377   need_lib_prefix=no
11378   need_version=no
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11381   case $host_os in
11382   irix5* | nonstopux*)
11383     libsuff= shlibsuff=
11384     ;;
11385   *)
11386     case $LD in # libtool.m4 will add one of these switches to LD
11387     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11388       libsuff= shlibsuff= libmagic=32-bit;;
11389     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11390       libsuff=32 shlibsuff=N32 libmagic=N32;;
11391     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11392       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11393     *) libsuff= shlibsuff= libmagic=never-match;;
11394     esac
11395     ;;
11396   esac
11397   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11398   shlibpath_overrides_runpath=no
11399   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11400   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11401   hardcode_into_libs=yes
11402   ;;
11403
11404 # No shared lib support for Linux oldld, aout, or coff.
11405 linux*oldld* | linux*aout* | linux*coff*)
11406   dynamic_linker=no
11407   ;;
11408
11409 # This must be Linux ELF.
11410 linux*)
11411   version_type=linux
11412   need_lib_prefix=no
11413   need_version=no
11414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415   soname_spec='${libname}${release}${shared_ext}$major'
11416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11417   shlibpath_var=LD_LIBRARY_PATH
11418   shlibpath_overrides_runpath=no
11419   # This implies no fast_install, which is unacceptable.
11420   # Some rework will be needed to allow for fast_install
11421   # before this can be enabled.
11422   hardcode_into_libs=yes
11423
11424   # We used to test for /lib/ld.so.1 and disable shared libraries on
11425   # powerpc, because MkLinux only supported shared libraries with the
11426   # GNU dynamic linker.  Since this was broken with cross compilers,
11427   # most powerpc-linux boxes support dynamic linking these days and
11428   # people can always --disable-shared, the test was removed, and we
11429   # assume the GNU/Linux dynamic linker is in use.
11430   dynamic_linker='GNU/Linux ld.so'
11431   ;;
11432
11433 netbsd*)
11434   version_type=sunos
11435   need_lib_prefix=no
11436   need_version=no
11437   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440     dynamic_linker='NetBSD (a.out) ld.so'
11441   else
11442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11443     soname_spec='${libname}${release}${shared_ext}$major'
11444     dynamic_linker='NetBSD ld.elf_so'
11445   fi
11446   shlibpath_var=LD_LIBRARY_PATH
11447   shlibpath_overrides_runpath=yes
11448   hardcode_into_libs=yes
11449   ;;
11450
11451 newsos6)
11452   version_type=linux
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   ;;
11457
11458 nto-qnx)
11459   version_type=linux
11460   need_lib_prefix=no
11461   need_version=no
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463   soname_spec='${libname}${release}${shared_ext}$major'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=yes
11466   ;;
11467
11468 openbsd*)
11469   version_type=sunos
11470   need_lib_prefix=no
11471   need_version=no
11472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11474   shlibpath_var=LD_LIBRARY_PATH
11475   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11476     case $host_os in
11477       openbsd2.[89] | openbsd2.[89].*)
11478         shlibpath_overrides_runpath=no
11479         ;;
11480       *)
11481         shlibpath_overrides_runpath=yes
11482         ;;
11483       esac
11484   else
11485     shlibpath_overrides_runpath=yes
11486   fi
11487   ;;
11488
11489 os2*)
11490   libname_spec='$name'
11491   shrext=".dll"
11492   need_lib_prefix=no
11493   library_names_spec='$libname${shared_ext} $libname.a'
11494   dynamic_linker='OS/2 ld.exe'
11495   shlibpath_var=LIBPATH
11496   ;;
11497
11498 osf3* | osf4* | osf5*)
11499   version_type=osf
11500   need_lib_prefix=no
11501   need_version=no
11502   soname_spec='${libname}${release}${shared_ext}$major'
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504   shlibpath_var=LD_LIBRARY_PATH
11505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11506   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11507   ;;
11508
11509 sco3.2v5*)
11510   version_type=osf
11511   soname_spec='${libname}${release}${shared_ext}$major'
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513   shlibpath_var=LD_LIBRARY_PATH
11514   ;;
11515
11516 solaris*)
11517   version_type=linux
11518   need_lib_prefix=no
11519   need_version=no
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   shlibpath_overrides_runpath=yes
11524   hardcode_into_libs=yes
11525   # ldd complains unless libraries are executable
11526   postinstall_cmds='chmod +x $lib'
11527   ;;
11528
11529 sunos4*)
11530   version_type=sunos
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11532   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   shlibpath_overrides_runpath=yes
11535   if test "$with_gnu_ld" = yes; then
11536     need_lib_prefix=no
11537   fi
11538   need_version=yes
11539   ;;
11540
11541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11542   version_type=linux
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   case $host_vendor in
11547     sni)
11548       shlibpath_overrides_runpath=no
11549       need_lib_prefix=no
11550       export_dynamic_flag_spec='${wl}-Blargedynsym'
11551       runpath_var=LD_RUN_PATH
11552       ;;
11553     siemens)
11554       need_lib_prefix=no
11555       ;;
11556     motorola)
11557       need_lib_prefix=no
11558       need_version=no
11559       shlibpath_overrides_runpath=no
11560       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11561       ;;
11562   esac
11563   ;;
11564
11565 sysv4*MP*)
11566   if test -d /usr/nec ;then
11567     version_type=linux
11568     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11569     soname_spec='$libname${shared_ext}.$major'
11570     shlibpath_var=LD_LIBRARY_PATH
11571   fi
11572   ;;
11573
11574 uts4*)
11575   version_type=linux
11576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577   soname_spec='${libname}${release}${shared_ext}$major'
11578   shlibpath_var=LD_LIBRARY_PATH
11579   ;;
11580
11581 *)
11582   dynamic_linker=no
11583   ;;
11584 esac
11585 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11586 echo "${ECHO_T}$dynamic_linker" >&6
11587 test "$dynamic_linker" = no && can_build_shared=no
11588
11589 if test "x$enable_dlopen" != xyes; then
11590   enable_dlopen=unknown
11591   enable_dlopen_self=unknown
11592   enable_dlopen_self_static=unknown
11593 else
11594   lt_cv_dlopen=no
11595   lt_cv_dlopen_libs=
11596
11597   case $host_os in
11598   beos*)
11599     lt_cv_dlopen="load_add_on"
11600     lt_cv_dlopen_libs=
11601     lt_cv_dlopen_self=yes
11602     ;;
11603
11604   mingw* | pw32*)
11605     lt_cv_dlopen="LoadLibrary"
11606     lt_cv_dlopen_libs=
11607    ;;
11608
11609   cygwin*)
11610     lt_cv_dlopen="dlopen"
11611     lt_cv_dlopen_libs=
11612    ;;
11613
11614   darwin*)
11615   # if libdl is installed we need to link against it
11616     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-ldl  $LIBS"
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h.  */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h.  */
11629
11630 /* Override any gcc2 internal prototype to avoid an error.  */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 /* We use char because int might match the return type of a gcc2
11635    builtin and then its argument prototype would still apply.  */
11636 char dlopen ();
11637 int
11638 main ()
11639 {
11640 dlopen ();
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647   (eval $ac_link) 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -z "$ac_cxx_werror_flag"
11655                          || test ! -s conftest.err'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   ac_cv_lib_dl_dlopen=yes
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_cv_lib_dl_dlopen=no
11673 fi
11674 rm -f conftest.err conftest.$ac_objext \
11675       conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11680 if test $ac_cv_lib_dl_dlopen = yes; then
11681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11682 else
11683
11684     lt_cv_dlopen="dyld"
11685     lt_cv_dlopen_libs=
11686     lt_cv_dlopen_self=yes
11687
11688 fi
11689
11690    ;;
11691
11692   *)
11693     echo "$as_me:$LINENO: checking for shl_load" >&5
11694 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11695 if test "${ac_cv_func_shl_load+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11706 #define shl_load innocuous_shl_load
11707
11708 /* System header to define __stub macros and hopefully few prototypes,
11709     which can conflict with char shl_load (); below.
11710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711     <limits.h> exists even on freestanding compilers.  */
11712
11713 #ifdef __STDC__
11714 # include <limits.h>
11715 #else
11716 # include <assert.h>
11717 #endif
11718
11719 #undef shl_load
11720
11721 /* Override any gcc2 internal prototype to avoid an error.  */
11722 #ifdef __cplusplus
11723 extern "C"
11724 {
11725 #endif
11726 /* We use char because int might match the return type of a gcc2
11727    builtin and then its argument prototype would still apply.  */
11728 char shl_load ();
11729 /* The GNU C library defines this for functions which it implements
11730     to always fail with ENOSYS.  Some functions are actually named
11731     something starting with __ and the normal name is an alias.  */
11732 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11733 choke me
11734 #else
11735 char (*f) () = shl_load;
11736 #endif
11737 #ifdef __cplusplus
11738 }
11739 #endif
11740
11741 int
11742 main ()
11743 {
11744 return f != shl_load;
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751   (eval $ac_link) 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_cxx_werror_flag"
11759                          || test ! -s conftest.err'
11760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761   (eval $ac_try) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; } &&
11765          { ac_try='test -s conftest$ac_exeext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_func_shl_load=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_cv_func_shl_load=no
11777 fi
11778 rm -f conftest.err conftest.$ac_objext \
11779       conftest$ac_exeext conftest.$ac_ext
11780 fi
11781 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11783 if test $ac_cv_func_shl_load = yes; then
11784   lt_cv_dlopen="shl_load"
11785 else
11786   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   ac_check_lib_save_LIBS=$LIBS
11792 LIBS="-ldld  $LIBS"
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799
11800 /* Override any gcc2 internal prototype to avoid an error.  */
11801 #ifdef __cplusplus
11802 extern "C"
11803 #endif
11804 /* We use char because int might match the return type of a gcc2
11805    builtin and then its argument prototype would still apply.  */
11806 char shl_load ();
11807 int
11808 main ()
11809 {
11810 shl_load ();
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817   (eval $ac_link) 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } &&
11824          { ac_try='test -z "$ac_cxx_werror_flag"
11825                          || test ! -s conftest.err'
11826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827   (eval $ac_try) 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; } &&
11831          { ac_try='test -s conftest$ac_exeext'
11832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833   (eval $ac_try) 2>&5
11834   ac_status=$?
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); }; }; then
11837   ac_cv_lib_dld_shl_load=yes
11838 else
11839   echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 ac_cv_lib_dld_shl_load=no
11843 fi
11844 rm -f conftest.err conftest.$ac_objext \
11845       conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11847 fi
11848 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11849 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11850 if test $ac_cv_lib_dld_shl_load = yes; then
11851   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11852 else
11853   echo "$as_me:$LINENO: checking for dlopen" >&5
11854 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11855 if test "${ac_cv_func_dlopen+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11866 #define dlopen innocuous_dlopen
11867
11868 /* System header to define __stub macros and hopefully few prototypes,
11869     which can conflict with char dlopen (); below.
11870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871     <limits.h> exists even on freestanding compilers.  */
11872
11873 #ifdef __STDC__
11874 # include <limits.h>
11875 #else
11876 # include <assert.h>
11877 #endif
11878
11879 #undef dlopen
11880
11881 /* Override any gcc2 internal prototype to avoid an error.  */
11882 #ifdef __cplusplus
11883 extern "C"
11884 {
11885 #endif
11886 /* We use char because int might match the return type of a gcc2
11887    builtin and then its argument prototype would still apply.  */
11888 char dlopen ();
11889 /* The GNU C library defines this for functions which it implements
11890     to always fail with ENOSYS.  Some functions are actually named
11891     something starting with __ and the normal name is an alias.  */
11892 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11893 choke me
11894 #else
11895 char (*f) () = dlopen;
11896 #endif
11897 #ifdef __cplusplus
11898 }
11899 #endif
11900
11901 int
11902 main ()
11903 {
11904 return f != dlopen;
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911   (eval $ac_link) 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_cxx_werror_flag"
11919                          || test ! -s conftest.err'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }; then
11931   ac_cv_func_dlopen=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_func_dlopen=no
11937 fi
11938 rm -f conftest.err conftest.$ac_objext \
11939       conftest$ac_exeext conftest.$ac_ext
11940 fi
11941 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11942 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11943 if test $ac_cv_func_dlopen = yes; then
11944   lt_cv_dlopen="dlopen"
11945 else
11946   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11947 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-ldl  $LIBS"
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959
11960 /* Override any gcc2 internal prototype to avoid an error.  */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 /* We use char because int might match the return type of a gcc2
11965    builtin and then its argument prototype would still apply.  */
11966 char dlopen ();
11967 int
11968 main ()
11969 {
11970 dlopen ();
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977   (eval $ac_link) 2>conftest.er1
11978   ac_status=$?
11979   grep -v '^ *+' conftest.er1 >conftest.err
11980   rm -f conftest.er1
11981   cat conftest.err >&5
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); } &&
11984          { ac_try='test -z "$ac_cxx_werror_flag"
11985                          || test ! -s conftest.err'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; } &&
11991          { ac_try='test -s conftest$ac_exeext'
11992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993   (eval $ac_try) 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); }; }; then
11997   ac_cv_lib_dl_dlopen=yes
11998 else
11999   echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12001
12002 ac_cv_lib_dl_dlopen=no
12003 fi
12004 rm -f conftest.err conftest.$ac_objext \
12005       conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12007 fi
12008 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12009 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12010 if test $ac_cv_lib_dl_dlopen = yes; then
12011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12012 else
12013   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lsvld  $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026
12027 /* Override any gcc2 internal prototype to avoid an error.  */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032    builtin and then its argument prototype would still apply.  */
12033 char dlopen ();
12034 int
12035 main ()
12036 {
12037 dlopen ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044   (eval $ac_link) 2>conftest.er1
12045   ac_status=$?
12046   grep -v '^ *+' conftest.er1 >conftest.err
12047   rm -f conftest.er1
12048   cat conftest.err >&5
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } &&
12051          { ac_try='test -z "$ac_cxx_werror_flag"
12052                          || test ! -s conftest.err'
12053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054   (eval $ac_try) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); }; } &&
12058          { ac_try='test -s conftest$ac_exeext'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   ac_cv_lib_svld_dlopen=yes
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_lib_svld_dlopen=no
12070 fi
12071 rm -f conftest.err conftest.$ac_objext \
12072       conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12074 fi
12075 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12076 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12077 if test $ac_cv_lib_svld_dlopen = yes; then
12078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12079 else
12080   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12081 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12082 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085   ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-ldld  $LIBS"
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093
12094 /* Override any gcc2 internal prototype to avoid an error.  */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 /* We use char because int might match the return type of a gcc2
12099    builtin and then its argument prototype would still apply.  */
12100 char dld_link ();
12101 int
12102 main ()
12103 {
12104 dld_link ();
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111   (eval $ac_link) 2>conftest.er1
12112   ac_status=$?
12113   grep -v '^ *+' conftest.er1 >conftest.err
12114   rm -f conftest.er1
12115   cat conftest.err >&5
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -z "$ac_cxx_werror_flag"
12119                          || test ! -s conftest.err'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; } &&
12125          { ac_try='test -s conftest$ac_exeext'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   ac_cv_lib_dld_dld_link=yes
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ac_cv_lib_dld_dld_link=no
12137 fi
12138 rm -f conftest.err conftest.$ac_objext \
12139       conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12141 fi
12142 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12143 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12144 if test $ac_cv_lib_dld_dld_link = yes; then
12145   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12146 fi
12147
12148
12149 fi
12150
12151
12152 fi
12153
12154
12155 fi
12156
12157
12158 fi
12159
12160
12161 fi
12162
12163     ;;
12164   esac
12165
12166   if test "x$lt_cv_dlopen" != xno; then
12167     enable_dlopen=yes
12168   else
12169     enable_dlopen=no
12170   fi
12171
12172   case $lt_cv_dlopen in
12173   dlopen)
12174     save_CPPFLAGS="$CPPFLAGS"
12175     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12176
12177     save_LDFLAGS="$LDFLAGS"
12178     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12179
12180     save_LIBS="$LIBS"
12181     LIBS="$lt_cv_dlopen_libs $LIBS"
12182
12183     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12184 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12185 if test "${lt_cv_dlopen_self+set}" = set; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188           if test "$cross_compiling" = yes; then :
12189   lt_cv_dlopen_self=cross
12190 else
12191   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12192   lt_status=$lt_dlunknown
12193   cat > conftest.$ac_ext <<EOF
12194 #line 12194 "configure"
12195 #include "confdefs.h"
12196
12197 #if HAVE_DLFCN_H
12198 #include <dlfcn.h>
12199 #endif
12200
12201 #include <stdio.h>
12202
12203 #ifdef RTLD_GLOBAL
12204 #  define LT_DLGLOBAL           RTLD_GLOBAL
12205 #else
12206 #  ifdef DL_GLOBAL
12207 #    define LT_DLGLOBAL         DL_GLOBAL
12208 #  else
12209 #    define LT_DLGLOBAL         0
12210 #  endif
12211 #endif
12212
12213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12214    find out it does not work in some platform. */
12215 #ifndef LT_DLLAZY_OR_NOW
12216 #  ifdef RTLD_LAZY
12217 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12218 #  else
12219 #    ifdef DL_LAZY
12220 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12221 #    else
12222 #      ifdef RTLD_NOW
12223 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12224 #      else
12225 #        ifdef DL_NOW
12226 #          define LT_DLLAZY_OR_NOW      DL_NOW
12227 #        else
12228 #          define LT_DLLAZY_OR_NOW      0
12229 #        endif
12230 #      endif
12231 #    endif
12232 #  endif
12233 #endif
12234
12235 #ifdef __cplusplus
12236 extern "C" void exit (int);
12237 #endif
12238
12239 void fnord() { int i=42;}
12240 int main ()
12241 {
12242   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12243   int status = $lt_dlunknown;
12244
12245   if (self)
12246     {
12247       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12248       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12249       /* dlclose (self); */
12250     }
12251
12252     exit (status);
12253 }
12254 EOF
12255   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12256   (eval $ac_link) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12260     (./conftest; exit; ) 2>/dev/null
12261     lt_status=$?
12262     case x$lt_status in
12263       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12264       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12265       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12266     esac
12267   else :
12268     # compilation failed
12269     lt_cv_dlopen_self=no
12270   fi
12271 fi
12272 rm -fr conftest*
12273
12274
12275 fi
12276 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12277 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12278
12279     if test "x$lt_cv_dlopen_self" = xyes; then
12280       LDFLAGS="$LDFLAGS $link_static_flag"
12281       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12282 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12283 if test "${lt_cv_dlopen_self_static+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286           if test "$cross_compiling" = yes; then :
12287   lt_cv_dlopen_self_static=cross
12288 else
12289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12290   lt_status=$lt_dlunknown
12291   cat > conftest.$ac_ext <<EOF
12292 #line 12292 "configure"
12293 #include "confdefs.h"
12294
12295 #if HAVE_DLFCN_H
12296 #include <dlfcn.h>
12297 #endif
12298
12299 #include <stdio.h>
12300
12301 #ifdef RTLD_GLOBAL
12302 #  define LT_DLGLOBAL           RTLD_GLOBAL
12303 #else
12304 #  ifdef DL_GLOBAL
12305 #    define LT_DLGLOBAL         DL_GLOBAL
12306 #  else
12307 #    define LT_DLGLOBAL         0
12308 #  endif
12309 #endif
12310
12311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12312    find out it does not work in some platform. */
12313 #ifndef LT_DLLAZY_OR_NOW
12314 #  ifdef RTLD_LAZY
12315 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12316 #  else
12317 #    ifdef DL_LAZY
12318 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12319 #    else
12320 #      ifdef RTLD_NOW
12321 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12322 #      else
12323 #        ifdef DL_NOW
12324 #          define LT_DLLAZY_OR_NOW      DL_NOW
12325 #        else
12326 #          define LT_DLLAZY_OR_NOW      0
12327 #        endif
12328 #      endif
12329 #    endif
12330 #  endif
12331 #endif
12332
12333 #ifdef __cplusplus
12334 extern "C" void exit (int);
12335 #endif
12336
12337 void fnord() { int i=42;}
12338 int main ()
12339 {
12340   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12341   int status = $lt_dlunknown;
12342
12343   if (self)
12344     {
12345       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12346       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12347       /* dlclose (self); */
12348     }
12349
12350     exit (status);
12351 }
12352 EOF
12353   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354   (eval $ac_link) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12358     (./conftest; exit; ) 2>/dev/null
12359     lt_status=$?
12360     case x$lt_status in
12361       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12362       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12363       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12364     esac
12365   else :
12366     # compilation failed
12367     lt_cv_dlopen_self_static=no
12368   fi
12369 fi
12370 rm -fr conftest*
12371
12372
12373 fi
12374 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12375 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12376     fi
12377
12378     CPPFLAGS="$save_CPPFLAGS"
12379     LDFLAGS="$save_LDFLAGS"
12380     LIBS="$save_LIBS"
12381     ;;
12382   esac
12383
12384   case $lt_cv_dlopen_self in
12385   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12386   *) enable_dlopen_self=unknown ;;
12387   esac
12388
12389   case $lt_cv_dlopen_self_static in
12390   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12391   *) enable_dlopen_self_static=unknown ;;
12392   esac
12393 fi
12394
12395
12396 # The else clause should only fire when bootstrapping the
12397 # libtool distribution, otherwise you forgot to ship ltmain.sh
12398 # with your package, and you will get complaints that there are
12399 # no rules to generate ltmain.sh.
12400 if test -f "$ltmain"; then
12401   # See if we are running on zsh, and set the options which allow our commands through
12402   # without removal of \ escapes.
12403   if test -n "${ZSH_VERSION+set}" ; then
12404     setopt NO_GLOB_SUBST
12405   fi
12406   # Now quote all the things that may contain metacharacters while being
12407   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12408   # variables and quote the copies for generation of the libtool script.
12409   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12410     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12411     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12412     deplibs_check_method reload_flag reload_cmds need_locks \
12413     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12414     lt_cv_sys_global_symbol_to_c_name_address \
12415     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12416     old_postinstall_cmds old_postuninstall_cmds \
12417     compiler_CXX \
12418     CC_CXX \
12419     LD_CXX \
12420     lt_prog_compiler_wl_CXX \
12421     lt_prog_compiler_pic_CXX \
12422     lt_prog_compiler_static_CXX \
12423     lt_prog_compiler_no_builtin_flag_CXX \
12424     export_dynamic_flag_spec_CXX \
12425     thread_safe_flag_spec_CXX \
12426     whole_archive_flag_spec_CXX \
12427     enable_shared_with_static_runtimes_CXX \
12428     old_archive_cmds_CXX \
12429     old_archive_from_new_cmds_CXX \
12430     predep_objects_CXX \
12431     postdep_objects_CXX \
12432     predeps_CXX \
12433     postdeps_CXX \
12434     compiler_lib_search_path_CXX \
12435     archive_cmds_CXX \
12436     archive_expsym_cmds_CXX \
12437     postinstall_cmds_CXX \
12438     postuninstall_cmds_CXX \
12439     old_archive_from_expsyms_cmds_CXX \
12440     allow_undefined_flag_CXX \
12441     no_undefined_flag_CXX \
12442     export_symbols_cmds_CXX \
12443     hardcode_libdir_flag_spec_CXX \
12444     hardcode_libdir_flag_spec_ld_CXX \
12445     hardcode_libdir_separator_CXX \
12446     hardcode_automatic_CXX \
12447     module_cmds_CXX \
12448     module_expsym_cmds_CXX \
12449     lt_cv_prog_compiler_c_o_CXX \
12450     exclude_expsyms_CXX \
12451     include_expsyms_CXX; do
12452
12453     case $var in
12454     old_archive_cmds_CXX | \
12455     old_archive_from_new_cmds_CXX | \
12456     archive_cmds_CXX | \
12457     archive_expsym_cmds_CXX | \
12458     module_cmds_CXX | \
12459     module_expsym_cmds_CXX | \
12460     old_archive_from_expsyms_cmds_CXX | \
12461     export_symbols_cmds_CXX | \
12462     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12463     postinstall_cmds | postuninstall_cmds | \
12464     old_postinstall_cmds | old_postuninstall_cmds | \
12465     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12466       # Double-quote double-evaled strings.
12467       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12468       ;;
12469     *)
12470       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12471       ;;
12472     esac
12473   done
12474
12475   case $lt_echo in
12476   *'\$0 --fallback-echo"')
12477     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12478     ;;
12479   esac
12480
12481 cfgfile="$ofile"
12482
12483   cat <<__EOF__ >> "$cfgfile"
12484 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12485
12486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12487
12488 # Shell to use when invoking shell scripts.
12489 SHELL=$lt_SHELL
12490
12491 # Whether or not to build shared libraries.
12492 build_libtool_libs=$enable_shared
12493
12494 # Whether or not to build static libraries.
12495 build_old_libs=$enable_static
12496
12497 # Whether or not to add -lc for building shared libraries.
12498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12499
12500 # Whether or not to disallow shared libs when runtime libs are static
12501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12502
12503 # Whether or not to optimize for fast installation.
12504 fast_install=$enable_fast_install
12505
12506 # The host system.
12507 host_alias=$host_alias
12508 host=$host
12509
12510 # An echo program that does not interpret backslashes.
12511 echo=$lt_echo
12512
12513 # The archiver.
12514 AR=$lt_AR
12515 AR_FLAGS=$lt_AR_FLAGS
12516
12517 # A C compiler.
12518 LTCC=$lt_LTCC
12519
12520 # A language-specific compiler.
12521 CC=$lt_compiler_CXX
12522
12523 # Is the compiler the GNU C compiler?
12524 with_gcc=$GCC_CXX
12525
12526 # An ERE matcher.
12527 EGREP=$lt_EGREP
12528
12529 # The linker used to build libraries.
12530 LD=$lt_LD_CXX
12531
12532 # Whether we need hard or soft links.
12533 LN_S=$lt_LN_S
12534
12535 # A BSD-compatible nm program.
12536 NM=$lt_NM
12537
12538 # A symbol stripping program
12539 STRIP=$STRIP
12540
12541 # Used to examine libraries when file_magic_cmd begins "file"
12542 MAGIC_CMD=$MAGIC_CMD
12543
12544 # Used on cygwin: DLL creation program.
12545 DLLTOOL="$DLLTOOL"
12546
12547 # Used on cygwin: object dumper.
12548 OBJDUMP="$OBJDUMP"
12549
12550 # Used on cygwin: assembler.
12551 AS="$AS"
12552
12553 # The name of the directory that contains temporary libtool files.
12554 objdir=$objdir
12555
12556 # How to create reloadable object files.
12557 reload_flag=$lt_reload_flag
12558 reload_cmds=$lt_reload_cmds
12559
12560 # How to pass a linker flag through the compiler.
12561 wl=$lt_lt_prog_compiler_wl_CXX
12562
12563 # Object file suffix (normally "o").
12564 objext="$ac_objext"
12565
12566 # Old archive suffix (normally "a").
12567 libext="$libext"
12568
12569 # Shared library suffix (normally ".so").
12570 shrext='$shrext'
12571
12572 # Executable file suffix (normally "").
12573 exeext="$exeext"
12574
12575 # Additional compiler flags for building library objects.
12576 pic_flag=$lt_lt_prog_compiler_pic_CXX
12577 pic_mode=$pic_mode
12578
12579 # What is the maximum length of a command?
12580 max_cmd_len=$lt_cv_sys_max_cmd_len
12581
12582 # Does compiler simultaneously support -c and -o options?
12583 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12584
12585 # Must we lock files when doing compilation ?
12586 need_locks=$lt_need_locks
12587
12588 # Do we need the lib prefix for modules?
12589 need_lib_prefix=$need_lib_prefix
12590
12591 # Do we need a version for libraries?
12592 need_version=$need_version
12593
12594 # Whether dlopen is supported.
12595 dlopen_support=$enable_dlopen
12596
12597 # Whether dlopen of programs is supported.
12598 dlopen_self=$enable_dlopen_self
12599
12600 # Whether dlopen of statically linked programs is supported.
12601 dlopen_self_static=$enable_dlopen_self_static
12602
12603 # Compiler flag to prevent dynamic linking.
12604 link_static_flag=$lt_lt_prog_compiler_static_CXX
12605
12606 # Compiler flag to turn off builtin functions.
12607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12608
12609 # Compiler flag to allow reflexive dlopens.
12610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12611
12612 # Compiler flag to generate shared objects directly from archives.
12613 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12614
12615 # Compiler flag to generate thread-safe objects.
12616 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12617
12618 # Library versioning type.
12619 version_type=$version_type
12620
12621 # Format of library name prefix.
12622 libname_spec=$lt_libname_spec
12623
12624 # List of archive names.  First name is the real one, the rest are links.
12625 # The last name is the one that the linker finds with -lNAME.
12626 library_names_spec=$lt_library_names_spec
12627
12628 # The coded name of the library, if different from the real name.
12629 soname_spec=$lt_soname_spec
12630
12631 # Commands used to build and install an old-style archive.
12632 RANLIB=$lt_RANLIB
12633 old_archive_cmds=$lt_old_archive_cmds_CXX
12634 old_postinstall_cmds=$lt_old_postinstall_cmds
12635 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12636
12637 # Create an old-style archive from a shared archive.
12638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12639
12640 # Create a temporary old-style archive to link instead of a shared archive.
12641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12642
12643 # Commands used to build and install a shared archive.
12644 archive_cmds=$lt_archive_cmds_CXX
12645 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12646 postinstall_cmds=$lt_postinstall_cmds
12647 postuninstall_cmds=$lt_postuninstall_cmds
12648
12649 # Commands used to build a loadable module (assumed same as above if empty)
12650 module_cmds=$lt_module_cmds_CXX
12651 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12652
12653 # Commands to strip libraries.
12654 old_striplib=$lt_old_striplib
12655 striplib=$lt_striplib
12656
12657 # Dependencies to place before the objects being linked to create a
12658 # shared library.
12659 predep_objects=$lt_predep_objects_CXX
12660
12661 # Dependencies to place after the objects being linked to create a
12662 # shared library.
12663 postdep_objects=$lt_postdep_objects_CXX
12664
12665 # Dependencies to place before the objects being linked to create a
12666 # shared library.
12667 predeps=$lt_predeps_CXX
12668
12669 # Dependencies to place after the objects being linked to create a
12670 # shared library.
12671 postdeps=$lt_postdeps_CXX
12672
12673 # The library search path used internally by the compiler when linking
12674 # a shared library.
12675 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12676
12677 # Method to check whether dependent libraries are shared objects.
12678 deplibs_check_method=$lt_deplibs_check_method
12679
12680 # Command to use when deplibs_check_method == file_magic.
12681 file_magic_cmd=$lt_file_magic_cmd
12682
12683 # Flag that allows shared libraries with undefined symbols to be built.
12684 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12685
12686 # Flag that forces no undefined symbols.
12687 no_undefined_flag=$lt_no_undefined_flag_CXX
12688
12689 # Commands used to finish a libtool library installation in a directory.
12690 finish_cmds=$lt_finish_cmds
12691
12692 # Same as above, but a single script fragment to be evaled but not shown.
12693 finish_eval=$lt_finish_eval
12694
12695 # Take the output of nm and produce a listing of raw symbols and C names.
12696 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12697
12698 # Transform the output of nm in a proper C declaration
12699 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12700
12701 # Transform the output of nm in a C name address pair
12702 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12703
12704 # This is the shared library runtime path variable.
12705 runpath_var=$runpath_var
12706
12707 # This is the shared library path variable.
12708 shlibpath_var=$shlibpath_var
12709
12710 # Is shlibpath searched before the hard-coded library search path?
12711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12712
12713 # How to hardcode a shared library path into an executable.
12714 hardcode_action=$hardcode_action_CXX
12715
12716 # Whether we should hardcode library paths into libraries.
12717 hardcode_into_libs=$hardcode_into_libs
12718
12719 # Flag to hardcode \$libdir into a binary during linking.
12720 # This must work even if \$libdir does not exist.
12721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12722
12723 # If ld is used when linking, flag to hardcode \$libdir into
12724 # a binary during linking. This must work even if \$libdir does
12725 # not exist.
12726 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12727
12728 # Whether we need a single -rpath flag with a separated argument.
12729 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12730
12731 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12732 # resulting binary.
12733 hardcode_direct=$hardcode_direct_CXX
12734
12735 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12736 # resulting binary.
12737 hardcode_minus_L=$hardcode_minus_L_CXX
12738
12739 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12740 # the resulting binary.
12741 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12742
12743 # Set to yes if building a shared library automatically hardcodes DIR into the library
12744 # and all subsequent libraries and executables linked against it.
12745 hardcode_automatic=$hardcode_automatic_CXX
12746
12747 # Variables whose values should be saved in libtool wrapper scripts and
12748 # restored at relink time.
12749 variables_saved_for_relink="$variables_saved_for_relink"
12750
12751 # Whether libtool must link a program against all its dependency libraries.
12752 link_all_deplibs=$link_all_deplibs_CXX
12753
12754 # Compile-time system search path for libraries
12755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12756
12757 # Run-time system search path for libraries
12758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12759
12760 # Fix the shell variable \$srcfile for the compiler.
12761 fix_srcfile_path="$fix_srcfile_path_CXX"
12762
12763 # Set to yes if exported symbols are required.
12764 always_export_symbols=$always_export_symbols_CXX
12765
12766 # The commands to list exported symbols.
12767 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12768
12769 # The commands to extract the exported symbol list from a shared archive.
12770 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12771
12772 # Symbols that should not be listed in the preloaded symbols.
12773 exclude_expsyms=$lt_exclude_expsyms_CXX
12774
12775 # Symbols that must always be exported.
12776 include_expsyms=$lt_include_expsyms_CXX
12777
12778 # ### END LIBTOOL TAG CONFIG: $tagname
12779
12780 __EOF__
12781
12782
12783 else
12784   # If there is no Makefile yet, we rely on a make rule to execute
12785   # `config.status --recheck' to rerun these tests and create the
12786   # libtool script then.
12787   test -f Makefile && make "$ltmain"
12788 fi
12789
12790
12791 ac_ext=c
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797 CC=$lt_save_CC
12798 LDCXX=$LD
12799 LD=$lt_save_LD
12800 GCC=$lt_save_GCC
12801 with_gnu_ldcxx=$with_gnu_ld
12802 with_gnu_ld=$lt_save_with_gnu_ld
12803 lt_cv_path_LDCXX=$lt_cv_path_LD
12804 lt_cv_path_LD=$lt_save_path_LD
12805 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12806 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12807
12808         else
12809           tagname=""
12810         fi
12811         ;;
12812
12813       F77)
12814         if test -n "$F77" && test "X$F77" != "Xno"; then
12815
12816 ac_ext=f
12817 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12818 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12820
12821
12822 archive_cmds_need_lc_F77=no
12823 allow_undefined_flag_F77=
12824 always_export_symbols_F77=no
12825 archive_expsym_cmds_F77=
12826 export_dynamic_flag_spec_F77=
12827 hardcode_direct_F77=no
12828 hardcode_libdir_flag_spec_F77=
12829 hardcode_libdir_flag_spec_ld_F77=
12830 hardcode_libdir_separator_F77=
12831 hardcode_minus_L_F77=no
12832 hardcode_automatic_F77=no
12833 module_cmds_F77=
12834 module_expsym_cmds_F77=
12835 link_all_deplibs_F77=unknown
12836 old_archive_cmds_F77=$old_archive_cmds
12837 no_undefined_flag_F77=
12838 whole_archive_flag_spec_F77=
12839 enable_shared_with_static_runtimes_F77=no
12840
12841 # Source file extension for f77 test sources.
12842 ac_ext=f
12843
12844 # Object file extension for compiled f77 test sources.
12845 objext=o
12846 objext_F77=$objext
12847
12848 # Code to be used in simple compile tests
12849 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12850
12851 # Code to be used in simple link tests
12852 lt_simple_link_test_code="      program t\n      end\n"
12853
12854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12855
12856 # If no C compiler was specified, use CC.
12857 LTCC=${LTCC-"$CC"}
12858
12859 # Allow CC to be a program name with arguments.
12860 compiler=$CC
12861
12862
12863 # Allow CC to be a program name with arguments.
12864 lt_save_CC="$CC"
12865 CC=${F77-"f77"}
12866 compiler=$CC
12867 compiler_F77=$CC
12868 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12869
12870 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12871 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12872 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12873 echo "${ECHO_T}$can_build_shared" >&6
12874
12875 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12876 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12877 test "$can_build_shared" = "no" && enable_shared=no
12878
12879 # On AIX, shared libraries and static libraries use the same namespace, and
12880 # are all built from PIC.
12881 case "$host_os" in
12882 aix3*)
12883   test "$enable_shared" = yes && enable_static=no
12884   if test -n "$RANLIB"; then
12885     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12886     postinstall_cmds='$RANLIB $lib'
12887   fi
12888   ;;
12889 aix4*)
12890   test "$enable_shared" = yes && enable_static=no
12891   ;;
12892 esac
12893 echo "$as_me:$LINENO: result: $enable_shared" >&5
12894 echo "${ECHO_T}$enable_shared" >&6
12895
12896 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12897 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12898 # Make sure either enable_shared or enable_static is yes.
12899 test "$enable_shared" = yes || enable_static=yes
12900 echo "$as_me:$LINENO: result: $enable_static" >&5
12901 echo "${ECHO_T}$enable_static" >&6
12902
12903 test "$ld_shlibs_F77" = no && can_build_shared=no
12904
12905 GCC_F77="$G77"
12906 LD_F77="$LD"
12907
12908 lt_prog_compiler_wl_F77=
12909 lt_prog_compiler_pic_F77=
12910 lt_prog_compiler_static_F77=
12911
12912 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12913 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12914
12915   if test "$GCC" = yes; then
12916     lt_prog_compiler_wl_F77='-Wl,'
12917     lt_prog_compiler_static_F77='-static'
12918
12919     case $host_os in
12920       aix*)
12921       # All AIX code is PIC.
12922       if test "$host_cpu" = ia64; then
12923         # AIX 5 now supports IA64 processor
12924         lt_prog_compiler_static_F77='-Bstatic'
12925       fi
12926       ;;
12927
12928     amigaos*)
12929       # FIXME: we need at least 68020 code to build shared libraries, but
12930       # adding the `-m68020' flag to GCC prevents building anything better,
12931       # like `-m68040'.
12932       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12933       ;;
12934
12935     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12936       # PIC is the default for these OSes.
12937       ;;
12938
12939     mingw* | pw32* | os2*)
12940       # This hack is so that the source file can tell whether it is being
12941       # built for inclusion in a dll (and should export symbols for example).
12942       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12943       ;;
12944
12945     darwin* | rhapsody*)
12946       # PIC is the default on this platform
12947       # Common symbols not allowed in MH_DYLIB files
12948       lt_prog_compiler_pic_F77='-fno-common'
12949       ;;
12950
12951     msdosdjgpp*)
12952       # Just because we use GCC doesn't mean we suddenly get shared libraries
12953       # on systems that don't support them.
12954       lt_prog_compiler_can_build_shared_F77=no
12955       enable_shared=no
12956       ;;
12957
12958     sysv4*MP*)
12959       if test -d /usr/nec; then
12960         lt_prog_compiler_pic_F77=-Kconform_pic
12961       fi
12962       ;;
12963
12964     hpux*)
12965       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12966       # not for PA HP-UX.
12967       case "$host_cpu" in
12968       hppa*64*|ia64*)
12969         # +Z the default
12970         ;;
12971       *)
12972         lt_prog_compiler_pic_F77='-fPIC'
12973         ;;
12974       esac
12975       ;;
12976
12977     *)
12978       lt_prog_compiler_pic_F77='-fPIC'
12979       ;;
12980     esac
12981   else
12982     # PORTME Check for flag to pass linker flags through the system compiler.
12983     case $host_os in
12984     aix*)
12985       lt_prog_compiler_wl_F77='-Wl,'
12986       if test "$host_cpu" = ia64; then
12987         # AIX 5 now supports IA64 processor
12988         lt_prog_compiler_static_F77='-Bstatic'
12989       else
12990         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12991       fi
12992       ;;
12993
12994     mingw* | pw32* | os2*)
12995       # This hack is so that the source file can tell whether it is being
12996       # built for inclusion in a dll (and should export symbols for example).
12997       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12998       ;;
12999
13000     hpux9* | hpux10* | hpux11*)
13001       lt_prog_compiler_wl_F77='-Wl,'
13002       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13003       # not for PA HP-UX.
13004       case "$host_cpu" in
13005       hppa*64*|ia64*)
13006         # +Z the default
13007         ;;
13008       *)
13009         lt_prog_compiler_pic_F77='+Z'
13010         ;;
13011       esac
13012       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13013       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13014       ;;
13015
13016     irix5* | irix6* | nonstopux*)
13017       lt_prog_compiler_wl_F77='-Wl,'
13018       # PIC (with -KPIC) is the default.
13019       lt_prog_compiler_static_F77='-non_shared'
13020       ;;
13021
13022     newsos6)
13023       lt_prog_compiler_pic_F77='-KPIC'
13024       lt_prog_compiler_static_F77='-Bstatic'
13025       ;;
13026
13027     linux*)
13028       case $CC in
13029       icc|ecc)
13030         lt_prog_compiler_wl_F77='-Wl,'
13031         lt_prog_compiler_pic_F77='-KPIC'
13032         lt_prog_compiler_static_F77='-static'
13033         ;;
13034       ccc)
13035         lt_prog_compiler_wl_F77='-Wl,'
13036         # All Alpha code is PIC.
13037         lt_prog_compiler_static_F77='-non_shared'
13038         ;;
13039       esac
13040       ;;
13041
13042     osf3* | osf4* | osf5*)
13043       lt_prog_compiler_wl_F77='-Wl,'
13044       # All OSF/1 code is PIC.
13045       lt_prog_compiler_static_F77='-non_shared'
13046       ;;
13047
13048     sco3.2v5*)
13049       lt_prog_compiler_pic_F77='-Kpic'
13050       lt_prog_compiler_static_F77='-dn'
13051       ;;
13052
13053     solaris*)
13054       lt_prog_compiler_wl_F77='-Wl,'
13055       lt_prog_compiler_pic_F77='-KPIC'
13056       lt_prog_compiler_static_F77='-Bstatic'
13057       ;;
13058
13059     sunos4*)
13060       lt_prog_compiler_wl_F77='-Qoption ld '
13061       lt_prog_compiler_pic_F77='-PIC'
13062       lt_prog_compiler_static_F77='-Bstatic'
13063       ;;
13064
13065     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13066       lt_prog_compiler_wl_F77='-Wl,'
13067       lt_prog_compiler_pic_F77='-KPIC'
13068       lt_prog_compiler_static_F77='-Bstatic'
13069       ;;
13070
13071     sysv4*MP*)
13072       if test -d /usr/nec ;then
13073         lt_prog_compiler_pic_F77='-Kconform_pic'
13074         lt_prog_compiler_static_F77='-Bstatic'
13075       fi
13076       ;;
13077
13078     uts4*)
13079       lt_prog_compiler_pic_F77='-pic'
13080       lt_prog_compiler_static_F77='-Bstatic'
13081       ;;
13082
13083     *)
13084       lt_prog_compiler_can_build_shared_F77=no
13085       ;;
13086     esac
13087   fi
13088
13089 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13090 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13091
13092 #
13093 # Check to make sure the PIC flag actually works.
13094 #
13095 if test -n "$lt_prog_compiler_pic_F77"; then
13096   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13097 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13098 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13099   echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101   lt_prog_compiler_pic_works_F77=no
13102   ac_outfile=conftest.$ac_objext
13103    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13104    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13105    # Insert the option either (1) after the last *FLAGS variable, or
13106    # (2) before a word containing "conftest.", or (3) at the end.
13107    # Note that $ac_compile itself does not contain backslashes and begins
13108    # with a dollar sign (not a hyphen), so the echo should work correctly.
13109    # The option is referenced via a variable to avoid confusing sed.
13110    lt_compile=`echo "$ac_compile" | $SED \
13111    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13113    -e 's:$: $lt_compiler_flag:'`
13114    (eval echo "\"\$as_me:13114: $lt_compile\"" >&5)
13115    (eval "$lt_compile" 2>conftest.err)
13116    ac_status=$?
13117    cat conftest.err >&5
13118    echo "$as_me:13118: \$? = $ac_status" >&5
13119    if (exit $ac_status) && test -s "$ac_outfile"; then
13120      # The compiler can only warn and ignore the option if not recognized
13121      # So say no if there are warnings
13122      if test ! -s conftest.err; then
13123        lt_prog_compiler_pic_works_F77=yes
13124      fi
13125    fi
13126    $rm conftest*
13127
13128 fi
13129 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13130 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13131
13132 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13133     case $lt_prog_compiler_pic_F77 in
13134      "" | " "*) ;;
13135      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13136      esac
13137 else
13138     lt_prog_compiler_pic_F77=
13139      lt_prog_compiler_can_build_shared_F77=no
13140 fi
13141
13142 fi
13143 case "$host_os" in
13144   # For platforms which do not support PIC, -DPIC is meaningless:
13145   *djgpp*)
13146     lt_prog_compiler_pic_F77=
13147     ;;
13148   *)
13149     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13150     ;;
13151 esac
13152
13153 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13155 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13156   echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158   lt_cv_prog_compiler_c_o_F77=no
13159    $rm -r conftest 2>/dev/null
13160    mkdir conftest
13161    cd conftest
13162    mkdir out
13163    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13164
13165    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13166    # that will create temporary files in the current directory regardless of
13167    # the output directory.  Thus, making CWD read-only will cause this test
13168    # to fail, enabling locking or at least warning the user not to do parallel
13169    # builds.
13170    chmod -w .
13171
13172    lt_compiler_flag="-o out/conftest2.$ac_objext"
13173    # Insert the option either (1) after the last *FLAGS variable, or
13174    # (2) before a word containing "conftest.", or (3) at the end.
13175    # Note that $ac_compile itself does not contain backslashes and begins
13176    # with a dollar sign (not a hyphen), so the echo should work correctly.
13177    lt_compile=`echo "$ac_compile" | $SED \
13178    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13180    -e 's:$: $lt_compiler_flag:'`
13181    (eval echo "\"\$as_me:13181: $lt_compile\"" >&5)
13182    (eval "$lt_compile" 2>out/conftest.err)
13183    ac_status=$?
13184    cat out/conftest.err >&5
13185    echo "$as_me:13185: \$? = $ac_status" >&5
13186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13187    then
13188      # The compiler can only warn and ignore the option if not recognized
13189      # So say no if there are warnings
13190      if test ! -s out/conftest.err; then
13191        lt_cv_prog_compiler_c_o_F77=yes
13192      fi
13193    fi
13194    chmod u+w .
13195    $rm conftest* out/*
13196    rmdir out
13197    cd ..
13198    rmdir conftest
13199    $rm conftest*
13200
13201 fi
13202 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13204
13205
13206 hard_links="nottested"
13207 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13208   # do not overwrite the value of need_locks provided by the user
13209   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13211   hard_links=yes
13212   $rm conftest*
13213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13214   touch conftest.a
13215   ln conftest.a conftest.b 2>&5 || hard_links=no
13216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217   echo "$as_me:$LINENO: result: $hard_links" >&5
13218 echo "${ECHO_T}$hard_links" >&6
13219   if test "$hard_links" = no; then
13220     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13222     need_locks=warn
13223   fi
13224 else
13225   need_locks=no
13226 fi
13227
13228 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13230
13231   runpath_var=
13232   allow_undefined_flag_F77=
13233   enable_shared_with_static_runtimes_F77=no
13234   archive_cmds_F77=
13235   archive_expsym_cmds_F77=
13236   old_archive_From_new_cmds_F77=
13237   old_archive_from_expsyms_cmds_F77=
13238   export_dynamic_flag_spec_F77=
13239   whole_archive_flag_spec_F77=
13240   thread_safe_flag_spec_F77=
13241   hardcode_libdir_flag_spec_F77=
13242   hardcode_libdir_flag_spec_ld_F77=
13243   hardcode_libdir_separator_F77=
13244   hardcode_direct_F77=no
13245   hardcode_minus_L_F77=no
13246   hardcode_shlibpath_var_F77=unsupported
13247   link_all_deplibs_F77=unknown
13248   hardcode_automatic_F77=no
13249   module_cmds_F77=
13250   module_expsym_cmds_F77=
13251   always_export_symbols_F77=no
13252   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13253   # include_expsyms should be a list of space-separated symbols to be *always*
13254   # included in the symbol list
13255   include_expsyms_F77=
13256   # exclude_expsyms can be an extended regexp of symbols to exclude
13257   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13258   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13259   # as well as any symbol that contains `d'.
13260   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13261   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13262   # platforms (ab)use it in PIC code, but their linkers get confused if
13263   # the symbol is explicitly referenced.  Since portable code cannot
13264   # rely on this symbol name, it's probably fine to never include it in
13265   # preloaded symbol tables.
13266   extract_expsyms_cmds=
13267
13268   case $host_os in
13269   cygwin* | mingw* | pw32*)
13270     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13271     # When not using gcc, we currently assume that we are using
13272     # Microsoft Visual C++.
13273     if test "$GCC" != yes; then
13274       with_gnu_ld=no
13275     fi
13276     ;;
13277   openbsd*)
13278     with_gnu_ld=no
13279     ;;
13280   esac
13281
13282   ld_shlibs_F77=yes
13283   if test "$with_gnu_ld" = yes; then
13284     # If archive_cmds runs LD, not CC, wlarc should be empty
13285     wlarc='${wl}'
13286
13287     # See if GNU ld supports shared libraries.
13288     case $host_os in
13289     aix3* | aix4* | aix5*)
13290       # On AIX/PPC, the GNU linker is very broken
13291       if test "$host_cpu" != ia64; then
13292         ld_shlibs_F77=no
13293         cat <<EOF 1>&2
13294
13295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13296 *** to be unable to reliably create shared libraries on AIX.
13297 *** Therefore, libtool is disabling shared libraries support.  If you
13298 *** really care for shared libraries, you may want to modify your PATH
13299 *** so that a non-GNU linker is found, and then restart.
13300
13301 EOF
13302       fi
13303       ;;
13304
13305     amigaos*)
13306       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)'
13307       hardcode_libdir_flag_spec_F77='-L$libdir'
13308       hardcode_minus_L_F77=yes
13309
13310       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13311       # that the semantics of dynamic libraries on AmigaOS, at least up
13312       # to version 4, is to share data among multiple programs linked
13313       # with the same dynamic library.  Since this doesn't match the
13314       # behavior of shared libraries on other platforms, we can't use
13315       # them.
13316       ld_shlibs_F77=no
13317       ;;
13318
13319     beos*)
13320       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13321         allow_undefined_flag_F77=unsupported
13322         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13323         # support --undefined.  This deserves some investigation.  FIXME
13324         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325       else
13326         ld_shlibs_F77=no
13327       fi
13328       ;;
13329
13330     cygwin* | mingw* | pw32*)
13331       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13332       # as there is no search path for DLLs.
13333       hardcode_libdir_flag_spec_F77='-L$libdir'
13334       allow_undefined_flag_F77=unsupported
13335       always_export_symbols_F77=no
13336       enable_shared_with_static_runtimes_F77=yes
13337       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13338
13339       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13340         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13341         # If the export-symbols file already is a .def file (1st line
13342         # is EXPORTS), use it as is; otherwise, prepend...
13343         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13344           cp $export_symbols $output_objdir/$soname.def;
13345         else
13346           echo EXPORTS > $output_objdir/$soname.def;
13347           cat $export_symbols >> $output_objdir/$soname.def;
13348         fi~
13349         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13350       else
13351         ld_shlibs=no
13352       fi
13353       ;;
13354
13355     netbsd*)
13356       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13357         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13358         wlarc=
13359       else
13360         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13361         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13362       fi
13363       ;;
13364
13365     solaris* | sysv5*)
13366       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13367         ld_shlibs_F77=no
13368         cat <<EOF 1>&2
13369
13370 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13371 *** create shared libraries on Solaris systems.  Therefore, libtool
13372 *** is disabling shared libraries support.  We urge you to upgrade GNU
13373 *** binutils to release 2.9.1 or newer.  Another option is to modify
13374 *** your PATH or compiler configuration so that the native linker is
13375 *** used, and then restart.
13376
13377 EOF
13378       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13379         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13381       else
13382         ld_shlibs_F77=no
13383       fi
13384       ;;
13385
13386     sunos4*)
13387       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13388       wlarc=
13389       hardcode_direct_F77=yes
13390       hardcode_shlibpath_var_F77=no
13391       ;;
13392
13393     *)
13394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13395         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13397       else
13398         ld_shlibs_F77=no
13399       fi
13400       ;;
13401     esac
13402
13403     if test "$ld_shlibs_F77" = yes; then
13404       runpath_var=LD_RUN_PATH
13405       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13406       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13407       # ancient GNU ld didn't support --whole-archive et. al.
13408       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13409         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13410       else
13411         whole_archive_flag_spec_F77=
13412       fi
13413     fi
13414   else
13415     # PORTME fill in a description of your system's linker (not GNU ld)
13416     case $host_os in
13417     aix3*)
13418       allow_undefined_flag_F77=unsupported
13419       always_export_symbols_F77=yes
13420       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'
13421       # Note: this linker hardcodes the directories in LIBPATH if there
13422       # are no directories specified by -L.
13423       hardcode_minus_L_F77=yes
13424       if test "$GCC" = yes && test -z "$link_static_flag"; then
13425         # Neither direct hardcoding nor static linking is supported with a
13426         # broken collect2.
13427         hardcode_direct_F77=unsupported
13428       fi
13429       ;;
13430
13431     aix4* | aix5*)
13432       if test "$host_cpu" = ia64; then
13433         # On IA64, the linker does run time linking by default, so we don't
13434         # have to do anything special.
13435         aix_use_runtimelinking=no
13436         exp_sym_flag='-Bexport'
13437         no_entry_flag=""
13438       else
13439         # If we're using GNU nm, then we don't want the "-C" option.
13440         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13441         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13442           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'
13443         else
13444           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'
13445         fi
13446         aix_use_runtimelinking=no
13447
13448         # Test if we are trying to use run time linking or normal
13449         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13450         # need to do runtime linking.
13451         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13452           for ld_flag in $LDFLAGS; do
13453           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13454             aix_use_runtimelinking=yes
13455             break
13456           fi
13457           done
13458         esac
13459
13460         exp_sym_flag='-bexport'
13461         no_entry_flag='-bnoentry'
13462       fi
13463
13464       # When large executables or shared objects are built, AIX ld can
13465       # have problems creating the table of contents.  If linking a library
13466       # or program results in "error TOC overflow" add -mminimal-toc to
13467       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13468       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13469
13470       archive_cmds_F77=''
13471       hardcode_direct_F77=yes
13472       hardcode_libdir_separator_F77=':'
13473       link_all_deplibs_F77=yes
13474
13475       if test "$GCC" = yes; then
13476         case $host_os in aix4.012|aix4.012.*)
13477         # We only want to do this on AIX 4.2 and lower, the check
13478         # below for broken collect2 doesn't work under 4.3+
13479           collect2name=`${CC} -print-prog-name=collect2`
13480           if test -f "$collect2name" && \
13481            strings "$collect2name" | grep resolve_lib_name >/dev/null
13482           then
13483           # We have reworked collect2
13484           hardcode_direct_F77=yes
13485           else
13486           # We have old collect2
13487           hardcode_direct_F77=unsupported
13488           # It fails to find uninstalled libraries when the uninstalled
13489           # path is not listed in the libpath.  Setting hardcode_minus_L
13490           # to unsupported forces relinking
13491           hardcode_minus_L_F77=yes
13492           hardcode_libdir_flag_spec_F77='-L$libdir'
13493           hardcode_libdir_separator_F77=
13494           fi
13495         esac
13496         shared_flag='-shared'
13497       else
13498         # not using gcc
13499         if test "$host_cpu" = ia64; then
13500         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501         # chokes on -Wl,-G. The following line is correct:
13502           shared_flag='-G'
13503         else
13504         if test "$aix_use_runtimelinking" = yes; then
13505             shared_flag='${wl}-G'
13506           else
13507             shared_flag='${wl}-bM:SRE'
13508         fi
13509         fi
13510       fi
13511
13512       # It seems that -bexpall does not export symbols beginning with
13513       # underscore (_), so it is better to generate a list of symbols to export.
13514       always_export_symbols_F77=yes
13515       if test "$aix_use_runtimelinking" = yes; then
13516         # Warning - without using the other runtime loading flags (-brtl),
13517         # -berok will link without error, but may produce a broken library.
13518         allow_undefined_flag_F77='-berok'
13519        # Determine the default libpath from the value encoded in an empty executable.
13520        cat >conftest.$ac_ext <<_ACEOF
13521       program main
13522
13523       end
13524 _ACEOF
13525 rm -f conftest.$ac_objext conftest$ac_exeext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527   (eval $ac_link) 2>conftest.er1
13528   ac_status=$?
13529   grep -v '^ *+' conftest.er1 >conftest.err
13530   rm -f conftest.er1
13531   cat conftest.err >&5
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); } &&
13534          { ac_try='test -z "$ac_f77_werror_flag"
13535                          || test ! -s conftest.err'
13536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537   (eval $ac_try) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; } &&
13541          { ac_try='test -s conftest$ac_exeext'
13542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543   (eval $ac_try) 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547
13548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13549 }'`
13550 # Check for a 64-bit object if we didn't find anything.
13551 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; }
13552 }'`; fi
13553 else
13554   echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557 fi
13558 rm -f conftest.err conftest.$ac_objext \
13559       conftest$ac_exeext conftest.$ac_ext
13560 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13561
13562        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13563         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"
13564        else
13565         if test "$host_cpu" = ia64; then
13566           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13567           allow_undefined_flag_F77="-z nodefs"
13568           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"
13569         else
13570          # Determine the default libpath from the value encoded in an empty executable.
13571          cat >conftest.$ac_ext <<_ACEOF
13572       program main
13573
13574       end
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578   (eval $ac_link) 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -z "$ac_f77_werror_flag"
13586                          || test ! -s conftest.err'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; } &&
13592          { ac_try='test -s conftest$ac_exeext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598
13599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13600 }'`
13601 # Check for a 64-bit object if we didn't find anything.
13602 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; }
13603 }'`; fi
13604 else
13605   echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 fi
13609 rm -f conftest.err conftest.$ac_objext \
13610       conftest$ac_exeext conftest.$ac_ext
13611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13612
13613          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13614           # Warning - without using the other run time loading flags,
13615           # -berok will link without error, but may produce a broken library.
13616           no_undefined_flag_F77=' ${wl}-bernotok'
13617           allow_undefined_flag_F77=' ${wl}-berok'
13618           # -bexpall does not export symbols beginning with underscore (_)
13619           always_export_symbols_F77=yes
13620           # Exported symbols can be pulled into shared objects from archives
13621           whole_archive_flag_spec_F77=' '
13622           archive_cmds_need_lc_F77=yes
13623           # This is similar to how AIX traditionally builds it's shared libraries.
13624           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'
13625         fi
13626       fi
13627       ;;
13628
13629     amigaos*)
13630       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)'
13631       hardcode_libdir_flag_spec_F77='-L$libdir'
13632       hardcode_minus_L_F77=yes
13633       # see comment about different semantics on the GNU ld section
13634       ld_shlibs_F77=no
13635       ;;
13636
13637     bsdi4*)
13638       export_dynamic_flag_spec_F77=-rdynamic
13639       ;;
13640
13641     cygwin* | mingw* | pw32*)
13642       # When not using gcc, we currently assume that we are using
13643       # Microsoft Visual C++.
13644       # hardcode_libdir_flag_spec is actually meaningless, as there is
13645       # no search path for DLLs.
13646       hardcode_libdir_flag_spec_F77=' '
13647       allow_undefined_flag_F77=unsupported
13648       # Tell ltmain to make .lib files, not .a files.
13649       libext=lib
13650       # Tell ltmain to make .dll files, not .so files.
13651       shrext=".dll"
13652       # FIXME: Setting linknames here is a bad hack.
13653       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13654       # The linker will automatically build a .lib file if we build a DLL.
13655       old_archive_From_new_cmds_F77='true'
13656       # FIXME: Should let the user specify the lib program.
13657       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13658       fix_srcfile_path='`cygpath -w "$srcfile"`'
13659       enable_shared_with_static_runtimes_F77=yes
13660       ;;
13661
13662     darwin* | rhapsody*)
13663     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13664       archive_cmds_need_lc_F77=no
13665       case "$host_os" in
13666       rhapsody* | darwin1.[012])
13667         allow_undefined_flag_F77='-undefined suppress'
13668         ;;
13669       *) # Darwin 1.3 on
13670         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13671         ;;
13672       esac
13673       # FIXME: Relying on posixy $() will cause problems for
13674       #        cross-compilation, but unfortunately the echo tests do not
13675       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13676       #        `"' quotes if we put them in here... so don't!
13677         lt_int_apple_cc_single_mod=no
13678         output_verbose_link_cmd='echo'
13679         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13680           lt_int_apple_cc_single_mod=yes
13681         fi
13682         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13683           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13684         else
13685         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13686       fi
13687       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13688       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13689         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13690           archive_expsym_cmds_F77='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}'
13691         else
13692           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13693         fi
13694           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13695       hardcode_direct_F77=no
13696       hardcode_automatic_F77=yes
13697       hardcode_shlibpath_var_F77=unsupported
13698       whole_archive_flag_spec_F77='-all_load $convenience'
13699       link_all_deplibs_F77=yes
13700     fi
13701       ;;
13702
13703     dgux*)
13704       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705       hardcode_libdir_flag_spec_F77='-L$libdir'
13706       hardcode_shlibpath_var_F77=no
13707       ;;
13708
13709     freebsd1*)
13710       ld_shlibs_F77=no
13711       ;;
13712
13713     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13714     # support.  Future versions do this automatically, but an explicit c++rt0.o
13715     # does not break anything, and helps significantly (at the cost of a little
13716     # extra space).
13717     freebsd2.2*)
13718       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13719       hardcode_libdir_flag_spec_F77='-R$libdir'
13720       hardcode_direct_F77=yes
13721       hardcode_shlibpath_var_F77=no
13722       ;;
13723
13724     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13725     freebsd2*)
13726       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13727       hardcode_direct_F77=yes
13728       hardcode_minus_L_F77=yes
13729       hardcode_shlibpath_var_F77=no
13730       ;;
13731
13732     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13733     freebsd*)
13734       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13735       hardcode_libdir_flag_spec_F77='-R$libdir'
13736       hardcode_direct_F77=yes
13737       hardcode_shlibpath_var_F77=no
13738       ;;
13739
13740     hpux9*)
13741       if test "$GCC" = yes; then
13742         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'
13743       else
13744         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'
13745       fi
13746       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13747       hardcode_libdir_separator_F77=:
13748       hardcode_direct_F77=yes
13749
13750       # hardcode_minus_L: Not really in the search PATH,
13751       # but as the default location of the library.
13752       hardcode_minus_L_F77=yes
13753       export_dynamic_flag_spec_F77='${wl}-E'
13754       ;;
13755
13756     hpux10* | hpux11*)
13757       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13758         case "$host_cpu" in
13759         hppa*64*|ia64*)
13760           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13761           ;;
13762         *)
13763           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13764           ;;
13765         esac
13766       else
13767         case "$host_cpu" in
13768         hppa*64*|ia64*)
13769           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13770           ;;
13771         *)
13772           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13773           ;;
13774         esac
13775       fi
13776       if test "$with_gnu_ld" = no; then
13777         case "$host_cpu" in
13778         hppa*64*)
13779           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13780           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13781           hardcode_libdir_separator_F77=:
13782           hardcode_direct_F77=no
13783           hardcode_shlibpath_var_F77=no
13784           ;;
13785         ia64*)
13786           hardcode_libdir_flag_spec_F77='-L$libdir'
13787           hardcode_direct_F77=no
13788           hardcode_shlibpath_var_F77=no
13789
13790           # hardcode_minus_L: Not really in the search PATH,
13791           # but as the default location of the library.
13792           hardcode_minus_L_F77=yes
13793           ;;
13794         *)
13795           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13796           hardcode_libdir_separator_F77=:
13797           hardcode_direct_F77=yes
13798           export_dynamic_flag_spec_F77='${wl}-E'
13799
13800           # hardcode_minus_L: Not really in the search PATH,
13801           # but as the default location of the library.
13802           hardcode_minus_L_F77=yes
13803           ;;
13804         esac
13805       fi
13806       ;;
13807
13808     irix5* | irix6* | nonstopux*)
13809       if test "$GCC" = yes; then
13810         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'
13811       else
13812         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'
13813         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13814       fi
13815       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13816       hardcode_libdir_separator_F77=:
13817       link_all_deplibs_F77=yes
13818       ;;
13819
13820     netbsd*)
13821       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13822         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13823       else
13824         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13825       fi
13826       hardcode_libdir_flag_spec_F77='-R$libdir'
13827       hardcode_direct_F77=yes
13828       hardcode_shlibpath_var_F77=no
13829       ;;
13830
13831     newsos6)
13832       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833       hardcode_direct_F77=yes
13834       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13835       hardcode_libdir_separator_F77=:
13836       hardcode_shlibpath_var_F77=no
13837       ;;
13838
13839     openbsd*)
13840       hardcode_direct_F77=yes
13841       hardcode_shlibpath_var_F77=no
13842       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13843         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13844         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13845         export_dynamic_flag_spec_F77='${wl}-E'
13846       else
13847        case $host_os in
13848          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13849            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13850            hardcode_libdir_flag_spec_F77='-R$libdir'
13851            ;;
13852          *)
13853            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13854            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13855            ;;
13856        esac
13857       fi
13858       ;;
13859
13860     os2*)
13861       hardcode_libdir_flag_spec_F77='-L$libdir'
13862       hardcode_minus_L_F77=yes
13863       allow_undefined_flag_F77=unsupported
13864       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'
13865       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13866       ;;
13867
13868     osf3*)
13869       if test "$GCC" = yes; then
13870         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13871         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'
13872       else
13873         allow_undefined_flag_F77=' -expect_unresolved \*'
13874         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'
13875       fi
13876       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13877       hardcode_libdir_separator_F77=:
13878       ;;
13879
13880     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13881       if test "$GCC" = yes; then
13882         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13883         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'
13884         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13885       else
13886         allow_undefined_flag_F77=' -expect_unresolved \*'
13887         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'
13888         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~
13889         $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'
13890
13891         # Both c and cxx compiler support -rpath directly
13892         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13893       fi
13894       hardcode_libdir_separator_F77=:
13895       ;;
13896
13897     sco3.2v5*)
13898       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899       hardcode_shlibpath_var_F77=no
13900       export_dynamic_flag_spec_F77='${wl}-Bexport'
13901       runpath_var=LD_RUN_PATH
13902       hardcode_runpath_var=yes
13903       ;;
13904
13905     solaris*)
13906       no_undefined_flag_F77=' -z text'
13907       if test "$GCC" = yes; then
13908         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13910           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13911       else
13912         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13914         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13915       fi
13916       hardcode_libdir_flag_spec_F77='-R$libdir'
13917       hardcode_shlibpath_var_F77=no
13918       case $host_os in
13919       solaris2.[0-5] | solaris2.[0-5].*) ;;
13920       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13921         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13922       esac
13923       link_all_deplibs_F77=yes
13924       ;;
13925
13926     sunos4*)
13927       if test "x$host_vendor" = xsequent; then
13928         # Use $CC to link under sequent, because it throws in some extra .o
13929         # files that make .init and .fini sections work.
13930         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13931       else
13932         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13933       fi
13934       hardcode_libdir_flag_spec_F77='-L$libdir'
13935       hardcode_direct_F77=yes
13936       hardcode_minus_L_F77=yes
13937       hardcode_shlibpath_var_F77=no
13938       ;;
13939
13940     sysv4)
13941       case $host_vendor in
13942         sni)
13943           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944           hardcode_direct_F77=yes # is this really true???
13945         ;;
13946         siemens)
13947           ## LD is ld it makes a PLAMLIB
13948           ## CC just makes a GrossModule.
13949           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13950           reload_cmds_F77='$CC -r -o $output$reload_objs'
13951           hardcode_direct_F77=no
13952         ;;
13953         motorola)
13954           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13956         ;;
13957       esac
13958       runpath_var='LD_RUN_PATH'
13959       hardcode_shlibpath_var_F77=no
13960       ;;
13961
13962     sysv4.3*)
13963       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964       hardcode_shlibpath_var_F77=no
13965       export_dynamic_flag_spec_F77='-Bexport'
13966       ;;
13967
13968     sysv4*MP*)
13969       if test -d /usr/nec; then
13970         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971         hardcode_shlibpath_var_F77=no
13972         runpath_var=LD_RUN_PATH
13973         hardcode_runpath_var=yes
13974         ld_shlibs_F77=yes
13975       fi
13976       ;;
13977
13978     sysv4.2uw2*)
13979       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13980       hardcode_direct_F77=yes
13981       hardcode_minus_L_F77=no
13982       hardcode_shlibpath_var_F77=no
13983       hardcode_runpath_var=yes
13984       runpath_var=LD_RUN_PATH
13985       ;;
13986
13987    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13988       no_undefined_flag_F77='${wl}-z ${wl}text'
13989       if test "$GCC" = yes; then
13990         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13991       else
13992         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13993       fi
13994       runpath_var='LD_RUN_PATH'
13995       hardcode_shlibpath_var_F77=no
13996       ;;
13997
13998     sysv5*)
13999       no_undefined_flag_F77=' -z text'
14000       # $CC -shared without GNU ld will not create a library from C++
14001       # object files and a static libstdc++, better avoid it by now
14002       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14004                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14005       hardcode_libdir_flag_spec_F77=
14006       hardcode_shlibpath_var_F77=no
14007       runpath_var='LD_RUN_PATH'
14008       ;;
14009
14010     uts4*)
14011       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012       hardcode_libdir_flag_spec_F77='-L$libdir'
14013       hardcode_shlibpath_var_F77=no
14014       ;;
14015
14016     *)
14017       ld_shlibs_F77=no
14018       ;;
14019     esac
14020   fi
14021
14022 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14023 echo "${ECHO_T}$ld_shlibs_F77" >&6
14024 test "$ld_shlibs_F77" = no && can_build_shared=no
14025
14026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14027 if test "$GCC" = yes; then
14028   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14029 fi
14030
14031 #
14032 # Do we need to explicitly link libc?
14033 #
14034 case "x$archive_cmds_need_lc_F77" in
14035 x|xyes)
14036   # Assume -lc should be added
14037   archive_cmds_need_lc_F77=yes
14038
14039   if test "$enable_shared" = yes && test "$GCC" = yes; then
14040     case $archive_cmds_F77 in
14041     *'~'*)
14042       # FIXME: we may have to deal with multi-command sequences.
14043       ;;
14044     '$CC '*)
14045       # Test whether the compiler implicitly links with -lc since on some
14046       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14047       # to ld, don't add -lc before -lgcc.
14048       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14050       $rm conftest*
14051       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14052
14053       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054   (eval $ac_compile) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); } 2>conftest.err; then
14058         soname=conftest
14059         lib=conftest
14060         libobjs=conftest.$ac_objext
14061         deplibs=
14062         wl=$lt_prog_compiler_wl_F77
14063         compiler_flags=-v
14064         linker_flags=-v
14065         verstring=
14066         output_objdir=.
14067         libname=conftest
14068         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14069         allow_undefined_flag_F77=
14070         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14071   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }
14075         then
14076           archive_cmds_need_lc_F77=no
14077         else
14078           archive_cmds_need_lc_F77=yes
14079         fi
14080         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14081       else
14082         cat conftest.err 1>&5
14083       fi
14084       $rm conftest*
14085       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14086 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14087       ;;
14088     esac
14089   fi
14090   ;;
14091 esac
14092
14093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14095 hardcode_action_F77=
14096 if test -n "$hardcode_libdir_flag_spec_F77" || \
14097    test -n "$runpath_var F77" || \
14098    test "X$hardcode_automatic_F77"="Xyes" ; then
14099
14100   # We can hardcode non-existant directories.
14101   if test "$hardcode_direct_F77" != no &&
14102      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14103      # have to relink, otherwise we might link with an installed library
14104      # when we should be linking with a yet-to-be-installed one
14105      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14106      test "$hardcode_minus_L_F77" != no; then
14107     # Linking always hardcodes the temporary library directory.
14108     hardcode_action_F77=relink
14109   else
14110     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14111     hardcode_action_F77=immediate
14112   fi
14113 else
14114   # We cannot hardcode anything, or else we can only hardcode existing
14115   # directories.
14116   hardcode_action_F77=unsupported
14117 fi
14118 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14119 echo "${ECHO_T}$hardcode_action_F77" >&6
14120
14121 if test "$hardcode_action_F77" = relink; then
14122   # Fast installation is not supported
14123   enable_fast_install=no
14124 elif test "$shlibpath_overrides_runpath" = yes ||
14125      test "$enable_shared" = no; then
14126   # Fast installation is not necessary
14127   enable_fast_install=needless
14128 fi
14129
14130 striplib=
14131 old_striplib=
14132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14135   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14136   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14137   echo "$as_me:$LINENO: result: yes" >&5
14138 echo "${ECHO_T}yes" >&6
14139 else
14140 # FIXME - insert some real tests, host_os isn't really good enough
14141   case $host_os in
14142    darwin*)
14143        if test -n "$STRIP" ; then
14144          striplib="$STRIP -x"
14145          echo "$as_me:$LINENO: result: yes" >&5
14146 echo "${ECHO_T}yes" >&6
14147        else
14148   echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6
14150 fi
14151        ;;
14152    *)
14153   echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6
14155     ;;
14156   esac
14157 fi
14158
14159 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14160 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14161 library_names_spec=
14162 libname_spec='lib$name'
14163 soname_spec=
14164 shrext=".so"
14165 postinstall_cmds=
14166 postuninstall_cmds=
14167 finish_cmds=
14168 finish_eval=
14169 shlibpath_var=
14170 shlibpath_overrides_runpath=unknown
14171 version_type=none
14172 dynamic_linker="$host_os ld.so"
14173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14174 if test "$GCC" = yes; then
14175   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14176   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14177     # if the path contains ";" then we assume it to be the separator
14178     # otherwise default to the standard path separator (i.e. ":") - it is
14179     # assumed that no part of a normal pathname contains ";" but that should
14180     # okay in the real world where ";" in dirpaths is itself problematic.
14181     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14182   else
14183     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14184   fi
14185 else
14186   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14187 fi
14188 need_lib_prefix=unknown
14189 hardcode_into_libs=no
14190
14191 # when you set need_version to no, make sure it does not cause -set_version
14192 # flags to be left without arguments
14193 need_version=unknown
14194
14195 case $host_os in
14196 aix3*)
14197   version_type=linux
14198   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199   shlibpath_var=LIBPATH
14200
14201   # AIX 3 has no versioning support, so we append a major version to the name.
14202   soname_spec='${libname}${release}${shared_ext}$major'
14203   ;;
14204
14205 aix4* | aix5*)
14206   version_type=linux
14207   need_lib_prefix=no
14208   need_version=no
14209   hardcode_into_libs=yes
14210   if test "$host_cpu" = ia64; then
14211     # AIX 5 supports IA64
14212     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213     shlibpath_var=LD_LIBRARY_PATH
14214   else
14215     # With GCC up to 2.95.x, collect2 would create an import file
14216     # for dependence libraries.  The import file would start with
14217     # the line `#! .'.  This would cause the generated library to
14218     # depend on `.', always an invalid library.  This was fixed in
14219     # development snapshots of GCC prior to 3.0.
14220     case $host_os in
14221       aix4 | aix4.[01] | aix4.[01].*)
14222       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14223            echo ' yes '
14224            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14225         :
14226       else
14227         can_build_shared=no
14228       fi
14229       ;;
14230     esac
14231     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232     # soname into executable. Probably we can add versioning support to
14233     # collect2, so additional links can be useful in future.
14234     if test "$aix_use_runtimelinking" = yes; then
14235       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236       # instead of lib<name>.a to let people know that these are not
14237       # typical AIX shared libraries.
14238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239     else
14240       # We preserve .a as extension for shared libraries through AIX4.2
14241       # and later when we are not doing run time linking.
14242       library_names_spec='${libname}${release}.a $libname.a'
14243       soname_spec='${libname}${release}${shared_ext}$major'
14244     fi
14245     shlibpath_var=LIBPATH
14246   fi
14247   ;;
14248
14249 amigaos*)
14250   library_names_spec='$libname.ixlibrary $libname.a'
14251   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14252   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'
14253   ;;
14254
14255 beos*)
14256   library_names_spec='${libname}${shared_ext}'
14257   dynamic_linker="$host_os ld.so"
14258   shlibpath_var=LIBRARY_PATH
14259   ;;
14260
14261 bsdi4*)
14262   version_type=linux
14263   need_version=no
14264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265   soname_spec='${libname}${release}${shared_ext}$major'
14266   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14267   shlibpath_var=LD_LIBRARY_PATH
14268   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14269   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14270   # the default ld.so.conf also contains /usr/contrib/lib and
14271   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14272   # libtool to hard-code these into programs
14273   ;;
14274
14275 cygwin* | mingw* | pw32*)
14276   version_type=windows
14277   shrext=".dll"
14278   need_version=no
14279   need_lib_prefix=no
14280
14281   case $GCC,$host_os in
14282   yes,cygwin* | yes,mingw* | yes,pw32*)
14283     library_names_spec='$libname.dll.a'
14284     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14285     postinstall_cmds='base_file=`basename \${file}`~
14286       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14287       dldir=$destdir/`dirname \$dlpath`~
14288       test -d \$dldir || mkdir -p \$dldir~
14289       $install_prog $dir/$dlname \$dldir/$dlname'
14290     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14291       dlpath=$dir/\$dldll~
14292        $rm \$dlpath'
14293     shlibpath_overrides_runpath=yes
14294
14295     case $host_os in
14296     cygwin*)
14297       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14298       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14300       ;;
14301     mingw*)
14302       # MinGW DLLs use traditional 'lib' prefix
14303       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14304       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14306         # It is most probably a Windows format PATH printed by
14307         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14308         # path with ; separators, and with drive letters. We can handle the
14309         # drive letters (cygwin fileutils understands them), so leave them,
14310         # especially as we might pass files found there to a mingw objdump,
14311         # which wouldn't understand a cygwinified path. Ahh.
14312         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14313       else
14314         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14315       fi
14316       ;;
14317     pw32*)
14318       # pw32 DLLs use 'pw' prefix rather than 'lib'
14319       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14320       ;;
14321     esac
14322     ;;
14323
14324   *)
14325     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14326     ;;
14327   esac
14328   dynamic_linker='Win32 ld.exe'
14329   # FIXME: first we should search . and the directory the executable is in
14330   shlibpath_var=PATH
14331   ;;
14332
14333 darwin* | rhapsody*)
14334   dynamic_linker="$host_os dyld"
14335   version_type=darwin
14336   need_lib_prefix=no
14337   need_version=no
14338   # FIXME: Relying on posixy $() will cause problems for
14339   #        cross-compilation, but unfortunately the echo tests do not
14340   #        yet detect zsh echo's removal of \ escapes.
14341   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342   soname_spec='${libname}${release}${major}$shared_ext'
14343   shlibpath_overrides_runpath=yes
14344   shlibpath_var=DYLD_LIBRARY_PATH
14345   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14346   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14348   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"`
14349   fi
14350   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14351   ;;
14352
14353 dgux*)
14354   version_type=linux
14355   need_lib_prefix=no
14356   need_version=no
14357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14358   soname_spec='${libname}${release}${shared_ext}$major'
14359   shlibpath_var=LD_LIBRARY_PATH
14360   ;;
14361
14362 freebsd1*)
14363   dynamic_linker=no
14364   ;;
14365
14366 freebsd*)
14367   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14368   version_type=freebsd-$objformat
14369   case $version_type in
14370     freebsd-elf*)
14371       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14372       need_version=no
14373       need_lib_prefix=no
14374       ;;
14375     freebsd-*)
14376       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14377       need_version=yes
14378       ;;
14379   esac
14380   shlibpath_var=LD_LIBRARY_PATH
14381   case $host_os in
14382   freebsd2*)
14383     shlibpath_overrides_runpath=yes
14384     ;;
14385   freebsd3.01* | freebsdelf3.01*)
14386     shlibpath_overrides_runpath=yes
14387     hardcode_into_libs=yes
14388     ;;
14389   *) # from 3.2 on
14390     shlibpath_overrides_runpath=no
14391     hardcode_into_libs=yes
14392     ;;
14393   esac
14394   ;;
14395
14396 gnu*)
14397   version_type=linux
14398   need_lib_prefix=no
14399   need_version=no
14400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14401   soname_spec='${libname}${release}${shared_ext}$major'
14402   shlibpath_var=LD_LIBRARY_PATH
14403   hardcode_into_libs=yes
14404   ;;
14405
14406 hpux9* | hpux10* | hpux11*)
14407   # Give a soname corresponding to the major version so that dld.sl refuses to
14408   # link against other versions.
14409   version_type=sunos
14410   need_lib_prefix=no
14411   need_version=no
14412   case "$host_cpu" in
14413   ia64*)
14414     shrext='.so'
14415     hardcode_into_libs=yes
14416     dynamic_linker="$host_os dld.so"
14417     shlibpath_var=LD_LIBRARY_PATH
14418     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420     soname_spec='${libname}${release}${shared_ext}$major'
14421     if test "X$HPUX_IA64_MODE" = X32; then
14422       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14423     else
14424       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14425     fi
14426     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14427     ;;
14428    hppa*64*)
14429      shrext='.sl'
14430      hardcode_into_libs=yes
14431      dynamic_linker="$host_os dld.sl"
14432      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14433      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14434      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435      soname_spec='${libname}${release}${shared_ext}$major'
14436      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14437      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14438      ;;
14439    *)
14440     shrext='.sl'
14441     dynamic_linker="$host_os dld.sl"
14442     shlibpath_var=SHLIB_PATH
14443     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445     soname_spec='${libname}${release}${shared_ext}$major'
14446     ;;
14447   esac
14448   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14449   postinstall_cmds='chmod 555 $lib'
14450   ;;
14451
14452 irix5* | irix6* | nonstopux*)
14453   case $host_os in
14454     nonstopux*) version_type=nonstopux ;;
14455     *)
14456         if test "$lt_cv_prog_gnu_ld" = yes; then
14457                 version_type=linux
14458         else
14459                 version_type=irix
14460         fi ;;
14461   esac
14462   need_lib_prefix=no
14463   need_version=no
14464   soname_spec='${libname}${release}${shared_ext}$major'
14465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14466   case $host_os in
14467   irix5* | nonstopux*)
14468     libsuff= shlibsuff=
14469     ;;
14470   *)
14471     case $LD in # libtool.m4 will add one of these switches to LD
14472     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14473       libsuff= shlibsuff= libmagic=32-bit;;
14474     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14475       libsuff=32 shlibsuff=N32 libmagic=N32;;
14476     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14477       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14478     *) libsuff= shlibsuff= libmagic=never-match;;
14479     esac
14480     ;;
14481   esac
14482   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14483   shlibpath_overrides_runpath=no
14484   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14485   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14486   hardcode_into_libs=yes
14487   ;;
14488
14489 # No shared lib support for Linux oldld, aout, or coff.
14490 linux*oldld* | linux*aout* | linux*coff*)
14491   dynamic_linker=no
14492   ;;
14493
14494 # This must be Linux ELF.
14495 linux*)
14496   version_type=linux
14497   need_lib_prefix=no
14498   need_version=no
14499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500   soname_spec='${libname}${release}${shared_ext}$major'
14501   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14502   shlibpath_var=LD_LIBRARY_PATH
14503   shlibpath_overrides_runpath=no
14504   # This implies no fast_install, which is unacceptable.
14505   # Some rework will be needed to allow for fast_install
14506   # before this can be enabled.
14507   hardcode_into_libs=yes
14508
14509   # We used to test for /lib/ld.so.1 and disable shared libraries on
14510   # powerpc, because MkLinux only supported shared libraries with the
14511   # GNU dynamic linker.  Since this was broken with cross compilers,
14512   # most powerpc-linux boxes support dynamic linking these days and
14513   # people can always --disable-shared, the test was removed, and we
14514   # assume the GNU/Linux dynamic linker is in use.
14515   dynamic_linker='GNU/Linux ld.so'
14516   ;;
14517
14518 netbsd*)
14519   version_type=sunos
14520   need_lib_prefix=no
14521   need_version=no
14522   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14524     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14525     dynamic_linker='NetBSD (a.out) ld.so'
14526   else
14527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14528     soname_spec='${libname}${release}${shared_ext}$major'
14529     dynamic_linker='NetBSD ld.elf_so'
14530   fi
14531   shlibpath_var=LD_LIBRARY_PATH
14532   shlibpath_overrides_runpath=yes
14533   hardcode_into_libs=yes
14534   ;;
14535
14536 newsos6)
14537   version_type=linux
14538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539   shlibpath_var=LD_LIBRARY_PATH
14540   shlibpath_overrides_runpath=yes
14541   ;;
14542
14543 nto-qnx)
14544   version_type=linux
14545   need_lib_prefix=no
14546   need_version=no
14547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548   soname_spec='${libname}${release}${shared_ext}$major'
14549   shlibpath_var=LD_LIBRARY_PATH
14550   shlibpath_overrides_runpath=yes
14551   ;;
14552
14553 openbsd*)
14554   version_type=sunos
14555   need_lib_prefix=no
14556   need_version=no
14557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14559   shlibpath_var=LD_LIBRARY_PATH
14560   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14561     case $host_os in
14562       openbsd2.[89] | openbsd2.[89].*)
14563         shlibpath_overrides_runpath=no
14564         ;;
14565       *)
14566         shlibpath_overrides_runpath=yes
14567         ;;
14568       esac
14569   else
14570     shlibpath_overrides_runpath=yes
14571   fi
14572   ;;
14573
14574 os2*)
14575   libname_spec='$name'
14576   shrext=".dll"
14577   need_lib_prefix=no
14578   library_names_spec='$libname${shared_ext} $libname.a'
14579   dynamic_linker='OS/2 ld.exe'
14580   shlibpath_var=LIBPATH
14581   ;;
14582
14583 osf3* | osf4* | osf5*)
14584   version_type=osf
14585   need_lib_prefix=no
14586   need_version=no
14587   soname_spec='${libname}${release}${shared_ext}$major'
14588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589   shlibpath_var=LD_LIBRARY_PATH
14590   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14591   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14592   ;;
14593
14594 sco3.2v5*)
14595   version_type=osf
14596   soname_spec='${libname}${release}${shared_ext}$major'
14597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598   shlibpath_var=LD_LIBRARY_PATH
14599   ;;
14600
14601 solaris*)
14602   version_type=linux
14603   need_lib_prefix=no
14604   need_version=no
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   shlibpath_overrides_runpath=yes
14609   hardcode_into_libs=yes
14610   # ldd complains unless libraries are executable
14611   postinstall_cmds='chmod +x $lib'
14612   ;;
14613
14614 sunos4*)
14615   version_type=sunos
14616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14617   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14618   shlibpath_var=LD_LIBRARY_PATH
14619   shlibpath_overrides_runpath=yes
14620   if test "$with_gnu_ld" = yes; then
14621     need_lib_prefix=no
14622   fi
14623   need_version=yes
14624   ;;
14625
14626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14627   version_type=linux
14628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629   soname_spec='${libname}${release}${shared_ext}$major'
14630   shlibpath_var=LD_LIBRARY_PATH
14631   case $host_vendor in
14632     sni)
14633       shlibpath_overrides_runpath=no
14634       need_lib_prefix=no
14635       export_dynamic_flag_spec='${wl}-Blargedynsym'
14636       runpath_var=LD_RUN_PATH
14637       ;;
14638     siemens)
14639       need_lib_prefix=no
14640       ;;
14641     motorola)
14642       need_lib_prefix=no
14643       need_version=no
14644       shlibpath_overrides_runpath=no
14645       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14646       ;;
14647   esac
14648   ;;
14649
14650 sysv4*MP*)
14651   if test -d /usr/nec ;then
14652     version_type=linux
14653     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14654     soname_spec='$libname${shared_ext}.$major'
14655     shlibpath_var=LD_LIBRARY_PATH
14656   fi
14657   ;;
14658
14659 uts4*)
14660   version_type=linux
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   ;;
14665
14666 *)
14667   dynamic_linker=no
14668   ;;
14669 esac
14670 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14671 echo "${ECHO_T}$dynamic_linker" >&6
14672 test "$dynamic_linker" = no && can_build_shared=no
14673
14674
14675 # The else clause should only fire when bootstrapping the
14676 # libtool distribution, otherwise you forgot to ship ltmain.sh
14677 # with your package, and you will get complaints that there are
14678 # no rules to generate ltmain.sh.
14679 if test -f "$ltmain"; then
14680   # See if we are running on zsh, and set the options which allow our commands through
14681   # without removal of \ escapes.
14682   if test -n "${ZSH_VERSION+set}" ; then
14683     setopt NO_GLOB_SUBST
14684   fi
14685   # Now quote all the things that may contain metacharacters while being
14686   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14687   # variables and quote the copies for generation of the libtool script.
14688   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14689     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14690     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14691     deplibs_check_method reload_flag reload_cmds need_locks \
14692     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14693     lt_cv_sys_global_symbol_to_c_name_address \
14694     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14695     old_postinstall_cmds old_postuninstall_cmds \
14696     compiler_F77 \
14697     CC_F77 \
14698     LD_F77 \
14699     lt_prog_compiler_wl_F77 \
14700     lt_prog_compiler_pic_F77 \
14701     lt_prog_compiler_static_F77 \
14702     lt_prog_compiler_no_builtin_flag_F77 \
14703     export_dynamic_flag_spec_F77 \
14704     thread_safe_flag_spec_F77 \
14705     whole_archive_flag_spec_F77 \
14706     enable_shared_with_static_runtimes_F77 \
14707     old_archive_cmds_F77 \
14708     old_archive_from_new_cmds_F77 \
14709     predep_objects_F77 \
14710     postdep_objects_F77 \
14711     predeps_F77 \
14712     postdeps_F77 \
14713     compiler_lib_search_path_F77 \
14714     archive_cmds_F77 \
14715     archive_expsym_cmds_F77 \
14716     postinstall_cmds_F77 \
14717     postuninstall_cmds_F77 \
14718     old_archive_from_expsyms_cmds_F77 \
14719     allow_undefined_flag_F77 \
14720     no_undefined_flag_F77 \
14721     export_symbols_cmds_F77 \
14722     hardcode_libdir_flag_spec_F77 \
14723     hardcode_libdir_flag_spec_ld_F77 \
14724     hardcode_libdir_separator_F77 \
14725     hardcode_automatic_F77 \
14726     module_cmds_F77 \
14727     module_expsym_cmds_F77 \
14728     lt_cv_prog_compiler_c_o_F77 \
14729     exclude_expsyms_F77 \
14730     include_expsyms_F77; do
14731
14732     case $var in
14733     old_archive_cmds_F77 | \
14734     old_archive_from_new_cmds_F77 | \
14735     archive_cmds_F77 | \
14736     archive_expsym_cmds_F77 | \
14737     module_cmds_F77 | \
14738     module_expsym_cmds_F77 | \
14739     old_archive_from_expsyms_cmds_F77 | \
14740     export_symbols_cmds_F77 | \
14741     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14742     postinstall_cmds | postuninstall_cmds | \
14743     old_postinstall_cmds | old_postuninstall_cmds | \
14744     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14745       # Double-quote double-evaled strings.
14746       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14747       ;;
14748     *)
14749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14750       ;;
14751     esac
14752   done
14753
14754   case $lt_echo in
14755   *'\$0 --fallback-echo"')
14756     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14757     ;;
14758   esac
14759
14760 cfgfile="$ofile"
14761
14762   cat <<__EOF__ >> "$cfgfile"
14763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14764
14765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14766
14767 # Shell to use when invoking shell scripts.
14768 SHELL=$lt_SHELL
14769
14770 # Whether or not to build shared libraries.
14771 build_libtool_libs=$enable_shared
14772
14773 # Whether or not to build static libraries.
14774 build_old_libs=$enable_static
14775
14776 # Whether or not to add -lc for building shared libraries.
14777 build_libtool_need_lc=$archive_cmds_need_lc_F77
14778
14779 # Whether or not to disallow shared libs when runtime libs are static
14780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14781
14782 # Whether or not to optimize for fast installation.
14783 fast_install=$enable_fast_install
14784
14785 # The host system.
14786 host_alias=$host_alias
14787 host=$host
14788
14789 # An echo program that does not interpret backslashes.
14790 echo=$lt_echo
14791
14792 # The archiver.
14793 AR=$lt_AR
14794 AR_FLAGS=$lt_AR_FLAGS
14795
14796 # A C compiler.
14797 LTCC=$lt_LTCC
14798
14799 # A language-specific compiler.
14800 CC=$lt_compiler_F77
14801
14802 # Is the compiler the GNU C compiler?
14803 with_gcc=$GCC_F77
14804
14805 # An ERE matcher.
14806 EGREP=$lt_EGREP
14807
14808 # The linker used to build libraries.
14809 LD=$lt_LD_F77
14810
14811 # Whether we need hard or soft links.
14812 LN_S=$lt_LN_S
14813
14814 # A BSD-compatible nm program.
14815 NM=$lt_NM
14816
14817 # A symbol stripping program
14818 STRIP=$STRIP
14819
14820 # Used to examine libraries when file_magic_cmd begins "file"
14821 MAGIC_CMD=$MAGIC_CMD
14822
14823 # Used on cygwin: DLL creation program.
14824 DLLTOOL="$DLLTOOL"
14825
14826 # Used on cygwin: object dumper.
14827 OBJDUMP="$OBJDUMP"
14828
14829 # Used on cygwin: assembler.
14830 AS="$AS"
14831
14832 # The name of the directory that contains temporary libtool files.
14833 objdir=$objdir
14834
14835 # How to create reloadable object files.
14836 reload_flag=$lt_reload_flag
14837 reload_cmds=$lt_reload_cmds
14838
14839 # How to pass a linker flag through the compiler.
14840 wl=$lt_lt_prog_compiler_wl_F77
14841
14842 # Object file suffix (normally "o").
14843 objext="$ac_objext"
14844
14845 # Old archive suffix (normally "a").
14846 libext="$libext"
14847
14848 # Shared library suffix (normally ".so").
14849 shrext='$shrext'
14850
14851 # Executable file suffix (normally "").
14852 exeext="$exeext"
14853
14854 # Additional compiler flags for building library objects.
14855 pic_flag=$lt_lt_prog_compiler_pic_F77
14856 pic_mode=$pic_mode
14857
14858 # What is the maximum length of a command?
14859 max_cmd_len=$lt_cv_sys_max_cmd_len
14860
14861 # Does compiler simultaneously support -c and -o options?
14862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14863
14864 # Must we lock files when doing compilation ?
14865 need_locks=$lt_need_locks
14866
14867 # Do we need the lib prefix for modules?
14868 need_lib_prefix=$need_lib_prefix
14869
14870 # Do we need a version for libraries?
14871 need_version=$need_version
14872
14873 # Whether dlopen is supported.
14874 dlopen_support=$enable_dlopen
14875
14876 # Whether dlopen of programs is supported.
14877 dlopen_self=$enable_dlopen_self
14878
14879 # Whether dlopen of statically linked programs is supported.
14880 dlopen_self_static=$enable_dlopen_self_static
14881
14882 # Compiler flag to prevent dynamic linking.
14883 link_static_flag=$lt_lt_prog_compiler_static_F77
14884
14885 # Compiler flag to turn off builtin functions.
14886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14887
14888 # Compiler flag to allow reflexive dlopens.
14889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14890
14891 # Compiler flag to generate shared objects directly from archives.
14892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14893
14894 # Compiler flag to generate thread-safe objects.
14895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14896
14897 # Library versioning type.
14898 version_type=$version_type
14899
14900 # Format of library name prefix.
14901 libname_spec=$lt_libname_spec
14902
14903 # List of archive names.  First name is the real one, the rest are links.
14904 # The last name is the one that the linker finds with -lNAME.
14905 library_names_spec=$lt_library_names_spec
14906
14907 # The coded name of the library, if different from the real name.
14908 soname_spec=$lt_soname_spec
14909
14910 # Commands used to build and install an old-style archive.
14911 RANLIB=$lt_RANLIB
14912 old_archive_cmds=$lt_old_archive_cmds_F77
14913 old_postinstall_cmds=$lt_old_postinstall_cmds
14914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14915
14916 # Create an old-style archive from a shared archive.
14917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14918
14919 # Create a temporary old-style archive to link instead of a shared archive.
14920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14921
14922 # Commands used to build and install a shared archive.
14923 archive_cmds=$lt_archive_cmds_F77
14924 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14925 postinstall_cmds=$lt_postinstall_cmds
14926 postuninstall_cmds=$lt_postuninstall_cmds
14927
14928 # Commands used to build a loadable module (assumed same as above if empty)
14929 module_cmds=$lt_module_cmds_F77
14930 module_expsym_cmds=$lt_module_expsym_cmds_F77
14931
14932 # Commands to strip libraries.
14933 old_striplib=$lt_old_striplib
14934 striplib=$lt_striplib
14935
14936 # Dependencies to place before the objects being linked to create a
14937 # shared library.
14938 predep_objects=$lt_predep_objects_F77
14939
14940 # Dependencies to place after the objects being linked to create a
14941 # shared library.
14942 postdep_objects=$lt_postdep_objects_F77
14943
14944 # Dependencies to place before the objects being linked to create a
14945 # shared library.
14946 predeps=$lt_predeps_F77
14947
14948 # Dependencies to place after the objects being linked to create a
14949 # shared library.
14950 postdeps=$lt_postdeps_F77
14951
14952 # The library search path used internally by the compiler when linking
14953 # a shared library.
14954 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14955
14956 # Method to check whether dependent libraries are shared objects.
14957 deplibs_check_method=$lt_deplibs_check_method
14958
14959 # Command to use when deplibs_check_method == file_magic.
14960 file_magic_cmd=$lt_file_magic_cmd
14961
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag_F77
14964
14965 # Flag that forces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag_F77
14967
14968 # Commands used to finish a libtool library installation in a directory.
14969 finish_cmds=$lt_finish_cmds
14970
14971 # Same as above, but a single script fragment to be evaled but not shown.
14972 finish_eval=$lt_finish_eval
14973
14974 # Take the output of nm and produce a listing of raw symbols and C names.
14975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14976
14977 # Transform the output of nm in a proper C declaration
14978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14979
14980 # Transform the output of nm in a C name address pair
14981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14982
14983 # This is the shared library runtime path variable.
14984 runpath_var=$runpath_var
14985
14986 # This is the shared library path variable.
14987 shlibpath_var=$shlibpath_var
14988
14989 # Is shlibpath searched before the hard-coded library search path?
14990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14991
14992 # How to hardcode a shared library path into an executable.
14993 hardcode_action=$hardcode_action_F77
14994
14995 # Whether we should hardcode library paths into libraries.
14996 hardcode_into_libs=$hardcode_into_libs
14997
14998 # Flag to hardcode \$libdir into a binary during linking.
14999 # This must work even if \$libdir does not exist.
15000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15001
15002 # If ld is used when linking, flag to hardcode \$libdir into
15003 # a binary during linking. This must work even if \$libdir does
15004 # not exist.
15005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15006
15007 # Whether we need a single -rpath flag with a separated argument.
15008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15009
15010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15011 # resulting binary.
15012 hardcode_direct=$hardcode_direct_F77
15013
15014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15015 # resulting binary.
15016 hardcode_minus_L=$hardcode_minus_L_F77
15017
15018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15019 # the resulting binary.
15020 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15021
15022 # Set to yes if building a shared library automatically hardcodes DIR into the library
15023 # and all subsequent libraries and executables linked against it.
15024 hardcode_automatic=$hardcode_automatic_F77
15025
15026 # Variables whose values should be saved in libtool wrapper scripts and
15027 # restored at relink time.
15028 variables_saved_for_relink="$variables_saved_for_relink"
15029
15030 # Whether libtool must link a program against all its dependency libraries.
15031 link_all_deplibs=$link_all_deplibs_F77
15032
15033 # Compile-time system search path for libraries
15034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15035
15036 # Run-time system search path for libraries
15037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15038
15039 # Fix the shell variable \$srcfile for the compiler.
15040 fix_srcfile_path="$fix_srcfile_path_F77"
15041
15042 # Set to yes if exported symbols are required.
15043 always_export_symbols=$always_export_symbols_F77
15044
15045 # The commands to list exported symbols.
15046 export_symbols_cmds=$lt_export_symbols_cmds_F77
15047
15048 # The commands to extract the exported symbol list from a shared archive.
15049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15050
15051 # Symbols that should not be listed in the preloaded symbols.
15052 exclude_expsyms=$lt_exclude_expsyms_F77
15053
15054 # Symbols that must always be exported.
15055 include_expsyms=$lt_include_expsyms_F77
15056
15057 # ### END LIBTOOL TAG CONFIG: $tagname
15058
15059 __EOF__
15060
15061
15062 else
15063   # If there is no Makefile yet, we rely on a make rule to execute
15064   # `config.status --recheck' to rerun these tests and create the
15065   # libtool script then.
15066   test -f Makefile && make "$ltmain"
15067 fi
15068
15069
15070 ac_ext=c
15071 ac_cpp='$CPP $CPPFLAGS'
15072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15075
15076 CC="$lt_save_CC"
15077
15078         else
15079           tagname=""
15080         fi
15081         ;;
15082
15083       GCJ)
15084         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15085
15086
15087
15088 # Source file extension for Java test sources.
15089 ac_ext=java
15090
15091 # Object file extension for compiled Java test sources.
15092 objext=o
15093 objext_GCJ=$objext
15094
15095 # Code to be used in simple compile tests
15096 lt_simple_compile_test_code="class foo {}\n"
15097
15098 # Code to be used in simple link tests
15099 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15100
15101 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15102
15103 # If no C compiler was specified, use CC.
15104 LTCC=${LTCC-"$CC"}
15105
15106 # Allow CC to be a program name with arguments.
15107 compiler=$CC
15108
15109
15110 # Allow CC to be a program name with arguments.
15111 lt_save_CC="$CC"
15112 CC=${GCJ-"gcj"}
15113 compiler=$CC
15114 compiler_GCJ=$CC
15115
15116 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15117 archive_cmds_need_lc_GCJ=no
15118
15119 ## CAVEAT EMPTOR:
15120 ## There is no encapsulation within the following macros, do not change
15121 ## the running order or otherwise move them around unless you know exactly
15122 ## what you are doing...
15123
15124 lt_prog_compiler_no_builtin_flag_GCJ=
15125
15126 if test "$GCC" = yes; then
15127   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15128
15129   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134   lt_cv_prog_compiler_rtti_exceptions=no
15135   ac_outfile=conftest.$ac_objext
15136    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15137    lt_compiler_flag="-fno-rtti -fno-exceptions"
15138    # Insert the option either (1) after the last *FLAGS variable, or
15139    # (2) before a word containing "conftest.", or (3) at the end.
15140    # Note that $ac_compile itself does not contain backslashes and begins
15141    # with a dollar sign (not a hyphen), so the echo should work correctly.
15142    # The option is referenced via a variable to avoid confusing sed.
15143    lt_compile=`echo "$ac_compile" | $SED \
15144    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15146    -e 's:$: $lt_compiler_flag:'`
15147    (eval echo "\"\$as_me:15147: $lt_compile\"" >&5)
15148    (eval "$lt_compile" 2>conftest.err)
15149    ac_status=$?
15150    cat conftest.err >&5
15151    echo "$as_me:15151: \$? = $ac_status" >&5
15152    if (exit $ac_status) && test -s "$ac_outfile"; then
15153      # The compiler can only warn and ignore the option if not recognized
15154      # So say no if there are warnings
15155      if test ! -s conftest.err; then
15156        lt_cv_prog_compiler_rtti_exceptions=yes
15157      fi
15158    fi
15159    $rm conftest*
15160
15161 fi
15162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15164
15165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15166     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15167 else
15168     :
15169 fi
15170
15171 fi
15172
15173 lt_prog_compiler_wl_GCJ=
15174 lt_prog_compiler_pic_GCJ=
15175 lt_prog_compiler_static_GCJ=
15176
15177 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15179
15180   if test "$GCC" = yes; then
15181     lt_prog_compiler_wl_GCJ='-Wl,'
15182     lt_prog_compiler_static_GCJ='-static'
15183
15184     case $host_os in
15185       aix*)
15186       # All AIX code is PIC.
15187       if test "$host_cpu" = ia64; then
15188         # AIX 5 now supports IA64 processor
15189         lt_prog_compiler_static_GCJ='-Bstatic'
15190       fi
15191       ;;
15192
15193     amigaos*)
15194       # FIXME: we need at least 68020 code to build shared libraries, but
15195       # adding the `-m68020' flag to GCC prevents building anything better,
15196       # like `-m68040'.
15197       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15198       ;;
15199
15200     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15201       # PIC is the default for these OSes.
15202       ;;
15203
15204     mingw* | pw32* | os2*)
15205       # This hack is so that the source file can tell whether it is being
15206       # built for inclusion in a dll (and should export symbols for example).
15207       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15208       ;;
15209
15210     darwin* | rhapsody*)
15211       # PIC is the default on this platform
15212       # Common symbols not allowed in MH_DYLIB files
15213       lt_prog_compiler_pic_GCJ='-fno-common'
15214       ;;
15215
15216     msdosdjgpp*)
15217       # Just because we use GCC doesn't mean we suddenly get shared libraries
15218       # on systems that don't support them.
15219       lt_prog_compiler_can_build_shared_GCJ=no
15220       enable_shared=no
15221       ;;
15222
15223     sysv4*MP*)
15224       if test -d /usr/nec; then
15225         lt_prog_compiler_pic_GCJ=-Kconform_pic
15226       fi
15227       ;;
15228
15229     hpux*)
15230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15231       # not for PA HP-UX.
15232       case "$host_cpu" in
15233       hppa*64*|ia64*)
15234         # +Z the default
15235         ;;
15236       *)
15237         lt_prog_compiler_pic_GCJ='-fPIC'
15238         ;;
15239       esac
15240       ;;
15241
15242     *)
15243       lt_prog_compiler_pic_GCJ='-fPIC'
15244       ;;
15245     esac
15246   else
15247     # PORTME Check for flag to pass linker flags through the system compiler.
15248     case $host_os in
15249     aix*)
15250       lt_prog_compiler_wl_GCJ='-Wl,'
15251       if test "$host_cpu" = ia64; then
15252         # AIX 5 now supports IA64 processor
15253         lt_prog_compiler_static_GCJ='-Bstatic'
15254       else
15255         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15256       fi
15257       ;;
15258
15259     mingw* | pw32* | os2*)
15260       # This hack is so that the source file can tell whether it is being
15261       # built for inclusion in a dll (and should export symbols for example).
15262       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15263       ;;
15264
15265     hpux9* | hpux10* | hpux11*)
15266       lt_prog_compiler_wl_GCJ='-Wl,'
15267       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15268       # not for PA HP-UX.
15269       case "$host_cpu" in
15270       hppa*64*|ia64*)
15271         # +Z the default
15272         ;;
15273       *)
15274         lt_prog_compiler_pic_GCJ='+Z'
15275         ;;
15276       esac
15277       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15278       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15279       ;;
15280
15281     irix5* | irix6* | nonstopux*)
15282       lt_prog_compiler_wl_GCJ='-Wl,'
15283       # PIC (with -KPIC) is the default.
15284       lt_prog_compiler_static_GCJ='-non_shared'
15285       ;;
15286
15287     newsos6)
15288       lt_prog_compiler_pic_GCJ='-KPIC'
15289       lt_prog_compiler_static_GCJ='-Bstatic'
15290       ;;
15291
15292     linux*)
15293       case $CC in
15294       icc|ecc)
15295         lt_prog_compiler_wl_GCJ='-Wl,'
15296         lt_prog_compiler_pic_GCJ='-KPIC'
15297         lt_prog_compiler_static_GCJ='-static'
15298         ;;
15299       ccc)
15300         lt_prog_compiler_wl_GCJ='-Wl,'
15301         # All Alpha code is PIC.
15302         lt_prog_compiler_static_GCJ='-non_shared'
15303         ;;
15304       esac
15305       ;;
15306
15307     osf3* | osf4* | osf5*)
15308       lt_prog_compiler_wl_GCJ='-Wl,'
15309       # All OSF/1 code is PIC.
15310       lt_prog_compiler_static_GCJ='-non_shared'
15311       ;;
15312
15313     sco3.2v5*)
15314       lt_prog_compiler_pic_GCJ='-Kpic'
15315       lt_prog_compiler_static_GCJ='-dn'
15316       ;;
15317
15318     solaris*)
15319       lt_prog_compiler_wl_GCJ='-Wl,'
15320       lt_prog_compiler_pic_GCJ='-KPIC'
15321       lt_prog_compiler_static_GCJ='-Bstatic'
15322       ;;
15323
15324     sunos4*)
15325       lt_prog_compiler_wl_GCJ='-Qoption ld '
15326       lt_prog_compiler_pic_GCJ='-PIC'
15327       lt_prog_compiler_static_GCJ='-Bstatic'
15328       ;;
15329
15330     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15331       lt_prog_compiler_wl_GCJ='-Wl,'
15332       lt_prog_compiler_pic_GCJ='-KPIC'
15333       lt_prog_compiler_static_GCJ='-Bstatic'
15334       ;;
15335
15336     sysv4*MP*)
15337       if test -d /usr/nec ;then
15338         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15339         lt_prog_compiler_static_GCJ='-Bstatic'
15340       fi
15341       ;;
15342
15343     uts4*)
15344       lt_prog_compiler_pic_GCJ='-pic'
15345       lt_prog_compiler_static_GCJ='-Bstatic'
15346       ;;
15347
15348     *)
15349       lt_prog_compiler_can_build_shared_GCJ=no
15350       ;;
15351     esac
15352   fi
15353
15354 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15355 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15356
15357 #
15358 # Check to make sure the PIC flag actually works.
15359 #
15360 if test -n "$lt_prog_compiler_pic_GCJ"; then
15361   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15363 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   lt_prog_compiler_pic_works_GCJ=no
15367   ac_outfile=conftest.$ac_objext
15368    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15369    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15370    # Insert the option either (1) after the last *FLAGS variable, or
15371    # (2) before a word containing "conftest.", or (3) at the end.
15372    # Note that $ac_compile itself does not contain backslashes and begins
15373    # with a dollar sign (not a hyphen), so the echo should work correctly.
15374    # The option is referenced via a variable to avoid confusing sed.
15375    lt_compile=`echo "$ac_compile" | $SED \
15376    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378    -e 's:$: $lt_compiler_flag:'`
15379    (eval echo "\"\$as_me:15379: $lt_compile\"" >&5)
15380    (eval "$lt_compile" 2>conftest.err)
15381    ac_status=$?
15382    cat conftest.err >&5
15383    echo "$as_me:15383: \$? = $ac_status" >&5
15384    if (exit $ac_status) && test -s "$ac_outfile"; then
15385      # The compiler can only warn and ignore the option if not recognized
15386      # So say no if there are warnings
15387      if test ! -s conftest.err; then
15388        lt_prog_compiler_pic_works_GCJ=yes
15389      fi
15390    fi
15391    $rm conftest*
15392
15393 fi
15394 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15395 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15396
15397 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15398     case $lt_prog_compiler_pic_GCJ in
15399      "" | " "*) ;;
15400      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15401      esac
15402 else
15403     lt_prog_compiler_pic_GCJ=
15404      lt_prog_compiler_can_build_shared_GCJ=no
15405 fi
15406
15407 fi
15408 case "$host_os" in
15409   # For platforms which do not support PIC, -DPIC is meaningless:
15410   *djgpp*)
15411     lt_prog_compiler_pic_GCJ=
15412     ;;
15413   *)
15414     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15415     ;;
15416 esac
15417
15418 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15420 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   lt_cv_prog_compiler_c_o_GCJ=no
15424    $rm -r conftest 2>/dev/null
15425    mkdir conftest
15426    cd conftest
15427    mkdir out
15428    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429
15430    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15431    # that will create temporary files in the current directory regardless of
15432    # the output directory.  Thus, making CWD read-only will cause this test
15433    # to fail, enabling locking or at least warning the user not to do parallel
15434    # builds.
15435    chmod -w .
15436
15437    lt_compiler_flag="-o out/conftest2.$ac_objext"
15438    # Insert the option either (1) after the last *FLAGS variable, or
15439    # (2) before a word containing "conftest.", or (3) at the end.
15440    # Note that $ac_compile itself does not contain backslashes and begins
15441    # with a dollar sign (not a hyphen), so the echo should work correctly.
15442    lt_compile=`echo "$ac_compile" | $SED \
15443    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445    -e 's:$: $lt_compiler_flag:'`
15446    (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
15447    (eval "$lt_compile" 2>out/conftest.err)
15448    ac_status=$?
15449    cat out/conftest.err >&5
15450    echo "$as_me:15450: \$? = $ac_status" >&5
15451    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15452    then
15453      # The compiler can only warn and ignore the option if not recognized
15454      # So say no if there are warnings
15455      if test ! -s out/conftest.err; then
15456        lt_cv_prog_compiler_c_o_GCJ=yes
15457      fi
15458    fi
15459    chmod u+w .
15460    $rm conftest* out/*
15461    rmdir out
15462    cd ..
15463    rmdir conftest
15464    $rm conftest*
15465
15466 fi
15467 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15469
15470
15471 hard_links="nottested"
15472 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15473   # do not overwrite the value of need_locks provided by the user
15474   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15476   hard_links=yes
15477   $rm conftest*
15478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15479   touch conftest.a
15480   ln conftest.a conftest.b 2>&5 || hard_links=no
15481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482   echo "$as_me:$LINENO: result: $hard_links" >&5
15483 echo "${ECHO_T}$hard_links" >&6
15484   if test "$hard_links" = no; then
15485     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15487     need_locks=warn
15488   fi
15489 else
15490   need_locks=no
15491 fi
15492
15493 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15495
15496   runpath_var=
15497   allow_undefined_flag_GCJ=
15498   enable_shared_with_static_runtimes_GCJ=no
15499   archive_cmds_GCJ=
15500   archive_expsym_cmds_GCJ=
15501   old_archive_From_new_cmds_GCJ=
15502   old_archive_from_expsyms_cmds_GCJ=
15503   export_dynamic_flag_spec_GCJ=
15504   whole_archive_flag_spec_GCJ=
15505   thread_safe_flag_spec_GCJ=
15506   hardcode_libdir_flag_spec_GCJ=
15507   hardcode_libdir_flag_spec_ld_GCJ=
15508   hardcode_libdir_separator_GCJ=
15509   hardcode_direct_GCJ=no
15510   hardcode_minus_L_GCJ=no
15511   hardcode_shlibpath_var_GCJ=unsupported
15512   link_all_deplibs_GCJ=unknown
15513   hardcode_automatic_GCJ=no
15514   module_cmds_GCJ=
15515   module_expsym_cmds_GCJ=
15516   always_export_symbols_GCJ=no
15517   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15518   # include_expsyms should be a list of space-separated symbols to be *always*
15519   # included in the symbol list
15520   include_expsyms_GCJ=
15521   # exclude_expsyms can be an extended regexp of symbols to exclude
15522   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524   # as well as any symbol that contains `d'.
15525   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15526   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527   # platforms (ab)use it in PIC code, but their linkers get confused if
15528   # the symbol is explicitly referenced.  Since portable code cannot
15529   # rely on this symbol name, it's probably fine to never include it in
15530   # preloaded symbol tables.
15531   extract_expsyms_cmds=
15532
15533   case $host_os in
15534   cygwin* | mingw* | pw32*)
15535     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15536     # When not using gcc, we currently assume that we are using
15537     # Microsoft Visual C++.
15538     if test "$GCC" != yes; then
15539       with_gnu_ld=no
15540     fi
15541     ;;
15542   openbsd*)
15543     with_gnu_ld=no
15544     ;;
15545   esac
15546
15547   ld_shlibs_GCJ=yes
15548   if test "$with_gnu_ld" = yes; then
15549     # If archive_cmds runs LD, not CC, wlarc should be empty
15550     wlarc='${wl}'
15551
15552     # See if GNU ld supports shared libraries.
15553     case $host_os in
15554     aix3* | aix4* | aix5*)
15555       # On AIX/PPC, the GNU linker is very broken
15556       if test "$host_cpu" != ia64; then
15557         ld_shlibs_GCJ=no
15558         cat <<EOF 1>&2
15559
15560 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15561 *** to be unable to reliably create shared libraries on AIX.
15562 *** Therefore, libtool is disabling shared libraries support.  If you
15563 *** really care for shared libraries, you may want to modify your PATH
15564 *** so that a non-GNU linker is found, and then restart.
15565
15566 EOF
15567       fi
15568       ;;
15569
15570     amigaos*)
15571       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)'
15572       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573       hardcode_minus_L_GCJ=yes
15574
15575       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15576       # that the semantics of dynamic libraries on AmigaOS, at least up
15577       # to version 4, is to share data among multiple programs linked
15578       # with the same dynamic library.  Since this doesn't match the
15579       # behavior of shared libraries on other platforms, we can't use
15580       # them.
15581       ld_shlibs_GCJ=no
15582       ;;
15583
15584     beos*)
15585       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15586         allow_undefined_flag_GCJ=unsupported
15587         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15588         # support --undefined.  This deserves some investigation.  FIXME
15589         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590       else
15591         ld_shlibs_GCJ=no
15592       fi
15593       ;;
15594
15595     cygwin* | mingw* | pw32*)
15596       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15597       # as there is no search path for DLLs.
15598       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15599       allow_undefined_flag_GCJ=unsupported
15600       always_export_symbols_GCJ=no
15601       enable_shared_with_static_runtimes_GCJ=yes
15602       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15603
15604       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15605         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15606         # If the export-symbols file already is a .def file (1st line
15607         # is EXPORTS), use it as is; otherwise, prepend...
15608         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15609           cp $export_symbols $output_objdir/$soname.def;
15610         else
15611           echo EXPORTS > $output_objdir/$soname.def;
15612           cat $export_symbols >> $output_objdir/$soname.def;
15613         fi~
15614         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15615       else
15616         ld_shlibs=no
15617       fi
15618       ;;
15619
15620     netbsd*)
15621       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15622         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15623         wlarc=
15624       else
15625         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15626         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15627       fi
15628       ;;
15629
15630     solaris* | sysv5*)
15631       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15632         ld_shlibs_GCJ=no
15633         cat <<EOF 1>&2
15634
15635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15636 *** create shared libraries on Solaris systems.  Therefore, libtool
15637 *** is disabling shared libraries support.  We urge you to upgrade GNU
15638 *** binutils to release 2.9.1 or newer.  Another option is to modify
15639 *** your PATH or compiler configuration so that the native linker is
15640 *** used, and then restart.
15641
15642 EOF
15643       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15644         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15645         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15646       else
15647         ld_shlibs_GCJ=no
15648       fi
15649       ;;
15650
15651     sunos4*)
15652       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15653       wlarc=
15654       hardcode_direct_GCJ=yes
15655       hardcode_shlibpath_var_GCJ=no
15656       ;;
15657
15658     *)
15659       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15660         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15661         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15662       else
15663         ld_shlibs_GCJ=no
15664       fi
15665       ;;
15666     esac
15667
15668     if test "$ld_shlibs_GCJ" = yes; then
15669       runpath_var=LD_RUN_PATH
15670       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15671       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15672       # ancient GNU ld didn't support --whole-archive et. al.
15673       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15674         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15675       else
15676         whole_archive_flag_spec_GCJ=
15677       fi
15678     fi
15679   else
15680     # PORTME fill in a description of your system's linker (not GNU ld)
15681     case $host_os in
15682     aix3*)
15683       allow_undefined_flag_GCJ=unsupported
15684       always_export_symbols_GCJ=yes
15685       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'
15686       # Note: this linker hardcodes the directories in LIBPATH if there
15687       # are no directories specified by -L.
15688       hardcode_minus_L_GCJ=yes
15689       if test "$GCC" = yes && test -z "$link_static_flag"; then
15690         # Neither direct hardcoding nor static linking is supported with a
15691         # broken collect2.
15692         hardcode_direct_GCJ=unsupported
15693       fi
15694       ;;
15695
15696     aix4* | aix5*)
15697       if test "$host_cpu" = ia64; then
15698         # On IA64, the linker does run time linking by default, so we don't
15699         # have to do anything special.
15700         aix_use_runtimelinking=no
15701         exp_sym_flag='-Bexport'
15702         no_entry_flag=""
15703       else
15704         # If we're using GNU nm, then we don't want the "-C" option.
15705         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15706         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15707           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'
15708         else
15709           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'
15710         fi
15711         aix_use_runtimelinking=no
15712
15713         # Test if we are trying to use run time linking or normal
15714         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15715         # need to do runtime linking.
15716         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15717           for ld_flag in $LDFLAGS; do
15718           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15719             aix_use_runtimelinking=yes
15720             break
15721           fi
15722           done
15723         esac
15724
15725         exp_sym_flag='-bexport'
15726         no_entry_flag='-bnoentry'
15727       fi
15728
15729       # When large executables or shared objects are built, AIX ld can
15730       # have problems creating the table of contents.  If linking a library
15731       # or program results in "error TOC overflow" add -mminimal-toc to
15732       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15733       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15734
15735       archive_cmds_GCJ=''
15736       hardcode_direct_GCJ=yes
15737       hardcode_libdir_separator_GCJ=':'
15738       link_all_deplibs_GCJ=yes
15739
15740       if test "$GCC" = yes; then
15741         case $host_os in aix4.012|aix4.012.*)
15742         # We only want to do this on AIX 4.2 and lower, the check
15743         # below for broken collect2 doesn't work under 4.3+
15744           collect2name=`${CC} -print-prog-name=collect2`
15745           if test -f "$collect2name" && \
15746            strings "$collect2name" | grep resolve_lib_name >/dev/null
15747           then
15748           # We have reworked collect2
15749           hardcode_direct_GCJ=yes
15750           else
15751           # We have old collect2
15752           hardcode_direct_GCJ=unsupported
15753           # It fails to find uninstalled libraries when the uninstalled
15754           # path is not listed in the libpath.  Setting hardcode_minus_L
15755           # to unsupported forces relinking
15756           hardcode_minus_L_GCJ=yes
15757           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15758           hardcode_libdir_separator_GCJ=
15759           fi
15760         esac
15761         shared_flag='-shared'
15762       else
15763         # not using gcc
15764         if test "$host_cpu" = ia64; then
15765         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15766         # chokes on -Wl,-G. The following line is correct:
15767           shared_flag='-G'
15768         else
15769         if test "$aix_use_runtimelinking" = yes; then
15770             shared_flag='${wl}-G'
15771           else
15772             shared_flag='${wl}-bM:SRE'
15773         fi
15774         fi
15775       fi
15776
15777       # It seems that -bexpall does not export symbols beginning with
15778       # underscore (_), so it is better to generate a list of symbols to export.
15779       always_export_symbols_GCJ=yes
15780       if test "$aix_use_runtimelinking" = yes; then
15781         # Warning - without using the other runtime loading flags (-brtl),
15782         # -berok will link without error, but may produce a broken library.
15783         allow_undefined_flag_GCJ='-berok'
15784        # Determine the default libpath from the value encoded in an empty executable.
15785        cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h.  */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h.  */
15791
15792 int
15793 main ()
15794 {
15795
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802   (eval $ac_link) 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } &&
15809          { ac_try='test -z "$ac_c_werror_flag"
15810                          || test ! -s conftest.err'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; } &&
15816          { ac_try='test -s conftest$ac_exeext'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; }; then
15822
15823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15824 }'`
15825 # Check for a 64-bit object if we didn't find anything.
15826 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; }
15827 }'`; fi
15828 else
15829   echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832 fi
15833 rm -f conftest.err conftest.$ac_objext \
15834       conftest$ac_exeext conftest.$ac_ext
15835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15836
15837        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15838         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"
15839        else
15840         if test "$host_cpu" = ia64; then
15841           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15842           allow_undefined_flag_GCJ="-z nodefs"
15843           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"
15844         else
15845          # Determine the default libpath from the value encoded in an empty executable.
15846          cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852
15853 int
15854 main ()
15855 {
15856
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15863   (eval $ac_link) 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag"
15871                          || test ! -s conftest.err'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; } &&
15877          { ac_try='test -s conftest$ac_exeext'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; }; then
15883
15884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15885 }'`
15886 # Check for a 64-bit object if we didn't find anything.
15887 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; }
15888 }'`; fi
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 fi
15894 rm -f conftest.err conftest.$ac_objext \
15895       conftest$ac_exeext conftest.$ac_ext
15896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15897
15898          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15899           # Warning - without using the other run time loading flags,
15900           # -berok will link without error, but may produce a broken library.
15901           no_undefined_flag_GCJ=' ${wl}-bernotok'
15902           allow_undefined_flag_GCJ=' ${wl}-berok'
15903           # -bexpall does not export symbols beginning with underscore (_)
15904           always_export_symbols_GCJ=yes
15905           # Exported symbols can be pulled into shared objects from archives
15906           whole_archive_flag_spec_GCJ=' '
15907           archive_cmds_need_lc_GCJ=yes
15908           # This is similar to how AIX traditionally builds it's shared libraries.
15909           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'
15910         fi
15911       fi
15912       ;;
15913
15914     amigaos*)
15915       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)'
15916       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917       hardcode_minus_L_GCJ=yes
15918       # see comment about different semantics on the GNU ld section
15919       ld_shlibs_GCJ=no
15920       ;;
15921
15922     bsdi4*)
15923       export_dynamic_flag_spec_GCJ=-rdynamic
15924       ;;
15925
15926     cygwin* | mingw* | pw32*)
15927       # When not using gcc, we currently assume that we are using
15928       # Microsoft Visual C++.
15929       # hardcode_libdir_flag_spec is actually meaningless, as there is
15930       # no search path for DLLs.
15931       hardcode_libdir_flag_spec_GCJ=' '
15932       allow_undefined_flag_GCJ=unsupported
15933       # Tell ltmain to make .lib files, not .a files.
15934       libext=lib
15935       # Tell ltmain to make .dll files, not .so files.
15936       shrext=".dll"
15937       # FIXME: Setting linknames here is a bad hack.
15938       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15939       # The linker will automatically build a .lib file if we build a DLL.
15940       old_archive_From_new_cmds_GCJ='true'
15941       # FIXME: Should let the user specify the lib program.
15942       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15943       fix_srcfile_path='`cygpath -w "$srcfile"`'
15944       enable_shared_with_static_runtimes_GCJ=yes
15945       ;;
15946
15947     darwin* | rhapsody*)
15948     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15949       archive_cmds_need_lc_GCJ=no
15950       case "$host_os" in
15951       rhapsody* | darwin1.[012])
15952         allow_undefined_flag_GCJ='-undefined suppress'
15953         ;;
15954       *) # Darwin 1.3 on
15955         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15956         ;;
15957       esac
15958       # FIXME: Relying on posixy $() will cause problems for
15959       #        cross-compilation, but unfortunately the echo tests do not
15960       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15961       #        `"' quotes if we put them in here... so don't!
15962         lt_int_apple_cc_single_mod=no
15963         output_verbose_link_cmd='echo'
15964         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15965           lt_int_apple_cc_single_mod=yes
15966         fi
15967         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15968           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15969         else
15970         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15971       fi
15972       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15973       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15974         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15975           archive_expsym_cmds_GCJ='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}'
15976         else
15977           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15978         fi
15979           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15980       hardcode_direct_GCJ=no
15981       hardcode_automatic_GCJ=yes
15982       hardcode_shlibpath_var_GCJ=unsupported
15983       whole_archive_flag_spec_GCJ='-all_load $convenience'
15984       link_all_deplibs_GCJ=yes
15985     fi
15986       ;;
15987
15988     dgux*)
15989       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15990       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15991       hardcode_shlibpath_var_GCJ=no
15992       ;;
15993
15994     freebsd1*)
15995       ld_shlibs_GCJ=no
15996       ;;
15997
15998     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15999     # support.  Future versions do this automatically, but an explicit c++rt0.o
16000     # does not break anything, and helps significantly (at the cost of a little
16001     # extra space).
16002     freebsd2.2*)
16003       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16004       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16005       hardcode_direct_GCJ=yes
16006       hardcode_shlibpath_var_GCJ=no
16007       ;;
16008
16009     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16010     freebsd2*)
16011       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16012       hardcode_direct_GCJ=yes
16013       hardcode_minus_L_GCJ=yes
16014       hardcode_shlibpath_var_GCJ=no
16015       ;;
16016
16017     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16018     freebsd*)
16019       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16020       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16021       hardcode_direct_GCJ=yes
16022       hardcode_shlibpath_var_GCJ=no
16023       ;;
16024
16025     hpux9*)
16026       if test "$GCC" = yes; then
16027         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'
16028       else
16029         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'
16030       fi
16031       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16032       hardcode_libdir_separator_GCJ=:
16033       hardcode_direct_GCJ=yes
16034
16035       # hardcode_minus_L: Not really in the search PATH,
16036       # but as the default location of the library.
16037       hardcode_minus_L_GCJ=yes
16038       export_dynamic_flag_spec_GCJ='${wl}-E'
16039       ;;
16040
16041     hpux10* | hpux11*)
16042       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16043         case "$host_cpu" in
16044         hppa*64*|ia64*)
16045           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16046           ;;
16047         *)
16048           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16049           ;;
16050         esac
16051       else
16052         case "$host_cpu" in
16053         hppa*64*|ia64*)
16054           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16055           ;;
16056         *)
16057           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16058           ;;
16059         esac
16060       fi
16061       if test "$with_gnu_ld" = no; then
16062         case "$host_cpu" in
16063         hppa*64*)
16064           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16065           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16066           hardcode_libdir_separator_GCJ=:
16067           hardcode_direct_GCJ=no
16068           hardcode_shlibpath_var_GCJ=no
16069           ;;
16070         ia64*)
16071           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16072           hardcode_direct_GCJ=no
16073           hardcode_shlibpath_var_GCJ=no
16074
16075           # hardcode_minus_L: Not really in the search PATH,
16076           # but as the default location of the library.
16077           hardcode_minus_L_GCJ=yes
16078           ;;
16079         *)
16080           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16081           hardcode_libdir_separator_GCJ=:
16082           hardcode_direct_GCJ=yes
16083           export_dynamic_flag_spec_GCJ='${wl}-E'
16084
16085           # hardcode_minus_L: Not really in the search PATH,
16086           # but as the default location of the library.
16087           hardcode_minus_L_GCJ=yes
16088           ;;
16089         esac
16090       fi
16091       ;;
16092
16093     irix5* | irix6* | nonstopux*)
16094       if test "$GCC" = yes; then
16095         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'
16096       else
16097         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'
16098         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16099       fi
16100       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16101       hardcode_libdir_separator_GCJ=:
16102       link_all_deplibs_GCJ=yes
16103       ;;
16104
16105     netbsd*)
16106       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16107         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16108       else
16109         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16110       fi
16111       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16112       hardcode_direct_GCJ=yes
16113       hardcode_shlibpath_var_GCJ=no
16114       ;;
16115
16116     newsos6)
16117       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118       hardcode_direct_GCJ=yes
16119       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16120       hardcode_libdir_separator_GCJ=:
16121       hardcode_shlibpath_var_GCJ=no
16122       ;;
16123
16124     openbsd*)
16125       hardcode_direct_GCJ=yes
16126       hardcode_shlibpath_var_GCJ=no
16127       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16128         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16129         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16130         export_dynamic_flag_spec_GCJ='${wl}-E'
16131       else
16132        case $host_os in
16133          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16134            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16136            ;;
16137          *)
16138            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16139            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16140            ;;
16141        esac
16142       fi
16143       ;;
16144
16145     os2*)
16146       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16147       hardcode_minus_L_GCJ=yes
16148       allow_undefined_flag_GCJ=unsupported
16149       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'
16150       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16151       ;;
16152
16153     osf3*)
16154       if test "$GCC" = yes; then
16155         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16156         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'
16157       else
16158         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16159         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'
16160       fi
16161       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16162       hardcode_libdir_separator_GCJ=:
16163       ;;
16164
16165     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16166       if test "$GCC" = yes; then
16167         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16168         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'
16169         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16170       else
16171         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16172         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'
16173         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~
16174         $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'
16175
16176         # Both c and cxx compiler support -rpath directly
16177         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16178       fi
16179       hardcode_libdir_separator_GCJ=:
16180       ;;
16181
16182     sco3.2v5*)
16183       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184       hardcode_shlibpath_var_GCJ=no
16185       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16186       runpath_var=LD_RUN_PATH
16187       hardcode_runpath_var=yes
16188       ;;
16189
16190     solaris*)
16191       no_undefined_flag_GCJ=' -z text'
16192       if test "$GCC" = yes; then
16193         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16196       else
16197         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16199         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16200       fi
16201       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16202       hardcode_shlibpath_var_GCJ=no
16203       case $host_os in
16204       solaris2.[0-5] | solaris2.[0-5].*) ;;
16205       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16206         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16207       esac
16208       link_all_deplibs_GCJ=yes
16209       ;;
16210
16211     sunos4*)
16212       if test "x$host_vendor" = xsequent; then
16213         # Use $CC to link under sequent, because it throws in some extra .o
16214         # files that make .init and .fini sections work.
16215         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16216       else
16217         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16218       fi
16219       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220       hardcode_direct_GCJ=yes
16221       hardcode_minus_L_GCJ=yes
16222       hardcode_shlibpath_var_GCJ=no
16223       ;;
16224
16225     sysv4)
16226       case $host_vendor in
16227         sni)
16228           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229           hardcode_direct_GCJ=yes # is this really true???
16230         ;;
16231         siemens)
16232           ## LD is ld it makes a PLAMLIB
16233           ## CC just makes a GrossModule.
16234           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16235           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16236           hardcode_direct_GCJ=no
16237         ;;
16238         motorola)
16239           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16241         ;;
16242       esac
16243       runpath_var='LD_RUN_PATH'
16244       hardcode_shlibpath_var_GCJ=no
16245       ;;
16246
16247     sysv4.3*)
16248       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249       hardcode_shlibpath_var_GCJ=no
16250       export_dynamic_flag_spec_GCJ='-Bexport'
16251       ;;
16252
16253     sysv4*MP*)
16254       if test -d /usr/nec; then
16255         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256         hardcode_shlibpath_var_GCJ=no
16257         runpath_var=LD_RUN_PATH
16258         hardcode_runpath_var=yes
16259         ld_shlibs_GCJ=yes
16260       fi
16261       ;;
16262
16263     sysv4.2uw2*)
16264       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16265       hardcode_direct_GCJ=yes
16266       hardcode_minus_L_GCJ=no
16267       hardcode_shlibpath_var_GCJ=no
16268       hardcode_runpath_var=yes
16269       runpath_var=LD_RUN_PATH
16270       ;;
16271
16272    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16273       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16274       if test "$GCC" = yes; then
16275         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16276       else
16277         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16278       fi
16279       runpath_var='LD_RUN_PATH'
16280       hardcode_shlibpath_var_GCJ=no
16281       ;;
16282
16283     sysv5*)
16284       no_undefined_flag_GCJ=' -z text'
16285       # $CC -shared without GNU ld will not create a library from C++
16286       # object files and a static libstdc++, better avoid it by now
16287       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16289                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16290       hardcode_libdir_flag_spec_GCJ=
16291       hardcode_shlibpath_var_GCJ=no
16292       runpath_var='LD_RUN_PATH'
16293       ;;
16294
16295     uts4*)
16296       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16297       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298       hardcode_shlibpath_var_GCJ=no
16299       ;;
16300
16301     *)
16302       ld_shlibs_GCJ=no
16303       ;;
16304     esac
16305   fi
16306
16307 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16308 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16309 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16310
16311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16312 if test "$GCC" = yes; then
16313   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16314 fi
16315
16316 #
16317 # Do we need to explicitly link libc?
16318 #
16319 case "x$archive_cmds_need_lc_GCJ" in
16320 x|xyes)
16321   # Assume -lc should be added
16322   archive_cmds_need_lc_GCJ=yes
16323
16324   if test "$enable_shared" = yes && test "$GCC" = yes; then
16325     case $archive_cmds_GCJ in
16326     *'~'*)
16327       # FIXME: we may have to deal with multi-command sequences.
16328       ;;
16329     '$CC '*)
16330       # Test whether the compiler implicitly links with -lc since on some
16331       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16332       # to ld, don't add -lc before -lgcc.
16333       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16334 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16335       $rm conftest*
16336       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16337
16338       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16339   (eval $ac_compile) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } 2>conftest.err; then
16343         soname=conftest
16344         lib=conftest
16345         libobjs=conftest.$ac_objext
16346         deplibs=
16347         wl=$lt_prog_compiler_wl_GCJ
16348         compiler_flags=-v
16349         linker_flags=-v
16350         verstring=
16351         output_objdir=.
16352         libname=conftest
16353         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16354         allow_undefined_flag_GCJ=
16355         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16356   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }
16360         then
16361           archive_cmds_need_lc_GCJ=no
16362         else
16363           archive_cmds_need_lc_GCJ=yes
16364         fi
16365         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16366       else
16367         cat conftest.err 1>&5
16368       fi
16369       $rm conftest*
16370       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16371 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16372       ;;
16373     esac
16374   fi
16375   ;;
16376 esac
16377
16378 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16379 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16380 hardcode_action_GCJ=
16381 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16382    test -n "$runpath_var GCJ" || \
16383    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16384
16385   # We can hardcode non-existant directories.
16386   if test "$hardcode_direct_GCJ" != no &&
16387      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16388      # have to relink, otherwise we might link with an installed library
16389      # when we should be linking with a yet-to-be-installed one
16390      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16391      test "$hardcode_minus_L_GCJ" != no; then
16392     # Linking always hardcodes the temporary library directory.
16393     hardcode_action_GCJ=relink
16394   else
16395     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16396     hardcode_action_GCJ=immediate
16397   fi
16398 else
16399   # We cannot hardcode anything, or else we can only hardcode existing
16400   # directories.
16401   hardcode_action_GCJ=unsupported
16402 fi
16403 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16404 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16405
16406 if test "$hardcode_action_GCJ" = relink; then
16407   # Fast installation is not supported
16408   enable_fast_install=no
16409 elif test "$shlibpath_overrides_runpath" = yes ||
16410      test "$enable_shared" = no; then
16411   # Fast installation is not necessary
16412   enable_fast_install=needless
16413 fi
16414
16415 striplib=
16416 old_striplib=
16417 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16418 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16419 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16420   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16421   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16422   echo "$as_me:$LINENO: result: yes" >&5
16423 echo "${ECHO_T}yes" >&6
16424 else
16425 # FIXME - insert some real tests, host_os isn't really good enough
16426   case $host_os in
16427    darwin*)
16428        if test -n "$STRIP" ; then
16429          striplib="$STRIP -x"
16430          echo "$as_me:$LINENO: result: yes" >&5
16431 echo "${ECHO_T}yes" >&6
16432        else
16433   echo "$as_me:$LINENO: result: no" >&5
16434 echo "${ECHO_T}no" >&6
16435 fi
16436        ;;
16437    *)
16438   echo "$as_me:$LINENO: result: no" >&5
16439 echo "${ECHO_T}no" >&6
16440     ;;
16441   esac
16442 fi
16443
16444 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16445 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16446 library_names_spec=
16447 libname_spec='lib$name'
16448 soname_spec=
16449 shrext=".so"
16450 postinstall_cmds=
16451 postuninstall_cmds=
16452 finish_cmds=
16453 finish_eval=
16454 shlibpath_var=
16455 shlibpath_overrides_runpath=unknown
16456 version_type=none
16457 dynamic_linker="$host_os ld.so"
16458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16459 if test "$GCC" = yes; then
16460   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16462     # if the path contains ";" then we assume it to be the separator
16463     # otherwise default to the standard path separator (i.e. ":") - it is
16464     # assumed that no part of a normal pathname contains ";" but that should
16465     # okay in the real world where ";" in dirpaths is itself problematic.
16466     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16467   else
16468     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16469   fi
16470 else
16471   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16472 fi
16473 need_lib_prefix=unknown
16474 hardcode_into_libs=no
16475
16476 # when you set need_version to no, make sure it does not cause -set_version
16477 # flags to be left without arguments
16478 need_version=unknown
16479
16480 case $host_os in
16481 aix3*)
16482   version_type=linux
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16484   shlibpath_var=LIBPATH
16485
16486   # AIX 3 has no versioning support, so we append a major version to the name.
16487   soname_spec='${libname}${release}${shared_ext}$major'
16488   ;;
16489
16490 aix4* | aix5*)
16491   version_type=linux
16492   need_lib_prefix=no
16493   need_version=no
16494   hardcode_into_libs=yes
16495   if test "$host_cpu" = ia64; then
16496     # AIX 5 supports IA64
16497     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16498     shlibpath_var=LD_LIBRARY_PATH
16499   else
16500     # With GCC up to 2.95.x, collect2 would create an import file
16501     # for dependence libraries.  The import file would start with
16502     # the line `#! .'.  This would cause the generated library to
16503     # depend on `.', always an invalid library.  This was fixed in
16504     # development snapshots of GCC prior to 3.0.
16505     case $host_os in
16506       aix4 | aix4.[01] | aix4.[01].*)
16507       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16508            echo ' yes '
16509            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16510         :
16511       else
16512         can_build_shared=no
16513       fi
16514       ;;
16515     esac
16516     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16517     # soname into executable. Probably we can add versioning support to
16518     # collect2, so additional links can be useful in future.
16519     if test "$aix_use_runtimelinking" = yes; then
16520       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16521       # instead of lib<name>.a to let people know that these are not
16522       # typical AIX shared libraries.
16523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524     else
16525       # We preserve .a as extension for shared libraries through AIX4.2
16526       # and later when we are not doing run time linking.
16527       library_names_spec='${libname}${release}.a $libname.a'
16528       soname_spec='${libname}${release}${shared_ext}$major'
16529     fi
16530     shlibpath_var=LIBPATH
16531   fi
16532   ;;
16533
16534 amigaos*)
16535   library_names_spec='$libname.ixlibrary $libname.a'
16536   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16537   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'
16538   ;;
16539
16540 beos*)
16541   library_names_spec='${libname}${shared_ext}'
16542   dynamic_linker="$host_os ld.so"
16543   shlibpath_var=LIBRARY_PATH
16544   ;;
16545
16546 bsdi4*)
16547   version_type=linux
16548   need_version=no
16549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550   soname_spec='${libname}${release}${shared_ext}$major'
16551   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16552   shlibpath_var=LD_LIBRARY_PATH
16553   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16554   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16555   # the default ld.so.conf also contains /usr/contrib/lib and
16556   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16557   # libtool to hard-code these into programs
16558   ;;
16559
16560 cygwin* | mingw* | pw32*)
16561   version_type=windows
16562   shrext=".dll"
16563   need_version=no
16564   need_lib_prefix=no
16565
16566   case $GCC,$host_os in
16567   yes,cygwin* | yes,mingw* | yes,pw32*)
16568     library_names_spec='$libname.dll.a'
16569     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16570     postinstall_cmds='base_file=`basename \${file}`~
16571       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16572       dldir=$destdir/`dirname \$dlpath`~
16573       test -d \$dldir || mkdir -p \$dldir~
16574       $install_prog $dir/$dlname \$dldir/$dlname'
16575     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16576       dlpath=$dir/\$dldll~
16577        $rm \$dlpath'
16578     shlibpath_overrides_runpath=yes
16579
16580     case $host_os in
16581     cygwin*)
16582       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16583       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16584       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16585       ;;
16586     mingw*)
16587       # MinGW DLLs use traditional 'lib' prefix
16588       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16589       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16590       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16591         # It is most probably a Windows format PATH printed by
16592         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16593         # path with ; separators, and with drive letters. We can handle the
16594         # drive letters (cygwin fileutils understands them), so leave them,
16595         # especially as we might pass files found there to a mingw objdump,
16596         # which wouldn't understand a cygwinified path. Ahh.
16597         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16598       else
16599         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16600       fi
16601       ;;
16602     pw32*)
16603       # pw32 DLLs use 'pw' prefix rather than 'lib'
16604       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16605       ;;
16606     esac
16607     ;;
16608
16609   *)
16610     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16611     ;;
16612   esac
16613   dynamic_linker='Win32 ld.exe'
16614   # FIXME: first we should search . and the directory the executable is in
16615   shlibpath_var=PATH
16616   ;;
16617
16618 darwin* | rhapsody*)
16619   dynamic_linker="$host_os dyld"
16620   version_type=darwin
16621   need_lib_prefix=no
16622   need_version=no
16623   # FIXME: Relying on posixy $() will cause problems for
16624   #        cross-compilation, but unfortunately the echo tests do not
16625   #        yet detect zsh echo's removal of \ escapes.
16626   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16627   soname_spec='${libname}${release}${major}$shared_ext'
16628   shlibpath_overrides_runpath=yes
16629   shlibpath_var=DYLD_LIBRARY_PATH
16630   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16631   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16632   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16633   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"`
16634   fi
16635   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16636   ;;
16637
16638 dgux*)
16639   version_type=linux
16640   need_lib_prefix=no
16641   need_version=no
16642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16643   soname_spec='${libname}${release}${shared_ext}$major'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   ;;
16646
16647 freebsd1*)
16648   dynamic_linker=no
16649   ;;
16650
16651 freebsd*)
16652   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16653   version_type=freebsd-$objformat
16654   case $version_type in
16655     freebsd-elf*)
16656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16657       need_version=no
16658       need_lib_prefix=no
16659       ;;
16660     freebsd-*)
16661       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16662       need_version=yes
16663       ;;
16664   esac
16665   shlibpath_var=LD_LIBRARY_PATH
16666   case $host_os in
16667   freebsd2*)
16668     shlibpath_overrides_runpath=yes
16669     ;;
16670   freebsd3.01* | freebsdelf3.01*)
16671     shlibpath_overrides_runpath=yes
16672     hardcode_into_libs=yes
16673     ;;
16674   *) # from 3.2 on
16675     shlibpath_overrides_runpath=no
16676     hardcode_into_libs=yes
16677     ;;
16678   esac
16679   ;;
16680
16681 gnu*)
16682   version_type=linux
16683   need_lib_prefix=no
16684   need_version=no
16685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16686   soname_spec='${libname}${release}${shared_ext}$major'
16687   shlibpath_var=LD_LIBRARY_PATH
16688   hardcode_into_libs=yes
16689   ;;
16690
16691 hpux9* | hpux10* | hpux11*)
16692   # Give a soname corresponding to the major version so that dld.sl refuses to
16693   # link against other versions.
16694   version_type=sunos
16695   need_lib_prefix=no
16696   need_version=no
16697   case "$host_cpu" in
16698   ia64*)
16699     shrext='.so'
16700     hardcode_into_libs=yes
16701     dynamic_linker="$host_os dld.so"
16702     shlibpath_var=LD_LIBRARY_PATH
16703     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705     soname_spec='${libname}${release}${shared_ext}$major'
16706     if test "X$HPUX_IA64_MODE" = X32; then
16707       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16708     else
16709       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16710     fi
16711     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16712     ;;
16713    hppa*64*)
16714      shrext='.sl'
16715      hardcode_into_libs=yes
16716      dynamic_linker="$host_os dld.sl"
16717      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16718      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16719      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720      soname_spec='${libname}${release}${shared_ext}$major'
16721      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16722      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16723      ;;
16724    *)
16725     shrext='.sl'
16726     dynamic_linker="$host_os dld.sl"
16727     shlibpath_var=SHLIB_PATH
16728     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730     soname_spec='${libname}${release}${shared_ext}$major'
16731     ;;
16732   esac
16733   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16734   postinstall_cmds='chmod 555 $lib'
16735   ;;
16736
16737 irix5* | irix6* | nonstopux*)
16738   case $host_os in
16739     nonstopux*) version_type=nonstopux ;;
16740     *)
16741         if test "$lt_cv_prog_gnu_ld" = yes; then
16742                 version_type=linux
16743         else
16744                 version_type=irix
16745         fi ;;
16746   esac
16747   need_lib_prefix=no
16748   need_version=no
16749   soname_spec='${libname}${release}${shared_ext}$major'
16750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16751   case $host_os in
16752   irix5* | nonstopux*)
16753     libsuff= shlibsuff=
16754     ;;
16755   *)
16756     case $LD in # libtool.m4 will add one of these switches to LD
16757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16758       libsuff= shlibsuff= libmagic=32-bit;;
16759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16760       libsuff=32 shlibsuff=N32 libmagic=N32;;
16761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16763     *) libsuff= shlibsuff= libmagic=never-match;;
16764     esac
16765     ;;
16766   esac
16767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16768   shlibpath_overrides_runpath=no
16769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16771   hardcode_into_libs=yes
16772   ;;
16773
16774 # No shared lib support for Linux oldld, aout, or coff.
16775 linux*oldld* | linux*aout* | linux*coff*)
16776   dynamic_linker=no
16777   ;;
16778
16779 # This must be Linux ELF.
16780 linux*)
16781   version_type=linux
16782   need_lib_prefix=no
16783   need_version=no
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785   soname_spec='${libname}${release}${shared_ext}$major'
16786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16787   shlibpath_var=LD_LIBRARY_PATH
16788   shlibpath_overrides_runpath=no
16789   # This implies no fast_install, which is unacceptable.
16790   # Some rework will be needed to allow for fast_install
16791   # before this can be enabled.
16792   hardcode_into_libs=yes
16793
16794   # We used to test for /lib/ld.so.1 and disable shared libraries on
16795   # powerpc, because MkLinux only supported shared libraries with the
16796   # GNU dynamic linker.  Since this was broken with cross compilers,
16797   # most powerpc-linux boxes support dynamic linking these days and
16798   # people can always --disable-shared, the test was removed, and we
16799   # assume the GNU/Linux dynamic linker is in use.
16800   dynamic_linker='GNU/Linux ld.so'
16801   ;;
16802
16803 netbsd*)
16804   version_type=sunos
16805   need_lib_prefix=no
16806   need_version=no
16807   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16809     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16810     dynamic_linker='NetBSD (a.out) ld.so'
16811   else
16812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16813     soname_spec='${libname}${release}${shared_ext}$major'
16814     dynamic_linker='NetBSD ld.elf_so'
16815   fi
16816   shlibpath_var=LD_LIBRARY_PATH
16817   shlibpath_overrides_runpath=yes
16818   hardcode_into_libs=yes
16819   ;;
16820
16821 newsos6)
16822   version_type=linux
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   shlibpath_overrides_runpath=yes
16826   ;;
16827
16828 nto-qnx)
16829   version_type=linux
16830   need_lib_prefix=no
16831   need_version=no
16832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833   soname_spec='${libname}${release}${shared_ext}$major'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   shlibpath_overrides_runpath=yes
16836   ;;
16837
16838 openbsd*)
16839   version_type=sunos
16840   need_lib_prefix=no
16841   need_version=no
16842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16844   shlibpath_var=LD_LIBRARY_PATH
16845   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16846     case $host_os in
16847       openbsd2.[89] | openbsd2.[89].*)
16848         shlibpath_overrides_runpath=no
16849         ;;
16850       *)
16851         shlibpath_overrides_runpath=yes
16852         ;;
16853       esac
16854   else
16855     shlibpath_overrides_runpath=yes
16856   fi
16857   ;;
16858
16859 os2*)
16860   libname_spec='$name'
16861   shrext=".dll"
16862   need_lib_prefix=no
16863   library_names_spec='$libname${shared_ext} $libname.a'
16864   dynamic_linker='OS/2 ld.exe'
16865   shlibpath_var=LIBPATH
16866   ;;
16867
16868 osf3* | osf4* | osf5*)
16869   version_type=osf
16870   need_lib_prefix=no
16871   need_version=no
16872   soname_spec='${libname}${release}${shared_ext}$major'
16873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874   shlibpath_var=LD_LIBRARY_PATH
16875   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16876   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16877   ;;
16878
16879 sco3.2v5*)
16880   version_type=osf
16881   soname_spec='${libname}${release}${shared_ext}$major'
16882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   ;;
16885
16886 solaris*)
16887   version_type=linux
16888   need_lib_prefix=no
16889   need_version=no
16890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891   soname_spec='${libname}${release}${shared_ext}$major'
16892   shlibpath_var=LD_LIBRARY_PATH
16893   shlibpath_overrides_runpath=yes
16894   hardcode_into_libs=yes
16895   # ldd complains unless libraries are executable
16896   postinstall_cmds='chmod +x $lib'
16897   ;;
16898
16899 sunos4*)
16900   version_type=sunos
16901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16902   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16903   shlibpath_var=LD_LIBRARY_PATH
16904   shlibpath_overrides_runpath=yes
16905   if test "$with_gnu_ld" = yes; then
16906     need_lib_prefix=no
16907   fi
16908   need_version=yes
16909   ;;
16910
16911 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16912   version_type=linux
16913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914   soname_spec='${libname}${release}${shared_ext}$major'
16915   shlibpath_var=LD_LIBRARY_PATH
16916   case $host_vendor in
16917     sni)
16918       shlibpath_overrides_runpath=no
16919       need_lib_prefix=no
16920       export_dynamic_flag_spec='${wl}-Blargedynsym'
16921       runpath_var=LD_RUN_PATH
16922       ;;
16923     siemens)
16924       need_lib_prefix=no
16925       ;;
16926     motorola)
16927       need_lib_prefix=no
16928       need_version=no
16929       shlibpath_overrides_runpath=no
16930       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16931       ;;
16932   esac
16933   ;;
16934
16935 sysv4*MP*)
16936   if test -d /usr/nec ;then
16937     version_type=linux
16938     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16939     soname_spec='$libname${shared_ext}.$major'
16940     shlibpath_var=LD_LIBRARY_PATH
16941   fi
16942   ;;
16943
16944 uts4*)
16945   version_type=linux
16946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947   soname_spec='${libname}${release}${shared_ext}$major'
16948   shlibpath_var=LD_LIBRARY_PATH
16949   ;;
16950
16951 *)
16952   dynamic_linker=no
16953   ;;
16954 esac
16955 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16956 echo "${ECHO_T}$dynamic_linker" >&6
16957 test "$dynamic_linker" = no && can_build_shared=no
16958
16959 if test "x$enable_dlopen" != xyes; then
16960   enable_dlopen=unknown
16961   enable_dlopen_self=unknown
16962   enable_dlopen_self_static=unknown
16963 else
16964   lt_cv_dlopen=no
16965   lt_cv_dlopen_libs=
16966
16967   case $host_os in
16968   beos*)
16969     lt_cv_dlopen="load_add_on"
16970     lt_cv_dlopen_libs=
16971     lt_cv_dlopen_self=yes
16972     ;;
16973
16974   mingw* | pw32*)
16975     lt_cv_dlopen="LoadLibrary"
16976     lt_cv_dlopen_libs=
16977    ;;
16978
16979   cygwin*)
16980     lt_cv_dlopen="dlopen"
16981     lt_cv_dlopen_libs=
16982    ;;
16983
16984   darwin*)
16985   # if libdl is installed we need to link against it
16986     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-ldl  $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999
17000 /* Override any gcc2 internal prototype to avoid an error.  */
17001 #ifdef __cplusplus
17002 extern "C"
17003 #endif
17004 /* We use char because int might match the return type of a gcc2
17005    builtin and then its argument prototype would still apply.  */
17006 char dlopen ();
17007 int
17008 main ()
17009 {
17010 dlopen ();
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017   (eval $ac_link) 2>conftest.er1
17018   ac_status=$?
17019   grep -v '^ *+' conftest.er1 >conftest.err
17020   rm -f conftest.er1
17021   cat conftest.err >&5
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); } &&
17024          { ac_try='test -z "$ac_c_werror_flag"
17025                          || test ! -s conftest.err'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; } &&
17031          { ac_try='test -s conftest$ac_exeext'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   ac_cv_lib_dl_dlopen=yes
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042 ac_cv_lib_dl_dlopen=no
17043 fi
17044 rm -f conftest.err conftest.$ac_objext \
17045       conftest$ac_exeext conftest.$ac_ext
17046 LIBS=$ac_check_lib_save_LIBS
17047 fi
17048 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17049 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17050 if test $ac_cv_lib_dl_dlopen = yes; then
17051   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17052 else
17053
17054     lt_cv_dlopen="dyld"
17055     lt_cv_dlopen_libs=
17056     lt_cv_dlopen_self=yes
17057
17058 fi
17059
17060    ;;
17061
17062   *)
17063     echo "$as_me:$LINENO: checking for shl_load" >&5
17064 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17065 if test "${ac_cv_func_shl_load+set}" = set; then
17066   echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068   cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17076 #define shl_load innocuous_shl_load
17077
17078 /* System header to define __stub macros and hopefully few prototypes,
17079     which can conflict with char shl_load (); below.
17080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081     <limits.h> exists even on freestanding compilers.  */
17082
17083 #ifdef __STDC__
17084 # include <limits.h>
17085 #else
17086 # include <assert.h>
17087 #endif
17088
17089 #undef shl_load
17090
17091 /* Override any gcc2 internal prototype to avoid an error.  */
17092 #ifdef __cplusplus
17093 extern "C"
17094 {
17095 #endif
17096 /* We use char because int might match the return type of a gcc2
17097    builtin and then its argument prototype would still apply.  */
17098 char shl_load ();
17099 /* The GNU C library defines this for functions which it implements
17100     to always fail with ENOSYS.  Some functions are actually named
17101     something starting with __ and the normal name is an alias.  */
17102 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17103 choke me
17104 #else
17105 char (*f) () = shl_load;
17106 #endif
17107 #ifdef __cplusplus
17108 }
17109 #endif
17110
17111 int
17112 main ()
17113 {
17114 return f != shl_load;
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121   (eval $ac_link) 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } &&
17128          { ac_try='test -z "$ac_c_werror_flag"
17129                          || test ! -s conftest.err'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; } &&
17135          { ac_try='test -s conftest$ac_exeext'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; }; then
17141   ac_cv_func_shl_load=yes
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146 ac_cv_func_shl_load=no
17147 fi
17148 rm -f conftest.err conftest.$ac_objext \
17149       conftest$ac_exeext conftest.$ac_ext
17150 fi
17151 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17152 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17153 if test $ac_cv_func_shl_load = yes; then
17154   lt_cv_dlopen="shl_load"
17155 else
17156   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17157 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17158 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17159   echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161   ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-ldld  $LIBS"
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169
17170 /* Override any gcc2 internal prototype to avoid an error.  */
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 /* We use char because int might match the return type of a gcc2
17175    builtin and then its argument prototype would still apply.  */
17176 char shl_load ();
17177 int
17178 main ()
17179 {
17180 shl_load ();
17181   ;
17182   return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187   (eval $ac_link) 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } &&
17194          { ac_try='test -z "$ac_c_werror_flag"
17195                          || test ! -s conftest.err'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; } &&
17201          { ac_try='test -s conftest$ac_exeext'
17202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203   (eval $ac_try) 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); }; }; then
17207   ac_cv_lib_dld_shl_load=yes
17208 else
17209   echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17211
17212 ac_cv_lib_dld_shl_load=no
17213 fi
17214 rm -f conftest.err conftest.$ac_objext \
17215       conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_lib_save_LIBS
17217 fi
17218 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17219 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17220 if test $ac_cv_lib_dld_shl_load = yes; then
17221   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17222 else
17223   echo "$as_me:$LINENO: checking for dlopen" >&5
17224 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17225 if test "${ac_cv_func_dlopen+set}" = set; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h.  */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h.  */
17234 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17236 #define dlopen innocuous_dlopen
17237
17238 /* System header to define __stub macros and hopefully few prototypes,
17239     which can conflict with char dlopen (); below.
17240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241     <limits.h> exists even on freestanding compilers.  */
17242
17243 #ifdef __STDC__
17244 # include <limits.h>
17245 #else
17246 # include <assert.h>
17247 #endif
17248
17249 #undef dlopen
17250
17251 /* Override any gcc2 internal prototype to avoid an error.  */
17252 #ifdef __cplusplus
17253 extern "C"
17254 {
17255 #endif
17256 /* We use char because int might match the return type of a gcc2
17257    builtin and then its argument prototype would still apply.  */
17258 char dlopen ();
17259 /* The GNU C library defines this for functions which it implements
17260     to always fail with ENOSYS.  Some functions are actually named
17261     something starting with __ and the normal name is an alias.  */
17262 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17263 choke me
17264 #else
17265 char (*f) () = dlopen;
17266 #endif
17267 #ifdef __cplusplus
17268 }
17269 #endif
17270
17271 int
17272 main ()
17273 {
17274 return f != dlopen;
17275   ;
17276   return 0;
17277 }
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281   (eval $ac_link) 2>conftest.er1
17282   ac_status=$?
17283   grep -v '^ *+' conftest.er1 >conftest.err
17284   rm -f conftest.er1
17285   cat conftest.err >&5
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); } &&
17288          { ac_try='test -z "$ac_c_werror_flag"
17289                          || test ! -s conftest.err'
17290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291   (eval $ac_try) 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; } &&
17295          { ac_try='test -s conftest$ac_exeext'
17296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297   (eval $ac_try) 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); }; }; then
17301   ac_cv_func_dlopen=yes
17302 else
17303   echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306 ac_cv_func_dlopen=no
17307 fi
17308 rm -f conftest.err conftest.$ac_objext \
17309       conftest$ac_exeext conftest.$ac_ext
17310 fi
17311 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17312 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17313 if test $ac_cv_func_dlopen = yes; then
17314   lt_cv_dlopen="dlopen"
17315 else
17316   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17317 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17318 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   ac_check_lib_save_LIBS=$LIBS
17322 LIBS="-ldl  $LIBS"
17323 cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h.  */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h.  */
17329
17330 /* Override any gcc2 internal prototype to avoid an error.  */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 /* We use char because int might match the return type of a gcc2
17335    builtin and then its argument prototype would still apply.  */
17336 char dlopen ();
17337 int
17338 main ()
17339 {
17340 dlopen ();
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347   (eval $ac_link) 2>conftest.er1
17348   ac_status=$?
17349   grep -v '^ *+' conftest.er1 >conftest.err
17350   rm -f conftest.er1
17351   cat conftest.err >&5
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); } &&
17354          { ac_try='test -z "$ac_c_werror_flag"
17355                          || test ! -s conftest.err'
17356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357   (eval $ac_try) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; } &&
17361          { ac_try='test -s conftest$ac_exeext'
17362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363   (eval $ac_try) 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; }; then
17367   ac_cv_lib_dl_dlopen=yes
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_cv_lib_dl_dlopen=no
17373 fi
17374 rm -f conftest.err conftest.$ac_objext \
17375       conftest$ac_exeext conftest.$ac_ext
17376 LIBS=$ac_check_lib_save_LIBS
17377 fi
17378 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17380 if test $ac_cv_lib_dl_dlopen = yes; then
17381   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17382 else
17383   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17384 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17385 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17386   echo $ECHO_N "(cached) $ECHO_C" >&6
17387 else
17388   ac_check_lib_save_LIBS=$LIBS
17389 LIBS="-lsvld  $LIBS"
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396
17397 /* Override any gcc2 internal prototype to avoid an error.  */
17398 #ifdef __cplusplus
17399 extern "C"
17400 #endif
17401 /* We use char because int might match the return type of a gcc2
17402    builtin and then its argument prototype would still apply.  */
17403 char dlopen ();
17404 int
17405 main ()
17406 {
17407 dlopen ();
17408   ;
17409   return 0;
17410 }
17411 _ACEOF
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414   (eval $ac_link) 2>conftest.er1
17415   ac_status=$?
17416   grep -v '^ *+' conftest.er1 >conftest.err
17417   rm -f conftest.er1
17418   cat conftest.err >&5
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); } &&
17421          { ac_try='test -z "$ac_c_werror_flag"
17422                          || test ! -s conftest.err'
17423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424   (eval $ac_try) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; } &&
17428          { ac_try='test -s conftest$ac_exeext'
17429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430   (eval $ac_try) 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; }; then
17434   ac_cv_lib_svld_dlopen=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 ac_cv_lib_svld_dlopen=no
17440 fi
17441 rm -f conftest.err conftest.$ac_objext \
17442       conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17444 fi
17445 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17446 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17447 if test $ac_cv_lib_svld_dlopen = yes; then
17448   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17449 else
17450   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17451 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17452 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17453   echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455   ac_check_lib_save_LIBS=$LIBS
17456 LIBS="-ldld  $LIBS"
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h.  */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h.  */
17463
17464 /* Override any gcc2 internal prototype to avoid an error.  */
17465 #ifdef __cplusplus
17466 extern "C"
17467 #endif
17468 /* We use char because int might match the return type of a gcc2
17469    builtin and then its argument prototype would still apply.  */
17470 char dld_link ();
17471 int
17472 main ()
17473 {
17474 dld_link ();
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481   (eval $ac_link) 2>conftest.er1
17482   ac_status=$?
17483   grep -v '^ *+' conftest.er1 >conftest.err
17484   rm -f conftest.er1
17485   cat conftest.err >&5
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } &&
17488          { ac_try='test -z "$ac_c_werror_flag"
17489                          || test ! -s conftest.err'
17490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491   (eval $ac_try) 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); }; } &&
17495          { ac_try='test -s conftest$ac_exeext'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501   ac_cv_lib_dld_dld_link=yes
17502 else
17503   echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17505
17506 ac_cv_lib_dld_dld_link=no
17507 fi
17508 rm -f conftest.err conftest.$ac_objext \
17509       conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17511 fi
17512 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17513 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17514 if test $ac_cv_lib_dld_dld_link = yes; then
17515   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17516 fi
17517
17518
17519 fi
17520
17521
17522 fi
17523
17524
17525 fi
17526
17527
17528 fi
17529
17530
17531 fi
17532
17533     ;;
17534   esac
17535
17536   if test "x$lt_cv_dlopen" != xno; then
17537     enable_dlopen=yes
17538   else
17539     enable_dlopen=no
17540   fi
17541
17542   case $lt_cv_dlopen in
17543   dlopen)
17544     save_CPPFLAGS="$CPPFLAGS"
17545     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17546
17547     save_LDFLAGS="$LDFLAGS"
17548     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17549
17550     save_LIBS="$LIBS"
17551     LIBS="$lt_cv_dlopen_libs $LIBS"
17552
17553     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17554 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17555 if test "${lt_cv_dlopen_self+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558           if test "$cross_compiling" = yes; then :
17559   lt_cv_dlopen_self=cross
17560 else
17561   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17562   lt_status=$lt_dlunknown
17563   cat > conftest.$ac_ext <<EOF
17564 #line 17564 "configure"
17565 #include "confdefs.h"
17566
17567 #if HAVE_DLFCN_H
17568 #include <dlfcn.h>
17569 #endif
17570
17571 #include <stdio.h>
17572
17573 #ifdef RTLD_GLOBAL
17574 #  define LT_DLGLOBAL           RTLD_GLOBAL
17575 #else
17576 #  ifdef DL_GLOBAL
17577 #    define LT_DLGLOBAL         DL_GLOBAL
17578 #  else
17579 #    define LT_DLGLOBAL         0
17580 #  endif
17581 #endif
17582
17583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17584    find out it does not work in some platform. */
17585 #ifndef LT_DLLAZY_OR_NOW
17586 #  ifdef RTLD_LAZY
17587 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17588 #  else
17589 #    ifdef DL_LAZY
17590 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17591 #    else
17592 #      ifdef RTLD_NOW
17593 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17594 #      else
17595 #        ifdef DL_NOW
17596 #          define LT_DLLAZY_OR_NOW      DL_NOW
17597 #        else
17598 #          define LT_DLLAZY_OR_NOW      0
17599 #        endif
17600 #      endif
17601 #    endif
17602 #  endif
17603 #endif
17604
17605 #ifdef __cplusplus
17606 extern "C" void exit (int);
17607 #endif
17608
17609 void fnord() { int i=42;}
17610 int main ()
17611 {
17612   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17613   int status = $lt_dlunknown;
17614
17615   if (self)
17616     {
17617       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17618       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17619       /* dlclose (self); */
17620     }
17621
17622     exit (status);
17623 }
17624 EOF
17625   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17626   (eval $ac_link) 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17630     (./conftest; exit; ) 2>/dev/null
17631     lt_status=$?
17632     case x$lt_status in
17633       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17634       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17635       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17636     esac
17637   else :
17638     # compilation failed
17639     lt_cv_dlopen_self=no
17640   fi
17641 fi
17642 rm -fr conftest*
17643
17644
17645 fi
17646 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17647 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17648
17649     if test "x$lt_cv_dlopen_self" = xyes; then
17650       LDFLAGS="$LDFLAGS $link_static_flag"
17651       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17652 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17653 if test "${lt_cv_dlopen_self_static+set}" = set; then
17654   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656           if test "$cross_compiling" = yes; then :
17657   lt_cv_dlopen_self_static=cross
17658 else
17659   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17660   lt_status=$lt_dlunknown
17661   cat > conftest.$ac_ext <<EOF
17662 #line 17662 "configure"
17663 #include "confdefs.h"
17664
17665 #if HAVE_DLFCN_H
17666 #include <dlfcn.h>
17667 #endif
17668
17669 #include <stdio.h>
17670
17671 #ifdef RTLD_GLOBAL
17672 #  define LT_DLGLOBAL           RTLD_GLOBAL
17673 #else
17674 #  ifdef DL_GLOBAL
17675 #    define LT_DLGLOBAL         DL_GLOBAL
17676 #  else
17677 #    define LT_DLGLOBAL         0
17678 #  endif
17679 #endif
17680
17681 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17682    find out it does not work in some platform. */
17683 #ifndef LT_DLLAZY_OR_NOW
17684 #  ifdef RTLD_LAZY
17685 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17686 #  else
17687 #    ifdef DL_LAZY
17688 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17689 #    else
17690 #      ifdef RTLD_NOW
17691 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17692 #      else
17693 #        ifdef DL_NOW
17694 #          define LT_DLLAZY_OR_NOW      DL_NOW
17695 #        else
17696 #          define LT_DLLAZY_OR_NOW      0
17697 #        endif
17698 #      endif
17699 #    endif
17700 #  endif
17701 #endif
17702
17703 #ifdef __cplusplus
17704 extern "C" void exit (int);
17705 #endif
17706
17707 void fnord() { int i=42;}
17708 int main ()
17709 {
17710   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17711   int status = $lt_dlunknown;
17712
17713   if (self)
17714     {
17715       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17716       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17717       /* dlclose (self); */
17718     }
17719
17720     exit (status);
17721 }
17722 EOF
17723   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17724   (eval $ac_link) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17728     (./conftest; exit; ) 2>/dev/null
17729     lt_status=$?
17730     case x$lt_status in
17731       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17732       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17733       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17734     esac
17735   else :
17736     # compilation failed
17737     lt_cv_dlopen_self_static=no
17738   fi
17739 fi
17740 rm -fr conftest*
17741
17742
17743 fi
17744 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17745 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17746     fi
17747
17748     CPPFLAGS="$save_CPPFLAGS"
17749     LDFLAGS="$save_LDFLAGS"
17750     LIBS="$save_LIBS"
17751     ;;
17752   esac
17753
17754   case $lt_cv_dlopen_self in
17755   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17756   *) enable_dlopen_self=unknown ;;
17757   esac
17758
17759   case $lt_cv_dlopen_self_static in
17760   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17761   *) enable_dlopen_self_static=unknown ;;
17762   esac
17763 fi
17764
17765
17766 # The else clause should only fire when bootstrapping the
17767 # libtool distribution, otherwise you forgot to ship ltmain.sh
17768 # with your package, and you will get complaints that there are
17769 # no rules to generate ltmain.sh.
17770 if test -f "$ltmain"; then
17771   # See if we are running on zsh, and set the options which allow our commands through
17772   # without removal of \ escapes.
17773   if test -n "${ZSH_VERSION+set}" ; then
17774     setopt NO_GLOB_SUBST
17775   fi
17776   # Now quote all the things that may contain metacharacters while being
17777   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17778   # variables and quote the copies for generation of the libtool script.
17779   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17780     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17781     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17782     deplibs_check_method reload_flag reload_cmds need_locks \
17783     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17784     lt_cv_sys_global_symbol_to_c_name_address \
17785     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17786     old_postinstall_cmds old_postuninstall_cmds \
17787     compiler_GCJ \
17788     CC_GCJ \
17789     LD_GCJ \
17790     lt_prog_compiler_wl_GCJ \
17791     lt_prog_compiler_pic_GCJ \
17792     lt_prog_compiler_static_GCJ \
17793     lt_prog_compiler_no_builtin_flag_GCJ \
17794     export_dynamic_flag_spec_GCJ \
17795     thread_safe_flag_spec_GCJ \
17796     whole_archive_flag_spec_GCJ \
17797     enable_shared_with_static_runtimes_GCJ \
17798     old_archive_cmds_GCJ \
17799     old_archive_from_new_cmds_GCJ \
17800     predep_objects_GCJ \
17801     postdep_objects_GCJ \
17802     predeps_GCJ \
17803     postdeps_GCJ \
17804     compiler_lib_search_path_GCJ \
17805     archive_cmds_GCJ \
17806     archive_expsym_cmds_GCJ \
17807     postinstall_cmds_GCJ \
17808     postuninstall_cmds_GCJ \
17809     old_archive_from_expsyms_cmds_GCJ \
17810     allow_undefined_flag_GCJ \
17811     no_undefined_flag_GCJ \
17812     export_symbols_cmds_GCJ \
17813     hardcode_libdir_flag_spec_GCJ \
17814     hardcode_libdir_flag_spec_ld_GCJ \
17815     hardcode_libdir_separator_GCJ \
17816     hardcode_automatic_GCJ \
17817     module_cmds_GCJ \
17818     module_expsym_cmds_GCJ \
17819     lt_cv_prog_compiler_c_o_GCJ \
17820     exclude_expsyms_GCJ \
17821     include_expsyms_GCJ; do
17822
17823     case $var in
17824     old_archive_cmds_GCJ | \
17825     old_archive_from_new_cmds_GCJ | \
17826     archive_cmds_GCJ | \
17827     archive_expsym_cmds_GCJ | \
17828     module_cmds_GCJ | \
17829     module_expsym_cmds_GCJ | \
17830     old_archive_from_expsyms_cmds_GCJ | \
17831     export_symbols_cmds_GCJ | \
17832     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17833     postinstall_cmds | postuninstall_cmds | \
17834     old_postinstall_cmds | old_postuninstall_cmds | \
17835     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17836       # Double-quote double-evaled strings.
17837       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17838       ;;
17839     *)
17840       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17841       ;;
17842     esac
17843   done
17844
17845   case $lt_echo in
17846   *'\$0 --fallback-echo"')
17847     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17848     ;;
17849   esac
17850
17851 cfgfile="$ofile"
17852
17853   cat <<__EOF__ >> "$cfgfile"
17854 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17855
17856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17857
17858 # Shell to use when invoking shell scripts.
17859 SHELL=$lt_SHELL
17860
17861 # Whether or not to build shared libraries.
17862 build_libtool_libs=$enable_shared
17863
17864 # Whether or not to build static libraries.
17865 build_old_libs=$enable_static
17866
17867 # Whether or not to add -lc for building shared libraries.
17868 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17869
17870 # Whether or not to disallow shared libs when runtime libs are static
17871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17872
17873 # Whether or not to optimize for fast installation.
17874 fast_install=$enable_fast_install
17875
17876 # The host system.
17877 host_alias=$host_alias
17878 host=$host
17879
17880 # An echo program that does not interpret backslashes.
17881 echo=$lt_echo
17882
17883 # The archiver.
17884 AR=$lt_AR
17885 AR_FLAGS=$lt_AR_FLAGS
17886
17887 # A C compiler.
17888 LTCC=$lt_LTCC
17889
17890 # A language-specific compiler.
17891 CC=$lt_compiler_GCJ
17892
17893 # Is the compiler the GNU C compiler?
17894 with_gcc=$GCC_GCJ
17895
17896 # An ERE matcher.
17897 EGREP=$lt_EGREP
17898
17899 # The linker used to build libraries.
17900 LD=$lt_LD_GCJ
17901
17902 # Whether we need hard or soft links.
17903 LN_S=$lt_LN_S
17904
17905 # A BSD-compatible nm program.
17906 NM=$lt_NM
17907
17908 # A symbol stripping program
17909 STRIP=$STRIP
17910
17911 # Used to examine libraries when file_magic_cmd begins "file"
17912 MAGIC_CMD=$MAGIC_CMD
17913
17914 # Used on cygwin: DLL creation program.
17915 DLLTOOL="$DLLTOOL"
17916
17917 # Used on cygwin: object dumper.
17918 OBJDUMP="$OBJDUMP"
17919
17920 # Used on cygwin: assembler.
17921 AS="$AS"
17922
17923 # The name of the directory that contains temporary libtool files.
17924 objdir=$objdir
17925
17926 # How to create reloadable object files.
17927 reload_flag=$lt_reload_flag
17928 reload_cmds=$lt_reload_cmds
17929
17930 # How to pass a linker flag through the compiler.
17931 wl=$lt_lt_prog_compiler_wl_GCJ
17932
17933 # Object file suffix (normally "o").
17934 objext="$ac_objext"
17935
17936 # Old archive suffix (normally "a").
17937 libext="$libext"
17938
17939 # Shared library suffix (normally ".so").
17940 shrext='$shrext'
17941
17942 # Executable file suffix (normally "").
17943 exeext="$exeext"
17944
17945 # Additional compiler flags for building library objects.
17946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17947 pic_mode=$pic_mode
17948
17949 # What is the maximum length of a command?
17950 max_cmd_len=$lt_cv_sys_max_cmd_len
17951
17952 # Does compiler simultaneously support -c and -o options?
17953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17954
17955 # Must we lock files when doing compilation ?
17956 need_locks=$lt_need_locks
17957
17958 # Do we need the lib prefix for modules?
17959 need_lib_prefix=$need_lib_prefix
17960
17961 # Do we need a version for libraries?
17962 need_version=$need_version
17963
17964 # Whether dlopen is supported.
17965 dlopen_support=$enable_dlopen
17966
17967 # Whether dlopen of programs is supported.
17968 dlopen_self=$enable_dlopen_self
17969
17970 # Whether dlopen of statically linked programs is supported.
17971 dlopen_self_static=$enable_dlopen_self_static
17972
17973 # Compiler flag to prevent dynamic linking.
17974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17975
17976 # Compiler flag to turn off builtin functions.
17977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17978
17979 # Compiler flag to allow reflexive dlopens.
17980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17981
17982 # Compiler flag to generate shared objects directly from archives.
17983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17984
17985 # Compiler flag to generate thread-safe objects.
17986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17987
17988 # Library versioning type.
17989 version_type=$version_type
17990
17991 # Format of library name prefix.
17992 libname_spec=$lt_libname_spec
17993
17994 # List of archive names.  First name is the real one, the rest are links.
17995 # The last name is the one that the linker finds with -lNAME.
17996 library_names_spec=$lt_library_names_spec
17997
17998 # The coded name of the library, if different from the real name.
17999 soname_spec=$lt_soname_spec
18000
18001 # Commands used to build and install an old-style archive.
18002 RANLIB=$lt_RANLIB
18003 old_archive_cmds=$lt_old_archive_cmds_GCJ
18004 old_postinstall_cmds=$lt_old_postinstall_cmds
18005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18006
18007 # Create an old-style archive from a shared archive.
18008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18009
18010 # Create a temporary old-style archive to link instead of a shared archive.
18011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18012
18013 # Commands used to build and install a shared archive.
18014 archive_cmds=$lt_archive_cmds_GCJ
18015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18016 postinstall_cmds=$lt_postinstall_cmds
18017 postuninstall_cmds=$lt_postuninstall_cmds
18018
18019 # Commands used to build a loadable module (assumed same as above if empty)
18020 module_cmds=$lt_module_cmds_GCJ
18021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18022
18023 # Commands to strip libraries.
18024 old_striplib=$lt_old_striplib
18025 striplib=$lt_striplib
18026
18027 # Dependencies to place before the objects being linked to create a
18028 # shared library.
18029 predep_objects=$lt_predep_objects_GCJ
18030
18031 # Dependencies to place after the objects being linked to create a
18032 # shared library.
18033 postdep_objects=$lt_postdep_objects_GCJ
18034
18035 # Dependencies to place before the objects being linked to create a
18036 # shared library.
18037 predeps=$lt_predeps_GCJ
18038
18039 # Dependencies to place after the objects being linked to create a
18040 # shared library.
18041 postdeps=$lt_postdeps_GCJ
18042
18043 # The library search path used internally by the compiler when linking
18044 # a shared library.
18045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18046
18047 # Method to check whether dependent libraries are shared objects.
18048 deplibs_check_method=$lt_deplibs_check_method
18049
18050 # Command to use when deplibs_check_method == file_magic.
18051 file_magic_cmd=$lt_file_magic_cmd
18052
18053 # Flag that allows shared libraries with undefined symbols to be built.
18054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18055
18056 # Flag that forces no undefined symbols.
18057 no_undefined_flag=$lt_no_undefined_flag_GCJ
18058
18059 # Commands used to finish a libtool library installation in a directory.
18060 finish_cmds=$lt_finish_cmds
18061
18062 # Same as above, but a single script fragment to be evaled but not shown.
18063 finish_eval=$lt_finish_eval
18064
18065 # Take the output of nm and produce a listing of raw symbols and C names.
18066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18067
18068 # Transform the output of nm in a proper C declaration
18069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18070
18071 # Transform the output of nm in a C name address pair
18072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18073
18074 # This is the shared library runtime path variable.
18075 runpath_var=$runpath_var
18076
18077 # This is the shared library path variable.
18078 shlibpath_var=$shlibpath_var
18079
18080 # Is shlibpath searched before the hard-coded library search path?
18081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18082
18083 # How to hardcode a shared library path into an executable.
18084 hardcode_action=$hardcode_action_GCJ
18085
18086 # Whether we should hardcode library paths into libraries.
18087 hardcode_into_libs=$hardcode_into_libs
18088
18089 # Flag to hardcode \$libdir into a binary during linking.
18090 # This must work even if \$libdir does not exist.
18091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18092
18093 # If ld is used when linking, flag to hardcode \$libdir into
18094 # a binary during linking. This must work even if \$libdir does
18095 # not exist.
18096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18097
18098 # Whether we need a single -rpath flag with a separated argument.
18099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18100
18101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18102 # resulting binary.
18103 hardcode_direct=$hardcode_direct_GCJ
18104
18105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18106 # resulting binary.
18107 hardcode_minus_L=$hardcode_minus_L_GCJ
18108
18109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18110 # the resulting binary.
18111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18112
18113 # Set to yes if building a shared library automatically hardcodes DIR into the library
18114 # and all subsequent libraries and executables linked against it.
18115 hardcode_automatic=$hardcode_automatic_GCJ
18116
18117 # Variables whose values should be saved in libtool wrapper scripts and
18118 # restored at relink time.
18119 variables_saved_for_relink="$variables_saved_for_relink"
18120
18121 # Whether libtool must link a program against all its dependency libraries.
18122 link_all_deplibs=$link_all_deplibs_GCJ
18123
18124 # Compile-time system search path for libraries
18125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18126
18127 # Run-time system search path for libraries
18128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18129
18130 # Fix the shell variable \$srcfile for the compiler.
18131 fix_srcfile_path="$fix_srcfile_path_GCJ"
18132
18133 # Set to yes if exported symbols are required.
18134 always_export_symbols=$always_export_symbols_GCJ
18135
18136 # The commands to list exported symbols.
18137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18138
18139 # The commands to extract the exported symbol list from a shared archive.
18140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18141
18142 # Symbols that should not be listed in the preloaded symbols.
18143 exclude_expsyms=$lt_exclude_expsyms_GCJ
18144
18145 # Symbols that must always be exported.
18146 include_expsyms=$lt_include_expsyms_GCJ
18147
18148 # ### END LIBTOOL TAG CONFIG: $tagname
18149
18150 __EOF__
18151
18152
18153 else
18154   # If there is no Makefile yet, we rely on a make rule to execute
18155   # `config.status --recheck' to rerun these tests and create the
18156   # libtool script then.
18157   test -f Makefile && make "$ltmain"
18158 fi
18159
18160
18161 ac_ext=c
18162 ac_cpp='$CPP $CPPFLAGS'
18163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18166
18167 CC="$lt_save_CC"
18168
18169         else
18170           tagname=""
18171         fi
18172         ;;
18173
18174       RC)
18175
18176
18177
18178 # Source file extension for RC test sources.
18179 ac_ext=rc
18180
18181 # Object file extension for compiled RC test sources.
18182 objext=o
18183 objext_RC=$objext
18184
18185 # Code to be used in simple compile tests
18186 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18187
18188 # Code to be used in simple link tests
18189 lt_simple_link_test_code="$lt_simple_compile_test_code"
18190
18191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18192
18193 # If no C compiler was specified, use CC.
18194 LTCC=${LTCC-"$CC"}
18195
18196 # Allow CC to be a program name with arguments.
18197 compiler=$CC
18198
18199
18200 # Allow CC to be a program name with arguments.
18201 lt_save_CC="$CC"
18202 CC=${RC-"windres"}
18203 compiler=$CC
18204 compiler_RC=$CC
18205 lt_cv_prog_compiler_c_o_RC=yes
18206
18207 # The else clause should only fire when bootstrapping the
18208 # libtool distribution, otherwise you forgot to ship ltmain.sh
18209 # with your package, and you will get complaints that there are
18210 # no rules to generate ltmain.sh.
18211 if test -f "$ltmain"; then
18212   # See if we are running on zsh, and set the options which allow our commands through
18213   # without removal of \ escapes.
18214   if test -n "${ZSH_VERSION+set}" ; then
18215     setopt NO_GLOB_SUBST
18216   fi
18217   # Now quote all the things that may contain metacharacters while being
18218   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18219   # variables and quote the copies for generation of the libtool script.
18220   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18221     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18222     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18223     deplibs_check_method reload_flag reload_cmds need_locks \
18224     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18225     lt_cv_sys_global_symbol_to_c_name_address \
18226     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18227     old_postinstall_cmds old_postuninstall_cmds \
18228     compiler_RC \
18229     CC_RC \
18230     LD_RC \
18231     lt_prog_compiler_wl_RC \
18232     lt_prog_compiler_pic_RC \
18233     lt_prog_compiler_static_RC \
18234     lt_prog_compiler_no_builtin_flag_RC \
18235     export_dynamic_flag_spec_RC \
18236     thread_safe_flag_spec_RC \
18237     whole_archive_flag_spec_RC \
18238     enable_shared_with_static_runtimes_RC \
18239     old_archive_cmds_RC \
18240     old_archive_from_new_cmds_RC \
18241     predep_objects_RC \
18242     postdep_objects_RC \
18243     predeps_RC \
18244     postdeps_RC \
18245     compiler_lib_search_path_RC \
18246     archive_cmds_RC \
18247     archive_expsym_cmds_RC \
18248     postinstall_cmds_RC \
18249     postuninstall_cmds_RC \
18250     old_archive_from_expsyms_cmds_RC \
18251     allow_undefined_flag_RC \
18252     no_undefined_flag_RC \
18253     export_symbols_cmds_RC \
18254     hardcode_libdir_flag_spec_RC \
18255     hardcode_libdir_flag_spec_ld_RC \
18256     hardcode_libdir_separator_RC \
18257     hardcode_automatic_RC \
18258     module_cmds_RC \
18259     module_expsym_cmds_RC \
18260     lt_cv_prog_compiler_c_o_RC \
18261     exclude_expsyms_RC \
18262     include_expsyms_RC; do
18263
18264     case $var in
18265     old_archive_cmds_RC | \
18266     old_archive_from_new_cmds_RC | \
18267     archive_cmds_RC | \
18268     archive_expsym_cmds_RC | \
18269     module_cmds_RC | \
18270     module_expsym_cmds_RC | \
18271     old_archive_from_expsyms_cmds_RC | \
18272     export_symbols_cmds_RC | \
18273     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18274     postinstall_cmds | postuninstall_cmds | \
18275     old_postinstall_cmds | old_postuninstall_cmds | \
18276     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18277       # Double-quote double-evaled strings.
18278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18279       ;;
18280     *)
18281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18282       ;;
18283     esac
18284   done
18285
18286   case $lt_echo in
18287   *'\$0 --fallback-echo"')
18288     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18289     ;;
18290   esac
18291
18292 cfgfile="$ofile"
18293
18294   cat <<__EOF__ >> "$cfgfile"
18295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18296
18297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18298
18299 # Shell to use when invoking shell scripts.
18300 SHELL=$lt_SHELL
18301
18302 # Whether or not to build shared libraries.
18303 build_libtool_libs=$enable_shared
18304
18305 # Whether or not to build static libraries.
18306 build_old_libs=$enable_static
18307
18308 # Whether or not to add -lc for building shared libraries.
18309 build_libtool_need_lc=$archive_cmds_need_lc_RC
18310
18311 # Whether or not to disallow shared libs when runtime libs are static
18312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18313
18314 # Whether or not to optimize for fast installation.
18315 fast_install=$enable_fast_install
18316
18317 # The host system.
18318 host_alias=$host_alias
18319 host=$host
18320
18321 # An echo program that does not interpret backslashes.
18322 echo=$lt_echo
18323
18324 # The archiver.
18325 AR=$lt_AR
18326 AR_FLAGS=$lt_AR_FLAGS
18327
18328 # A C compiler.
18329 LTCC=$lt_LTCC
18330
18331 # A language-specific compiler.
18332 CC=$lt_compiler_RC
18333
18334 # Is the compiler the GNU C compiler?
18335 with_gcc=$GCC_RC
18336
18337 # An ERE matcher.
18338 EGREP=$lt_EGREP
18339
18340 # The linker used to build libraries.
18341 LD=$lt_LD_RC
18342
18343 # Whether we need hard or soft links.
18344 LN_S=$lt_LN_S
18345
18346 # A BSD-compatible nm program.
18347 NM=$lt_NM
18348
18349 # A symbol stripping program
18350 STRIP=$STRIP
18351
18352 # Used to examine libraries when file_magic_cmd begins "file"
18353 MAGIC_CMD=$MAGIC_CMD
18354
18355 # Used on cygwin: DLL creation program.
18356 DLLTOOL="$DLLTOOL"
18357
18358 # Used on cygwin: object dumper.
18359 OBJDUMP="$OBJDUMP"
18360
18361 # Used on cygwin: assembler.
18362 AS="$AS"
18363
18364 # The name of the directory that contains temporary libtool files.
18365 objdir=$objdir
18366
18367 # How to create reloadable object files.
18368 reload_flag=$lt_reload_flag
18369 reload_cmds=$lt_reload_cmds
18370
18371 # How to pass a linker flag through the compiler.
18372 wl=$lt_lt_prog_compiler_wl_RC
18373
18374 # Object file suffix (normally "o").
18375 objext="$ac_objext"
18376
18377 # Old archive suffix (normally "a").
18378 libext="$libext"
18379
18380 # Shared library suffix (normally ".so").
18381 shrext='$shrext'
18382
18383 # Executable file suffix (normally "").
18384 exeext="$exeext"
18385
18386 # Additional compiler flags for building library objects.
18387 pic_flag=$lt_lt_prog_compiler_pic_RC
18388 pic_mode=$pic_mode
18389
18390 # What is the maximum length of a command?
18391 max_cmd_len=$lt_cv_sys_max_cmd_len
18392
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18395
18396 # Must we lock files when doing compilation ?
18397 need_locks=$lt_need_locks
18398
18399 # Do we need the lib prefix for modules?
18400 need_lib_prefix=$need_lib_prefix
18401
18402 # Do we need a version for libraries?
18403 need_version=$need_version
18404
18405 # Whether dlopen is supported.
18406 dlopen_support=$enable_dlopen
18407
18408 # Whether dlopen of programs is supported.
18409 dlopen_self=$enable_dlopen_self
18410
18411 # Whether dlopen of statically linked programs is supported.
18412 dlopen_self_static=$enable_dlopen_self_static
18413
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static_RC
18416
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18419
18420 # Compiler flag to allow reflexive dlopens.
18421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18422
18423 # Compiler flag to generate shared objects directly from archives.
18424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18425
18426 # Compiler flag to generate thread-safe objects.
18427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18428
18429 # Library versioning type.
18430 version_type=$version_type
18431
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18434
18435 # List of archive names.  First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME.
18437 library_names_spec=$lt_library_names_spec
18438
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18441
18442 # Commands used to build and install an old-style archive.
18443 RANLIB=$lt_RANLIB
18444 old_archive_cmds=$lt_old_archive_cmds_RC
18445 old_postinstall_cmds=$lt_old_postinstall_cmds
18446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18447
18448 # Create an old-style archive from a shared archive.
18449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18450
18451 # Create a temporary old-style archive to link instead of a shared archive.
18452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18453
18454 # Commands used to build and install a shared archive.
18455 archive_cmds=$lt_archive_cmds_RC
18456 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18457 postinstall_cmds=$lt_postinstall_cmds
18458 postuninstall_cmds=$lt_postuninstall_cmds
18459
18460 # Commands used to build a loadable module (assumed same as above if empty)
18461 module_cmds=$lt_module_cmds_RC
18462 module_expsym_cmds=$lt_module_expsym_cmds_RC
18463
18464 # Commands to strip libraries.
18465 old_striplib=$lt_old_striplib
18466 striplib=$lt_striplib
18467
18468 # Dependencies to place before the objects being linked to create a
18469 # shared library.
18470 predep_objects=$lt_predep_objects_RC
18471
18472 # Dependencies to place after the objects being linked to create a
18473 # shared library.
18474 postdep_objects=$lt_postdep_objects_RC
18475
18476 # Dependencies to place before the objects being linked to create a
18477 # shared library.
18478 predeps=$lt_predeps_RC
18479
18480 # Dependencies to place after the objects being linked to create a
18481 # shared library.
18482 postdeps=$lt_postdeps_RC
18483
18484 # The library search path used internally by the compiler when linking
18485 # a shared library.
18486 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18487
18488 # Method to check whether dependent libraries are shared objects.
18489 deplibs_check_method=$lt_deplibs_check_method
18490
18491 # Command to use when deplibs_check_method == file_magic.
18492 file_magic_cmd=$lt_file_magic_cmd
18493
18494 # Flag that allows shared libraries with undefined symbols to be built.
18495 allow_undefined_flag=$lt_allow_undefined_flag_RC
18496
18497 # Flag that forces no undefined symbols.
18498 no_undefined_flag=$lt_no_undefined_flag_RC
18499
18500 # Commands used to finish a libtool library installation in a directory.
18501 finish_cmds=$lt_finish_cmds
18502
18503 # Same as above, but a single script fragment to be evaled but not shown.
18504 finish_eval=$lt_finish_eval
18505
18506 # Take the output of nm and produce a listing of raw symbols and C names.
18507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18508
18509 # Transform the output of nm in a proper C declaration
18510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18511
18512 # Transform the output of nm in a C name address pair
18513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18514
18515 # This is the shared library runtime path variable.
18516 runpath_var=$runpath_var
18517
18518 # This is the shared library path variable.
18519 shlibpath_var=$shlibpath_var
18520
18521 # Is shlibpath searched before the hard-coded library search path?
18522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18523
18524 # How to hardcode a shared library path into an executable.
18525 hardcode_action=$hardcode_action_RC
18526
18527 # Whether we should hardcode library paths into libraries.
18528 hardcode_into_libs=$hardcode_into_libs
18529
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18533
18534 # If ld is used when linking, flag to hardcode \$libdir into
18535 # a binary during linking. This must work even if \$libdir does
18536 # not exist.
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18538
18539 # Whether we need a single -rpath flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18541
18542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543 # resulting binary.
18544 hardcode_direct=$hardcode_direct_RC
18545
18546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_minus_L=$hardcode_minus_L_RC
18549
18550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551 # the resulting binary.
18552 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18553
18554 # Set to yes if building a shared library automatically hardcodes DIR into the library
18555 # and all subsequent libraries and executables linked against it.
18556 hardcode_automatic=$hardcode_automatic_RC
18557
18558 # Variables whose values should be saved in libtool wrapper scripts and
18559 # restored at relink time.
18560 variables_saved_for_relink="$variables_saved_for_relink"
18561
18562 # Whether libtool must link a program against all its dependency libraries.
18563 link_all_deplibs=$link_all_deplibs_RC
18564
18565 # Compile-time system search path for libraries
18566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18567
18568 # Run-time system search path for libraries
18569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18570
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path="$fix_srcfile_path_RC"
18573
18574 # Set to yes if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_RC
18576
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_RC
18579
18580 # The commands to extract the exported symbol list from a shared archive.
18581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18582
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_RC
18585
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_RC
18588
18589 # ### END LIBTOOL TAG CONFIG: $tagname
18590
18591 __EOF__
18592
18593
18594 else
18595   # If there is no Makefile yet, we rely on a make rule to execute
18596   # `config.status --recheck' to rerun these tests and create the
18597   # libtool script then.
18598   test -f Makefile && make "$ltmain"
18599 fi
18600
18601
18602 ac_ext=c
18603 ac_cpp='$CPP $CPPFLAGS'
18604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18607
18608 CC="$lt_save_CC"
18609
18610         ;;
18611
18612       *)
18613         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18614 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18615    { (exit 1); exit 1; }; }
18616         ;;
18617       esac
18618
18619       # Append the new tag name to the list of available tags.
18620       if test -n "$tagname" ; then
18621       available_tags="$available_tags $tagname"
18622     fi
18623     fi
18624   done
18625   IFS="$lt_save_ifs"
18626
18627   # Now substitute the updated list of available tags.
18628   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18629     mv "${ofile}T" "$ofile"
18630     chmod +x "$ofile"
18631   else
18632     rm -f "${ofile}T"
18633     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18634 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18635    { (exit 1); exit 1; }; }
18636   fi
18637 fi
18638
18639
18640
18641 # This can be used to rebuild libtool when needed
18642 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18643
18644 # Always use our own libtool.
18645 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18646
18647 # Prevent multiple expansion
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669 # Extract the first word of "dot", so it can be a program name with args.
18670 set dummy dot; ac_word=$2
18671 echo "$as_me:$LINENO: checking for $ac_word" >&5
18672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18673 if test "${ac_cv_path_DOT+set}" = set; then
18674   echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676   case $DOT in
18677   [\\/]* | ?:[\\/]*)
18678   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18679   ;;
18680   *)
18681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682 for as_dir in $PATH
18683 do
18684   IFS=$as_save_IFS
18685   test -z "$as_dir" && as_dir=.
18686   for ac_exec_ext in '' $ac_executable_extensions; do
18687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18690     break 2
18691   fi
18692 done
18693 done
18694
18695   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18696   ;;
18697 esac
18698 fi
18699 DOT=$ac_cv_path_DOT
18700
18701 if test -n "$DOT"; then
18702   echo "$as_me:$LINENO: result: $DOT" >&5
18703 echo "${ECHO_T}$DOT" >&6
18704 else
18705   echo "$as_me:$LINENO: result: no" >&5
18706 echo "${ECHO_T}no" >&6
18707 fi
18708
18709 # Extract the first word of "etags", so it can be a program name with args.
18710 set dummy etags; ac_word=$2
18711 echo "$as_me:$LINENO: checking for $ac_word" >&5
18712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18713 if test "${ac_cv_path_ETAGS+set}" = set; then
18714   echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716   case $ETAGS in
18717   [\\/]* | ?:[\\/]*)
18718   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18719   ;;
18720   *)
18721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18722 for as_dir in $PATH
18723 do
18724   IFS=$as_save_IFS
18725   test -z "$as_dir" && as_dir=.
18726   for ac_exec_ext in '' $ac_executable_extensions; do
18727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18728     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18730     break 2
18731   fi
18732 done
18733 done
18734
18735   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18736   ;;
18737 esac
18738 fi
18739 ETAGS=$ac_cv_path_ETAGS
18740
18741 if test -n "$ETAGS"; then
18742   echo "$as_me:$LINENO: result: $ETAGS" >&5
18743 echo "${ECHO_T}$ETAGS" >&6
18744 else
18745   echo "$as_me:$LINENO: result: no" >&5
18746 echo "${ECHO_T}no" >&6
18747 fi
18748
18749 etags_version=`$ETAGS --version 2>&1`
18750 case "$etags_version" in
18751         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18752         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18753         *) ETAGSFLAGS="" ;;
18754 esac
18755 ETAGSFLAGS=$ETAGSFLAGS
18756
18757 # Extract the first word of "python", so it can be a program name with args.
18758 set dummy python; ac_word=$2
18759 echo "$as_me:$LINENO: checking for $ac_word" >&5
18760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761 if test "${ac_cv_path_PYTHON+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   case $PYTHON in
18765   [\\/]* | ?:[\\/]*)
18766   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18767   ;;
18768   *)
18769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18771 do
18772   IFS=$as_save_IFS
18773   test -z "$as_dir" && as_dir=.
18774   for ac_exec_ext in '' $ac_executable_extensions; do
18775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778     break 2
18779   fi
18780 done
18781 done
18782
18783   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18784   ;;
18785 esac
18786 fi
18787 PYTHON=$ac_cv_path_PYTHON
18788
18789 if test -n "$PYTHON"; then
18790   echo "$as_me:$LINENO: result: $PYTHON" >&5
18791 echo "${ECHO_T}$PYTHON" >&6
18792 else
18793   echo "$as_me:$LINENO: result: no" >&5
18794 echo "${ECHO_T}no" >&6
18795 fi
18796
18797 if test "$PYTHON" = "false"
18798 then
18799         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18800 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18801 fi
18802 # Extract the first word of "qmtest", so it can be a program name with args.
18803 set dummy qmtest; ac_word=$2
18804 echo "$as_me:$LINENO: checking for $ac_word" >&5
18805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18806 if test "${ac_cv_path_QMTEST+set}" = set; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   case $QMTEST in
18810   [\\/]* | ?:[\\/]*)
18811   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18812   ;;
18813   *)
18814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18815 for as_dir in $PATH
18816 do
18817   IFS=$as_save_IFS
18818   test -z "$as_dir" && as_dir=.
18819   for ac_exec_ext in '' $ac_executable_extensions; do
18820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18821     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18823     break 2
18824   fi
18825 done
18826 done
18827
18828   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18829   ;;
18830 esac
18831 fi
18832 QMTEST=$ac_cv_path_QMTEST
18833
18834 if test -n "$QMTEST"; then
18835   echo "$as_me:$LINENO: result: $QMTEST" >&5
18836 echo "${ECHO_T}$QMTEST" >&6
18837 else
18838   echo "$as_me:$LINENO: result: no" >&5
18839 echo "${ECHO_T}no" >&6
18840 fi
18841
18842 if test "$QMTEST" = "false"
18843 then
18844         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18845 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18846 fi
18847
18848 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18849 pymajor=`echo $pyversion | cut -d. -f1`
18850 pyminor=`echo $pyversion | cut -d. -f2`
18851
18852 if test "$pymajor" -ge "2"
18853 then
18854         if test "$pymajor" -eq "2"
18855         then
18856                 if test "$pyminor" -lt "2"
18857                 then
18858                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18859 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18860                 fi
18861         fi
18862 else
18863         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18864 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18865 fi
18866
18867
18868
18869
18870 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18871 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18872 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18873   echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875   ac_check_lib_save_LIBS=$LIBS
18876 LIBS="-lelf  $LIBS"
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h.  */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h.  */
18883
18884 /* Override any gcc2 internal prototype to avoid an error.  */
18885 #ifdef __cplusplus
18886 extern "C"
18887 #endif
18888 /* We use char because int might match the return type of a gcc2
18889    builtin and then its argument prototype would still apply.  */
18890 char elf_begin ();
18891 int
18892 main ()
18893 {
18894 elf_begin ();
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18901   (eval $ac_link) 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } &&
18908          { ac_try='test -z "$ac_c_werror_flag"
18909                          || test ! -s conftest.err'
18910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911   (eval $ac_try) 2>&5
18912   ac_status=$?
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); }; } &&
18915          { ac_try='test -s conftest$ac_exeext'
18916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917   (eval $ac_try) 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; }; then
18921   ac_cv_lib_elf_elf_begin=yes
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_cv_lib_elf_elf_begin=no
18927 fi
18928 rm -f conftest.err conftest.$ac_objext \
18929       conftest$ac_exeext conftest.$ac_ext
18930 LIBS=$ac_check_lib_save_LIBS
18931 fi
18932 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18934 if test $ac_cv_lib_elf_elf_begin = yes; then
18935   cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LIBELF 1
18937 _ACEOF
18938
18939   LIBS="-lelf $LIBS"
18940
18941 fi
18942
18943
18944 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18945 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18946 if test "${ac_cv_search_dlopen+set}" = set; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   ac_func_search_save_LIBS=$LIBS
18950 ac_cv_search_dlopen=no
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957
18958 /* Override any gcc2 internal prototype to avoid an error.  */
18959 #ifdef __cplusplus
18960 extern "C"
18961 #endif
18962 /* We use char because int might match the return type of a gcc2
18963    builtin and then its argument prototype would still apply.  */
18964 char dlopen ();
18965 int
18966 main ()
18967 {
18968 dlopen ();
18969   ;
18970   return 0;
18971 }
18972 _ACEOF
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18975   (eval $ac_link) 2>conftest.er1
18976   ac_status=$?
18977   grep -v '^ *+' conftest.er1 >conftest.err
18978   rm -f conftest.er1
18979   cat conftest.err >&5
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); } &&
18982          { ac_try='test -z "$ac_c_werror_flag"
18983                          || test ! -s conftest.err'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; } &&
18989          { ac_try='test -s conftest$ac_exeext'
18990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991   (eval $ac_try) 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); }; }; then
18995   ac_cv_search_dlopen="none required"
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000 fi
19001 rm -f conftest.err conftest.$ac_objext \
19002       conftest$ac_exeext conftest.$ac_ext
19003 if test "$ac_cv_search_dlopen" = no; then
19004   for ac_lib in dl; do
19005     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19006     cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012
19013 /* Override any gcc2 internal prototype to avoid an error.  */
19014 #ifdef __cplusplus
19015 extern "C"
19016 #endif
19017 /* We use char because int might match the return type of a gcc2
19018    builtin and then its argument prototype would still apply.  */
19019 char dlopen ();
19020 int
19021 main ()
19022 {
19023 dlopen ();
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19030   (eval $ac_link) 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } &&
19037          { ac_try='test -z "$ac_c_werror_flag"
19038                          || test ! -s conftest.err'
19039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040   (eval $ac_try) 2>&5
19041   ac_status=$?
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); }; } &&
19044          { ac_try='test -s conftest$ac_exeext'
19045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046   (eval $ac_try) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; }; then
19050   ac_cv_search_dlopen="-l$ac_lib"
19051 break
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 fi
19057 rm -f conftest.err conftest.$ac_objext \
19058       conftest$ac_exeext conftest.$ac_ext
19059   done
19060 fi
19061 LIBS=$ac_func_search_save_LIBS
19062 fi
19063 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19064 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19065 if test "$ac_cv_search_dlopen" != no; then
19066   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19067
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_DLOPEN 1
19070 _ACEOF
19071
19072 else
19073   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19074 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19075 fi
19076
19077
19078 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19079 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19080 if test "${ac_cv_search_mallinfo+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   ac_func_search_save_LIBS=$LIBS
19084 ac_cv_search_mallinfo=no
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092 /* Override any gcc2 internal prototype to avoid an error.  */
19093 #ifdef __cplusplus
19094 extern "C"
19095 #endif
19096 /* We use char because int might match the return type of a gcc2
19097    builtin and then its argument prototype would still apply.  */
19098 char mallinfo ();
19099 int
19100 main ()
19101 {
19102 mallinfo ();
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109   (eval $ac_link) 2>conftest.er1
19110   ac_status=$?
19111   grep -v '^ *+' conftest.er1 >conftest.err
19112   rm -f conftest.er1
19113   cat conftest.err >&5
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); } &&
19116          { ac_try='test -z "$ac_c_werror_flag"
19117                          || test ! -s conftest.err'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; } &&
19123          { ac_try='test -s conftest$ac_exeext'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; }; then
19129   ac_cv_search_mallinfo="none required"
19130 else
19131   echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 fi
19135 rm -f conftest.err conftest.$ac_objext \
19136       conftest$ac_exeext conftest.$ac_ext
19137 if test "$ac_cv_search_mallinfo" = no; then
19138   for ac_lib in malloc; do
19139     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19140     cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h.  */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h.  */
19146
19147 /* Override any gcc2 internal prototype to avoid an error.  */
19148 #ifdef __cplusplus
19149 extern "C"
19150 #endif
19151 /* We use char because int might match the return type of a gcc2
19152    builtin and then its argument prototype would still apply.  */
19153 char mallinfo ();
19154 int
19155 main ()
19156 {
19157 mallinfo ();
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164   (eval $ac_link) 2>conftest.er1
19165   ac_status=$?
19166   grep -v '^ *+' conftest.er1 >conftest.err
19167   rm -f conftest.er1
19168   cat conftest.err >&5
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); } &&
19171          { ac_try='test -z "$ac_c_werror_flag"
19172                          || test ! -s conftest.err'
19173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174   (eval $ac_try) 2>&5
19175   ac_status=$?
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); }; } &&
19178          { ac_try='test -s conftest$ac_exeext'
19179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180   (eval $ac_try) 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; }; then
19184   ac_cv_search_mallinfo="-l$ac_lib"
19185 break
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 fi
19191 rm -f conftest.err conftest.$ac_objext \
19192       conftest$ac_exeext conftest.$ac_ext
19193   done
19194 fi
19195 LIBS=$ac_func_search_save_LIBS
19196 fi
19197 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19198 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19199 if test "$ac_cv_search_mallinfo" != no; then
19200   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19201
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_MALLINFO 1
19204 _ACEOF
19205
19206 fi
19207
19208
19209 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19210 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19212   echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214   ac_func_search_save_LIBS=$LIBS
19215 ac_cv_search_pthread_mutex_lock=no
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h.  */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h.  */
19222
19223 /* Override any gcc2 internal prototype to avoid an error.  */
19224 #ifdef __cplusplus
19225 extern "C"
19226 #endif
19227 /* We use char because int might match the return type of a gcc2
19228    builtin and then its argument prototype would still apply.  */
19229 char pthread_mutex_lock ();
19230 int
19231 main ()
19232 {
19233 pthread_mutex_lock ();
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240   (eval $ac_link) 2>conftest.er1
19241   ac_status=$?
19242   grep -v '^ *+' conftest.er1 >conftest.err
19243   rm -f conftest.er1
19244   cat conftest.err >&5
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); } &&
19247          { ac_try='test -z "$ac_c_werror_flag"
19248                          || test ! -s conftest.err'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; } &&
19254          { ac_try='test -s conftest$ac_exeext'
19255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256   (eval $ac_try) 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; }; then
19260   ac_cv_search_pthread_mutex_lock="none required"
19261 else
19262   echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 fi
19266 rm -f conftest.err conftest.$ac_objext \
19267       conftest$ac_exeext conftest.$ac_ext
19268 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19269   for ac_lib in pthread; do
19270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19271     cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277
19278 /* Override any gcc2 internal prototype to avoid an error.  */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 /* We use char because int might match the return type of a gcc2
19283    builtin and then its argument prototype would still apply.  */
19284 char pthread_mutex_lock ();
19285 int
19286 main ()
19287 {
19288 pthread_mutex_lock ();
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295   (eval $ac_link) 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_c_werror_flag"
19303                          || test ! -s conftest.err'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; } &&
19309          { ac_try='test -s conftest$ac_exeext'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; }; then
19315   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19316 break
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 fi
19322 rm -f conftest.err conftest.$ac_objext \
19323       conftest$ac_exeext conftest.$ac_ext
19324   done
19325 fi
19326 LIBS=$ac_func_search_save_LIBS
19327 fi
19328 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19329 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19330 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19331   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19332   HAVE_PTHREAD_MUTEX_LOCK=1
19333 else
19334   HAVE_PTHREAD_MUTEX_LOCK=0
19335 fi
19336
19337
19338
19339 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19341 if test "${ac_cv_header_stdc+set}" = set; then
19342   echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344   cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350 #include <stdlib.h>
19351 #include <stdarg.h>
19352 #include <string.h>
19353 #include <float.h>
19354
19355 int
19356 main ()
19357 {
19358
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365   (eval $ac_compile) 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_c_werror_flag"
19373                          || test ! -s conftest.err'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; } &&
19379          { ac_try='test -s conftest.$ac_objext'
19380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381   (eval $ac_try) 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; }; then
19385   ac_cv_header_stdc=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 ac_cv_header_stdc=no
19391 fi
19392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19393
19394 if test $ac_cv_header_stdc = yes; then
19395   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19396   cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402 #include <string.h>
19403
19404 _ACEOF
19405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19406   $EGREP "memchr" >/dev/null 2>&1; then
19407   :
19408 else
19409   ac_cv_header_stdc=no
19410 fi
19411 rm -f conftest*
19412
19413 fi
19414
19415 if test $ac_cv_header_stdc = yes; then
19416   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19417   cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 #include <stdlib.h>
19424
19425 _ACEOF
19426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19427   $EGREP "free" >/dev/null 2>&1; then
19428   :
19429 else
19430   ac_cv_header_stdc=no
19431 fi
19432 rm -f conftest*
19433
19434 fi
19435
19436 if test $ac_cv_header_stdc = yes; then
19437   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19438   if test "$cross_compiling" = yes; then
19439   :
19440 else
19441   cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447 #include <ctype.h>
19448 #if ((' ' & 0x0FF) == 0x020)
19449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19451 #else
19452 # define ISLOWER(c) \
19453                    (('a' <= (c) && (c) <= 'i') \
19454                      || ('j' <= (c) && (c) <= 'r') \
19455                      || ('s' <= (c) && (c) <= 'z'))
19456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19457 #endif
19458
19459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19460 int
19461 main ()
19462 {
19463   int i;
19464   for (i = 0; i < 256; i++)
19465     if (XOR (islower (i), ISLOWER (i))
19466         || toupper (i) != TOUPPER (i))
19467       exit(2);
19468   exit (0);
19469 }
19470 _ACEOF
19471 rm -f conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473   (eval $ac_link) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   :
19483 else
19484   echo "$as_me: program exited with status $ac_status" >&5
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 ( exit $ac_status )
19489 ac_cv_header_stdc=no
19490 fi
19491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 fi
19493 fi
19494 fi
19495 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19496 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19497 if test $ac_cv_header_stdc = yes; then
19498
19499 cat >>confdefs.h <<\_ACEOF
19500 #define STDC_HEADERS 1
19501 _ACEOF
19502
19503 fi
19504
19505 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19506 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19507 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <sys/types.h>
19517 #include <sys/wait.h>
19518 #ifndef WEXITSTATUS
19519 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19520 #endif
19521 #ifndef WIFEXITED
19522 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19523 #endif
19524
19525 int
19526 main ()
19527 {
19528   int s;
19529   wait (&s);
19530   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537   (eval $ac_compile) 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_c_werror_flag"
19545                          || test ! -s conftest.err'
19546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547   (eval $ac_try) 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; } &&
19551          { ac_try='test -s conftest.$ac_objext'
19552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553   (eval $ac_try) 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   ac_cv_header_sys_wait_h=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_cv_header_sys_wait_h=no
19563 fi
19564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19565 fi
19566 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19567 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19568 if test $ac_cv_header_sys_wait_h = yes; then
19569
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_SYS_WAIT_H 1
19572 _ACEOF
19573
19574 fi
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19589 do
19590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19592   echo "$as_me:$LINENO: checking for $ac_header" >&5
19593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 fi
19597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19599 else
19600   # Is the header compilable?
19601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 $ac_includes_default
19610 #include <$ac_header>
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614   (eval $ac_compile) 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } &&
19621          { ac_try='test -z "$ac_c_werror_flag"
19622                          || test ! -s conftest.err'
19623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624   (eval $ac_try) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; } &&
19628          { ac_try='test -s conftest.$ac_objext'
19629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630   (eval $ac_try) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); }; }; then
19634   ac_header_compiler=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_header_compiler=no
19640 fi
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19643 echo "${ECHO_T}$ac_header_compiler" >&6
19644
19645 # Is the header present?
19646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 #include <$ac_header>
19655 _ACEOF
19656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } >/dev/null; then
19664   if test -s conftest.err; then
19665     ac_cpp_err=$ac_c_preproc_warn_flag
19666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19667   else
19668     ac_cpp_err=
19669   fi
19670 else
19671   ac_cpp_err=yes
19672 fi
19673 if test -z "$ac_cpp_err"; then
19674   ac_header_preproc=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679   ac_header_preproc=no
19680 fi
19681 rm -f conftest.err conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19683 echo "${ECHO_T}$ac_header_preproc" >&6
19684
19685 # So?  What about this header?
19686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19687   yes:no: )
19688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19692     ac_header_preproc=yes
19693     ;;
19694   no:yes:* )
19695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19707     (
19708       cat <<\_ASBOX
19709 ## ----------------------------------- ##
19710 ## Report this to llvmbugs@cs.uiuc.edu ##
19711 ## ----------------------------------- ##
19712 _ASBOX
19713     ) |
19714       sed "s/^/$as_me: WARNING:     /" >&2
19715     ;;
19716 esac
19717 echo "$as_me:$LINENO: checking for $ac_header" >&5
19718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   eval "$as_ac_Header=\$ac_header_preproc"
19723 fi
19724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726
19727 fi
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729   cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19731 _ACEOF
19732
19733 fi
19734
19735 done
19736
19737
19738 if test "${ac_cv_header_sys_types_h+set}" = set; then
19739   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19740 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19741 if test "${ac_cv_header_sys_types_h+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 fi
19744 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19745 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19746 else
19747   # Is the header compilable?
19748 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19749 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h.  */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h.  */
19756 $ac_includes_default
19757 #include <sys/types.h>
19758 _ACEOF
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761   (eval $ac_compile) 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } &&
19768          { ac_try='test -z "$ac_c_werror_flag"
19769                          || test ! -s conftest.err'
19770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771   (eval $ac_try) 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; } &&
19775          { ac_try='test -s conftest.$ac_objext'
19776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777   (eval $ac_try) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; }; then
19781   ac_header_compiler=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 ac_header_compiler=no
19787 fi
19788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19790 echo "${ECHO_T}$ac_header_compiler" >&6
19791
19792 # Is the header present?
19793 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19794 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 #include <sys/types.h>
19802 _ACEOF
19803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } >/dev/null; then
19811   if test -s conftest.err; then
19812     ac_cpp_err=$ac_c_preproc_warn_flag
19813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814   else
19815     ac_cpp_err=
19816   fi
19817 else
19818   ac_cpp_err=yes
19819 fi
19820 if test -z "$ac_cpp_err"; then
19821   ac_header_preproc=yes
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826   ac_header_preproc=no
19827 fi
19828 rm -f conftest.err conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19830 echo "${ECHO_T}$ac_header_preproc" >&6
19831
19832 # So?  What about this header?
19833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19834   yes:no: )
19835     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19836 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19837     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19838 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19839     ac_header_preproc=yes
19840     ;;
19841   no:yes:* )
19842     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19843 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19844     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19845 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19846     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19847 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19848     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19849 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19850     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19851 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19852     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19853 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19854     (
19855       cat <<\_ASBOX
19856 ## ----------------------------------- ##
19857 ## Report this to llvmbugs@cs.uiuc.edu ##
19858 ## ----------------------------------- ##
19859 _ASBOX
19860     ) |
19861       sed "s/^/$as_me: WARNING:     /" >&2
19862     ;;
19863 esac
19864 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19865 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19866 if test "${ac_cv_header_sys_types_h+set}" = set; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869   ac_cv_header_sys_types_h=$ac_header_preproc
19870 fi
19871 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19872 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19873
19874 fi
19875 if test $ac_cv_header_sys_types_h = yes; then
19876   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19877 else
19878   INCLUDE_SYS_TYPES_H=''
19879 fi
19880
19881
19882
19883 if test "${ac_cv_header_inttypes_h+set}" = set; then
19884   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19885 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19886 if test "${ac_cv_header_inttypes_h+set}" = set; then
19887   echo $ECHO_N "(cached) $ECHO_C" >&6
19888 fi
19889 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19890 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19891 else
19892   # Is the header compilable?
19893 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19894 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 $ac_includes_default
19902 #include <inttypes.h>
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906   (eval $ac_compile) 2>conftest.er1
19907   ac_status=$?
19908   grep -v '^ *+' conftest.er1 >conftest.err
19909   rm -f conftest.er1
19910   cat conftest.err >&5
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); } &&
19913          { ac_try='test -z "$ac_c_werror_flag"
19914                          || test ! -s conftest.err'
19915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916   (eval $ac_try) 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; } &&
19920          { ac_try='test -s conftest.$ac_objext'
19921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922   (eval $ac_try) 2>&5
19923   ac_status=$?
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); }; }; then
19926   ac_header_compiler=yes
19927 else
19928   echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19930
19931 ac_header_compiler=no
19932 fi
19933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 echo "${ECHO_T}$ac_header_compiler" >&6
19936
19937 # Is the header present?
19938 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19939 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h.  */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h.  */
19946 #include <inttypes.h>
19947 _ACEOF
19948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19950   ac_status=$?
19951   grep -v '^ *+' conftest.er1 >conftest.err
19952   rm -f conftest.er1
19953   cat conftest.err >&5
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } >/dev/null; then
19956   if test -s conftest.err; then
19957     ac_cpp_err=$ac_c_preproc_warn_flag
19958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19959   else
19960     ac_cpp_err=
19961   fi
19962 else
19963   ac_cpp_err=yes
19964 fi
19965 if test -z "$ac_cpp_err"; then
19966   ac_header_preproc=yes
19967 else
19968   echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971   ac_header_preproc=no
19972 fi
19973 rm -f conftest.err conftest.$ac_ext
19974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 echo "${ECHO_T}$ac_header_preproc" >&6
19976
19977 # So?  What about this header?
19978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979   yes:no: )
19980     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19981 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19983 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19984     ac_header_preproc=yes
19985     ;;
19986   no:yes:* )
19987     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19988 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19989     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
19990 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
19991     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19992 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19993     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
19994 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19995     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19996 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19997     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19998 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
19999     (
20000       cat <<\_ASBOX
20001 ## ----------------------------------- ##
20002 ## Report this to llvmbugs@cs.uiuc.edu ##
20003 ## ----------------------------------- ##
20004 _ASBOX
20005     ) |
20006       sed "s/^/$as_me: WARNING:     /" >&2
20007     ;;
20008 esac
20009 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20010 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20011 if test "${ac_cv_header_inttypes_h+set}" = set; then
20012   echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014   ac_cv_header_inttypes_h=$ac_header_preproc
20015 fi
20016 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20017 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20018
20019 fi
20020 if test $ac_cv_header_inttypes_h = yes; then
20021   INCLUDE_INTTYPES_H='#include <inttypes.h>'
20022 else
20023   INCLUDE_INTTYPES_H=''
20024 fi
20025
20026
20027
20028 if test "${ac_cv_header_stdint_h+set}" = set; then
20029   echo "$as_me:$LINENO: checking for stdint.h" >&5
20030 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20031 if test "${ac_cv_header_stdint_h+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 fi
20034 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20035 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20036 else
20037   # Is the header compilable?
20038 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20039 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 $ac_includes_default
20047 #include <stdint.h>
20048 _ACEOF
20049 rm -f conftest.$ac_objext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051   (eval $ac_compile) 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } &&
20058          { ac_try='test -z "$ac_c_werror_flag"
20059                          || test ! -s conftest.err'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; } &&
20065          { ac_try='test -s conftest.$ac_objext'
20066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067   (eval $ac_try) 2>&5
20068   ac_status=$?
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); }; }; then
20071   ac_header_compiler=yes
20072 else
20073   echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20075
20076 ac_header_compiler=no
20077 fi
20078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20080 echo "${ECHO_T}$ac_header_compiler" >&6
20081
20082 # Is the header present?
20083 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20084 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h.  */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h.  */
20091 #include <stdint.h>
20092 _ACEOF
20093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } >/dev/null; then
20101   if test -s conftest.err; then
20102     ac_cpp_err=$ac_c_preproc_warn_flag
20103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20104   else
20105     ac_cpp_err=
20106   fi
20107 else
20108   ac_cpp_err=yes
20109 fi
20110 if test -z "$ac_cpp_err"; then
20111   ac_header_preproc=yes
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116   ac_header_preproc=no
20117 fi
20118 rm -f conftest.err conftest.$ac_ext
20119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20120 echo "${ECHO_T}$ac_header_preproc" >&6
20121
20122 # So?  What about this header?
20123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20124   yes:no: )
20125     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20126 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20127     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20128 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20129     ac_header_preproc=yes
20130     ;;
20131   no:yes:* )
20132     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20133 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20134     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20135 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20136     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20137 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20138     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20139 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20140     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20141 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20142     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20143 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20144     (
20145       cat <<\_ASBOX
20146 ## ----------------------------------- ##
20147 ## Report this to llvmbugs@cs.uiuc.edu ##
20148 ## ----------------------------------- ##
20149 _ASBOX
20150     ) |
20151       sed "s/^/$as_me: WARNING:     /" >&2
20152     ;;
20153 esac
20154 echo "$as_me:$LINENO: checking for stdint.h" >&5
20155 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20156 if test "${ac_cv_header_stdint_h+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   ac_cv_header_stdint_h=$ac_header_preproc
20160 fi
20161 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20162 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20163
20164 fi
20165 if test $ac_cv_header_stdint_h = yes; then
20166   INCLUDE_STDINT_H='#include <stdint.h>'
20167 else
20168   INCLUDE_STDINT_H=''
20169 fi
20170
20171
20172
20173
20174
20175 echo "$as_me:$LINENO: checking for pid_t" >&5
20176 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20177 if test "${ac_cv_type_pid_t+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180   cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 $ac_includes_default
20187 int
20188 main ()
20189 {
20190 if ((pid_t *) 0)
20191   return 0;
20192 if (sizeof (pid_t))
20193   return 0;
20194   ;
20195   return 0;
20196 }
20197 _ACEOF
20198 rm -f conftest.$ac_objext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200   (eval $ac_compile) 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } &&
20207          { ac_try='test -z "$ac_c_werror_flag"
20208                          || test ! -s conftest.err'
20209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210   (eval $ac_try) 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); }; } &&
20214          { ac_try='test -s conftest.$ac_objext'
20215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216   (eval $ac_try) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; }; then
20220   ac_cv_type_pid_t=yes
20221 else
20222   echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225 ac_cv_type_pid_t=no
20226 fi
20227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20228 fi
20229 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20230 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20231 if test $ac_cv_type_pid_t = yes; then
20232   :
20233 else
20234
20235 cat >>confdefs.h <<_ACEOF
20236 #define pid_t int
20237 _ACEOF
20238
20239 fi
20240
20241 echo "$as_me:$LINENO: checking for size_t" >&5
20242 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20243 if test "${ac_cv_type_size_t+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246   cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 $ac_includes_default
20253 int
20254 main ()
20255 {
20256 if ((size_t *) 0)
20257   return 0;
20258 if (sizeof (size_t))
20259   return 0;
20260   ;
20261   return 0;
20262 }
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266   (eval $ac_compile) 2>conftest.er1
20267   ac_status=$?
20268   grep -v '^ *+' conftest.er1 >conftest.err
20269   rm -f conftest.er1
20270   cat conftest.err >&5
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); } &&
20273          { ac_try='test -z "$ac_c_werror_flag"
20274                          || test ! -s conftest.err'
20275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276   (eval $ac_try) 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); }; } &&
20280          { ac_try='test -s conftest.$ac_objext'
20281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282   (eval $ac_try) 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }; }; then
20286   ac_cv_type_size_t=yes
20287 else
20288   echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ac_cv_type_size_t=no
20292 fi
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 fi
20295 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20296 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20297 if test $ac_cv_type_size_t = yes; then
20298   :
20299 else
20300
20301 cat >>confdefs.h <<_ACEOF
20302 #define size_t unsigned
20303 _ACEOF
20304
20305 fi
20306
20307 echo "$as_me:$LINENO: checking for int64_t" >&5
20308 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20309 if test "${ac_cv_type_int64_t+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 $ac_includes_default
20319 int
20320 main ()
20321 {
20322 if ((int64_t *) 0)
20323   return 0;
20324 if (sizeof (int64_t))
20325   return 0;
20326   ;
20327   return 0;
20328 }
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332   (eval $ac_compile) 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } &&
20339          { ac_try='test -z "$ac_c_werror_flag"
20340                          || test ! -s conftest.err'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; } &&
20346          { ac_try='test -s conftest.$ac_objext'
20347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348   (eval $ac_try) 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; }; then
20352   ac_cv_type_int64_t=yes
20353 else
20354   echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20356
20357 ac_cv_type_int64_t=no
20358 fi
20359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20360 fi
20361 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20362 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20363 if test $ac_cv_type_int64_t = yes; then
20364
20365 cat >>confdefs.h <<_ACEOF
20366 #define HAVE_INT64_T 1
20367 _ACEOF
20368
20369
20370 else
20371   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20372 echo "$as_me: error: Type int64_t required but not found" >&2;}
20373    { (exit 1); exit 1; }; }
20374 fi
20375
20376 echo "$as_me:$LINENO: checking for uint64_t" >&5
20377 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20378 if test "${ac_cv_type_uint64_t+set}" = set; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381   cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387 $ac_includes_default
20388 int
20389 main ()
20390 {
20391 if ((uint64_t *) 0)
20392   return 0;
20393 if (sizeof (uint64_t))
20394   return 0;
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401   (eval $ac_compile) 2>conftest.er1
20402   ac_status=$?
20403   grep -v '^ *+' conftest.er1 >conftest.err
20404   rm -f conftest.er1
20405   cat conftest.err >&5
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } &&
20408          { ac_try='test -z "$ac_c_werror_flag"
20409                          || test ! -s conftest.err'
20410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411   (eval $ac_try) 2>&5
20412   ac_status=$?
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); }; } &&
20415          { ac_try='test -s conftest.$ac_objext'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; }; then
20421   ac_cv_type_uint64_t=yes
20422 else
20423   echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426 ac_cv_type_uint64_t=no
20427 fi
20428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20429 fi
20430 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20431 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20432 if test $ac_cv_type_uint64_t = yes; then
20433
20434 cat >>confdefs.h <<_ACEOF
20435 #define HAVE_UINT64_T 1
20436 _ACEOF
20437
20438
20439 else
20440   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20441 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20442    { (exit 1); exit 1; }; }
20443 fi
20444
20445 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20446 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20447 if test "${ac_cv_header_time+set}" = set; then
20448   echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450   cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 #include <sys/types.h>
20457 #include <sys/time.h>
20458 #include <time.h>
20459
20460 int
20461 main ()
20462 {
20463 if ((struct tm *) 0)
20464 return 0;
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471   (eval $ac_compile) 2>conftest.er1
20472   ac_status=$?
20473   grep -v '^ *+' conftest.er1 >conftest.err
20474   rm -f conftest.er1
20475   cat conftest.err >&5
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } &&
20478          { ac_try='test -z "$ac_c_werror_flag"
20479                          || test ! -s conftest.err'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; } &&
20485          { ac_try='test -s conftest.$ac_objext'
20486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487   (eval $ac_try) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }; then
20491   ac_cv_header_time=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 ac_cv_header_time=no
20497 fi
20498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20499 fi
20500 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20501 echo "${ECHO_T}$ac_cv_header_time" >&6
20502 if test $ac_cv_header_time = yes; then
20503
20504 cat >>confdefs.h <<\_ACEOF
20505 #define TIME_WITH_SYS_TIME 1
20506 _ACEOF
20507
20508 fi
20509
20510 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20511 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20512 if test "${ac_cv_struct_tm+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h.  */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h.  */
20521 #include <sys/types.h>
20522 #include <time.h>
20523
20524 int
20525 main ()
20526 {
20527 struct tm *tp; tp->tm_sec;
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534   (eval $ac_compile) 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } &&
20541          { ac_try='test -z "$ac_c_werror_flag"
20542                          || test ! -s conftest.err'
20543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544   (eval $ac_try) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; } &&
20548          { ac_try='test -s conftest.$ac_objext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_cv_struct_tm=time.h
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_cv_struct_tm=sys/time.h
20560 fi
20561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562 fi
20563 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20564 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20565 if test $ac_cv_struct_tm = sys/time.h; then
20566
20567 cat >>confdefs.h <<\_ACEOF
20568 #define TM_IN_SYS_TIME 1
20569 _ACEOF
20570
20571 fi
20572
20573
20574
20575         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20576 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20577
20578
20579         ac_ext=c
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20584
20585         if test "$cross_compiling" = yes; then
20586   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20587 See \`config.log' for more details." >&5
20588 echo "$as_me: error: cannot run test program while cross compiling
20589 See \`config.log' for more details." >&2;}
20590    { (exit 1); exit 1; }; }
20591 else
20592   cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 #include <stdio.h>
20599                                  #include <stdlib.h>
20600 int
20601 main ()
20602 {
20603
20604                                  volatile double A, B;
20605                                  char Buffer[100];
20606                                  A = 1;
20607                                  A /= 10.0;
20608                                  sprintf(Buffer, "%a", A);
20609                                  B = atof(Buffer);
20610                                  if (A != B)
20611                                                          return (1);
20612                                  if (A != 0x1.999999999999ap-4)
20613                                                          return (1);
20614                                  return (0);
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest$ac_exeext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20621   (eval $ac_link) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626   (eval $ac_try) 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; }; then
20630   ac_c_printf_a=yes
20631 else
20632   echo "$as_me: program exited with status $ac_status" >&5
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ( exit $ac_status )
20637 ac_c_printf_a=no
20638 fi
20639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20640 fi
20641         ac_ext=c
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646
20647         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20648 echo "${ECHO_T}$ac_c_printf_a" >&6
20649         if test "$ac_c_printf_a" = "yes"; then
20650
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE_PRINTF_A 1
20653 _ACEOF
20654
20655         fi
20656
20657
20658 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20659 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20660 if test "${ac_cv_c_bigendian+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   # See if sys/param.h defines the BYTE_ORDER macro.
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 #include <sys/types.h>
20671 #include <sys/param.h>
20672
20673 int
20674 main ()
20675 {
20676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20677  bogus endian macros
20678 #endif
20679
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686   (eval $ac_compile) 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } &&
20693          { ac_try='test -z "$ac_c_werror_flag"
20694                          || test ! -s conftest.err'
20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696   (eval $ac_try) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; } &&
20700          { ac_try='test -s conftest.$ac_objext'
20701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702   (eval $ac_try) 2>&5
20703   ac_status=$?
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); }; }; then
20706   # It does; now see whether it defined to BIG_ENDIAN or not.
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 #include <sys/types.h>
20714 #include <sys/param.h>
20715
20716 int
20717 main ()
20718 {
20719 #if BYTE_ORDER != BIG_ENDIAN
20720  not big endian
20721 #endif
20722
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext
20728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729   (eval $ac_compile) 2>conftest.er1
20730   ac_status=$?
20731   grep -v '^ *+' conftest.er1 >conftest.err
20732   rm -f conftest.er1
20733   cat conftest.err >&5
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); } &&
20736          { ac_try='test -z "$ac_c_werror_flag"
20737                          || test ! -s conftest.err'
20738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739   (eval $ac_try) 2>&5
20740   ac_status=$?
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); }; } &&
20743          { ac_try='test -s conftest.$ac_objext'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; }; then
20749   ac_cv_c_bigendian=yes
20750 else
20751   echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754 ac_cv_c_bigendian=no
20755 fi
20756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20757 else
20758   echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 # It does not; compile a test program.
20762 if test "$cross_compiling" = yes; then
20763   # try to guess the endianness by grepping values into an object file
20764   ac_cv_c_bigendian=unknown
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20772 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20773 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20774 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20775 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20776 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20777 int
20778 main ()
20779 {
20780  _ascii (); _ebcdic ();
20781   ;
20782   return 0;
20783 }
20784 _ACEOF
20785 rm -f conftest.$ac_objext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787   (eval $ac_compile) 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } &&
20794          { ac_try='test -z "$ac_c_werror_flag"
20795                          || test ! -s conftest.err'
20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797   (eval $ac_try) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; } &&
20801          { ac_try='test -s conftest.$ac_objext'
20802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803   (eval $ac_try) 2>&5
20804   ac_status=$?
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); }; }; then
20807   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20808   ac_cv_c_bigendian=yes
20809 fi
20810 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20811   if test "$ac_cv_c_bigendian" = unknown; then
20812     ac_cv_c_bigendian=no
20813   else
20814     # finding both strings is unlikely to happen, but who knows?
20815     ac_cv_c_bigendian=unknown
20816   fi
20817 fi
20818 else
20819   echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 fi
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824 else
20825   cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831 int
20832 main ()
20833 {
20834   /* Are we little or big endian?  From Harbison&Steele.  */
20835   union
20836   {
20837     long l;
20838     char c[sizeof (long)];
20839   } u;
20840   u.l = 1;
20841   exit (u.c[sizeof (long) - 1] == 1);
20842 }
20843 _ACEOF
20844 rm -f conftest$ac_exeext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846   (eval $ac_link) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851   (eval $ac_try) 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); }; }; then
20855   ac_cv_c_bigendian=no
20856 else
20857   echo "$as_me: program exited with status $ac_status" >&5
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ( exit $ac_status )
20862 ac_cv_c_bigendian=yes
20863 fi
20864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20865 fi
20866 fi
20867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20868 fi
20869 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20870 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20871 case $ac_cv_c_bigendian in
20872   yes)
20873     ENDIAN=big
20874  ;;
20875   no)
20876     ENDIAN=little
20877  ;;
20878   *)
20879     { { echo "$as_me:$LINENO: error: unknown endianness
20880 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20881 echo "$as_me: error: unknown endianness
20882 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20883    { (exit 1); exit 1; }; } ;;
20884 esac
20885
20886
20887 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20888 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20889 if test "${ac_cv_cxx_namespaces+set}" = set; then
20890   echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892
20893
20894  ac_ext=cc
20895 ac_cpp='$CXXCPP $CPPFLAGS'
20896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20899
20900  cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 namespace Outer { namespace Inner { int i = 0; }}
20907 int
20908 main ()
20909 {
20910 using namespace Outer::Inner; return i;
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20917   (eval $ac_compile) 2>conftest.er1
20918   ac_status=$?
20919   grep -v '^ *+' conftest.er1 >conftest.err
20920   rm -f conftest.er1
20921   cat conftest.err >&5
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); } &&
20924          { ac_try='test -z "$ac_cxx_werror_flag"
20925                          || test ! -s conftest.err'
20926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927   (eval $ac_try) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; } &&
20931          { ac_try='test -s conftest.$ac_objext'
20932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933   (eval $ac_try) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ac_cv_cxx_namespaces=yes
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 ac_cv_cxx_namespaces=no
20943 fi
20944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20945  ac_ext=c
20946 ac_cpp='$CPP $CPPFLAGS'
20947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950
20951
20952 fi
20953 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20954 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20955 if test "$ac_cv_cxx_namespaces" = yes; then
20956
20957 cat >>confdefs.h <<\_ACEOF
20958 #define HAVE_NAMESPACES
20959 _ACEOF
20960
20961 fi
20962
20963 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20964 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20965 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968
20969
20970
20971   ac_ext=cc
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977   cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h.  */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h.  */
20983 #include <ext/hash_map>
20984 #ifdef HAVE_NAMESPACES
20985 using namespace std;
20986 #endif
20987 int
20988 main ()
20989 {
20990 hash_map<int, int> t;
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997   (eval $ac_compile) 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -z "$ac_cxx_werror_flag"
21005                          || test ! -s conftest.err'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; } &&
21011          { ac_try='test -s conftest.$ac_objext'
21012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013   (eval $ac_try) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; }; then
21017   ac_cv_cxx_have_std_ext_hash_map=yes
21018 else
21019   echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ac_cv_cxx_have_std_ext_hash_map=no
21023 fi
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21025   ac_ext=c
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031 fi
21032 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21033 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21034  HAVE_STD_EXT_HASH_MAP=0
21035  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21036  then
21037    HAVE_STD_EXT_HASH_MAP=1
21038  fi
21039
21040  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21041 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21042 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21043   echo $ECHO_N "(cached) $ECHO_C" >&6
21044 else
21045
21046
21047
21048   ac_ext=cc
21049 ac_cpp='$CXXCPP $CPPFLAGS'
21050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21053
21054   cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h.  */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h.  */
21060 #include <ext/hash_map>
21061 #ifdef HAVE_NAMESPACES
21062 using namespace __gnu_cxx;
21063 #endif
21064 int
21065 main ()
21066 {
21067 hash_map<int,int> t;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074   (eval $ac_compile) 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -z "$ac_cxx_werror_flag"
21082                          || test ! -s conftest.err'
21083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084   (eval $ac_try) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; } &&
21088          { ac_try='test -s conftest.$ac_objext'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; }; then
21094   ac_cv_cxx_have_gnu_ext_hash_map=yes
21095 else
21096   echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_cv_cxx_have_gnu_ext_hash_map=no
21100 fi
21101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102   ac_ext=c
21103 ac_cpp='$CPP $CPPFLAGS'
21104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107
21108 fi
21109 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21110 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21111  HAVE_GNU_EXT_HASH_MAP=0
21112  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21113  then
21114    HAVE_GNU_EXT_HASH_MAP=1
21115  fi
21116
21117  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21118 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21119 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21120   echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122
21123
21124
21125   ac_ext=cc
21126 ac_cpp='$CXXCPP $CPPFLAGS'
21127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21130
21131   cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 #include <hash_map>
21138 int
21139 main ()
21140 {
21141 hash_map<int,int> t;
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148   (eval $ac_compile) 2>conftest.er1
21149   ac_status=$?
21150   grep -v '^ *+' conftest.er1 >conftest.err
21151   rm -f conftest.er1
21152   cat conftest.err >&5
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); } &&
21155          { ac_try='test -z "$ac_cxx_werror_flag"
21156                          || test ! -s conftest.err'
21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158   (eval $ac_try) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; } &&
21162          { ac_try='test -s conftest.$ac_objext'
21163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164   (eval $ac_try) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   ac_cv_cxx_have_global_hash_map=yes
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173 ac_cv_cxx_have_global_hash_map=no
21174 fi
21175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21176   ac_ext=c
21177 ac_cpp='$CPP $CPPFLAGS'
21178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181
21182 fi
21183 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21184 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21185  HAVE_GLOBAL_HASH_MAP=0
21186  if test "$ac_cv_cxx_have_global_hash_map" = yes
21187  then
21188    HAVE_GLOBAL_HASH_MAP=1
21189  fi
21190
21191 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21192 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21193 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196
21197
21198
21199   ac_ext=cc
21200 ac_cpp='$CXXCPP $CPPFLAGS'
21201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21204
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211 #include <ext/hash_set>
21212 #ifdef HAVE_NAMESPACES
21213 using namespace std;
21214 #endif
21215 int
21216 main ()
21217 {
21218 hash_set<int> t;
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225   (eval $ac_compile) 2>conftest.er1
21226   ac_status=$?
21227   grep -v '^ *+' conftest.er1 >conftest.err
21228   rm -f conftest.er1
21229   cat conftest.err >&5
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); } &&
21232          { ac_try='test -z "$ac_cxx_werror_flag"
21233                          || test ! -s conftest.err'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; } &&
21239          { ac_try='test -s conftest.$ac_objext'
21240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241   (eval $ac_try) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); }; }; then
21245   ac_cv_cxx_have_std_ext_hash_set=yes
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_cv_cxx_have_std_ext_hash_set=no
21251 fi
21252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21253   ac_ext=c
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21258
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21261 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21262  HAVE_STD_EXT_HASH_SET=0
21263  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21264  then
21265    HAVE_STD_EXT_HASH_SET=1
21266  fi
21267
21268  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21269 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21270 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273
21274
21275
21276   ac_ext=cc
21277 ac_cpp='$CXXCPP $CPPFLAGS'
21278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21281
21282   cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 #include <ext/hash_set>
21289 #ifdef HAVE_NAMESPACES
21290 using namespace __gnu_cxx;
21291 #endif
21292 int
21293 main ()
21294 {
21295 hash_set<int> t;
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302   (eval $ac_compile) 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } &&
21309          { ac_try='test -z "$ac_cxx_werror_flag"
21310                          || test ! -s conftest.err'
21311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312   (eval $ac_try) 2>&5
21313   ac_status=$?
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); }; } &&
21316          { ac_try='test -s conftest.$ac_objext'
21317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318   (eval $ac_try) 2>&5
21319   ac_status=$?
21320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321   (exit $ac_status); }; }; then
21322   ac_cv_cxx_have_gnu_ext_hash_set=yes
21323 else
21324   echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ac_cv_cxx_have_gnu_ext_hash_set=no
21328 fi
21329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330   ac_ext=c
21331 ac_cpp='$CPP $CPPFLAGS'
21332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21335
21336 fi
21337 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21338 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21339  HAVE_GNU_EXT_HASH_SET=0
21340  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21341  then
21342    HAVE_GNU_EXT_HASH_SET=1
21343  fi
21344
21345  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21346 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21347 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350
21351
21352
21353   ac_ext=cc
21354 ac_cpp='$CXXCPP $CPPFLAGS'
21355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21358
21359   cat >conftest.$ac_ext <<_ACEOF
21360 /* confdefs.h.  */
21361 _ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h.  */
21365 #include <hash_set>
21366 int
21367 main ()
21368 {
21369 hash_set<int> t; return 0;
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376   (eval $ac_compile) 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } &&
21383          { ac_try='test -z "$ac_cxx_werror_flag"
21384                          || test ! -s conftest.err'
21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386   (eval $ac_try) 2>&5
21387   ac_status=$?
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); }; } &&
21390          { ac_try='test -s conftest.$ac_objext'
21391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392   (eval $ac_try) 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); }; }; then
21396   ac_cv_cxx_have_global_hash_set=yes
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 ac_cv_cxx_have_global_hash_set=no
21402 fi
21403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21404   ac_ext=c
21405 ac_cpp='$CPP $CPPFLAGS'
21406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21409
21410 fi
21411 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21412 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21413  HAVE_GLOBAL_HASH_SET=0
21414  if test "$ac_cv_cxx_have_global_hash_set" = yes
21415  then
21416    HAVE_GLOBAL_HASH_SET=1
21417  fi
21418
21419 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21420 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21421 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21422   echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424
21425
21426
21427   ac_ext=cc
21428 ac_cpp='$CXXCPP $CPPFLAGS'
21429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21432
21433   cat >conftest.$ac_ext <<_ACEOF
21434 /* confdefs.h.  */
21435 _ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h.  */
21439 #include <iterator>
21440 #ifdef HAVE_NAMESPACES
21441 using namespace std;
21442 #endif
21443 int
21444 main ()
21445 {
21446 iterator<int,int,int> t; return 0;
21447   ;
21448   return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest.$ac_objext
21452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453   (eval $ac_compile) 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } &&
21460          { ac_try='test -z "$ac_cxx_werror_flag"
21461                          || test ! -s conftest.err'
21462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463   (eval $ac_try) 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); }; } &&
21467          { ac_try='test -s conftest.$ac_objext'
21468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469   (eval $ac_try) 2>&5
21470   ac_status=$?
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); }; }; then
21473   ac_cv_cxx_have_std_iterator=yes
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478 ac_cv_cxx_have_std_iterator=no
21479 fi
21480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21481   ac_ext=c
21482 ac_cpp='$CPP $CPPFLAGS'
21483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21486
21487
21488 fi
21489 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21490 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21491 HAVE_STD_ITERATOR=0
21492 if test "$ac_cv_cxx_have_std_iterator" = yes
21493 then
21494    HAVE_STD_ITERATOR=1
21495 fi
21496
21497 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21498 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21499 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21500   echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502
21503
21504
21505   ac_ext=cc
21506 ac_cpp='$CXXCPP $CPPFLAGS'
21507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21510
21511   cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517 #include <iterator>
21518 #ifdef HAVE_NAMESPACES
21519 using namespace std;
21520 #endif
21521 int
21522 main ()
21523 {
21524 bidirectional_iterator<int,int> t; return 0;
21525   ;
21526   return 0;
21527 }
21528 _ACEOF
21529 rm -f conftest.$ac_objext
21530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21531   (eval $ac_compile) 2>conftest.er1
21532   ac_status=$?
21533   grep -v '^ *+' conftest.er1 >conftest.err
21534   rm -f conftest.er1
21535   cat conftest.err >&5
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); } &&
21538          { ac_try='test -z "$ac_cxx_werror_flag"
21539                          || test ! -s conftest.err'
21540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541   (eval $ac_try) 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); }; } &&
21545          { ac_try='test -s conftest.$ac_objext'
21546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547   (eval $ac_try) 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; }; then
21551   ac_cv_cxx_have_bi_iterator=yes
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 ac_cv_cxx_have_bi_iterator=no
21557 fi
21558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21559   ac_ext=c
21560 ac_cpp='$CPP $CPPFLAGS'
21561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21564
21565
21566 fi
21567 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21568 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21569 HAVE_BI_ITERATOR=0
21570 if test "$ac_cv_cxx_have_bi_iterator" = yes
21571 then
21572    HAVE_BI_ITERATOR=1
21573 fi
21574
21575 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21576 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21577 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580
21581
21582
21583   ac_ext=cc
21584 ac_cpp='$CXXCPP $CPPFLAGS'
21585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21588
21589   cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 #include <iterator>
21596 #ifdef HAVE_NAMESPACES
21597 using namespace std;
21598 #endif
21599 int
21600 main ()
21601 {
21602 forward_iterator<int,int> t; return 0;
21603   ;
21604   return 0;
21605 }
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609   (eval $ac_compile) 2>conftest.er1
21610   ac_status=$?
21611   grep -v '^ *+' conftest.er1 >conftest.err
21612   rm -f conftest.er1
21613   cat conftest.err >&5
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); } &&
21616          { ac_try='test -z "$ac_cxx_werror_flag"
21617                          || test ! -s conftest.err'
21618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619   (eval $ac_try) 2>&5
21620   ac_status=$?
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); }; } &&
21623          { ac_try='test -s conftest.$ac_objext'
21624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625   (eval $ac_try) 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); }; }; then
21629   ac_cv_cxx_have_fwd_iterator=yes
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634 ac_cv_cxx_have_fwd_iterator=no
21635 fi
21636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21637   ac_ext=c
21638 ac_cpp='$CPP $CPPFLAGS'
21639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21642
21643
21644 fi
21645 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21646 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21647 HAVE_FWD_ITERATOR=0
21648 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21649 then
21650    HAVE_FWD_ITERATOR=1
21651 fi
21652
21653
21654
21655 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21656 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21657 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21658   echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660   ac_ext=cc
21661 ac_cpp='$CXXCPP $CPPFLAGS'
21662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21665
21666   cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h.  */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h.  */
21672 #include <math.h>
21673                      int foo(float f) {return isnan(f);}
21674 _ACEOF
21675 rm -f conftest.$ac_objext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21677   (eval $ac_compile) 2>conftest.er1
21678   ac_status=$?
21679   grep -v '^ *+' conftest.er1 >conftest.err
21680   rm -f conftest.er1
21681   cat conftest.err >&5
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); } &&
21684          { ac_try='test -z "$ac_cxx_werror_flag"
21685                          || test ! -s conftest.err'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; } &&
21691          { ac_try='test -s conftest.$ac_objext'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; }; then
21697   ac_cv_func_isnan_in_math_h=yes
21698 else
21699   echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21701
21702 ac_cv_func_isnan_in_math_h=no
21703 fi
21704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21705  ac_ext=c
21706 ac_cpp='$CPP $CPPFLAGS'
21707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21710
21711 fi
21712 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21713 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21714  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21715  then
21716
21717 cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_ISNAN_IN_MATH_H 1
21719 _ACEOF
21720
21721  fi
21722 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21723 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21724 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21725   echo $ECHO_N "(cached) $ECHO_C" >&6
21726 else
21727   ac_ext=cc
21728 ac_cpp='$CXXCPP $CPPFLAGS'
21729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21732
21733   cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739 #include <cmath>
21740                      int foo(float f) {return isnan(f);}
21741 _ACEOF
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744   (eval $ac_compile) 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } &&
21751          { ac_try='test -z "$ac_cxx_werror_flag"
21752                          || test ! -s conftest.err'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; } &&
21758          { ac_try='test -s conftest.$ac_objext'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764   ac_cv_func_isnan_in_cmath=yes
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 ac_cv_func_isnan_in_cmath=no
21770 fi
21771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21772  ac_ext=c
21773 ac_cpp='$CPP $CPPFLAGS'
21774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21777
21778 fi
21779 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21780 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21781  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21782  then
21783
21784 cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_ISNAN_IN_CMATH 1
21786 _ACEOF
21787
21788  fi
21789 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21790 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21791 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   ac_ext=cc
21795 ac_cpp='$CXXCPP $CPPFLAGS'
21796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21799
21800   cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806 #include <cmath>
21807                      using std::isnan; int foo(float f) {return isnan(f);}
21808 _ACEOF
21809 rm -f conftest.$ac_objext
21810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21811   (eval $ac_compile) 2>conftest.er1
21812   ac_status=$?
21813   grep -v '^ *+' conftest.er1 >conftest.err
21814   rm -f conftest.er1
21815   cat conftest.err >&5
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); } &&
21818          { ac_try='test -z "$ac_cxx_werror_flag"
21819                          || test ! -s conftest.err'
21820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821   (eval $ac_try) 2>&5
21822   ac_status=$?
21823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824   (exit $ac_status); }; } &&
21825          { ac_try='test -s conftest.$ac_objext'
21826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827   (eval $ac_try) 2>&5
21828   ac_status=$?
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); }; }; then
21831   ac_cv_func_std_isnan_in_cmath=yes
21832 else
21833   echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 ac_cv_func_std_isnan_in_cmath=no
21837 fi
21838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21839  ac_ext=c
21840 ac_cpp='$CPP $CPPFLAGS'
21841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21844
21845 fi
21846 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21847 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21848  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21849  then
21850
21851 cat >>confdefs.h <<\_ACEOF
21852 #define HAVE_STD_ISNAN_IN_CMATH 1
21853 _ACEOF
21854
21855  fi
21856
21857
21858 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21859 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21860 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   ac_ext=cc
21864 ac_cpp='$CXXCPP $CPPFLAGS'
21865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21868
21869   cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 #include <math.h>
21876                      int foo(float f) {return isinf(f);}
21877 _ACEOF
21878 rm -f conftest.$ac_objext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21880   (eval $ac_compile) 2>conftest.er1
21881   ac_status=$?
21882   grep -v '^ *+' conftest.er1 >conftest.err
21883   rm -f conftest.er1
21884   cat conftest.err >&5
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } &&
21887          { ac_try='test -z "$ac_cxx_werror_flag"
21888                          || test ! -s conftest.err'
21889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; } &&
21894          { ac_try='test -s conftest.$ac_objext'
21895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896   (eval $ac_try) 2>&5
21897   ac_status=$?
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); }; }; then
21900   ac_cv_func_isinf_in_math_h=yes
21901 else
21902   echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905 ac_cv_func_isinf_in_math_h=no
21906 fi
21907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21908  ac_ext=c
21909 ac_cpp='$CPP $CPPFLAGS'
21910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21913
21914 fi
21915 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21916 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21917  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21918  then
21919
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_ISINF_IN_MATH_H 1
21922 _ACEOF
21923
21924  fi
21925 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21926 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21927 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21928   echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930   ac_ext=cc
21931 ac_cpp='$CXXCPP $CPPFLAGS'
21932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21935
21936   cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 #include <cmath>
21943                      int foo(float f) {return isinf(f);}
21944 _ACEOF
21945 rm -f conftest.$ac_objext
21946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21947   (eval $ac_compile) 2>conftest.er1
21948   ac_status=$?
21949   grep -v '^ *+' conftest.er1 >conftest.err
21950   rm -f conftest.er1
21951   cat conftest.err >&5
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); } &&
21954          { ac_try='test -z "$ac_cxx_werror_flag"
21955                          || test ! -s conftest.err'
21956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957   (eval $ac_try) 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; } &&
21961          { ac_try='test -s conftest.$ac_objext'
21962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963   (eval $ac_try) 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; }; then
21967   ac_cv_func_isinf_in_cmath=yes
21968 else
21969   echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21971
21972 ac_cv_func_isinf_in_cmath=no
21973 fi
21974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21975  ac_ext=c
21976 ac_cpp='$CPP $CPPFLAGS'
21977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21980
21981 fi
21982 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21983 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21984  if test "$ac_cv_func_isinf_in_cmath" = "yes"
21985  then
21986
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_ISINF_IN_CMATH 1
21989 _ACEOF
21990
21991  fi
21992 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21993 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21994 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997   ac_ext=cc
21998 ac_cpp='$CXXCPP $CPPFLAGS'
21999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22002
22003   cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009 #include <cmath>
22010                      using std::isinf; int foo(float f) {return isinf(f);}
22011 _ACEOF
22012 rm -f conftest.$ac_objext
22013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22014   (eval $ac_compile) 2>conftest.er1
22015   ac_status=$?
22016   grep -v '^ *+' conftest.er1 >conftest.err
22017   rm -f conftest.er1
22018   cat conftest.err >&5
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); } &&
22021          { ac_try='test -z "$ac_cxx_werror_flag"
22022                          || test ! -s conftest.err'
22023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024   (eval $ac_try) 2>&5
22025   ac_status=$?
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); }; } &&
22028          { ac_try='test -s conftest.$ac_objext'
22029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; }; then
22034   ac_cv_func_std_isinf_in_cmath=yes
22035 else
22036   echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 ac_cv_func_std_isinf_in_cmath=no
22040 fi
22041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22042  ac_ext=c
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22047
22048 fi
22049 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22050 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22051  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22052  then
22053
22054 cat >>confdefs.h <<\_ACEOF
22055 #define HAVE_STD_ISINF_IN_CMATH 1
22056 _ACEOF
22057
22058  fi
22059 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22060 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22061 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064   ac_ext=cc
22065 ac_cpp='$CXXCPP $CPPFLAGS'
22066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22069
22070   cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 #include <ieeefp.h>
22077                      int foo(float f) {return finite(f);}
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22081   (eval $ac_compile) 2>conftest.er1
22082   ac_status=$?
22083   grep -v '^ *+' conftest.er1 >conftest.err
22084   rm -f conftest.er1
22085   cat conftest.err >&5
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); } &&
22088          { ac_try='test -z "$ac_cxx_werror_flag"
22089                          || test ! -s conftest.err'
22090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091   (eval $ac_try) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; } &&
22095          { ac_try='test -s conftest.$ac_objext'
22096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097   (eval $ac_try) 2>&5
22098   ac_status=$?
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); }; }; then
22101   ac_cv_func_finite_in_ieeefp_h=yes
22102 else
22103   echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 ac_cv_func_finite_in_ieeefp_h=no
22107 fi
22108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22109  ac_ext=c
22110 ac_cpp='$CPP $CPPFLAGS'
22111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22114
22115 fi
22116 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22117 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22118  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22119  then
22120
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_FINITE_IN_IEEEFP_H 1
22123 _ACEOF
22124
22125  fi
22126
22127
22128 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22129 # for constant arguments.  Useless!
22130 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22131 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22132 if test "${ac_cv_working_alloca_h+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h.  */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h.  */
22141 #include <alloca.h>
22142 int
22143 main ()
22144 {
22145 char *p = (char *) alloca (2 * sizeof (int));
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152   (eval $ac_link) 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } &&
22159          { ac_try='test -z "$ac_c_werror_flag"
22160                          || test ! -s conftest.err'
22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162   (eval $ac_try) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; } &&
22166          { ac_try='test -s conftest$ac_exeext'
22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168   (eval $ac_try) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); }; }; then
22172   ac_cv_working_alloca_h=yes
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_cv_working_alloca_h=no
22178 fi
22179 rm -f conftest.err conftest.$ac_objext \
22180       conftest$ac_exeext conftest.$ac_ext
22181 fi
22182 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22183 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22184 if test $ac_cv_working_alloca_h = yes; then
22185
22186 cat >>confdefs.h <<\_ACEOF
22187 #define HAVE_ALLOCA_H 1
22188 _ACEOF
22189
22190 fi
22191
22192 echo "$as_me:$LINENO: checking for alloca" >&5
22193 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22194 if test "${ac_cv_func_alloca_works+set}" = set; then
22195   echo $ECHO_N "(cached) $ECHO_C" >&6
22196 else
22197   cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 #ifdef __GNUC__
22204 # define alloca __builtin_alloca
22205 #else
22206 # ifdef _MSC_VER
22207 #  include <malloc.h>
22208 #  define alloca _alloca
22209 # else
22210 #  if HAVE_ALLOCA_H
22211 #   include <alloca.h>
22212 #  else
22213 #   ifdef _AIX
22214  #pragma alloca
22215 #   else
22216 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22217 char *alloca ();
22218 #    endif
22219 #   endif
22220 #  endif
22221 # endif
22222 #endif
22223
22224 int
22225 main ()
22226 {
22227 char *p = (char *) alloca (1);
22228   ;
22229   return 0;
22230 }
22231 _ACEOF
22232 rm -f conftest.$ac_objext conftest$ac_exeext
22233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22234   (eval $ac_link) 2>conftest.er1
22235   ac_status=$?
22236   grep -v '^ *+' conftest.er1 >conftest.err
22237   rm -f conftest.er1
22238   cat conftest.err >&5
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } &&
22241          { ac_try='test -z "$ac_c_werror_flag"
22242                          || test ! -s conftest.err'
22243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244   (eval $ac_try) 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); }; } &&
22248          { ac_try='test -s conftest$ac_exeext'
22249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250   (eval $ac_try) 2>&5
22251   ac_status=$?
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); }; }; then
22254   ac_cv_func_alloca_works=yes
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 ac_cv_func_alloca_works=no
22260 fi
22261 rm -f conftest.err conftest.$ac_objext \
22262       conftest$ac_exeext conftest.$ac_ext
22263 fi
22264 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22266
22267 if test $ac_cv_func_alloca_works = yes; then
22268
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_ALLOCA 1
22271 _ACEOF
22272
22273 else
22274   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22275 # that cause trouble.  Some versions do not even contain alloca or
22276 # contain a buggy version.  If you still want to use their alloca,
22277 # use ar to extract alloca.o from them instead of compiling alloca.c.
22278
22279 ALLOCA=alloca.$ac_objext
22280
22281 cat >>confdefs.h <<\_ACEOF
22282 #define C_ALLOCA 1
22283 _ACEOF
22284
22285
22286 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22288 if test "${ac_cv_os_cray+set}" = set; then
22289   echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291   cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297 #if defined(CRAY) && ! defined(CRAY2)
22298 webecray
22299 #else
22300 wenotbecray
22301 #endif
22302
22303 _ACEOF
22304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22305   $EGREP "webecray" >/dev/null 2>&1; then
22306   ac_cv_os_cray=yes
22307 else
22308   ac_cv_os_cray=no
22309 fi
22310 rm -f conftest*
22311
22312 fi
22313 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22314 echo "${ECHO_T}$ac_cv_os_cray" >&6
22315 if test $ac_cv_os_cray = yes; then
22316   for ac_func in _getb67 GETB67 getb67; do
22317     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22318 echo "$as_me:$LINENO: checking for $ac_func" >&5
22319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22320 if eval "test \"\${$as_ac_var+set}\" = set"; then
22321   echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323   cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h.  */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h.  */
22329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22331 #define $ac_func innocuous_$ac_func
22332
22333 /* System header to define __stub macros and hopefully few prototypes,
22334     which can conflict with char $ac_func (); below.
22335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22336     <limits.h> exists even on freestanding compilers.  */
22337
22338 #ifdef __STDC__
22339 # include <limits.h>
22340 #else
22341 # include <assert.h>
22342 #endif
22343
22344 #undef $ac_func
22345
22346 /* Override any gcc2 internal prototype to avoid an error.  */
22347 #ifdef __cplusplus
22348 extern "C"
22349 {
22350 #endif
22351 /* We use char because int might match the return type of a gcc2
22352    builtin and then its argument prototype would still apply.  */
22353 char $ac_func ();
22354 /* The GNU C library defines this for functions which it implements
22355     to always fail with ENOSYS.  Some functions are actually named
22356     something starting with __ and the normal name is an alias.  */
22357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22358 choke me
22359 #else
22360 char (*f) () = $ac_func;
22361 #endif
22362 #ifdef __cplusplus
22363 }
22364 #endif
22365
22366 int
22367 main ()
22368 {
22369 return f != $ac_func;
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest.$ac_objext conftest$ac_exeext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376   (eval $ac_link) 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
22380   cat conftest.err >&5
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } &&
22383          { ac_try='test -z "$ac_c_werror_flag"
22384                          || test ! -s conftest.err'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; } &&
22390          { ac_try='test -s conftest$ac_exeext'
22391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392   (eval $ac_try) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; }; then
22396   eval "$as_ac_var=yes"
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401 eval "$as_ac_var=no"
22402 fi
22403 rm -f conftest.err conftest.$ac_objext \
22404       conftest$ac_exeext conftest.$ac_ext
22405 fi
22406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22408 if test `eval echo '${'$as_ac_var'}'` = yes; then
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define CRAY_STACKSEG_END $ac_func
22412 _ACEOF
22413
22414     break
22415 fi
22416
22417   done
22418 fi
22419
22420 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22421 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22422 if test "${ac_cv_c_stack_direction+set}" = set; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   if test "$cross_compiling" = yes; then
22426   ac_cv_c_stack_direction=0
22427 else
22428   cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434 int
22435 find_stack_direction ()
22436 {
22437   static char *addr = 0;
22438   auto char dummy;
22439   if (addr == 0)
22440     {
22441       addr = &dummy;
22442       return find_stack_direction ();
22443     }
22444   else
22445     return (&dummy > addr) ? 1 : -1;
22446 }
22447
22448 int
22449 main ()
22450 {
22451   exit (find_stack_direction () < 0);
22452 }
22453 _ACEOF
22454 rm -f conftest$ac_exeext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22456   (eval $ac_link) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461   (eval $ac_try) 2>&5
22462   ac_status=$?
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); }; }; then
22465   ac_cv_c_stack_direction=1
22466 else
22467   echo "$as_me: program exited with status $ac_status" >&5
22468 echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ( exit $ac_status )
22472 ac_cv_c_stack_direction=-1
22473 fi
22474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22475 fi
22476 fi
22477 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22479
22480 cat >>confdefs.h <<_ACEOF
22481 #define STACK_DIRECTION $ac_cv_c_stack_direction
22482 _ACEOF
22483
22484
22485 fi
22486
22487
22488
22489 for ac_header in stdlib.h unistd.h
22490 do
22491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22493   echo "$as_me:$LINENO: checking for $ac_header" >&5
22494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 fi
22498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22500 else
22501   # Is the header compilable?
22502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 $ac_includes_default
22511 #include <$ac_header>
22512 _ACEOF
22513 rm -f conftest.$ac_objext
22514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22515   (eval $ac_compile) 2>conftest.er1
22516   ac_status=$?
22517   grep -v '^ *+' conftest.er1 >conftest.err
22518   rm -f conftest.er1
22519   cat conftest.err >&5
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); } &&
22522          { ac_try='test -z "$ac_c_werror_flag"
22523                          || test ! -s conftest.err'
22524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525   (eval $ac_try) 2>&5
22526   ac_status=$?
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); }; } &&
22529          { ac_try='test -s conftest.$ac_objext'
22530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531   (eval $ac_try) 2>&5
22532   ac_status=$?
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); }; }; then
22535   ac_header_compiler=yes
22536 else
22537   echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22539
22540 ac_header_compiler=no
22541 fi
22542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22544 echo "${ECHO_T}$ac_header_compiler" >&6
22545
22546 # Is the header present?
22547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22549 cat >conftest.$ac_ext <<_ACEOF
22550 /* confdefs.h.  */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h.  */
22555 #include <$ac_header>
22556 _ACEOF
22557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22559   ac_status=$?
22560   grep -v '^ *+' conftest.er1 >conftest.err
22561   rm -f conftest.er1
22562   cat conftest.err >&5
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); } >/dev/null; then
22565   if test -s conftest.err; then
22566     ac_cpp_err=$ac_c_preproc_warn_flag
22567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22568   else
22569     ac_cpp_err=
22570   fi
22571 else
22572   ac_cpp_err=yes
22573 fi
22574 if test -z "$ac_cpp_err"; then
22575   ac_header_preproc=yes
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580   ac_header_preproc=no
22581 fi
22582 rm -f conftest.err conftest.$ac_ext
22583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22584 echo "${ECHO_T}$ac_header_preproc" >&6
22585
22586 # So?  What about this header?
22587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22588   yes:no: )
22589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22593     ac_header_preproc=yes
22594     ;;
22595   no:yes:* )
22596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22608     (
22609       cat <<\_ASBOX
22610 ## ----------------------------------- ##
22611 ## Report this to llvmbugs@cs.uiuc.edu ##
22612 ## ----------------------------------- ##
22613 _ASBOX
22614     ) |
22615       sed "s/^/$as_me: WARNING:     /" >&2
22616     ;;
22617 esac
22618 echo "$as_me:$LINENO: checking for $ac_header" >&5
22619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22621   echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623   eval "$as_ac_Header=\$ac_header_preproc"
22624 fi
22625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22627
22628 fi
22629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22630   cat >>confdefs.h <<_ACEOF
22631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22632 _ACEOF
22633
22634 fi
22635
22636 done
22637
22638
22639 for ac_func in getpagesize
22640 do
22641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22642 echo "$as_me:$LINENO: checking for $ac_func" >&5
22643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22644 if eval "test \"\${$as_ac_var+set}\" = set"; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h.  */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h.  */
22653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22655 #define $ac_func innocuous_$ac_func
22656
22657 /* System header to define __stub macros and hopefully few prototypes,
22658     which can conflict with char $ac_func (); below.
22659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22660     <limits.h> exists even on freestanding compilers.  */
22661
22662 #ifdef __STDC__
22663 # include <limits.h>
22664 #else
22665 # include <assert.h>
22666 #endif
22667
22668 #undef $ac_func
22669
22670 /* Override any gcc2 internal prototype to avoid an error.  */
22671 #ifdef __cplusplus
22672 extern "C"
22673 {
22674 #endif
22675 /* We use char because int might match the return type of a gcc2
22676    builtin and then its argument prototype would still apply.  */
22677 char $ac_func ();
22678 /* The GNU C library defines this for functions which it implements
22679     to always fail with ENOSYS.  Some functions are actually named
22680     something starting with __ and the normal name is an alias.  */
22681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22682 choke me
22683 #else
22684 char (*f) () = $ac_func;
22685 #endif
22686 #ifdef __cplusplus
22687 }
22688 #endif
22689
22690 int
22691 main ()
22692 {
22693 return f != $ac_func;
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700   (eval $ac_link) 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -z "$ac_c_werror_flag"
22708                          || test ! -s conftest.err'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest$ac_exeext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   eval "$as_ac_var=yes"
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 eval "$as_ac_var=no"
22726 fi
22727 rm -f conftest.err conftest.$ac_objext \
22728       conftest$ac_exeext conftest.$ac_ext
22729 fi
22730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22732 if test `eval echo '${'$as_ac_var'}'` = yes; then
22733   cat >>confdefs.h <<_ACEOF
22734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22735 _ACEOF
22736
22737 fi
22738 done
22739
22740 echo "$as_me:$LINENO: checking for working mmap" >&5
22741 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22742 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22743   echo $ECHO_N "(cached) $ECHO_C" >&6
22744 else
22745   if test "$cross_compiling" = yes; then
22746   ac_cv_func_mmap_fixed_mapped=no
22747 else
22748   cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h.  */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h.  */
22754 $ac_includes_default
22755 /* malloc might have been renamed as rpl_malloc. */
22756 #undef malloc
22757
22758 /* Thanks to Mike Haertel and Jim Avera for this test.
22759    Here is a matrix of mmap possibilities:
22760         mmap private not fixed
22761         mmap private fixed at somewhere currently unmapped
22762         mmap private fixed at somewhere already mapped
22763         mmap shared not fixed
22764         mmap shared fixed at somewhere currently unmapped
22765         mmap shared fixed at somewhere already mapped
22766    For private mappings, we should verify that changes cannot be read()
22767    back from the file, nor mmap's back from the file at a different
22768    address.  (There have been systems where private was not correctly
22769    implemented like the infamous i386 svr4.0, and systems where the
22770    VM page cache was not coherent with the file system buffer cache
22771    like early versions of FreeBSD and possibly contemporary NetBSD.)
22772    For shared mappings, we should conversely verify that changes get
22773    propagated back to all the places they're supposed to be.
22774
22775    Grep wants private fixed already mapped.
22776    The main things grep needs to know about mmap are:
22777    * does it exist and is it safe to write into the mmap'd area
22778    * how to use it (BSD variants)  */
22779
22780 #include <fcntl.h>
22781 #include <sys/mman.h>
22782
22783 #if !STDC_HEADERS && !HAVE_STDLIB_H
22784 char *malloc ();
22785 #endif
22786
22787 /* This mess was copied from the GNU getpagesize.h.  */
22788 #if !HAVE_GETPAGESIZE
22789 /* Assume that all systems that can run configure have sys/param.h.  */
22790 # if !HAVE_SYS_PARAM_H
22791 #  define HAVE_SYS_PARAM_H 1
22792 # endif
22793
22794 # ifdef _SC_PAGESIZE
22795 #  define getpagesize() sysconf(_SC_PAGESIZE)
22796 # else /* no _SC_PAGESIZE */
22797 #  if HAVE_SYS_PARAM_H
22798 #   include <sys/param.h>
22799 #   ifdef EXEC_PAGESIZE
22800 #    define getpagesize() EXEC_PAGESIZE
22801 #   else /* no EXEC_PAGESIZE */
22802 #    ifdef NBPG
22803 #     define getpagesize() NBPG * CLSIZE
22804 #     ifndef CLSIZE
22805 #      define CLSIZE 1
22806 #     endif /* no CLSIZE */
22807 #    else /* no NBPG */
22808 #     ifdef NBPC
22809 #      define getpagesize() NBPC
22810 #     else /* no NBPC */
22811 #      ifdef PAGESIZE
22812 #       define getpagesize() PAGESIZE
22813 #      endif /* PAGESIZE */
22814 #     endif /* no NBPC */
22815 #    endif /* no NBPG */
22816 #   endif /* no EXEC_PAGESIZE */
22817 #  else /* no HAVE_SYS_PARAM_H */
22818 #   define getpagesize() 8192   /* punt totally */
22819 #  endif /* no HAVE_SYS_PARAM_H */
22820 # endif /* no _SC_PAGESIZE */
22821
22822 #endif /* no HAVE_GETPAGESIZE */
22823
22824 int
22825 main ()
22826 {
22827   char *data, *data2, *data3;
22828   int i, pagesize;
22829   int fd;
22830
22831   pagesize = getpagesize ();
22832
22833   /* First, make a file with some known garbage in it. */
22834   data = (char *) malloc (pagesize);
22835   if (!data)
22836     exit (1);
22837   for (i = 0; i < pagesize; ++i)
22838     *(data + i) = rand ();
22839   umask (0);
22840   fd = creat ("conftest.mmap", 0600);
22841   if (fd < 0)
22842     exit (1);
22843   if (write (fd, data, pagesize) != pagesize)
22844     exit (1);
22845   close (fd);
22846
22847   /* Next, try to mmap the file at a fixed address which already has
22848      something else allocated at it.  If we can, also make sure that
22849      we see the same garbage.  */
22850   fd = open ("conftest.mmap", O_RDWR);
22851   if (fd < 0)
22852     exit (1);
22853   data2 = (char *) malloc (2 * pagesize);
22854   if (!data2)
22855     exit (1);
22856   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22857   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22858                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22859     exit (1);
22860   for (i = 0; i < pagesize; ++i)
22861     if (*(data + i) != *(data2 + i))
22862       exit (1);
22863
22864   /* Finally, make sure that changes to the mapped area do not
22865      percolate back to the file as seen by read().  (This is a bug on
22866      some variants of i386 svr4.0.)  */
22867   for (i = 0; i < pagesize; ++i)
22868     *(data2 + i) = *(data2 + i) + 1;
22869   data3 = (char *) malloc (pagesize);
22870   if (!data3)
22871     exit (1);
22872   if (read (fd, data3, pagesize) != pagesize)
22873     exit (1);
22874   for (i = 0; i < pagesize; ++i)
22875     if (*(data + i) != *(data3 + i))
22876       exit (1);
22877   close (fd);
22878   exit (0);
22879 }
22880 _ACEOF
22881 rm -f conftest$ac_exeext
22882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22883   (eval $ac_link) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888   (eval $ac_try) 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); }; }; then
22892   ac_cv_func_mmap_fixed_mapped=yes
22893 else
22894   echo "$as_me: program exited with status $ac_status" >&5
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 ( exit $ac_status )
22899 ac_cv_func_mmap_fixed_mapped=no
22900 fi
22901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22902 fi
22903 fi
22904 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22905 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22906 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22907
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_MMAP 1
22910 _ACEOF
22911
22912 fi
22913 rm -f conftest.mmap
22914
22915 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22916 then
22917         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22918 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22919 fi
22920 echo "$as_me:$LINENO: checking for mmap of files" >&5
22921 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22922 if test "${ac_cv_func_mmap_file+set}" = set; then
22923   echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925
22926
22927   ac_ext=c
22928 ac_cpp='$CPP $CPPFLAGS'
22929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22932
22933   if test "$cross_compiling" = yes; then
22934   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22935 See \`config.log' for more details." >&5
22936 echo "$as_me: error: cannot run test program while cross compiling
22937 See \`config.log' for more details." >&2;}
22938    { (exit 1); exit 1; }; }
22939 else
22940   cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h.  */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h.  */
22946
22947 #ifdef HAVE_SYS_TYPES_H
22948 #include <sys/types.h>
22949 #endif
22950
22951 #ifdef HAVE_SYS_MMAN_H
22952 #include <sys/mman.h>
22953 #endif
22954
22955 #ifdef HAVE_FCNTL_H
22956 #include <fcntl.h>
22957 #endif
22958
22959   int fd;
22960   int main () {
22961   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22962 _ACEOF
22963 rm -f conftest$ac_exeext
22964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22965   (eval $ac_link) 2>&5
22966   ac_status=$?
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970   (eval $ac_try) 2>&5
22971   ac_status=$?
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); }; }; then
22974   ac_cv_func_mmap_file=yes
22975 else
22976   echo "$as_me: program exited with status $ac_status" >&5
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980 ( exit $ac_status )
22981 ac_cv_func_mmap_file=no
22982 fi
22983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22984 fi
22985   ac_ext=c
22986 ac_cpp='$CPP $CPPFLAGS'
22987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22990
22991
22992 fi
22993 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22994 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22995 if test "$ac_cv_func_mmap_file" = yes; then
22996
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_MMAP_FILE
22999 _ACEOF
23000
23001    MMAP_FILE=yes
23002
23003 fi
23004
23005 if test "$ac_cv_func_mmap_file" = "no"
23006 then
23007         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23008 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23009 fi
23010 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23011 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23012 if test "${ac_cv_header_mmap_anon+set}" = set; then
23013   echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015
23016
23017   ac_ext=c
23018 ac_cpp='$CPP $CPPFLAGS'
23019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23022
23023   cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h.  */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h.  */
23029 #include <sys/mman.h>
23030   #include <unistd.h>
23031   #include <fcntl.h>
23032 int
23033 main ()
23034 {
23035 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 rm -f conftest.$ac_objext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23042   (eval $ac_compile) 2>conftest.er1
23043   ac_status=$?
23044   grep -v '^ *+' conftest.er1 >conftest.err
23045   rm -f conftest.er1
23046   cat conftest.err >&5
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); } &&
23049          { ac_try='test -z "$ac_c_werror_flag"
23050                          || test ! -s conftest.err'
23051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052   (eval $ac_try) 2>&5
23053   ac_status=$?
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); }; } &&
23056          { ac_try='test -s conftest.$ac_objext'
23057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058   (eval $ac_try) 2>&5
23059   ac_status=$?
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); }; }; then
23062   ac_cv_header_mmap_anon=yes
23063 else
23064   echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067 ac_cv_header_mmap_anon=no
23068 fi
23069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23070   ac_ext=c
23071 ac_cpp='$CPP $CPPFLAGS'
23072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075
23076
23077 fi
23078 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23079 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23080 if test "$ac_cv_header_mmap_anon" = yes; then
23081
23082 cat >>confdefs.h <<\_ACEOF
23083 #define HAVE_MMAP_ANONYMOUS
23084 _ACEOF
23085
23086 fi
23087
23088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23090 if test "${ac_cv_type_signal+set}" = set; then
23091   echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093   cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099 #include <sys/types.h>
23100 #include <signal.h>
23101 #ifdef signal
23102 # undef signal
23103 #endif
23104 #ifdef __cplusplus
23105 extern "C" void (*signal (int, void (*)(int)))(int);
23106 #else
23107 void (*signal ()) ();
23108 #endif
23109
23110 int
23111 main ()
23112 {
23113 int i;
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23120   (eval $ac_compile) 2>conftest.er1
23121   ac_status=$?
23122   grep -v '^ *+' conftest.er1 >conftest.err
23123   rm -f conftest.er1
23124   cat conftest.err >&5
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); } &&
23127          { ac_try='test -z "$ac_c_werror_flag"
23128                          || test ! -s conftest.err'
23129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130   (eval $ac_try) 2>&5
23131   ac_status=$?
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); }; } &&
23134          { ac_try='test -s conftest.$ac_objext'
23135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136   (eval $ac_try) 2>&5
23137   ac_status=$?
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); }; }; then
23140   ac_cv_type_signal=void
23141 else
23142   echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145 ac_cv_type_signal=int
23146 fi
23147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23148 fi
23149 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23150 echo "${ECHO_T}$ac_cv_type_signal" >&6
23151
23152 cat >>confdefs.h <<_ACEOF
23153 #define RETSIGTYPE $ac_cv_type_signal
23154 _ACEOF
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23167 do
23168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23169 echo "$as_me:$LINENO: checking for $ac_func" >&5
23170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23171 if eval "test \"\${$as_ac_var+set}\" = set"; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23182 #define $ac_func innocuous_$ac_func
23183
23184 /* System header to define __stub macros and hopefully few prototypes,
23185     which can conflict with char $ac_func (); below.
23186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23187     <limits.h> exists even on freestanding compilers.  */
23188
23189 #ifdef __STDC__
23190 # include <limits.h>
23191 #else
23192 # include <assert.h>
23193 #endif
23194
23195 #undef $ac_func
23196
23197 /* Override any gcc2 internal prototype to avoid an error.  */
23198 #ifdef __cplusplus
23199 extern "C"
23200 {
23201 #endif
23202 /* We use char because int might match the return type of a gcc2
23203    builtin and then its argument prototype would still apply.  */
23204 char $ac_func ();
23205 /* The GNU C library defines this for functions which it implements
23206     to always fail with ENOSYS.  Some functions are actually named
23207     something starting with __ and the normal name is an alias.  */
23208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23209 choke me
23210 #else
23211 char (*f) () = $ac_func;
23212 #endif
23213 #ifdef __cplusplus
23214 }
23215 #endif
23216
23217 int
23218 main ()
23219 {
23220 return f != $ac_func;
23221   ;
23222   return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext conftest$ac_exeext
23226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227   (eval $ac_link) 2>conftest.er1
23228   ac_status=$?
23229   grep -v '^ *+' conftest.er1 >conftest.err
23230   rm -f conftest.er1
23231   cat conftest.err >&5
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); } &&
23234          { ac_try='test -z "$ac_c_werror_flag"
23235                          || test ! -s conftest.err'
23236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237   (eval $ac_try) 2>&5
23238   ac_status=$?
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); }; } &&
23241          { ac_try='test -s conftest$ac_exeext'
23242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243   (eval $ac_try) 2>&5
23244   ac_status=$?
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); }; }; then
23247   eval "$as_ac_var=yes"
23248 else
23249   echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23251
23252 eval "$as_ac_var=no"
23253 fi
23254 rm -f conftest.err conftest.$ac_objext \
23255       conftest$ac_exeext conftest.$ac_ext
23256 fi
23257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23259 if test `eval echo '${'$as_ac_var'}'` = yes; then
23260   cat >>confdefs.h <<_ACEOF
23261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23262 _ACEOF
23263
23264 fi
23265 done
23266
23267 echo "$as_me:$LINENO: checking for mprotect" >&5
23268 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23269 if test "${ac_cv_func_mprotect+set}" = set; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23280 #define mprotect innocuous_mprotect
23281
23282 /* System header to define __stub macros and hopefully few prototypes,
23283     which can conflict with char mprotect (); below.
23284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23285     <limits.h> exists even on freestanding compilers.  */
23286
23287 #ifdef __STDC__
23288 # include <limits.h>
23289 #else
23290 # include <assert.h>
23291 #endif
23292
23293 #undef mprotect
23294
23295 /* Override any gcc2 internal prototype to avoid an error.  */
23296 #ifdef __cplusplus
23297 extern "C"
23298 {
23299 #endif
23300 /* We use char because int might match the return type of a gcc2
23301    builtin and then its argument prototype would still apply.  */
23302 char mprotect ();
23303 /* The GNU C library defines this for functions which it implements
23304     to always fail with ENOSYS.  Some functions are actually named
23305     something starting with __ and the normal name is an alias.  */
23306 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23307 choke me
23308 #else
23309 char (*f) () = mprotect;
23310 #endif
23311 #ifdef __cplusplus
23312 }
23313 #endif
23314
23315 int
23316 main ()
23317 {
23318 return f != mprotect;
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325   (eval $ac_link) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -z "$ac_c_werror_flag"
23333                          || test ! -s conftest.err'
23334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335   (eval $ac_try) 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); }; } &&
23339          { ac_try='test -s conftest$ac_exeext'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; }; then
23345   ac_cv_func_mprotect=yes
23346 else
23347   echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ac_cv_func_mprotect=no
23351 fi
23352 rm -f conftest.err conftest.$ac_objext \
23353       conftest$ac_exeext conftest.$ac_ext
23354 fi
23355 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23356 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23357 if test $ac_cv_func_mprotect = yes; then
23358   :
23359 else
23360   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23361 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23362    { (exit 1); exit 1; }; }
23363 fi
23364
23365
23366
23367   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23368 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23369
23370
23371   ac_ext=c
23372 ac_cpp='$CPP $CPPFLAGS'
23373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23376
23377   oldcflags="$CFLAGS"
23378   CFLAGS="$CFLAGS -Wl,-R."
23379   cat >conftest.$ac_ext <<_ACEOF
23380 int main() { return 0; }
23381 _ACEOF
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384   (eval $ac_link) 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } &&
23391          { ac_try='test -z "$ac_c_werror_flag"
23392                          || test ! -s conftest.err'
23393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394   (eval $ac_try) 2>&5
23395   ac_status=$?
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); }; } &&
23398          { ac_try='test -s conftest$ac_exeext'
23399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400   (eval $ac_try) 2>&5
23401   ac_status=$?
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); }; }; then
23404   ac_cv_link_use_r=yes
23405 else
23406   echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409 ac_cv_link_use_r=no
23410 fi
23411 rm -f conftest.err conftest.$ac_objext \
23412       conftest$ac_exeext conftest.$ac_ext
23413   CFLAGS="$oldcflags"
23414   ac_ext=c
23415 ac_cpp='$CPP $CPPFLAGS'
23416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23419
23420   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23421 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23422   if test "$ac_cv_link_use_r" = yes
23423   then
23424
23425 cat >>confdefs.h <<\_ACEOF
23426 #define HAVE_LINK_R 1
23427 _ACEOF
23428
23429   fi
23430
23431
23432 # Check whether --enable-optimized or --disable-optimized was given.
23433 if test "${enable_optimized+set}" = set; then
23434   enableval="$enable_optimized"
23435
23436 else
23437   enableval=no
23438 fi;
23439 if test ${enableval} = "no"
23440 then
23441         ENABLE_OPTIMIZED=
23442
23443 else
23444         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23445
23446 fi
23447
23448
23449
23450
23451  # Check whether --enable-spec95 or --disable-spec95 was given.
23452 if test "${enable_spec95+set}" = set; then
23453   enableval="$enable_spec95"
23454   checkresult=$enableval
23455 else
23456   checkresult=auto
23457 fi;
23458 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23459 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23460 case "$checkresult" in
23461 auto|yes)
23462     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23463         if test -d "$defaultdir"
23464         then
23465                 SPEC95_ROOT=$defaultdir
23466
23467                 USE_SPEC95=USE_SPEC95=1
23468
23469         checkresult="yes, found in $defaultdir"
23470     else
23471         checkresult=no
23472     fi
23473     ;;
23474 no)
23475
23476
23477     checkresult=no
23478     ;;
23479 *)  if test -d "$checkresult"
23480     then
23481         SPEC95_ROOT="$checkresult"
23482
23483         USE_SPEC95=USE_SPEC95=1
23484
23485         checkresult="yes, in $checkresult"
23486     else
23487
23488
23489         checkresult="no, not found in $checkresult"
23490     fi
23491     ;;
23492 esac
23493 echo "$as_me:$LINENO: result: $checkresult" >&5
23494 echo "${ECHO_T}$checkresult" >&6
23495
23496
23497
23498  # Check whether --enable-spec2000 or --disable-spec2000 was given.
23499 if test "${enable_spec2000+set}" = set; then
23500   enableval="$enable_spec2000"
23501   checkresult=$enableval
23502 else
23503   checkresult=auto
23504 fi;
23505 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23506 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23507 case "$checkresult" in
23508 auto|yes)
23509     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23510         if test -d "$defaultdir"
23511         then
23512                 SPEC2000_ROOT=$defaultdir
23513
23514                 USE_SPEC2000=USE_SPEC2000=1
23515
23516         checkresult="yes, found in $defaultdir"
23517     else
23518         checkresult=no
23519     fi
23520     ;;
23521 no)
23522
23523
23524     checkresult=no
23525     ;;
23526 *)  if test -d "$checkresult"
23527     then
23528         SPEC2000_ROOT="$checkresult"
23529
23530         USE_SPEC2000=USE_SPEC2000=1
23531
23532         checkresult="yes, in $checkresult"
23533     else
23534
23535
23536         checkresult="no, not found in $checkresult"
23537     fi
23538     ;;
23539 esac
23540 echo "$as_me:$LINENO: result: $checkresult" >&5
23541 echo "${ECHO_T}$checkresult" >&6
23542
23543
23544
23545  # Check whether --enable-povray or --disable-povray was given.
23546 if test "${enable_povray+set}" = set; then
23547   enableval="$enable_povray"
23548   checkresult=$enableval
23549 else
23550   checkresult=auto
23551 fi;
23552 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23553 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23554 case "$checkresult" in
23555 auto|yes)
23556     defaultdir=/home/vadve/shared/benchmarks/povray31
23557         if test -d "$defaultdir"
23558         then
23559                 POVRAY_ROOT=$defaultdir
23560
23561                 USE_POVRAY=USE_POVRAY=1
23562
23563         checkresult="yes, found in $defaultdir"
23564     else
23565         checkresult=no
23566     fi
23567     ;;
23568 no)
23569
23570
23571     checkresult=no
23572     ;;
23573 *)  if test -d "$checkresult"
23574     then
23575         POVRAY_ROOT="$checkresult"
23576
23577         USE_POVRAY=USE_POVRAY=1
23578
23579         checkresult="yes, in $checkresult"
23580     else
23581
23582
23583         checkresult="no, not found in $checkresult"
23584     fi
23585     ;;
23586 esac
23587 echo "$as_me:$LINENO: result: $checkresult" >&5
23588 echo "${ECHO_T}$checkresult" >&6
23589
23590
23591
23592 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23593 if test "${enable_precompiled_bytecode+set}" = set; then
23594   enableval="$enable_precompiled_bytecode"
23595
23596 else
23597   enableval=no
23598 fi;
23599 if test ${enableval} = "no"
23600 then
23601         UPB=
23602
23603 else
23604         UPB=USE_PRECOMPILED_BYTECODE=1
23605
23606 fi
23607
23608 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23609 if test "${enable_llc_diffs+set}" = set; then
23610   enableval="$enable_llc_diffs"
23611
23612 else
23613   enableval=yes
23614 fi;
23615 if test ${enableval} = "no"
23616 then
23617         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23618
23619 else
23620         DISABLE_LLC_DIFFS=
23621
23622 fi
23623
23624 # Check whether --enable-jit or --disable-jit was given.
23625 if test "${enable_jit+set}" = set; then
23626   enableval="$enable_jit"
23627
23628 else
23629   enableval=default
23630 fi;
23631 if test ${enableval} = "no"
23632 then
23633         JIT=
23634
23635 else
23636         case $target in
23637                 *i*86*)
23638                         JIT=TARGET_HAS_JIT=1
23639
23640                         ;;
23641                 *sparc*)
23642                         JIT=TARGET_HAS_JIT=1
23643
23644                         ;;
23645                 *)
23646                         JIT=
23647
23648                         ;;
23649         esac
23650 fi
23651
23652
23653 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23654 if test "${with_llvmgccdir+set}" = set; then
23655   withval="$with_llvmgccdir"
23656   LLVMGCCDIR=$withval
23657
23658 fi;
23659 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23660 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23661 LLVM_GCC_CHECK=no
23662 if test -d "$LLVMGCCDIR"
23663 then
23664         if test -x "$LLVMGCCDIR/bin/gcc"
23665         then
23666                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23667         fi
23668 fi
23669 llvmgccwarn=no
23670 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23671 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23672 if test "$LLVM_GCC_CHECK" = "no"
23673 then
23674     llvmgccwarn=yes
23675 fi
23676 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23677 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23678 LLVM_GCC_SANE=no
23679 if test -x "$LLVM_GCC_CHECK"
23680 then
23681         cp /dev/null conftest.c
23682     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23683         if test $? -eq 0
23684         then
23685                 LLVM_GCC_SANE=yes
23686         fi
23687         rm conftest.c
23688         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23689         LLVMCC1=$llvmcc1path
23690
23691         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23692         LLVMCC1PLUS=$llvmcc1pluspath
23693
23694 fi
23695 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23696 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23697 if test "$LLVM_GCC_SANE" = "no"
23698 then
23699         llvmgccwarn=yes
23700 fi
23701
23702
23703 # Check whether --with-bcrepos or --without-bcrepos was given.
23704 if test "${with_bcrepos+set}" = set; then
23705   withval="$with_bcrepos"
23706   BCR=$withval
23707
23708 else
23709   BCR=/home/vadve/lattner/LLVMPrograms
23710
23711 fi;
23712
23713
23714 # Check whether --with-papi or --without-papi was given.
23715 if test "${with_papi+set}" = set; then
23716   withval="$with_papi"
23717   PAPIDIR=$withval
23718
23719 else
23720   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23721
23722 fi;
23723
23724 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23725 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23726 eval "SHLIBEXT=$shrext"
23727 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23728 echo "${ECHO_T}$SHLIBEXT" >&6
23729 SHLIBEXT=$SHLIBEXT
23730
23731
23732 cat >>confdefs.h <<_ACEOF
23733 #define SHLIBEXT "$SHLIBEXT"
23734 _ACEOF
23735
23736
23737 cat >confcache <<\_ACEOF
23738 # This file is a shell script that caches the results of configure
23739 # tests run on this system so they can be shared between configure
23740 # scripts and configure runs, see configure's option --config-cache.
23741 # It is not useful on other systems.  If it contains results you don't
23742 # want to keep, you may remove or edit it.
23743 #
23744 # config.status only pays attention to the cache file if you give it
23745 # the --recheck option to rerun configure.
23746 #
23747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23749 # following values.
23750
23751 _ACEOF
23752
23753 # The following way of writing the cache mishandles newlines in values,
23754 # but we know of no workaround that is simple, portable, and efficient.
23755 # So, don't put newlines in cache variables' values.
23756 # Ultrix sh set writes to stderr and can't be redirected directly,
23757 # and sets the high bit in the cache file unless we assign to the vars.
23758 {
23759   (set) 2>&1 |
23760     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23761     *ac_space=\ *)
23762       # `set' does not quote correctly, so add quotes (double-quote
23763       # substitution turns \\\\ into \\, and sed turns \\ into \).
23764       sed -n \
23765         "s/'/'\\\\''/g;
23766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23767       ;;
23768     *)
23769       # `set' quotes correctly as required by POSIX, so do not add quotes.
23770       sed -n \
23771         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23772       ;;
23773     esac;
23774 } |
23775   sed '
23776      t clear
23777      : clear
23778      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23779      t end
23780      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23781      : end' >>confcache
23782 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23783   if test -w $cache_file; then
23784     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23785     cat confcache >$cache_file
23786   else
23787     echo "not updating unwritable cache $cache_file"
23788   fi
23789 fi
23790 rm -f confcache
23791
23792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23793 # Let make expand exec_prefix.
23794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23795
23796 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23797 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23798 # trailing colons and then remove the whole line if VPATH becomes empty
23799 # (actually we leave an empty line to preserve line numbers).
23800 if test "x$srcdir" = x.; then
23801   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23802 s/:*\$(srcdir):*/:/;
23803 s/:*\${srcdir}:*/:/;
23804 s/:*@srcdir@:*/:/;
23805 s/^\([^=]*=[     ]*\):*/\1/;
23806 s/:*$//;
23807 s/^[^=]*=[       ]*$//;
23808 }'
23809 fi
23810
23811 DEFS=-DHAVE_CONFIG_H
23812
23813 ac_libobjs=
23814 ac_ltlibobjs=
23815 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23816   # 1. Remove the extension, and $U if already installed.
23817   ac_i=`echo "$ac_i" |
23818          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23819   # 2. Add them.
23820   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23821   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23822 done
23823 LIBOBJS=$ac_libobjs
23824
23825 LTLIBOBJS=$ac_ltlibobjs
23826
23827
23828
23829 : ${CONFIG_STATUS=./config.status}
23830 ac_clean_files_save=$ac_clean_files
23831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23832 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23833 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23834 cat >$CONFIG_STATUS <<_ACEOF
23835 #! $SHELL
23836 # Generated by $as_me.
23837 # Run this file to recreate the current configuration.
23838 # Compiler output produced by configure, useful for debugging
23839 # configure, is in config.log if it exists.
23840
23841 debug=false
23842 ac_cs_recheck=false
23843 ac_cs_silent=false
23844 SHELL=\${CONFIG_SHELL-$SHELL}
23845 _ACEOF
23846
23847 cat >>$CONFIG_STATUS <<\_ACEOF
23848 ## --------------------- ##
23849 ## M4sh Initialization.  ##
23850 ## --------------------- ##
23851
23852 # Be Bourne compatible
23853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23854   emulate sh
23855   NULLCMD=:
23856   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23857   # is contrary to our usage.  Disable this feature.
23858   alias -g '${1+"$@"}'='"$@"'
23859 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23860   set -o posix
23861 fi
23862 DUALCASE=1; export DUALCASE # for MKS sh
23863
23864 # Support unset when possible.
23865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23866   as_unset=unset
23867 else
23868   as_unset=false
23869 fi
23870
23871
23872 # Work around bugs in pre-3.0 UWIN ksh.
23873 $as_unset ENV MAIL MAILPATH
23874 PS1='$ '
23875 PS2='> '
23876 PS4='+ '
23877
23878 # NLS nuisances.
23879 for as_var in \
23880   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23881   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23882   LC_TELEPHONE LC_TIME
23883 do
23884   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23885     eval $as_var=C; export $as_var
23886   else
23887     $as_unset $as_var
23888   fi
23889 done
23890
23891 # Required to use basename.
23892 if expr a : '\(a\)' >/dev/null 2>&1; then
23893   as_expr=expr
23894 else
23895   as_expr=false
23896 fi
23897
23898 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23899   as_basename=basename
23900 else
23901   as_basename=false
23902 fi
23903
23904
23905 # Name of the executable.
23906 as_me=`$as_basename "$0" ||
23907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23908          X"$0" : 'X\(//\)$' \| \
23909          X"$0" : 'X\(/\)$' \| \
23910          .     : '\(.\)' 2>/dev/null ||
23911 echo X/"$0" |
23912     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23913           /^X\/\(\/\/\)$/{ s//\1/; q; }
23914           /^X\/\(\/\).*/{ s//\1/; q; }
23915           s/.*/./; q'`
23916
23917
23918 # PATH needs CR, and LINENO needs CR and PATH.
23919 # Avoid depending upon Character Ranges.
23920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23921 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23922 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23923 as_cr_digits='0123456789'
23924 as_cr_alnum=$as_cr_Letters$as_cr_digits
23925
23926 # The user is always right.
23927 if test "${PATH_SEPARATOR+set}" != set; then
23928   echo "#! /bin/sh" >conf$$.sh
23929   echo  "exit 0"   >>conf$$.sh
23930   chmod +x conf$$.sh
23931   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23932     PATH_SEPARATOR=';'
23933   else
23934     PATH_SEPARATOR=:
23935   fi
23936   rm -f conf$$.sh
23937 fi
23938
23939
23940   as_lineno_1=$LINENO
23941   as_lineno_2=$LINENO
23942   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23943   test "x$as_lineno_1" != "x$as_lineno_2" &&
23944   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23945   # Find who we are.  Look in the path if we contain no path at all
23946   # relative or not.
23947   case $0 in
23948     *[\\/]* ) as_myself=$0 ;;
23949     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950 for as_dir in $PATH
23951 do
23952   IFS=$as_save_IFS
23953   test -z "$as_dir" && as_dir=.
23954   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23955 done
23956
23957        ;;
23958   esac
23959   # We did not find ourselves, most probably we were run as `sh COMMAND'
23960   # in which case we are not to be found in the path.
23961   if test "x$as_myself" = x; then
23962     as_myself=$0
23963   fi
23964   if test ! -f "$as_myself"; then
23965     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23966 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23967    { (exit 1); exit 1; }; }
23968   fi
23969   case $CONFIG_SHELL in
23970   '')
23971     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23972 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23973 do
23974   IFS=$as_save_IFS
23975   test -z "$as_dir" && as_dir=.
23976   for as_base in sh bash ksh sh5; do
23977          case $as_dir in
23978          /*)
23979            if ("$as_dir/$as_base" -c '
23980   as_lineno_1=$LINENO
23981   as_lineno_2=$LINENO
23982   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23983   test "x$as_lineno_1" != "x$as_lineno_2" &&
23984   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23985              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23986              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23987              CONFIG_SHELL=$as_dir/$as_base
23988              export CONFIG_SHELL
23989              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23990            fi;;
23991          esac
23992        done
23993 done
23994 ;;
23995   esac
23996
23997   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23998   # uniformly replaced by the line number.  The first 'sed' inserts a
23999   # line-number line before each line; the second 'sed' does the real
24000   # work.  The second script uses 'N' to pair each line-number line
24001   # with the numbered line, and appends trailing '-' during
24002   # substitution so that $LINENO is not a special case at line end.
24003   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24004   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24005   sed '=' <$as_myself |
24006     sed '
24007       N
24008       s,$,-,
24009       : loop
24010       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24011       t loop
24012       s,-$,,
24013       s,^['$as_cr_digits']*\n,,
24014     ' >$as_me.lineno &&
24015   chmod +x $as_me.lineno ||
24016     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24017 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24018    { (exit 1); exit 1; }; }
24019
24020   # Don't try to exec as it changes $[0], causing all sort of problems
24021   # (the dirname of $[0] is not the place where we might find the
24022   # original and so on.  Autoconf is especially sensible to this).
24023   . ./$as_me.lineno
24024   # Exit status is that of the last command.
24025   exit
24026 }
24027
24028
24029 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24030   *c*,-n*) ECHO_N= ECHO_C='
24031 ' ECHO_T='      ' ;;
24032   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24033   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24034 esac
24035
24036 if expr a : '\(a\)' >/dev/null 2>&1; then
24037   as_expr=expr
24038 else
24039   as_expr=false
24040 fi
24041
24042 rm -f conf$$ conf$$.exe conf$$.file
24043 echo >conf$$.file
24044 if ln -s conf$$.file conf$$ 2>/dev/null; then
24045   # We could just check for DJGPP; but this test a) works b) is more generic
24046   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24047   if test -f conf$$.exe; then
24048     # Don't use ln at all; we don't have any links
24049     as_ln_s='cp -p'
24050   else
24051     as_ln_s='ln -s'
24052   fi
24053 elif ln conf$$.file conf$$ 2>/dev/null; then
24054   as_ln_s=ln
24055 else
24056   as_ln_s='cp -p'
24057 fi
24058 rm -f conf$$ conf$$.exe conf$$.file
24059
24060 if mkdir -p . 2>/dev/null; then
24061   as_mkdir_p=:
24062 else
24063   test -d ./-p && rmdir ./-p
24064   as_mkdir_p=false
24065 fi
24066
24067 as_executable_p="test -f"
24068
24069 # Sed expression to map a string onto a valid CPP name.
24070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24071
24072 # Sed expression to map a string onto a valid variable name.
24073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24074
24075
24076 # IFS
24077 # We need space, tab and new line, in precisely that order.
24078 as_nl='
24079 '
24080 IFS="   $as_nl"
24081
24082 # CDPATH.
24083 $as_unset CDPATH
24084
24085 exec 6>&1
24086
24087 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24088 # report actual input values of CONFIG_FILES etc. instead of their
24089 # values after options handling.  Logging --version etc. is OK.
24090 exec 5>>config.log
24091 {
24092   echo
24093   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24094 ## Running $as_me. ##
24095 _ASBOX
24096 } >&5
24097 cat >&5 <<_CSEOF
24098
24099 This file was extended by LLVM $as_me 1.3, which was
24100 generated by GNU Autoconf 2.59.  Invocation command line was
24101
24102   CONFIG_FILES    = $CONFIG_FILES
24103   CONFIG_HEADERS  = $CONFIG_HEADERS
24104   CONFIG_LINKS    = $CONFIG_LINKS
24105   CONFIG_COMMANDS = $CONFIG_COMMANDS
24106   $ $0 $@
24107
24108 _CSEOF
24109 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24110 echo >&5
24111 _ACEOF
24112
24113 # Files that config.status was made for.
24114 if test -n "$ac_config_files"; then
24115   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24116 fi
24117
24118 if test -n "$ac_config_headers"; then
24119   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24120 fi
24121
24122 if test -n "$ac_config_links"; then
24123   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24124 fi
24125
24126 if test -n "$ac_config_commands"; then
24127   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24128 fi
24129
24130 cat >>$CONFIG_STATUS <<\_ACEOF
24131
24132 ac_cs_usage="\
24133 \`$as_me' instantiates files from templates according to the
24134 current configuration.
24135
24136 Usage: $0 [OPTIONS] [FILE]...
24137
24138   -h, --help       print this help, then exit
24139   -V, --version    print version number, then exit
24140   -q, --quiet      do not print progress messages
24141   -d, --debug      don't remove temporary files
24142       --recheck    update $as_me by reconfiguring in the same conditions
24143   --file=FILE[:TEMPLATE]
24144                    instantiate the configuration file FILE
24145   --header=FILE[:TEMPLATE]
24146                    instantiate the configuration header FILE
24147
24148 Configuration files:
24149 $config_files
24150
24151 Configuration headers:
24152 $config_headers
24153
24154 Configuration commands:
24155 $config_commands
24156
24157 Report bugs to <bug-autoconf@gnu.org>."
24158 _ACEOF
24159
24160 cat >>$CONFIG_STATUS <<_ACEOF
24161 ac_cs_version="\\
24162 LLVM config.status 1.3
24163 configured by $0, generated by GNU Autoconf 2.59,
24164   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24165
24166 Copyright (C) 2003 Free Software Foundation, Inc.
24167 This config.status script is free software; the Free Software Foundation
24168 gives unlimited permission to copy, distribute and modify it."
24169 srcdir=$srcdir
24170 INSTALL="$INSTALL"
24171 _ACEOF
24172
24173 cat >>$CONFIG_STATUS <<\_ACEOF
24174 # If no file are specified by the user, then we need to provide default
24175 # value.  By we need to know if files were specified by the user.
24176 ac_need_defaults=:
24177 while test $# != 0
24178 do
24179   case $1 in
24180   --*=*)
24181     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24182     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24183     ac_shift=:
24184     ;;
24185   -*)
24186     ac_option=$1
24187     ac_optarg=$2
24188     ac_shift=shift
24189     ;;
24190   *) # This is not an option, so the user has probably given explicit
24191      # arguments.
24192      ac_option=$1
24193      ac_need_defaults=false;;
24194   esac
24195
24196   case $ac_option in
24197   # Handling of the options.
24198 _ACEOF
24199 cat >>$CONFIG_STATUS <<\_ACEOF
24200   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24201     ac_cs_recheck=: ;;
24202   --version | --vers* | -V )
24203     echo "$ac_cs_version"; exit 0 ;;
24204   --he | --h)
24205     # Conflict between --help and --header
24206     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24207 Try \`$0 --help' for more information." >&5
24208 echo "$as_me: error: ambiguous option: $1
24209 Try \`$0 --help' for more information." >&2;}
24210    { (exit 1); exit 1; }; };;
24211   --help | --hel | -h )
24212     echo "$ac_cs_usage"; exit 0 ;;
24213   --debug | --d* | -d )
24214     debug=: ;;
24215   --file | --fil | --fi | --f )
24216     $ac_shift
24217     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24218     ac_need_defaults=false;;
24219   --header | --heade | --head | --hea )
24220     $ac_shift
24221     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24222     ac_need_defaults=false;;
24223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24224   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24225     ac_cs_silent=: ;;
24226
24227   # This is an error.
24228   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24229 Try \`$0 --help' for more information." >&5
24230 echo "$as_me: error: unrecognized option: $1
24231 Try \`$0 --help' for more information." >&2;}
24232    { (exit 1); exit 1; }; } ;;
24233
24234   *) ac_config_targets="$ac_config_targets $1" ;;
24235
24236   esac
24237   shift
24238 done
24239
24240 ac_configure_extra_args=
24241
24242 if $ac_cs_silent; then
24243   exec 6>/dev/null
24244   ac_configure_extra_args="$ac_configure_extra_args --silent"
24245 fi
24246
24247 _ACEOF
24248 cat >>$CONFIG_STATUS <<_ACEOF
24249 if \$ac_cs_recheck; then
24250   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24251   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24252 fi
24253
24254 _ACEOF
24255
24256 cat >>$CONFIG_STATUS <<_ACEOF
24257 #
24258 # INIT-COMMANDS section.
24259 #
24260
24261 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24262 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24263 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24264 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24265 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24266 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24267 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24268 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24269 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24270 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24271 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24272 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24273 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24274 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24275 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24276 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24277 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24278 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24279 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24280 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24281 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24282 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24283 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24284 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24285 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24286 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24287 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24288 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24289 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24290 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24291 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24292 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24293 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24294 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24295 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24296 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24297 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24298 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24299 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24300 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24301 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24302 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24303 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24304 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24305 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24306 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24307 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24308 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24309 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24310 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24311
24312 _ACEOF
24313
24314
24315
24316 cat >>$CONFIG_STATUS <<\_ACEOF
24317 for ac_config_target in $ac_config_targets
24318 do
24319   case "$ac_config_target" in
24320   # Handling of arguments.
24321   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24322   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24323   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24324   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24325   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24326   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24327   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24328   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24329   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24330   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24331   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24332   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24333   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24334   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24335   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24336   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24337   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24338   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24339   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24340   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24341   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24342   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24343   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24344   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24345   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24346   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24347   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24348   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24349   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24350   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24351   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24352   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24353   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24354   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24355   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24356   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24357   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24358   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24359   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24360   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24361   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24362   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24363   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24364   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24365   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24366   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24367   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24368   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24369   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24370   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24371   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24372   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24373   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24374   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24375   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24376   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24377   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24378   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24380    { (exit 1); exit 1; }; };;
24381   esac
24382 done
24383
24384 # If the user did not use the arguments to specify the items to instantiate,
24385 # then the envvar interface is used.  Set only those that are not.
24386 # We use the long form for the default assignment because of an extremely
24387 # bizarre bug on SunOS 4.1.3.
24388 if $ac_need_defaults; then
24389   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24390   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24391   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24392 fi
24393
24394 # Have a temporary directory for convenience.  Make it in the build tree
24395 # simply because there is no reason to put it here, and in addition,
24396 # creating and moving files from /tmp can sometimes cause problems.
24397 # Create a temporary directory, and hook for its removal unless debugging.
24398 $debug ||
24399 {
24400   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24401   trap '{ (exit 1); exit 1; }' 1 2 13 15
24402 }
24403
24404 # Create a (secure) tmp directory for tmp files.
24405
24406 {
24407   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24408   test -n "$tmp" && test -d "$tmp"
24409 }  ||
24410 {
24411   tmp=./confstat$$-$RANDOM
24412   (umask 077 && mkdir $tmp)
24413 } ||
24414 {
24415    echo "$me: cannot create a temporary directory in ." >&2
24416    { (exit 1); exit 1; }
24417 }
24418
24419 _ACEOF
24420
24421 cat >>$CONFIG_STATUS <<_ACEOF
24422
24423 #
24424 # CONFIG_FILES section.
24425 #
24426
24427 # No need to generate the scripts if there are no CONFIG_FILES.
24428 # This happens for instance when ./config.status config.h
24429 if test -n "\$CONFIG_FILES"; then
24430   # Protect against being on the right side of a sed subst in config.status.
24431   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24432    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24433 s,@SHELL@,$SHELL,;t t
24434 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24435 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24436 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24437 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24438 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24439 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24440 s,@exec_prefix@,$exec_prefix,;t t
24441 s,@prefix@,$prefix,;t t
24442 s,@program_transform_name@,$program_transform_name,;t t
24443 s,@bindir@,$bindir,;t t
24444 s,@sbindir@,$sbindir,;t t
24445 s,@libexecdir@,$libexecdir,;t t
24446 s,@datadir@,$datadir,;t t
24447 s,@sysconfdir@,$sysconfdir,;t t
24448 s,@sharedstatedir@,$sharedstatedir,;t t
24449 s,@localstatedir@,$localstatedir,;t t
24450 s,@libdir@,$libdir,;t t
24451 s,@includedir@,$includedir,;t t
24452 s,@oldincludedir@,$oldincludedir,;t t
24453 s,@infodir@,$infodir,;t t
24454 s,@mandir@,$mandir,;t t
24455 s,@build_alias@,$build_alias,;t t
24456 s,@host_alias@,$host_alias,;t t
24457 s,@target_alias@,$target_alias,;t t
24458 s,@DEFS@,$DEFS,;t t
24459 s,@ECHO_C@,$ECHO_C,;t t
24460 s,@ECHO_N@,$ECHO_N,;t t
24461 s,@ECHO_T@,$ECHO_T,;t t
24462 s,@LIBS@,$LIBS,;t t
24463 s,@subdirs@,$subdirs,;t t
24464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24467 s,@build@,$build,;t t
24468 s,@build_cpu@,$build_cpu,;t t
24469 s,@build_vendor@,$build_vendor,;t t
24470 s,@build_os@,$build_os,;t t
24471 s,@host@,$host,;t t
24472 s,@host_cpu@,$host_cpu,;t t
24473 s,@host_vendor@,$host_vendor,;t t
24474 s,@host_os@,$host_os,;t t
24475 s,@target@,$target,;t t
24476 s,@target_cpu@,$target_cpu,;t t
24477 s,@target_vendor@,$target_vendor,;t t
24478 s,@target_os@,$target_os,;t t
24479 s,@OS@,$OS,;t t
24480 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24481 s,@ARCH@,$ARCH,;t t
24482 s,@CXX@,$CXX,;t t
24483 s,@CXXFLAGS@,$CXXFLAGS,;t t
24484 s,@LDFLAGS@,$LDFLAGS,;t t
24485 s,@CPPFLAGS@,$CPPFLAGS,;t t
24486 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24487 s,@EXEEXT@,$EXEEXT,;t t
24488 s,@OBJEXT@,$OBJEXT,;t t
24489 s,@CC@,$CC,;t t
24490 s,@CFLAGS@,$CFLAGS,;t t
24491 s,@ac_ct_CC@,$ac_ct_CC,;t t
24492 s,@CPP@,$CPP,;t t
24493 s,@ifGNUmake@,$ifGNUmake,;t t
24494 s,@LEX@,$LEX,;t t
24495 s,@LEXLIB@,$LEXLIB,;t t
24496 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24497 s,@YACC@,$YACC,;t t
24498 s,@BISON@,$BISON,;t t
24499 s,@EGREP@,$EGREP,;t t
24500 s,@LN_S@,$LN_S,;t t
24501 s,@ECHO@,$ECHO,;t t
24502 s,@AR@,$AR,;t t
24503 s,@ac_ct_AR@,$ac_ct_AR,;t t
24504 s,@RANLIB@,$RANLIB,;t t
24505 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24506 s,@STRIP@,$STRIP,;t t
24507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24508 s,@CXXCPP@,$CXXCPP,;t t
24509 s,@F77@,$F77,;t t
24510 s,@FFLAGS@,$FFLAGS,;t t
24511 s,@ac_ct_F77@,$ac_ct_F77,;t t
24512 s,@LIBTOOL@,$LIBTOOL,;t t
24513 s,@DOT@,$DOT,;t t
24514 s,@ETAGS@,$ETAGS,;t t
24515 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24516 s,@PYTHON@,$PYTHON,;t t
24517 s,@QMTEST@,$QMTEST,;t t
24518 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24519 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24520 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24521 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24522 s,@ENDIAN@,$ENDIAN,;t t
24523 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24524 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24525 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24526 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24527 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24528 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24529 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24530 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24531 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24532 s,@ALLOCA@,$ALLOCA,;t t
24533 s,@MMAP_FILE@,$MMAP_FILE,;t t
24534 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24535 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24536 s,@USE_SPEC95@,$USE_SPEC95,;t t
24537 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24538 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24539 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24540 s,@USE_POVRAY@,$USE_POVRAY,;t t
24541 s,@UPB@,$UPB,;t t
24542 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24543 s,@JIT@,$JIT,;t t
24544 s,@LLVMCC1@,$LLVMCC1,;t t
24545 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24546 s,@BCR@,$BCR,;t t
24547 s,@PAPIDIR@,$PAPIDIR,;t t
24548 s,@SHLIBEXT@,$SHLIBEXT,;t t
24549 s,@LIBOBJS@,$LIBOBJS,;t t
24550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24551 CEOF
24552
24553 _ACEOF
24554
24555   cat >>$CONFIG_STATUS <<\_ACEOF
24556   # Split the substitutions into bite-sized pieces for seds with
24557   # small command number limits, like on Digital OSF/1 and HP-UX.
24558   ac_max_sed_lines=48
24559   ac_sed_frag=1 # Number of current file.
24560   ac_beg=1 # First line for current file.
24561   ac_end=$ac_max_sed_lines # Line after last line for current file.
24562   ac_more_lines=:
24563   ac_sed_cmds=
24564   while $ac_more_lines; do
24565     if test $ac_beg -gt 1; then
24566       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24567     else
24568       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24569     fi
24570     if test ! -s $tmp/subs.frag; then
24571       ac_more_lines=false
24572     else
24573       # The purpose of the label and of the branching condition is to
24574       # speed up the sed processing (if there are no `@' at all, there
24575       # is no need to browse any of the substitutions).
24576       # These are the two extra sed commands mentioned above.
24577       (echo ':t
24578   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24579       if test -z "$ac_sed_cmds"; then
24580         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24581       else
24582         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24583       fi
24584       ac_sed_frag=`expr $ac_sed_frag + 1`
24585       ac_beg=$ac_end
24586       ac_end=`expr $ac_end + $ac_max_sed_lines`
24587     fi
24588   done
24589   if test -z "$ac_sed_cmds"; then
24590     ac_sed_cmds=cat
24591   fi
24592 fi # test -n "$CONFIG_FILES"
24593
24594 _ACEOF
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24597   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24598   case $ac_file in
24599   - | *:- | *:-:* ) # input from stdin
24600         cat >$tmp/stdin
24601         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24602         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24603   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24604         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24605   * )   ac_file_in=$ac_file.in ;;
24606   esac
24607
24608   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24609   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611          X"$ac_file" : 'X\(//\)[^/]' \| \
24612          X"$ac_file" : 'X\(//\)$' \| \
24613          X"$ac_file" : 'X\(/\)' \| \
24614          .     : '\(.\)' 2>/dev/null ||
24615 echo X"$ac_file" |
24616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24617           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24618           /^X\(\/\/\)$/{ s//\1/; q; }
24619           /^X\(\/\).*/{ s//\1/; q; }
24620           s/.*/./; q'`
24621   { if $as_mkdir_p; then
24622     mkdir -p "$ac_dir"
24623   else
24624     as_dir="$ac_dir"
24625     as_dirs=
24626     while test ! -d "$as_dir"; do
24627       as_dirs="$as_dir $as_dirs"
24628       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24630          X"$as_dir" : 'X\(//\)[^/]' \| \
24631          X"$as_dir" : 'X\(//\)$' \| \
24632          X"$as_dir" : 'X\(/\)' \| \
24633          .     : '\(.\)' 2>/dev/null ||
24634 echo X"$as_dir" |
24635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24636           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24637           /^X\(\/\/\)$/{ s//\1/; q; }
24638           /^X\(\/\).*/{ s//\1/; q; }
24639           s/.*/./; q'`
24640     done
24641     test ! -n "$as_dirs" || mkdir $as_dirs
24642   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24644    { (exit 1); exit 1; }; }; }
24645
24646   ac_builddir=.
24647
24648 if test "$ac_dir" != .; then
24649   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650   # A "../" for each directory in $ac_dir_suffix.
24651   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24652 else
24653   ac_dir_suffix= ac_top_builddir=
24654 fi
24655
24656 case $srcdir in
24657   .)  # No --srcdir option.  We are building in place.
24658     ac_srcdir=.
24659     if test -z "$ac_top_builddir"; then
24660        ac_top_srcdir=.
24661     else
24662        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24663     fi ;;
24664   [\\/]* | ?:[\\/]* )  # Absolute path.
24665     ac_srcdir=$srcdir$ac_dir_suffix;
24666     ac_top_srcdir=$srcdir ;;
24667   *) # Relative path.
24668     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24670 esac
24671
24672 # Do not use `cd foo && pwd` to compute absolute paths, because
24673 # the directories may not exist.
24674 case `pwd` in
24675 .) ac_abs_builddir="$ac_dir";;
24676 *)
24677   case "$ac_dir" in
24678   .) ac_abs_builddir=`pwd`;;
24679   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24680   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24681   esac;;
24682 esac
24683 case $ac_abs_builddir in
24684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24685 *)
24686   case ${ac_top_builddir}. in
24687   .) ac_abs_top_builddir=$ac_abs_builddir;;
24688   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24689   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24690   esac;;
24691 esac
24692 case $ac_abs_builddir in
24693 .) ac_abs_srcdir=$ac_srcdir;;
24694 *)
24695   case $ac_srcdir in
24696   .) ac_abs_srcdir=$ac_abs_builddir;;
24697   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24698   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24699   esac;;
24700 esac
24701 case $ac_abs_builddir in
24702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24703 *)
24704   case $ac_top_srcdir in
24705   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24706   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24707   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24708   esac;;
24709 esac
24710
24711
24712   case $INSTALL in
24713   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24714   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24715   esac
24716
24717   if test x"$ac_file" != x-; then
24718     { echo "$as_me:$LINENO: creating $ac_file" >&5
24719 echo "$as_me: creating $ac_file" >&6;}
24720     rm -f "$ac_file"
24721   fi
24722   # Let's still pretend it is `configure' which instantiates (i.e., don't
24723   # use $as_me), people would be surprised to read:
24724   #    /* config.h.  Generated by config.status.  */
24725   if test x"$ac_file" = x-; then
24726     configure_input=
24727   else
24728     configure_input="$ac_file.  "
24729   fi
24730   configure_input=$configure_input"Generated from `echo $ac_file_in |
24731                                      sed 's,.*/,,'` by configure."
24732
24733   # First look for the input files in the build tree, otherwise in the
24734   # src tree.
24735   ac_file_inputs=`IFS=:
24736     for f in $ac_file_in; do
24737       case $f in
24738       -) echo $tmp/stdin ;;
24739       [\\/$]*)
24740          # Absolute (can't be DOS-style, as IFS=:)
24741          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24742 echo "$as_me: error: cannot find input file: $f" >&2;}
24743    { (exit 1); exit 1; }; }
24744          echo "$f";;
24745       *) # Relative
24746          if test -f "$f"; then
24747            # Build tree
24748            echo "$f"
24749          elif test -f "$srcdir/$f"; then
24750            # Source tree
24751            echo "$srcdir/$f"
24752          else
24753            # /dev/null tree
24754            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24755 echo "$as_me: error: cannot find input file: $f" >&2;}
24756    { (exit 1); exit 1; }; }
24757          fi;;
24758       esac
24759     done` || { (exit 1); exit 1; }
24760 _ACEOF
24761 cat >>$CONFIG_STATUS <<_ACEOF
24762   sed "$ac_vpsub
24763 $extrasub
24764 _ACEOF
24765 cat >>$CONFIG_STATUS <<\_ACEOF
24766 :t
24767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24768 s,@configure_input@,$configure_input,;t t
24769 s,@srcdir@,$ac_srcdir,;t t
24770 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24771 s,@top_srcdir@,$ac_top_srcdir,;t t
24772 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24773 s,@builddir@,$ac_builddir,;t t
24774 s,@abs_builddir@,$ac_abs_builddir,;t t
24775 s,@top_builddir@,$ac_top_builddir,;t t
24776 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24777 s,@INSTALL@,$ac_INSTALL,;t t
24778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24779   rm -f $tmp/stdin
24780   if test x"$ac_file" != x-; then
24781     mv $tmp/out $ac_file
24782   else
24783     cat $tmp/out
24784     rm -f $tmp/out
24785   fi
24786
24787 done
24788 _ACEOF
24789 cat >>$CONFIG_STATUS <<\_ACEOF
24790
24791 #
24792 # CONFIG_HEADER section.
24793 #
24794
24795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24797 #
24798 # ac_d sets the value in "#define NAME VALUE" lines.
24799 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24800 ac_dB='[         ].*$,\1#\2'
24801 ac_dC=' '
24802 ac_dD=',;t'
24803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24804 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24805 ac_uB='$,\1#\2define\3'
24806 ac_uC=' '
24807 ac_uD=',;t'
24808
24809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24810   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24811   case $ac_file in
24812   - | *:- | *:-:* ) # input from stdin
24813         cat >$tmp/stdin
24814         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24815         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24816   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24817         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24818   * )   ac_file_in=$ac_file.in ;;
24819   esac
24820
24821   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24822 echo "$as_me: creating $ac_file" >&6;}
24823
24824   # First look for the input files in the build tree, otherwise in the
24825   # src tree.
24826   ac_file_inputs=`IFS=:
24827     for f in $ac_file_in; do
24828       case $f in
24829       -) echo $tmp/stdin ;;
24830       [\\/$]*)
24831          # Absolute (can't be DOS-style, as IFS=:)
24832          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24833 echo "$as_me: error: cannot find input file: $f" >&2;}
24834    { (exit 1); exit 1; }; }
24835          # Do quote $f, to prevent DOS paths from being IFS'd.
24836          echo "$f";;
24837       *) # Relative
24838          if test -f "$f"; then
24839            # Build tree
24840            echo "$f"
24841          elif test -f "$srcdir/$f"; then
24842            # Source tree
24843            echo "$srcdir/$f"
24844          else
24845            # /dev/null tree
24846            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24847 echo "$as_me: error: cannot find input file: $f" >&2;}
24848    { (exit 1); exit 1; }; }
24849          fi;;
24850       esac
24851     done` || { (exit 1); exit 1; }
24852   # Remove the trailing spaces.
24853   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24854
24855 _ACEOF
24856
24857 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24858 # `conftest.undefs', that substitutes the proper values into
24859 # config.h.in to produce config.h.  The first handles `#define'
24860 # templates, and the second `#undef' templates.
24861 # And first: Protect against being on the right side of a sed subst in
24862 # config.status.  Protect against being in an unquoted here document
24863 # in config.status.
24864 rm -f conftest.defines conftest.undefs
24865 # Using a here document instead of a string reduces the quoting nightmare.
24866 # Putting comments in sed scripts is not portable.
24867 #
24868 # `end' is used to avoid that the second main sed command (meant for
24869 # 0-ary CPP macros) applies to n-ary macro definitions.
24870 # See the Autoconf documentation for `clear'.
24871 cat >confdef2sed.sed <<\_ACEOF
24872 s/[\\&,]/\\&/g
24873 s,[\\$`],\\&,g
24874 t clear
24875 : clear
24876 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24877 t end
24878 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24879 : end
24880 _ACEOF
24881 # If some macros were called several times there might be several times
24882 # the same #defines, which is useless.  Nevertheless, we may not want to
24883 # sort them, since we want the *last* AC-DEFINE to be honored.
24884 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24885 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24886 rm -f confdef2sed.sed
24887
24888 # This sed command replaces #undef with comments.  This is necessary, for
24889 # example, in the case of _POSIX_SOURCE, which is predefined and required
24890 # on some systems where configure will not decide to define it.
24891 cat >>conftest.undefs <<\_ACEOF
24892 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24893 _ACEOF
24894
24895 # Break up conftest.defines because some shells have a limit on the size
24896 # of here documents, and old seds have small limits too (100 cmds).
24897 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24898 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24899 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24900 echo '  :' >>$CONFIG_STATUS
24901 rm -f conftest.tail
24902 while grep . conftest.defines >/dev/null
24903 do
24904   # Write a limited-size here document to $tmp/defines.sed.
24905   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24906   # Speed up: don't consider the non `#define' lines.
24907   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24908   # Work around the forget-to-reset-the-flag bug.
24909   echo 't clr' >>$CONFIG_STATUS
24910   echo ': clr' >>$CONFIG_STATUS
24911   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24912   echo 'CEOF
24913   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24914   rm -f $tmp/in
24915   mv $tmp/out $tmp/in
24916 ' >>$CONFIG_STATUS
24917   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24918   rm -f conftest.defines
24919   mv conftest.tail conftest.defines
24920 done
24921 rm -f conftest.defines
24922 echo '  fi # grep' >>$CONFIG_STATUS
24923 echo >>$CONFIG_STATUS
24924
24925 # Break up conftest.undefs because some shells have a limit on the size
24926 # of here documents, and old seds have small limits too (100 cmds).
24927 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24928 rm -f conftest.tail
24929 while grep . conftest.undefs >/dev/null
24930 do
24931   # Write a limited-size here document to $tmp/undefs.sed.
24932   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24933   # Speed up: don't consider the non `#undef'
24934   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24935   # Work around the forget-to-reset-the-flag bug.
24936   echo 't clr' >>$CONFIG_STATUS
24937   echo ': clr' >>$CONFIG_STATUS
24938   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24939   echo 'CEOF
24940   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24941   rm -f $tmp/in
24942   mv $tmp/out $tmp/in
24943 ' >>$CONFIG_STATUS
24944   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24945   rm -f conftest.undefs
24946   mv conftest.tail conftest.undefs
24947 done
24948 rm -f conftest.undefs
24949
24950 cat >>$CONFIG_STATUS <<\_ACEOF
24951   # Let's still pretend it is `configure' which instantiates (i.e., don't
24952   # use $as_me), people would be surprised to read:
24953   #    /* config.h.  Generated by config.status.  */
24954   if test x"$ac_file" = x-; then
24955     echo "/* Generated by configure.  */" >$tmp/config.h
24956   else
24957     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24958   fi
24959   cat $tmp/in >>$tmp/config.h
24960   rm -f $tmp/in
24961   if test x"$ac_file" != x-; then
24962     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24963       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24964 echo "$as_me: $ac_file is unchanged" >&6;}
24965     else
24966       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24968          X"$ac_file" : 'X\(//\)[^/]' \| \
24969          X"$ac_file" : 'X\(//\)$' \| \
24970          X"$ac_file" : 'X\(/\)' \| \
24971          .     : '\(.\)' 2>/dev/null ||
24972 echo X"$ac_file" |
24973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24975           /^X\(\/\/\)$/{ s//\1/; q; }
24976           /^X\(\/\).*/{ s//\1/; q; }
24977           s/.*/./; q'`
24978       { if $as_mkdir_p; then
24979     mkdir -p "$ac_dir"
24980   else
24981     as_dir="$ac_dir"
24982     as_dirs=
24983     while test ! -d "$as_dir"; do
24984       as_dirs="$as_dir $as_dirs"
24985       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24987          X"$as_dir" : 'X\(//\)[^/]' \| \
24988          X"$as_dir" : 'X\(//\)$' \| \
24989          X"$as_dir" : 'X\(/\)' \| \
24990          .     : '\(.\)' 2>/dev/null ||
24991 echo X"$as_dir" |
24992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24994           /^X\(\/\/\)$/{ s//\1/; q; }
24995           /^X\(\/\).*/{ s//\1/; q; }
24996           s/.*/./; q'`
24997     done
24998     test ! -n "$as_dirs" || mkdir $as_dirs
24999   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25001    { (exit 1); exit 1; }; }; }
25002
25003       rm -f $ac_file
25004       mv $tmp/config.h $ac_file
25005     fi
25006   else
25007     cat $tmp/config.h
25008     rm -f $tmp/config.h
25009   fi
25010 done
25011 _ACEOF
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25013
25014 #
25015 # CONFIG_COMMANDS section.
25016 #
25017 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25018   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25019   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25020   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25021 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022          X"$ac_dest" : 'X\(//\)[^/]' \| \
25023          X"$ac_dest" : 'X\(//\)$' \| \
25024          X"$ac_dest" : 'X\(/\)' \| \
25025          .     : '\(.\)' 2>/dev/null ||
25026 echo X"$ac_dest" |
25027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029           /^X\(\/\/\)$/{ s//\1/; q; }
25030           /^X\(\/\).*/{ s//\1/; q; }
25031           s/.*/./; q'`
25032   { if $as_mkdir_p; then
25033     mkdir -p "$ac_dir"
25034   else
25035     as_dir="$ac_dir"
25036     as_dirs=
25037     while test ! -d "$as_dir"; do
25038       as_dirs="$as_dir $as_dirs"
25039       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25041          X"$as_dir" : 'X\(//\)[^/]' \| \
25042          X"$as_dir" : 'X\(//\)$' \| \
25043          X"$as_dir" : 'X\(/\)' \| \
25044          .     : '\(.\)' 2>/dev/null ||
25045 echo X"$as_dir" |
25046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25047           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25048           /^X\(\/\/\)$/{ s//\1/; q; }
25049           /^X\(\/\).*/{ s//\1/; q; }
25050           s/.*/./; q'`
25051     done
25052     test ! -n "$as_dirs" || mkdir $as_dirs
25053   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25054 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25055    { (exit 1); exit 1; }; }; }
25056
25057   ac_builddir=.
25058
25059 if test "$ac_dir" != .; then
25060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25061   # A "../" for each directory in $ac_dir_suffix.
25062   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25063 else
25064   ac_dir_suffix= ac_top_builddir=
25065 fi
25066
25067 case $srcdir in
25068   .)  # No --srcdir option.  We are building in place.
25069     ac_srcdir=.
25070     if test -z "$ac_top_builddir"; then
25071        ac_top_srcdir=.
25072     else
25073        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25074     fi ;;
25075   [\\/]* | ?:[\\/]* )  # Absolute path.
25076     ac_srcdir=$srcdir$ac_dir_suffix;
25077     ac_top_srcdir=$srcdir ;;
25078   *) # Relative path.
25079     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25080     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25081 esac
25082
25083 # Do not use `cd foo && pwd` to compute absolute paths, because
25084 # the directories may not exist.
25085 case `pwd` in
25086 .) ac_abs_builddir="$ac_dir";;
25087 *)
25088   case "$ac_dir" in
25089   .) ac_abs_builddir=`pwd`;;
25090   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25091   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25092   esac;;
25093 esac
25094 case $ac_abs_builddir in
25095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25096 *)
25097   case ${ac_top_builddir}. in
25098   .) ac_abs_top_builddir=$ac_abs_builddir;;
25099   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25100   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25101   esac;;
25102 esac
25103 case $ac_abs_builddir in
25104 .) ac_abs_srcdir=$ac_srcdir;;
25105 *)
25106   case $ac_srcdir in
25107   .) ac_abs_srcdir=$ac_abs_builddir;;
25108   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25109   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25110   esac;;
25111 esac
25112 case $ac_abs_builddir in
25113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25114 *)
25115   case $ac_top_srcdir in
25116   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25117   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25118   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25119   esac;;
25120 esac
25121
25122
25123   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25124 echo "$as_me: executing $ac_dest commands" >&6;}
25125   case $ac_dest in
25126     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25127     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25128     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25129     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25130     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25131     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25132     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25133     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25134     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25135     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25136     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25137     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25138     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25139     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25140     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25141     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25142     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25143     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25144     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25145     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25146     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25147     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25148     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25149     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25150     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25151     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25152     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25153     test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25154     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25155     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25156     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25157     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25158     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25159     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25160     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25161     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25162     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25163     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25164     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25165     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25166     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25167     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25168     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25169     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25170     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25171     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25172     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25173     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25174     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25175     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25176   esac
25177 done
25178 _ACEOF
25179
25180 cat >>$CONFIG_STATUS <<\_ACEOF
25181
25182 { (exit 0); exit 0; }
25183 _ACEOF
25184 chmod +x $CONFIG_STATUS
25185 ac_clean_files=$ac_clean_files_save
25186
25187
25188 # configure is writing to config.log, and then calls config.status.
25189 # config.status does its own redirection, appending to config.log.
25190 # Unfortunately, on DOS this fails, as config.log is still kept open
25191 # by configure, so config.status won't be able to write to it; its
25192 # output is simply discarded.  So we exec the FD to /dev/null,
25193 # effectively closing config.log, so it can be properly (re)opened and
25194 # appended to by config.status.  When coming back to configure, we
25195 # need to make the FD available again.
25196 if test "$no_create" != yes; then
25197   ac_cs_success=:
25198   ac_config_status_args=
25199   test "$silent" = yes &&
25200     ac_config_status_args="$ac_config_status_args --quiet"
25201   exec 5>/dev/null
25202   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25203   exec 5>>config.log
25204   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25205   # would make configure fail if this is the last instruction.
25206   $ac_cs_success || { (exit 1); exit 1; }
25207 fi
25208
25209 #
25210 # CONFIG_SUBDIRS section.
25211 #
25212 if test "$no_recursion" != yes; then
25213
25214   # Remove --cache-file and --srcdir arguments so they do not pile up.
25215   ac_sub_configure_args=
25216   ac_prev=
25217   for ac_arg in $ac_configure_args; do
25218     if test -n "$ac_prev"; then
25219       ac_prev=
25220       continue
25221     fi
25222     case $ac_arg in
25223     -cache-file | --cache-file | --cache-fil | --cache-fi \
25224     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25225       ac_prev=cache_file ;;
25226     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25227     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25228     | --c=*)
25229       ;;
25230     --config-cache | -C)
25231       ;;
25232     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25233       ac_prev=srcdir ;;
25234     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25235       ;;
25236     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25237       ac_prev=prefix ;;
25238     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25239       ;;
25240     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25241     esac
25242   done
25243
25244   # Always prepend --prefix to ensure using the same prefix
25245   # in subdir configurations.
25246   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25247
25248   ac_popdir=`pwd`
25249   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25250
25251     # Do not complain, so a configure script can configure whichever
25252     # parts of a large source tree are present.
25253     test -d $srcdir/$ac_dir || continue
25254
25255     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25256 echo "$as_me: configuring in $ac_dir" >&6;}
25257     { if $as_mkdir_p; then
25258     mkdir -p "$ac_dir"
25259   else
25260     as_dir="$ac_dir"
25261     as_dirs=
25262     while test ! -d "$as_dir"; do
25263       as_dirs="$as_dir $as_dirs"
25264       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266          X"$as_dir" : 'X\(//\)[^/]' \| \
25267          X"$as_dir" : 'X\(//\)$' \| \
25268          X"$as_dir" : 'X\(/\)' \| \
25269          .     : '\(.\)' 2>/dev/null ||
25270 echo X"$as_dir" |
25271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25273           /^X\(\/\/\)$/{ s//\1/; q; }
25274           /^X\(\/\).*/{ s//\1/; q; }
25275           s/.*/./; q'`
25276     done
25277     test ! -n "$as_dirs" || mkdir $as_dirs
25278   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25280    { (exit 1); exit 1; }; }; }
25281
25282     ac_builddir=.
25283
25284 if test "$ac_dir" != .; then
25285   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25286   # A "../" for each directory in $ac_dir_suffix.
25287   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25288 else
25289   ac_dir_suffix= ac_top_builddir=
25290 fi
25291
25292 case $srcdir in
25293   .)  # No --srcdir option.  We are building in place.
25294     ac_srcdir=.
25295     if test -z "$ac_top_builddir"; then
25296        ac_top_srcdir=.
25297     else
25298        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25299     fi ;;
25300   [\\/]* | ?:[\\/]* )  # Absolute path.
25301     ac_srcdir=$srcdir$ac_dir_suffix;
25302     ac_top_srcdir=$srcdir ;;
25303   *) # Relative path.
25304     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25305     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25306 esac
25307
25308 # Do not use `cd foo && pwd` to compute absolute paths, because
25309 # the directories may not exist.
25310 case `pwd` in
25311 .) ac_abs_builddir="$ac_dir";;
25312 *)
25313   case "$ac_dir" in
25314   .) ac_abs_builddir=`pwd`;;
25315   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25316   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25317   esac;;
25318 esac
25319 case $ac_abs_builddir in
25320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25321 *)
25322   case ${ac_top_builddir}. in
25323   .) ac_abs_top_builddir=$ac_abs_builddir;;
25324   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25325   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25326   esac;;
25327 esac
25328 case $ac_abs_builddir in
25329 .) ac_abs_srcdir=$ac_srcdir;;
25330 *)
25331   case $ac_srcdir in
25332   .) ac_abs_srcdir=$ac_abs_builddir;;
25333   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25334   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25335   esac;;
25336 esac
25337 case $ac_abs_builddir in
25338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25339 *)
25340   case $ac_top_srcdir in
25341   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25342   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25343   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25344   esac;;
25345 esac
25346
25347
25348     cd $ac_dir
25349
25350     # Check for guested configure; otherwise get Cygnus style configure.
25351     if test -f $ac_srcdir/configure.gnu; then
25352       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25353     elif test -f $ac_srcdir/configure; then
25354       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25355     elif test -f $ac_srcdir/configure.in; then
25356       ac_sub_configure=$ac_configure
25357     else
25358       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25360       ac_sub_configure=
25361     fi
25362
25363     # The recursion is here.
25364     if test -n "$ac_sub_configure"; then
25365       # Make the cache file name correct relative to the subdirectory.
25366       case $cache_file in
25367       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25368       *) # Relative path.
25369         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25370       esac
25371
25372       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25373 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25374       # The eval makes quoting arguments work.
25375       eval $ac_sub_configure $ac_sub_configure_args \
25376            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25377         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25378 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25379    { (exit 1); exit 1; }; }
25380     fi
25381
25382     cd $ac_popdir
25383   done
25384 fi
25385
25386
25387 if test $llvmgccwarn = yes
25388 then
25389         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25390 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25391         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25392 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25393         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25394 echo "$as_me: WARNING: ***** " >&2;}
25395         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25396 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25397         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25398 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25399         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25400 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25401 fi
25402