Missed one $*.a -> $@ conversion for the Release build.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## 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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
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.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 #  include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 #  include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 #  include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 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 FLEX 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 JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
477 ac_subst_files=''
478
479 # Initialize some variables set by options.
480 ac_init_help=
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
484 cache_file=/dev/null
485 exec_prefix=NONE
486 no_create=
487 no_recursion=
488 prefix=NONE
489 program_prefix=NONE
490 program_suffix=NONE
491 program_transform_name=s,x,x,
492 silent=
493 site=
494 srcdir=
495 verbose=
496 x_includes=NONE
497 x_libraries=NONE
498
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
516
517 ac_prev=
518 for ac_option
519 do
520   # If the previous option needs an argument, assign it.
521   if test -n "$ac_prev"; then
522     eval "$ac_prev=\$ac_option"
523     ac_prev=
524     continue
525   fi
526
527   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529   # Accept the important Cygnus configure options, so we can diagnose typos.
530
531   case $ac_option in
532
533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
534     ac_prev=bindir ;;
535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536     bindir=$ac_optarg ;;
537
538   -build | --build | --buil | --bui | --bu)
539     ac_prev=build_alias ;;
540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541     build_alias=$ac_optarg ;;
542
543   -cache-file | --cache-file | --cache-fil | --cache-fi \
544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545     ac_prev=cache_file ;;
546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548     cache_file=$ac_optarg ;;
549
550   --config-cache | -C)
551     cache_file=config.cache ;;
552
553   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554     ac_prev=datadir ;;
555   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556   | --da=*)
557     datadir=$ac_optarg ;;
558
559   -disable-* | --disable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     eval "enable_$ac_feature=no" ;;
567
568   -enable-* | --enable-*)
569     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573    { (exit 1); exit 1; }; }
574     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "enable_$ac_feature='$ac_optarg'" ;;
580
581   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583   | --exec | --exe | --ex)
584     ac_prev=exec_prefix ;;
585   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587   | --exec=* | --exe=* | --ex=*)
588     exec_prefix=$ac_optarg ;;
589
590   -gas | --gas | --ga | --g)
591     # Obsolete; use --with-gas.
592     with_gas=yes ;;
593
594   -help | --help | --hel | --he | -h)
595     ac_init_help=long ;;
596   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597     ac_init_help=recursive ;;
598   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599     ac_init_help=short ;;
600
601   -host | --host | --hos | --ho)
602     ac_prev=host_alias ;;
603   -host=* | --host=* | --hos=* | --ho=*)
604     host_alias=$ac_optarg ;;
605
606   -includedir | --includedir | --includedi | --included | --include \
607   | --includ | --inclu | --incl | --inc)
608     ac_prev=includedir ;;
609   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610   | --includ=* | --inclu=* | --incl=* | --inc=*)
611     includedir=$ac_optarg ;;
612
613   -infodir | --infodir | --infodi | --infod | --info | --inf)
614     ac_prev=infodir ;;
615   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616     infodir=$ac_optarg ;;
617
618   -libdir | --libdir | --libdi | --libd)
619     ac_prev=libdir ;;
620   -libdir=* | --libdir=* | --libdi=* | --libd=*)
621     libdir=$ac_optarg ;;
622
623   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624   | --libexe | --libex | --libe)
625     ac_prev=libexecdir ;;
626   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627   | --libexe=* | --libex=* | --libe=*)
628     libexecdir=$ac_optarg ;;
629
630   -localstatedir | --localstatedir | --localstatedi | --localstated \
631   | --localstate | --localstat | --localsta | --localst \
632   | --locals | --local | --loca | --loc | --lo)
633     ac_prev=localstatedir ;;
634   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637     localstatedir=$ac_optarg ;;
638
639   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640     ac_prev=mandir ;;
641   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642     mandir=$ac_optarg ;;
643
644   -nfp | --nfp | --nf)
645     # Obsolete; use --without-fp.
646     with_fp=no ;;
647
648   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649   | --no-cr | --no-c | -n)
650     no_create=yes ;;
651
652   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654     no_recursion=yes ;;
655
656   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658   | --oldin | --oldi | --old | --ol | --o)
659     ac_prev=oldincludedir ;;
660   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663     oldincludedir=$ac_optarg ;;
664
665   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666     ac_prev=prefix ;;
667   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668     prefix=$ac_optarg ;;
669
670   -program-prefix | --program-prefix | --program-prefi | --program-pref \
671   | --program-pre | --program-pr | --program-p)
672     ac_prev=program_prefix ;;
673   -program-prefix=* | --program-prefix=* | --program-prefi=* \
674   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675     program_prefix=$ac_optarg ;;
676
677   -program-suffix | --program-suffix | --program-suffi | --program-suff \
678   | --program-suf | --program-su | --program-s)
679     ac_prev=program_suffix ;;
680   -program-suffix=* | --program-suffix=* | --program-suffi=* \
681   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682     program_suffix=$ac_optarg ;;
683
684   -program-transform-name | --program-transform-name \
685   | --program-transform-nam | --program-transform-na \
686   | --program-transform-n | --program-transform- \
687   | --program-transform | --program-transfor \
688   | --program-transfo | --program-transf \
689   | --program-trans | --program-tran \
690   | --progr-tra | --program-tr | --program-t)
691     ac_prev=program_transform_name ;;
692   -program-transform-name=* | --program-transform-name=* \
693   | --program-transform-nam=* | --program-transform-na=* \
694   | --program-transform-n=* | --program-transform-=* \
695   | --program-transform=* | --program-transfor=* \
696   | --program-transfo=* | --program-transf=* \
697   | --program-trans=* | --program-tran=* \
698   | --progr-tra=* | --program-tr=* | --program-t=*)
699     program_transform_name=$ac_optarg ;;
700
701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702   | -silent | --silent | --silen | --sile | --sil)
703     silent=yes ;;
704
705   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706     ac_prev=sbindir ;;
707   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708   | --sbi=* | --sb=*)
709     sbindir=$ac_optarg ;;
710
711   -sharedstatedir | --sharedstatedir | --sharedstatedi \
712   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713   | --sharedst | --shareds | --shared | --share | --shar \
714   | --sha | --sh)
715     ac_prev=sharedstatedir ;;
716   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719   | --sha=* | --sh=*)
720     sharedstatedir=$ac_optarg ;;
721
722   -site | --site | --sit)
723     ac_prev=site ;;
724   -site=* | --site=* | --sit=*)
725     site=$ac_optarg ;;
726
727   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728     ac_prev=srcdir ;;
729   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730     srcdir=$ac_optarg ;;
731
732   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733   | --syscon | --sysco | --sysc | --sys | --sy)
734     ac_prev=sysconfdir ;;
735   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737     sysconfdir=$ac_optarg ;;
738
739   -target | --target | --targe | --targ | --tar | --ta | --t)
740     ac_prev=target_alias ;;
741   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742     target_alias=$ac_optarg ;;
743
744   -v | -verbose | --verbose | --verbos | --verbo | --verb)
745     verbose=yes ;;
746
747   -version | --version | --versio | --versi | --vers | -V)
748     ac_init_version=: ;;
749
750   -with-* | --with-*)
751     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package| sed 's/-/_/g'`
757     case $ac_option in
758       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759       *) ac_optarg=yes ;;
760     esac
761     eval "with_$ac_package='$ac_optarg'" ;;
762
763   -without-* | --without-*)
764     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid package name: $ac_package" >&2
768    { (exit 1); exit 1; }; }
769     ac_package=`echo $ac_package | sed 's/-/_/g'`
770     eval "with_$ac_package=no" ;;
771
772   --x)
773     # Obsolete; use --with-x.
774     with_x=yes ;;
775
776   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777   | --x-incl | --x-inc | --x-in | --x-i)
778     ac_prev=x_includes ;;
779   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781     x_includes=$ac_optarg ;;
782
783   -x-libraries | --x-libraries | --x-librarie | --x-librari \
784   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785     ac_prev=x_libraries ;;
786   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788     x_libraries=$ac_optarg ;;
789
790   -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792    { (exit 1); exit 1; }; }
793     ;;
794
795   *=*)
796     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797     # Reject names that are not valid shell variable names.
798     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800    { (exit 1); exit 1; }; }
801     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802     eval "$ac_envvar='$ac_optarg'"
803     export $ac_envvar ;;
804
805   *)
806     # FIXME: should be removed in autoconf 3.0.
807     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811     ;;
812
813   esac
814 done
815
816 if test -n "$ac_prev"; then
817   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818   { echo "$as_me: error: missing argument to $ac_option" >&2
819    { (exit 1); exit 1; }; }
820 fi
821
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
832
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835               localstatedir libdir includedir oldincludedir infodir mandir
836 do
837   eval ac_val=$`echo $ac_var`
838   case $ac_val in
839     [\\/$]* | ?:[\\/]* ) ;;
840     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841    { (exit 1); exit 1; }; };;
842   esac
843 done
844
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
848 build=$build_alias
849 host=$host_alias
850 target=$target_alias
851
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854   if test "x$build_alias" = x; then
855     cross_compiling=maybe
856     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857     If a cross compiler is detected then cross compile mode will be used." >&2
858   elif test "x$build_alias" != "x$host_alias"; then
859     cross_compiling=yes
860   fi
861 fi
862
863 ac_tool_prefix=
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866 test "$silent" = yes && exec 6>/dev/null
867
868
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871   ac_srcdir_defaulted=yes
872   # Try the directory containing this script, then its parent.
873   ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875          X"$0" : 'X\(//\)[^/]' \| \
876          X"$0" : 'X\(//\)$' \| \
877          X"$0" : 'X\(/\)' \| \
878          .     : '\(.\)' 2>/dev/null ||
879 echo X"$0" |
880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882           /^X\(\/\/\)$/{ s//\1/; q; }
883           /^X\(\/\).*/{ s//\1/; q; }
884           s/.*/./; q'`
885   srcdir=$ac_confdir
886   if test ! -r $srcdir/$ac_unique_file; then
887     srcdir=..
888   fi
889 else
890   ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893   if test "$ac_srcdir_defaulted" = yes; then
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895    { (exit 1); exit 1; }; }
896   else
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898    { (exit 1); exit 1; }; }
899   fi
900 fi
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903    { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
934 ac_env_CC_value=$CC
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021   --target=TARGET   configure for building compilers for TARGET [HOST]
1022 _ACEOF
1023 fi
1024
1025 if test -n "$ac_init_help"; then
1026   case $ac_init_help in
1027      short | recursive ) echo "Configuration of LLVM 1.4:";;
1028    esac
1029   cat <<\_ACEOF
1030
1031 Optional Features:
1032   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-optimized      Compile with optimizations enabled (default is NO)
1042   --enable-jit            Enable Just In Time Compiling (default is YES)
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052   --with-llvmgccdir       Location of LLVM GCC front-end
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `pwd` in
1109 .) ac_abs_builddir="$ac_dir";;
1110 *)
1111   case "$ac_dir" in
1112   .) ac_abs_builddir=`pwd`;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *)
1120   case ${ac_top_builddir}. in
1121   .) ac_abs_top_builddir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1128 *)
1129   case $ac_srcdir in
1130   .) ac_abs_srcdir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *)
1138   case $ac_top_srcdir in
1139   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142   esac;;
1143 esac
1144
1145     cd $ac_dir
1146     # Check for guested configure; otherwise get Cygnus style configure.
1147     if test -f $ac_srcdir/configure.gnu; then
1148       echo
1149       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1150     elif test -f $ac_srcdir/configure; then
1151       echo
1152       $SHELL $ac_srcdir/configure  --help=recursive
1153     elif test -f $ac_srcdir/configure.ac ||
1154            test -f $ac_srcdir/configure.in; then
1155       echo
1156       $ac_configure --help
1157     else
1158       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159     fi
1160     cd $ac_popdir
1161   done
1162 fi
1163
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166   cat <<\_ACEOF
1167 LLVM configure 1.4
1168 generated by GNU Autoconf 2.59
1169
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174   exit 0
1175 fi
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1180
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59.  Invocation command line was
1183
1184   $ $0 $@
1185
1186 _ACEOF
1187 {
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1192
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1201
1202 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1203 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1206 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1207 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1208 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1209
1210 _ASUNAME
1211
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1214 do
1215   IFS=$as_save_IFS
1216   test -z "$as_dir" && as_dir=.
1217   echo "PATH: $as_dir"
1218 done
1219
1220 } >&5
1221
1222 cat >&5 <<_ACEOF
1223
1224
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1228
1229 _ACEOF
1230
1231
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1243 do
1244   for ac_arg
1245   do
1246     case $ac_arg in
1247     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249     | -silent | --silent | --silen | --sile | --sil)
1250       continue ;;
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     esac
1254     case $ac_pass in
1255     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256     2)
1257       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258       if test $ac_must_keep_next = true; then
1259         ac_must_keep_next=false # Got value, back to normal.
1260       else
1261         case $ac_arg in
1262           *=* | --config-cache | -C | -disable-* | --disable-* \
1263           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265           | -with-* | --with-* | -without-* | --without-* | --x)
1266             case "$ac_configure_args0 " in
1267               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268             esac
1269             ;;
1270           -* ) ac_must_keep_next=true ;;
1271         esac
1272       fi
1273       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274       # Get rid of the leading space.
1275       ac_sep=" "
1276       ;;
1277     esac
1278   done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log.  We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289   # Save into config.log some information that might help in debugging.
1290   {
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298     echo
1299     # The following way of writing the cache mishandles newlines in values,
1300 {
1301   (set) 2>&1 |
1302     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303     *ac_space=\ *)
1304       sed -n \
1305         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307       ;;
1308     *)
1309       sed -n \
1310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311       ;;
1312     esac;
1313 }
1314     echo
1315
1316     cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321     echo
1322     for ac_var in $ac_subst_vars
1323     do
1324       eval ac_val=$`echo $ac_var`
1325       echo "$ac_var='"'"'$ac_val'"'"'"
1326     done | sort
1327     echo
1328
1329     if test -n "$ac_subst_files"; then
1330       cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335       echo
1336       for ac_var in $ac_subst_files
1337       do
1338         eval ac_val=$`echo $ac_var`
1339         echo "$ac_var='"'"'$ac_val'"'"'"
1340       done | sort
1341       echo
1342     fi
1343
1344     if test -s confdefs.h; then
1345       cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350       echo
1351       sed "/^$/d" confdefs.h | sort
1352       echo
1353     fi
1354     test "$ac_signal" != 0 &&
1355       echo "$as_me: caught signal $ac_signal"
1356     echo "$as_me: exit $exit_status"
1357   } >&5
1358   rm -f core *.core &&
1359   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360     exit $exit_status
1361      ' 0
1362 for ac_signal in 1 2 13 15; do
1363   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1366
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1371
1372 # Predefined preprocessor variables.
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1397
1398
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402   if test "x$prefix" != xNONE; then
1403     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404   else
1405     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406   fi
1407 fi
1408 for ac_site_file in $CONFIG_SITE; do
1409   if test -r "$ac_site_file"; then
1410     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412     sed 's/^/| /' "$ac_site_file" >&5
1413     . "$ac_site_file"
1414   fi
1415 done
1416
1417 if test -r "$cache_file"; then
1418   # Some versions of bash will fail to source /dev/null (special
1419   # files actually), so we avoid doing that.
1420   if test -f "$cache_file"; then
1421     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423     case $cache_file in
1424       [\\/]* | ?:[\\/]* ) . $cache_file;;
1425       *)                      . ./$cache_file;;
1426     esac
1427   fi
1428 else
1429   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431   >$cache_file
1432 fi
1433
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440   eval ac_new_set=\$ac_env_${ac_var}_set
1441   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442   eval ac_new_val="\$ac_env_${ac_var}_value"
1443   case $ac_old_set,$ac_new_set in
1444     set,)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,set)
1449       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451       ac_cache_corrupted=: ;;
1452     ,);;
1453     *)
1454       if test "x$ac_old_val" != "x$ac_new_val"; then
1455         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1458 echo "$as_me:   former value:  $ac_old_val" >&2;}
1459         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1460 echo "$as_me:   current value: $ac_new_val" >&2;}
1461         ac_cache_corrupted=:
1462       fi;;
1463   esac
1464   # Pass precious variables to config.status.
1465   if test "$ac_new_set" = set; then
1466     case $ac_new_val in
1467     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469     *) ac_arg=$ac_var=$ac_new_val ;;
1470     esac
1471     case " $ac_configure_args " in
1472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474     esac
1475   fi
1476 done
1477 if $ac_cache_corrupted; then
1478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
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 ac_aux_dir=
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520   if test -f $ac_dir/install-sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install-sh -c"
1523     break
1524   elif test -f $ac_dir/install.sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install.sh -c"
1527     break
1528   elif test -f $ac_dir/shtool; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/shtool install -c"
1531     break
1532   fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543
1544
1545 if test ${srcdir} != "." ; then
1546         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549    { (exit 1); exit 1; }; }
1550         fi
1551 fi
1552
1553 for i in `ls ${srcdir}/projects`
1554 do
1555   if test -d ${srcdir}/projects/${i} ; then
1556     case ${i} in
1557       "CVS") ;;
1558       "sample")
1559
1560 subdirs="$subdirs projects/sample"
1561     ;;
1562       "Stacker")
1563
1564 subdirs="$subdirs projects/Stacker"
1565    ;;
1566       "llvm-test")
1567
1568 subdirs="$subdirs projects/llvm-test"
1569  ;;
1570       "llvm-reopt")
1571
1572 subdirs="$subdirs projects/llvm-reopt"
1573 ;;
1574       "llvm-gcc")
1575
1576 subdirs="$subdirs projects/llvm-gcc"
1577   ;;
1578       "Java")
1579
1580 subdirs="$subdirs projects/Java"
1581       ;;
1582       "llvm-tv")
1583
1584 subdirs="$subdirs projects/llvm-tv"
1585    ;;
1586       "llvm-fefw")
1587
1588 subdirs="$subdirs projects/llvm-fefw"
1589  ;;
1590       *)
1591         { echo "$as_me:$LINENO: WARNING: Unknown projects (${i})won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown projects (${i})won't be configured automatically" >&2;}
1593         ;;
1594     esac
1595   fi
1596 done
1597
1598           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1599
1600
1601                                                             ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1602
1603
1604           ac_config_commands="$ac_config_commands Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands Makefile.common"
1608
1609
1610           ac_config_commands="$ac_config_commands examples/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands runtime/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Makefile.tests"
1623
1624
1625           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1626
1627
1628           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1629
1630
1631           ac_config_commands="$ac_config_commands tools/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands utils/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands projects/Makefile"
1638
1639
1640
1641 # Find a good install program.  We prefer a C program (faster),
1642 # so one script is as good as another.  But avoid the broken or
1643 # incompatible versions:
1644 # SysV /etc/install, /usr/sbin/install
1645 # SunOS /usr/etc/install
1646 # IRIX /sbin/install
1647 # AIX /bin/install
1648 # AmigaOS /C/install, which installs bootblocks on floppy discs
1649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1652 # OS/2's system install, which has a completely different semantic
1653 # ./install, which can be erroneously created by make from ./install.sh.
1654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1656 if test -z "$INSTALL"; then
1657 if test "${ac_cv_path_install+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663   IFS=$as_save_IFS
1664   test -z "$as_dir" && as_dir=.
1665   # Account for people who put trailing slashes in PATH elements.
1666 case $as_dir/ in
1667   ./ | .// | /cC/* | \
1668   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1669   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1670   /usr/ucb/* ) ;;
1671   *)
1672     # OSF1 and SCO ODT 3.0 have their own names for install.
1673     # Don't use installbsd from OSF since it installs stuff as root
1674     # by default.
1675     for ac_prog in ginstall scoinst install; do
1676       for ac_exec_ext in '' $ac_executable_extensions; do
1677         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1678           if test $ac_prog = install &&
1679             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680             # AIX install.  It has an incompatible calling convention.
1681             :
1682           elif test $ac_prog = install &&
1683             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684             # program-specific install script used by HP pwplus--don't use.
1685             :
1686           else
1687             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688             break 3
1689           fi
1690         fi
1691       done
1692     done
1693     ;;
1694 esac
1695 done
1696
1697
1698 fi
1699   if test "${ac_cv_path_install+set}" = set; then
1700     INSTALL=$ac_cv_path_install
1701   else
1702     # As a last resort, use the slow shell script.  We don't cache a
1703     # path for INSTALL within a source directory, because that will
1704     # break other packages using the cache if that directory is
1705     # removed, or if the path is relative.
1706     INSTALL=$ac_install_sh
1707   fi
1708 fi
1709 echo "$as_me:$LINENO: result: $INSTALL" >&5
1710 echo "${ECHO_T}$INSTALL" >&6
1711
1712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1713 # It thinks the first close brace ends the variable substitution.
1714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1715
1716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1717
1718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1719
1720
1721 # Make sure we can run config.sub.
1722 $ac_config_sub sun4 >/dev/null 2>&1 ||
1723   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1725    { (exit 1); exit 1; }; }
1726
1727 echo "$as_me:$LINENO: checking build system type" >&5
1728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1729 if test "${ac_cv_build+set}" = set; then
1730   echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732   ac_cv_build_alias=$build_alias
1733 test -z "$ac_cv_build_alias" &&
1734   ac_cv_build_alias=`$ac_config_guess`
1735 test -z "$ac_cv_build_alias" &&
1736   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1738    { (exit 1); exit 1; }; }
1739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1740   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 fi
1745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1746 echo "${ECHO_T}$ac_cv_build" >&6
1747 build=$ac_cv_build
1748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751
1752
1753 echo "$as_me:$LINENO: checking host system type" >&5
1754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1755 if test "${ac_cv_host+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   ac_cv_host_alias=$host_alias
1759 test -z "$ac_cv_host_alias" &&
1760   ac_cv_host_alias=$ac_cv_build_alias
1761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1762   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1764    { (exit 1); exit 1; }; }
1765
1766 fi
1767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1768 echo "${ECHO_T}$ac_cv_host" >&6
1769 host=$ac_cv_host
1770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773
1774
1775 echo "$as_me:$LINENO: checking target system type" >&5
1776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1777 if test "${ac_cv_target+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   ac_cv_target_alias=$target_alias
1781 test "x$ac_cv_target_alias" = "x" &&
1782   ac_cv_target_alias=$ac_cv_host_alias
1783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1784   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1786    { (exit 1); exit 1; }; }
1787
1788 fi
1789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1790 echo "${ECHO_T}$ac_cv_target" >&6
1791 target=$ac_cv_target
1792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1795
1796
1797 # The aliases save the names the user supplied, while $host etc.
1798 # will get canonicalized.
1799 test -n "$target_alias" &&
1800   test "$program_prefix$program_suffix$program_transform_name" = \
1801     NONENONEs,x,x, &&
1802   program_prefix=${target_alias}-
1803
1804
1805 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1806 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1807 case $build in
1808         *-*-aix*)
1809              OS=AIX
1810
1811              platform_type="AIX"
1812              ;;
1813         *-*-cygwin*)
1814              OS=Cygwin
1815
1816              platform_type="Cygwin"
1817              ;;
1818         *-*-darwin*)
1819              OS=Darwin
1820
1821              platform_type="Darwin"
1822              ;;
1823         *-*-freebsd*)
1824              OS=Linux
1825
1826              platform_type="FreeBSD"
1827              ;;
1828         *-*-interix*)
1829              OS=SunOS
1830
1831              platform_type="Interix"
1832              ;;
1833         *-*-linux*)
1834              OS=Linux
1835
1836              platform_type="Linux"
1837              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1838              then
1839                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1840
1841              fi
1842              ;;
1843         *-*-solaris*)
1844              OS=SunOS
1845
1846              platform_type="SunOS"
1847              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1848              then
1849                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1850
1851              fi
1852              ;;
1853         *-*-win32*)
1854              OS=Win32
1855
1856              platform_type="Win32"
1857              ;;
1858         *-*-mingw*)
1859              OS=Win32
1860
1861              platform_type="Win32"
1862              ;;
1863         *)
1864              OS=Unknown
1865
1866              platform_type="Unknown"
1867              ;;
1868 esac
1869
1870 if test "$platform_type" = "Unknown" ; then
1871   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1872 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1873    { (exit 1); exit 1; }; }
1874 fi
1875
1876           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1877
1878
1879
1880 echo "$as_me:$LINENO: checking target architecture" >&5
1881 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1882 case $target in
1883         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1884
1885                             ;;
1886 esac
1887
1888 case $target in
1889         i*86-*)
1890           ARCH="x86"
1891           ARCH=x86
1892
1893           ;;
1894         sparc*-*)
1895           ARCH="Sparc"
1896           ARCH=Sparc
1897
1898           ;;
1899         powerpc*-*)
1900           ARCH="PowerPC"
1901           ARCH=PowerPC
1902
1903           ;;
1904         *)
1905           ARCH="Unknown"
1906           ARCH=Unknown
1907
1908           ;;
1909 esac
1910
1911 echo "$as_me:$LINENO: result: $ARCH" >&5
1912 echo "${ECHO_T}$ARCH" >&6
1913
1914 ac_ext=cc
1915 ac_cpp='$CXXCPP $CPPFLAGS'
1916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1919 if test -n "$ac_tool_prefix"; then
1920   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1921   do
1922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CXX+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$CXX"; then
1930   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945
1946 fi
1947 fi
1948 CXX=$ac_cv_prog_CXX
1949 if test -n "$CXX"; then
1950   echo "$as_me:$LINENO: result: $CXX" >&5
1951 echo "${ECHO_T}$CXX" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957     test -n "$CXX" && break
1958   done
1959 fi
1960 if test -z "$CXX"; then
1961   ac_ct_CXX=$CXX
1962   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1963 do
1964   # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   if test -n "$ac_ct_CXX"; then
1972   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     ac_cv_prog_ac_ct_CXX="$ac_prog"
1982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983     break 2
1984   fi
1985 done
1986 done
1987
1988 fi
1989 fi
1990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1991 if test -n "$ac_ct_CXX"; then
1992   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1993 echo "${ECHO_T}$ac_ct_CXX" >&6
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999   test -n "$ac_ct_CXX" && break
2000 done
2001 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2002
2003   CXX=$ac_ct_CXX
2004 fi
2005
2006
2007 # Provide some information about the compiler.
2008 echo "$as_me:$LINENO:" \
2009      "checking for C++ compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012   (eval $ac_compiler --version </dev/null >&5) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017   (eval $ac_compiler -v </dev/null >&5) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022   (eval $ac_compiler -V </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026
2027 cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h.  */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h.  */
2033
2034 int
2035 main ()
2036 {
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 ac_clean_files_save=$ac_clean_files
2043 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2044 # Try to create an executable without -o first, disregard a.out.
2045 # It will help us diagnose broken compilers, and finding out an intuition
2046 # of exeext.
2047 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2048 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051   (eval $ac_link_default) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; then
2055   # Find the output, starting from the most likely.  This scheme is
2056 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057 # resort.
2058
2059 # Be careful to initialize this variable, since it used to be cached.
2060 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2061 ac_cv_exeext=
2062 # b.out is created by i960 compilers.
2063 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2064 do
2065   test -f "$ac_file" || continue
2066   case $ac_file in
2067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2068         ;;
2069     conftest.$ac_ext )
2070         # This is the source file.
2071         ;;
2072     [ab].out )
2073         # We found the default executable, but exeext='' is most
2074         # certainly right.
2075         break;;
2076     *.* )
2077         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078         # FIXME: I believe we export ac_cv_exeext for Libtool,
2079         # but it would be cool to find out if it's true.  Does anybody
2080         # maintain Libtool? --akim.
2081         export ac_cv_exeext
2082         break;;
2083     * )
2084         break;;
2085   esac
2086 done
2087 else
2088   echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: C++ compiler cannot create executables
2094 See \`config.log' for more details." >&2;}
2095    { (exit 77); exit 77; }; }
2096 fi
2097
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2101
2102 # Check the compiler produces executables we can run.  If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2105 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109   if { ac_try='./$ac_file'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115     cross_compiling=no
2116   else
2117     if test "$cross_compiling" = maybe; then
2118         cross_compiling=yes
2119     else
2120         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot run C++ compiled programs.
2124 If you meant to cross compile, use \`--host'.
2125 See \`config.log' for more details." >&2;}
2126    { (exit 1); exit 1; }; }
2127     fi
2128   fi
2129 fi
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2132
2133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2134 ac_clean_files=$ac_clean_files_save
2135 # Check the compiler produces executables we can run.  If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2141
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145   (eval $ac_link) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2152 # `rm'.
2153 for ac_file in conftest.exe conftest conftest.*; do
2154   test -f "$ac_file" || continue
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2157     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158           export ac_cv_exeext
2159           break;;
2160     * ) break;;
2161   esac
2162 done
2163 else
2164   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&2;}
2168    { (exit 1); exit 1; }; }
2169 fi
2170
2171 rm -f conftest$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173 echo "${ECHO_T}$ac_cv_exeext" >&6
2174
2175 rm -f conftest.$ac_ext
2176 EXEEXT=$ac_cv_exeext
2177 ac_exeext=$EXEEXT
2178 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180 if test "${ac_cv_objext+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h.  */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h.  */
2189
2190 int
2191 main ()
2192 {
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200   (eval $ac_compile) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; then
2204   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2207     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208        break;;
2209   esac
2210 done
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225 echo "${ECHO_T}$ac_cv_objext" >&6
2226 OBJEXT=$ac_cv_objext
2227 ac_objext=$OBJEXT
2228 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2229 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2230 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h.  */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h.  */
2239
2240 int
2241 main ()
2242 {
2243 #ifndef __GNUC__
2244        choke me
2245 #endif
2246
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>conftest.er1
2254   ac_status=$?
2255   grep -v '^ *+' conftest.er1 >conftest.err
2256   rm -f conftest.er1
2257   cat conftest.err >&5
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -z "$ac_cxx_werror_flag"
2261                          || test ! -s conftest.err'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   ac_compiler_gnu=yes
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 ac_compiler_gnu=no
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2282
2283 fi
2284 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2285 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2286 GXX=`test $ac_compiler_gnu = yes && echo yes`
2287 ac_test_CXXFLAGS=${CXXFLAGS+set}
2288 ac_save_CXXFLAGS=$CXXFLAGS
2289 CXXFLAGS="-g"
2290 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2291 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2292 if test "${ac_cv_prog_cxx_g+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_cxx_werror_flag"
2320                          || test ! -s conftest.err'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   ac_cv_prog_cxx_g=yes
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 ac_cv_prog_cxx_g=no
2338 fi
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2342 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2343 if test "$ac_test_CXXFLAGS" = set; then
2344   CXXFLAGS=$ac_save_CXXFLAGS
2345 elif test $ac_cv_prog_cxx_g = yes; then
2346   if test "$GXX" = yes; then
2347     CXXFLAGS="-g -O2"
2348   else
2349     CXXFLAGS="-g"
2350   fi
2351 else
2352   if test "$GXX" = yes; then
2353     CXXFLAGS="-O2"
2354   else
2355     CXXFLAGS=
2356   fi
2357 fi
2358 for ac_declaration in \
2359    '' \
2360    'extern "C" void std::exit (int) throw (); using std::exit;' \
2361    'extern "C" void std::exit (int); using std::exit;' \
2362    'extern "C" void exit (int) throw ();' \
2363    'extern "C" void exit (int);' \
2364    'void exit (int);'
2365 do
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372 $ac_declaration
2373 #include <stdlib.h>
2374 int
2375 main ()
2376 {
2377 exit (42);
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384   (eval $ac_compile) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -z "$ac_cxx_werror_flag"
2392                          || test ! -s conftest.err'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   :
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 continue
2410 fi
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418 $ac_declaration
2419 int
2420 main ()
2421 {
2422 exit (42);
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_cxx_werror_flag"
2437                          || test ! -s conftest.err'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; } &&
2443          { ac_try='test -s conftest.$ac_objext'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   break
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 done
2457 rm -f conftest*
2458 if test -n "$ac_declaration"; then
2459   echo '#ifdef __cplusplus' >>confdefs.h
2460   echo $ac_declaration      >>confdefs.h
2461   echo '#endif'             >>confdefs.h
2462 fi
2463
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476   for ac_prog in gcc
2477   do
2478     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506   echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6
2508 else
2509   echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513     test -n "$CC" && break
2514   done
2515 fi
2516 if test -z "$CC"; then
2517   ac_ct_CC=$CC
2518   for ac_prog in gcc
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_CC"; then
2528   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_ac_ct_CC="$ac_prog"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549 echo "${ECHO_T}$ac_ct_CC" >&6
2550 else
2551   echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555   test -n "$ac_ct_CC" && break
2556 done
2557
2558   CC=$ac_ct_CC
2559 fi
2560
2561
2562 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&2;}
2566    { (exit 1); exit 1; }; }
2567
2568 # Provide some information about the compiler.
2569 echo "$as_me:$LINENO:" \
2570      "checking for C compiler version" >&5
2571 ac_compiler=`set X $ac_compile; echo $2`
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2573   (eval $ac_compiler --version </dev/null >&5) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2578   (eval $ac_compiler -v </dev/null >&5) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2583   (eval $ac_compiler -V </dev/null >&5) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }
2587
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 int
2601 main ()
2602 {
2603 #ifndef __GNUC__
2604        choke me
2605 #endif
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"
2621                          || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   ac_compiler_gnu=yes
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_compiler_gnu=no
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643 fi
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2649 CFLAGS="-g"
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"
2680                          || test ! -s conftest.err'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; } &&
2686          { ac_try='test -s conftest.$ac_objext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   ac_cv_prog_cc_g=yes
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 ac_cv_prog_cc_g=no
2698 fi
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704   CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706   if test "$GCC" = yes; then
2707     CFLAGS="-g -O2"
2708   else
2709     CFLAGS="-g"
2710   fi
2711 else
2712   if test "$GCC" = yes; then
2713     CFLAGS="-O2"
2714   else
2715     CFLAGS=
2716   fi
2717 fi
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   ac_cv_prog_cc_stdc=no
2724 ac_save_CC=$CC
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731 #include <stdarg.h>
2732 #include <stdio.h>
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2739      char **p;
2740      int i;
2741 {
2742   return p[i];
2743 }
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2745 {
2746   char *s;
2747   va_list v;
2748   va_start (v,p);
2749   s = g (p, va_arg (v,int));
2750   va_end (v);
2751   return s;
2752 }
2753
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2755    function prototypes and stuff, but not '\xHH' hex character constants.
2756    These don't provoke an error unfortunately, instead are silently treated
2757    as 'x'.  The following induces an error, until -std1 is added to get
2758    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2759    array size at least.  It's necessary to write '\x00'==0 to get something
2760    that's true only with -std1.  */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767 int argc;
2768 char **argv;
2769 int
2770 main ()
2771 {
2772 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX                   -qlanglvl=ansi
2780 # Ultrix and OSF/1      -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2783 # SVR4                  -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785 do
2786   CC="$ac_save_CC $ac_arg"
2787   rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   ac_cv_prog_cc_stdc=$ac_arg
2810 break
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 fi
2816 rm -f conftest.err conftest.$ac_objext
2817 done
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2819 CC=$ac_save_CC
2820
2821 fi
2822
2823 case "x$ac_cv_prog_cc_stdc" in
2824   x|xno)
2825     echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2827   *)
2828     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830     CC="$CC $ac_cv_prog_cc_stdc" ;;
2831 esac
2832
2833 # Some people use a C++ compiler to compile C.  Since we use `exit',
2834 # in C++ we need to declare it.  In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #ifndef __cplusplus
2839   choke me
2840 #endif
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag"
2852                          || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   for ac_declaration in \
2865    '' \
2866    'extern "C" void std::exit (int) throw (); using std::exit;' \
2867    'extern "C" void std::exit (int); using std::exit;' \
2868    'extern "C" void exit (int) throw ();' \
2869    'extern "C" void exit (int);' \
2870    'void exit (int);'
2871 do
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 $ac_declaration
2879 #include <stdlib.h>
2880 int
2881 main ()
2882 {
2883 exit (42);
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag"
2898                          || test ! -s conftest.err'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; } &&
2904          { ac_try='test -s conftest.$ac_objext'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; }; then
2910   :
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 continue
2916 fi
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 $ac_declaration
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_c_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   break
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 done
2963 rm -f conftest*
2964 if test -n "$ac_declaration"; then
2965   echo '#ifdef __cplusplus' >>confdefs.h
2966   echo $ac_declaration      >>confdefs.h
2967   echo '#endif'             >>confdefs.h
2968 fi
2969
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 fi
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982 if test "$GCC" != "yes"
2983 then
2984         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2985 echo "$as_me: error: gcc required but not found" >&2;}
2986    { (exit 1); exit 1; }; }
2987 fi
2988 ac_ext=c
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2997   CPP=
2998 fi
2999 if test -z "$CPP"; then
3000   if test "${ac_cv_prog_CPP+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003       # Double quotes because CPP needs to be expanded
3004     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005     do
3006       ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3008 do
3009   # Use a header file that comes with gcc, so configuring glibc
3010   # with a fresh cross-compiler works.
3011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012   # <limits.h> exists even on freestanding compilers.
3013   # On the NeXT, cc -E runs the code through the compiler's parser,
3014   # not just through cpp. "Syntax error" is here to catch this case.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #ifdef __STDC__
3022 # include <limits.h>
3023 #else
3024 # include <assert.h>
3025 #endif
3026                      Syntax error
3027 _ACEOF
3028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } >/dev/null; then
3036   if test -s conftest.err; then
3037     ac_cpp_err=$ac_c_preproc_warn_flag
3038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039   else
3040     ac_cpp_err=
3041   fi
3042 else
3043   ac_cpp_err=yes
3044 fi
3045 if test -z "$ac_cpp_err"; then
3046   :
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051   # Broken: fails on valid input.
3052 continue
3053 fi
3054 rm -f conftest.err conftest.$ac_ext
3055
3056   # OK, works on sane cases.  Now check whether non-existent headers
3057   # can be detected and how.
3058   cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 #include <ac_nonexistent.h>
3065 _ACEOF
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } >/dev/null; then
3074   if test -s conftest.err; then
3075     ac_cpp_err=$ac_c_preproc_warn_flag
3076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077   else
3078     ac_cpp_err=
3079   fi
3080 else
3081   ac_cpp_err=yes
3082 fi
3083 if test -z "$ac_cpp_err"; then
3084   # Broken: success on invalid input.
3085 continue
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090   # Passes both tests.
3091 ac_preproc_ok=:
3092 break
3093 fi
3094 rm -f conftest.err conftest.$ac_ext
3095
3096 done
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3100   break
3101 fi
3102
3103     done
3104     ac_cv_prog_CPP=$CPP
3105
3106 fi
3107   CPP=$ac_cv_prog_CPP
3108 else
3109   ac_cv_prog_CPP=$CPP
3110 fi
3111 echo "$as_me:$LINENO: result: $CPP" >&5
3112 echo "${ECHO_T}$CPP" >&6
3113 ac_preproc_ok=false
3114 for ac_c_preproc_warn_flag in '' yes
3115 do
3116   # Use a header file that comes with gcc, so configuring glibc
3117   # with a fresh cross-compiler works.
3118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119   # <limits.h> exists even on freestanding compilers.
3120   # On the NeXT, cc -E runs the code through the compiler's parser,
3121   # not just through cpp. "Syntax error" is here to catch this case.
3122   cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #ifdef __STDC__
3129 # include <limits.h>
3130 #else
3131 # include <assert.h>
3132 #endif
3133                      Syntax error
3134 _ACEOF
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } >/dev/null; then
3143   if test -s conftest.err; then
3144     ac_cpp_err=$ac_c_preproc_warn_flag
3145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146   else
3147     ac_cpp_err=
3148   fi
3149 else
3150   ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158   # Broken: fails on valid input.
3159 continue
3160 fi
3161 rm -f conftest.err conftest.$ac_ext
3162
3163   # OK, works on sane cases.  Now check whether non-existent headers
3164   # can be detected and how.
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171 #include <ac_nonexistent.h>
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } >/dev/null; then
3181   if test -s conftest.err; then
3182     ac_cpp_err=$ac_c_preproc_warn_flag
3183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   # Broken: success on invalid input.
3192 continue
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197   # Passes both tests.
3198 ac_preproc_ok=:
3199 break
3200 fi
3201 rm -f conftest.err conftest.$ac_ext
3202
3203 done
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3207   :
3208 else
3209   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&2;}
3213    { (exit 1); exit 1; }; }
3214 fi
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222 if test "$GXX" != "yes"
3223 then
3224         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3225 echo "$as_me: error: g++ required but not found" >&2;}
3226    { (exit 1); exit 1; }; }
3227 fi
3228
3229 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3230 if test "$gccmajor" -lt "3"
3231 then
3232         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3233 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3234    { (exit 1); exit 1; }; }
3235 fi
3236
3237  echo "$as_me:$LINENO: checking for GNU make" >&5
3238 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3239 if test "${_cv_gnu_make_command+set}" = set; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242   _cv_gnu_make_command='' ;
3243                 for a in "$MAKE" make gmake gnumake ; do
3244                         if test -z "$a" ; then continue ; fi ;
3245                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3246                                 _cv_gnu_make_command=$a ;
3247                                 break;
3248                         fi
3249                 done ;
3250
3251 fi
3252 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3253 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3254         if test  "x$_cv_gnu_make_command" != "x"  ; then
3255                 ifGNUmake='' ;
3256         else
3257                 ifGNUmake='#' ;
3258                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3259 echo "${ECHO_T}\"Not found\"" >&6;
3260         fi
3261
3262
3263 if test -z "$_cv_gnu_make_command"
3264 then
3265         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3266 echo "$as_me: error: GNU Make required but not found" >&2;}
3267    { (exit 1); exit 1; }; }
3268 fi
3269
3270
3271 echo "$as_me:$LINENO: checking " >&5
3272 echo $ECHO_N "checking ... $ECHO_C" >&6
3273 if test "${ac_cv_has_flex+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   for ac_prog in flex lex
3277 do
3278   # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_LEX+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if test -n "$LEX"; then
3286   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295     ac_cv_prog_LEX="$ac_prog"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301
3302 fi
3303 fi
3304 LEX=$ac_cv_prog_LEX
3305 if test -n "$LEX"; then
3306   echo "$as_me:$LINENO: result: $LEX" >&5
3307 echo "${ECHO_T}$LEX" >&6
3308 else
3309   echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 fi
3312
3313   test -n "$LEX" && break
3314 done
3315 test -n "$LEX" || LEX=":"
3316
3317 if test -z "$LEXLIB"
3318 then
3319   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3320 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3321 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   ac_check_lib_save_LIBS=$LIBS
3325 LIBS="-lfl  $LIBS"
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h.  */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h.  */
3332
3333 /* Override any gcc2 internal prototype to avoid an error.  */
3334 #ifdef __cplusplus
3335 extern "C"
3336 #endif
3337 /* We use char because int might match the return type of a gcc2
3338    builtin and then its argument prototype would still apply.  */
3339 char yywrap ();
3340 int
3341 main ()
3342 {
3343 yywrap ();
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.$ac_objext conftest$ac_exeext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3350   (eval $ac_link) 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -z "$ac_c_werror_flag"
3358                          || test ! -s conftest.err'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; } &&
3364          { ac_try='test -s conftest$ac_exeext'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   ac_cv_lib_fl_yywrap=yes
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 ac_cv_lib_fl_yywrap=no
3376 fi
3377 rm -f conftest.err conftest.$ac_objext \
3378       conftest$ac_exeext conftest.$ac_ext
3379 LIBS=$ac_check_lib_save_LIBS
3380 fi
3381 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3382 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3383 if test $ac_cv_lib_fl_yywrap = yes; then
3384   LEXLIB="-lfl"
3385 else
3386   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3387 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3388 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   ac_check_lib_save_LIBS=$LIBS
3392 LIBS="-ll  $LIBS"
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399
3400 /* Override any gcc2 internal prototype to avoid an error.  */
3401 #ifdef __cplusplus
3402 extern "C"
3403 #endif
3404 /* We use char because int might match the return type of a gcc2
3405    builtin and then its argument prototype would still apply.  */
3406 char yywrap ();
3407 int
3408 main ()
3409 {
3410 yywrap ();
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext conftest$ac_exeext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3417   (eval $ac_link) 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } &&
3424          { ac_try='test -z "$ac_c_werror_flag"
3425                          || test ! -s conftest.err'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; } &&
3431          { ac_try='test -s conftest$ac_exeext'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; }; then
3437   ac_cv_lib_l_yywrap=yes
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 ac_cv_lib_l_yywrap=no
3443 fi
3444 rm -f conftest.err conftest.$ac_objext \
3445       conftest$ac_exeext conftest.$ac_ext
3446 LIBS=$ac_check_lib_save_LIBS
3447 fi
3448 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3449 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3450 if test $ac_cv_lib_l_yywrap = yes; then
3451   LEXLIB="-ll"
3452 fi
3453
3454 fi
3455
3456 fi
3457
3458 if test "x$LEX" != "x:"; then
3459   echo "$as_me:$LINENO: checking lex output file root" >&5
3460 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3461 if test "${ac_cv_prog_lex_root+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464   # The minimal lex program is just a single line: %%.  But some broken lexes
3465 # (Solaris, I think it was) want two %% lines, so accommodate them.
3466 cat >conftest.l <<_ACEOF
3467 %%
3468 %%
3469 _ACEOF
3470 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3471   (eval $LEX conftest.l) 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); }
3475 if test -f lex.yy.c; then
3476   ac_cv_prog_lex_root=lex.yy
3477 elif test -f lexyy.c; then
3478   ac_cv_prog_lex_root=lexyy
3479 else
3480   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3481 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484 fi
3485 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3486 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3487 rm -f conftest.l
3488 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3489
3490 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3491 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3492 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   # POSIX says lex can declare yytext either as a pointer or an array; the
3496 # default is implementation-dependent. Figure out which it is, since
3497 # not all implementations provide the %pointer and %array declarations.
3498 ac_cv_prog_lex_yytext_pointer=no
3499 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3500 ac_save_LIBS=$LIBS
3501 LIBS="$LIBS $LEXLIB"
3502 cat >conftest.$ac_ext <<_ACEOF
3503 `cat $LEX_OUTPUT_ROOT.c`
3504 _ACEOF
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507   (eval $ac_link) 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } &&
3514          { ac_try='test -z "$ac_c_werror_flag"
3515                          || test ! -s conftest.err'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; } &&
3521          { ac_try='test -s conftest$ac_exeext'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; }; then
3527   ac_cv_prog_lex_yytext_pointer=yes
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 fi
3533 rm -f conftest.err conftest.$ac_objext \
3534       conftest$ac_exeext conftest.$ac_ext
3535 LIBS=$ac_save_LIBS
3536 rm -f "${LEX_OUTPUT_ROOT}.c"
3537
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3540 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3541 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3542
3543 cat >>confdefs.h <<\_ACEOF
3544 #define YYTEXT_POINTER 1
3545 _ACEOF
3546
3547 fi
3548
3549 fi
3550
3551 fi
3552 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3553 echo "${ECHO_T}$ac_cv_has_flex" >&6
3554 if test "$LEX" != "flex"; then
3555   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3556 echo "$as_me: error: flex not found but required" >&2;}
3557    { (exit 1); exit 1; }; }
3558 else
3559   FLEX=flex
3560
3561 fi
3562
3563 echo "$as_me:$LINENO: checking " >&5
3564 echo $ECHO_N "checking ... $ECHO_C" >&6
3565 if test "${ac_cv_has_bison+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   for ac_prog in 'bison -y' byacc
3569 do
3570   # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_YACC+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   if test -n "$YACC"; then
3578   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585   for ac_exec_ext in '' $ac_executable_extensions; do
3586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587     ac_cv_prog_YACC="$ac_prog"
3588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592 done
3593
3594 fi
3595 fi
3596 YACC=$ac_cv_prog_YACC
3597 if test -n "$YACC"; then
3598   echo "$as_me:$LINENO: result: $YACC" >&5
3599 echo "${ECHO_T}$YACC" >&6
3600 else
3601   echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3603 fi
3604
3605   test -n "$YACC" && break
3606 done
3607 test -n "$YACC" || YACC="yacc"
3608
3609
3610 fi
3611 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3612 echo "${ECHO_T}$ac_cv_has_bison" >&6
3613 if test "$YACC" != "bison -y"; then
3614   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3615 echo "$as_me: error: bison not found but required" >&2;}
3616    { (exit 1); exit 1; }; }
3617 else
3618   BISON=bison
3619
3620 fi
3621
3622 # Check whether --enable-shared or --disable-shared was given.
3623 if test "${enable_shared+set}" = set; then
3624   enableval="$enable_shared"
3625   p=${PACKAGE-default}
3626     case $enableval in
3627     yes) enable_shared=yes ;;
3628     no) enable_shared=no ;;
3629     *)
3630       enable_shared=no
3631       # Look at the argument we got.  We use all the common list separators.
3632       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3633       for pkg in $enableval; do
3634         IFS="$lt_save_ifs"
3635         if test "X$pkg" = "X$p"; then
3636           enable_shared=yes
3637         fi
3638       done
3639       IFS="$lt_save_ifs"
3640       ;;
3641     esac
3642 else
3643   enable_shared=yes
3644 fi;
3645
3646 # Check whether --enable-static or --disable-static was given.
3647 if test "${enable_static+set}" = set; then
3648   enableval="$enable_static"
3649   p=${PACKAGE-default}
3650     case $enableval in
3651     yes) enable_static=yes ;;
3652     no) enable_static=no ;;
3653     *)
3654      enable_static=no
3655       # Look at the argument we got.  We use all the common list separators.
3656       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657       for pkg in $enableval; do
3658         IFS="$lt_save_ifs"
3659         if test "X$pkg" = "X$p"; then
3660           enable_static=yes
3661         fi
3662       done
3663       IFS="$lt_save_ifs"
3664       ;;
3665     esac
3666 else
3667   enable_static=yes
3668 fi;
3669
3670 # Check whether --enable-fast-install or --disable-fast-install was given.
3671 if test "${enable_fast_install+set}" = set; then
3672   enableval="$enable_fast_install"
3673   p=${PACKAGE-default}
3674     case $enableval in
3675     yes) enable_fast_install=yes ;;
3676     no) enable_fast_install=no ;;
3677     *)
3678       enable_fast_install=no
3679       # Look at the argument we got.  We use all the common list separators.
3680       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681       for pkg in $enableval; do
3682         IFS="$lt_save_ifs"
3683         if test "X$pkg" = "X$p"; then
3684           enable_fast_install=yes
3685         fi
3686       done
3687       IFS="$lt_save_ifs"
3688       ;;
3689     esac
3690 else
3691   enable_fast_install=yes
3692 fi;
3693
3694 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3695 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3696 if test "${lt_cv_path_SED+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   # Loop through the user's path and test for sed and gsed.
3700 # Then use that list of sed's as ones to test for truncation.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for lt_ac_prog in sed gsed; do
3707     for ac_exec_ext in '' $ac_executable_extensions; do
3708       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3709         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3710       fi
3711     done
3712   done
3713 done
3714 lt_ac_max=0
3715 lt_ac_count=0
3716 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3717 # along with /bin/sed that truncates output.
3718 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3719   test ! -f $lt_ac_sed && break
3720   cat /dev/null > conftest.in
3721   lt_ac_count=0
3722   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3723   # Check for GNU sed and select it if it is found.
3724   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3725     lt_cv_path_SED=$lt_ac_sed
3726     break
3727   fi
3728   while true; do
3729     cat conftest.in conftest.in >conftest.tmp
3730     mv conftest.tmp conftest.in
3731     cp conftest.in conftest.nl
3732     echo >>conftest.nl
3733     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3734     cmp -s conftest.out conftest.nl || break
3735     # 10000 chars as input seems more than enough
3736     test $lt_ac_count -gt 10 && break
3737     lt_ac_count=`expr $lt_ac_count + 1`
3738     if test $lt_ac_count -gt $lt_ac_max; then
3739       lt_ac_max=$lt_ac_count
3740       lt_cv_path_SED=$lt_ac_sed
3741     fi
3742   done
3743 done
3744
3745 fi
3746
3747 SED=$lt_cv_path_SED
3748 echo "$as_me:$LINENO: result: $SED" >&5
3749 echo "${ECHO_T}$SED" >&6
3750
3751 echo "$as_me:$LINENO: checking for egrep" >&5
3752 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3753 if test "${ac_cv_prog_egrep+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3757     then ac_cv_prog_egrep='grep -E'
3758     else ac_cv_prog_egrep='egrep'
3759     fi
3760 fi
3761 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3762 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3763  EGREP=$ac_cv_prog_egrep
3764
3765
3766
3767 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3768 if test "${with_gnu_ld+set}" = set; then
3769   withval="$with_gnu_ld"
3770   test "$withval" = no || with_gnu_ld=yes
3771 else
3772   with_gnu_ld=no
3773 fi;
3774 ac_prog=ld
3775 if test "$GCC" = yes; then
3776   # Check if gcc -print-prog-name=ld gives a path.
3777   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3778 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3779   case $host in
3780   *-*-mingw*)
3781     # gcc leaves a trailing carriage return which upsets mingw
3782     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3783   *)
3784     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3785   esac
3786   case $ac_prog in
3787     # Accept absolute paths.
3788     [\\/]* | ?:[\\/]*)
3789       re_direlt='/[^/][^/]*/\.\./'
3790       # Canonicalize the pathname of ld
3791       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3792       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3793         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3794       done
3795       test -z "$LD" && LD="$ac_prog"
3796       ;;
3797   "")
3798     # If it fails, then pretend we aren't using GCC.
3799     ac_prog=ld
3800     ;;
3801   *)
3802     # If it is relative, then search for the first ld in PATH.
3803     with_gnu_ld=unknown
3804     ;;
3805   esac
3806 elif test "$with_gnu_ld" = yes; then
3807   echo "$as_me:$LINENO: checking for GNU ld" >&5
3808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3809 else
3810   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3812 fi
3813 if test "${lt_cv_path_LD+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test -z "$LD"; then
3817   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3818   for ac_dir in $PATH; do
3819     IFS="$lt_save_ifs"
3820     test -z "$ac_dir" && ac_dir=.
3821     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3822       lt_cv_path_LD="$ac_dir/$ac_prog"
3823       # Check to see if the program is GNU ld.  I'd rather use --version,
3824       # but apparently some GNU ld's only accept -v.
3825       # Break only if it was the GNU/non-GNU ld that we prefer.
3826       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3827       *GNU* | *'with BFD'*)
3828         test "$with_gnu_ld" != no && break
3829         ;;
3830       *)
3831         test "$with_gnu_ld" != yes && break
3832         ;;
3833       esac
3834     fi
3835   done
3836   IFS="$lt_save_ifs"
3837 else
3838   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3839 fi
3840 fi
3841
3842 LD="$lt_cv_path_LD"
3843 if test -n "$LD"; then
3844   echo "$as_me:$LINENO: result: $LD" >&5
3845 echo "${ECHO_T}$LD" >&6
3846 else
3847   echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6
3849 fi
3850 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3851 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3852    { (exit 1); exit 1; }; }
3853 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3854 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3855 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3859 case `$LD -v 2>&1 </dev/null` in
3860 *GNU* | *'with BFD'*)
3861   lt_cv_prog_gnu_ld=yes
3862   ;;
3863 *)
3864   lt_cv_prog_gnu_ld=no
3865   ;;
3866 esac
3867 fi
3868 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3869 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3870 with_gnu_ld=$lt_cv_prog_gnu_ld
3871
3872
3873 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3874 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3875 if test "${lt_cv_ld_reload_flag+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   lt_cv_ld_reload_flag='-r'
3879 fi
3880 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3881 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3882 reload_flag=$lt_cv_ld_reload_flag
3883 case $reload_flag in
3884 "" | " "*) ;;
3885 *) reload_flag=" $reload_flag" ;;
3886 esac
3887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3888 case $host_os in
3889   darwin*)
3890     if test "$GCC" = yes; then
3891       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3892     else
3893       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3894     fi
3895     ;;
3896 esac
3897
3898 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3899 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3900 if test "${lt_cv_path_NM+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if test -n "$NM"; then
3904   # Let the user override the test.
3905   lt_cv_path_NM="$NM"
3906 else
3907   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3908   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3909     IFS="$lt_save_ifs"
3910     test -z "$ac_dir" && ac_dir=.
3911     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3912     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3913       # Check to see if the nm accepts a BSD-compat flag.
3914       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3915       #   nm: unknown option "B" ignored
3916       # Tru64's nm complains that /dev/null is an invalid object file
3917       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3918       */dev/null* | *'Invalid file or object type'*)
3919         lt_cv_path_NM="$tmp_nm -B"
3920         break
3921         ;;
3922       *)
3923         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3924         */dev/null*)
3925           lt_cv_path_NM="$tmp_nm -p"
3926           break
3927           ;;
3928         *)
3929           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3930           continue # so that we can try to find one that supports BSD flags
3931           ;;
3932         esac
3933       esac
3934     fi
3935   done
3936   IFS="$lt_save_ifs"
3937   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3938 fi
3939 fi
3940 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3941 echo "${ECHO_T}$lt_cv_path_NM" >&6
3942 NM="$lt_cv_path_NM"
3943
3944 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3945 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3946 LN_S=$as_ln_s
3947 if test "$LN_S" = "ln -s"; then
3948   echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3952 echo "${ECHO_T}no, using $LN_S" >&6
3953 fi
3954
3955 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3956 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3957 if test "${lt_cv_deplibs_check_method+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   lt_cv_file_magic_cmd='$MAGIC_CMD'
3961 lt_cv_file_magic_test_file=
3962 lt_cv_deplibs_check_method='unknown'
3963 # Need to set the preceding variable on all platforms that support
3964 # interlibrary dependencies.
3965 # 'none' -- dependencies not supported.
3966 # `unknown' -- same as none, but documents that we really don't know.
3967 # 'pass_all' -- all dependencies passed with no checks.
3968 # 'test_compile' -- check by making test program.
3969 # 'file_magic [[regex]]' -- check by looking for files in library path
3970 # which responds to the $file_magic_cmd with a given extended regex.
3971 # If you have `file' or equivalent on your system and you're not sure
3972 # whether `pass_all' will *always* work, you probably want this one.
3973
3974 case $host_os in
3975 aix4* | aix5*)
3976   lt_cv_deplibs_check_method=pass_all
3977   ;;
3978
3979 beos*)
3980   lt_cv_deplibs_check_method=pass_all
3981   ;;
3982
3983 bsdi[45]*)
3984   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3985   lt_cv_file_magic_cmd='/usr/bin/file -L'
3986   lt_cv_file_magic_test_file=/shlib/libc.so
3987   ;;
3988
3989 cygwin*)
3990   # func_win32_libid is a shell function defined in ltmain.sh
3991   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3992   lt_cv_file_magic_cmd='func_win32_libid'
3993   ;;
3994
3995 mingw* | pw32*)
3996   # Base MSYS/MinGW do not provide the 'file' command needed by
3997   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3998   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3999   lt_cv_file_magic_cmd='$OBJDUMP -f'
4000   ;;
4001
4002 darwin* | rhapsody*)
4003   lt_cv_deplibs_check_method=pass_all
4004   ;;
4005
4006 freebsd* | kfreebsd*-gnu)
4007   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4008     case $host_cpu in
4009     i*86 )
4010       # Not sure whether the presence of OpenBSD here was a mistake.
4011       # Let's accept both of them until this is cleared up.
4012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4013       lt_cv_file_magic_cmd=/usr/bin/file
4014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4015       ;;
4016     esac
4017   else
4018     lt_cv_deplibs_check_method=pass_all
4019   fi
4020   ;;
4021
4022 gnu*)
4023   lt_cv_deplibs_check_method=pass_all
4024   ;;
4025
4026 hpux10.20* | hpux11*)
4027   lt_cv_file_magic_cmd=/usr/bin/file
4028   case "$host_cpu" in
4029   ia64*)
4030     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4031     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4032     ;;
4033   hppa*64*)
4034     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]'
4035     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4036     ;;
4037   *)
4038     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4039     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4040     ;;
4041   esac
4042   ;;
4043
4044 irix5* | irix6* | nonstopux*)
4045   case $LD in
4046   *-32|*"-32 ") libmagic=32-bit;;
4047   *-n32|*"-n32 ") libmagic=N32;;
4048   *-64|*"-64 ") libmagic=64-bit;;
4049   *) libmagic=never-match;;
4050   esac
4051   lt_cv_deplibs_check_method=pass_all
4052   ;;
4053
4054 # This must be Linux ELF.
4055 linux*)
4056   lt_cv_deplibs_check_method=pass_all
4057   ;;
4058
4059 netbsd*)
4060   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4061     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4062   else
4063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4064   fi
4065   ;;
4066
4067 newos6*)
4068   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4069   lt_cv_file_magic_cmd=/usr/bin/file
4070   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4071   ;;
4072
4073 nto-qnx*)
4074   lt_cv_deplibs_check_method=unknown
4075   ;;
4076
4077 openbsd*)
4078   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4079     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4080   else
4081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4082   fi
4083   ;;
4084
4085 osf3* | osf4* | osf5*)
4086   lt_cv_deplibs_check_method=pass_all
4087   ;;
4088
4089 sco3.2v5*)
4090   lt_cv_deplibs_check_method=pass_all
4091   ;;
4092
4093 solaris*)
4094   lt_cv_deplibs_check_method=pass_all
4095   ;;
4096
4097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4098   case $host_vendor in
4099   motorola)
4100     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]'
4101     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4102     ;;
4103   ncr)
4104     lt_cv_deplibs_check_method=pass_all
4105     ;;
4106   sequent)
4107     lt_cv_file_magic_cmd='/bin/file'
4108     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4109     ;;
4110   sni)
4111     lt_cv_file_magic_cmd='/bin/file'
4112     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4113     lt_cv_file_magic_test_file=/lib/libc.so
4114     ;;
4115   siemens)
4116     lt_cv_deplibs_check_method=pass_all
4117     ;;
4118   esac
4119   ;;
4120
4121 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4122   lt_cv_deplibs_check_method=pass_all
4123   ;;
4124 esac
4125
4126 fi
4127 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4128 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4129 file_magic_cmd=$lt_cv_file_magic_cmd
4130 deplibs_check_method=$lt_cv_deplibs_check_method
4131 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4132
4133
4134
4135
4136 # If no C compiler was specified, use CC.
4137 LTCC=${LTCC-"$CC"}
4138
4139 # Allow CC to be a program name with arguments.
4140 compiler=$CC
4141
4142 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4143 if test "${enable_libtool_lock+set}" = set; then
4144   enableval="$enable_libtool_lock"
4145
4146 fi;
4147 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4148
4149 # Some flags need to be propagated to the compiler or linker for good
4150 # libtool support.
4151 case $host in
4152 ia64-*-hpux*)
4153   # Find out which ABI we are using.
4154   echo 'int i;' > conftest.$ac_ext
4155   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156   (eval $ac_compile) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; then
4160     case `/usr/bin/file conftest.$ac_objext` in
4161     *ELF-32*)
4162       HPUX_IA64_MODE="32"
4163       ;;
4164     *ELF-64*)
4165       HPUX_IA64_MODE="64"
4166       ;;
4167     esac
4168   fi
4169   rm -rf conftest*
4170   ;;
4171 *-*-irix6*)
4172   # Find out which ABI we are using.
4173   echo '#line 4173 "configure"' > conftest.$ac_ext
4174   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175   (eval $ac_compile) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; then
4179    if test "$lt_cv_prog_gnu_ld" = yes; then
4180     case `/usr/bin/file conftest.$ac_objext` in
4181     *32-bit*)
4182       LD="${LD-ld} -melf32bsmip"
4183       ;;
4184     *N32*)
4185       LD="${LD-ld} -melf32bmipn32"
4186       ;;
4187     *64-bit*)
4188       LD="${LD-ld} -melf64bmip"
4189       ;;
4190     esac
4191    else
4192     case `/usr/bin/file conftest.$ac_objext` in
4193     *32-bit*)
4194       LD="${LD-ld} -32"
4195       ;;
4196     *N32*)
4197       LD="${LD-ld} -n32"
4198       ;;
4199     *64-bit*)
4200       LD="${LD-ld} -64"
4201       ;;
4202     esac
4203    fi
4204   fi
4205   rm -rf conftest*
4206   ;;
4207
4208 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4209   # Find out which ABI we are using.
4210   echo 'int i;' > conftest.$ac_ext
4211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212   (eval $ac_compile) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); }; then
4216     case "`/usr/bin/file conftest.o`" in
4217     *32-bit*)
4218       case $host in
4219         x86_64-*linux*)
4220           LD="${LD-ld} -m elf_i386"
4221           ;;
4222         ppc64-*linux*|powerpc64-*linux*)
4223           LD="${LD-ld} -m elf32ppclinux"
4224           ;;
4225         s390x-*linux*)
4226           LD="${LD-ld} -m elf_s390"
4227           ;;
4228         sparc64-*linux*)
4229           LD="${LD-ld} -m elf32_sparc"
4230           ;;
4231       esac
4232       ;;
4233     *64-bit*)
4234       case $host in
4235         x86_64-*linux*)
4236           LD="${LD-ld} -m elf_x86_64"
4237           ;;
4238         ppc*-*linux*|powerpc*-*linux*)
4239           LD="${LD-ld} -m elf64ppc"
4240           ;;
4241         s390*-*linux*)
4242           LD="${LD-ld} -m elf64_s390"
4243           ;;
4244         sparc*-*linux*)
4245           LD="${LD-ld} -m elf64_sparc"
4246           ;;
4247       esac
4248       ;;
4249     esac
4250   fi
4251   rm -rf conftest*
4252   ;;
4253
4254 *-*-sco3.2v5*)
4255   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4256   SAVE_CFLAGS="$CFLAGS"
4257   CFLAGS="$CFLAGS -belf"
4258   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4259 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4260 if test "${lt_cv_cc_needs_belf+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269      cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275
4276 int
4277 main ()
4278 {
4279
4280   ;
4281   return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286   (eval $ac_link) 2>conftest.er1
4287   ac_status=$?
4288   grep -v '^ *+' conftest.er1 >conftest.err
4289   rm -f conftest.er1
4290   cat conftest.err >&5
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); } &&
4293          { ac_try='test -z "$ac_c_werror_flag"
4294                          || test ! -s conftest.err'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest$ac_exeext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   lt_cv_cc_needs_belf=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 lt_cv_cc_needs_belf=no
4312 fi
4313 rm -f conftest.err conftest.$ac_objext \
4314       conftest$ac_exeext conftest.$ac_ext
4315      ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321 fi
4322 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4323 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4324   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4325     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4326     CFLAGS="$SAVE_CFLAGS"
4327   fi
4328   ;;
4329
4330 esac
4331
4332 need_locks="$enable_libtool_lock"
4333
4334
4335
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 #include <stdlib.h>
4348 #include <stdarg.h>
4349 #include <string.h>
4350 #include <float.h>
4351
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362   (eval $ac_compile) 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } &&
4369          { ac_try='test -z "$ac_c_werror_flag"
4370                          || test ! -s conftest.err'
4371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372   (eval $ac_try) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; } &&
4376          { ac_try='test -s conftest.$ac_objext'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; }; then
4382   ac_cv_header_stdc=yes
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ac_cv_header_stdc=no
4388 fi
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390
4391 if test $ac_cv_header_stdc = yes; then
4392   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393   cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399 #include <string.h>
4400
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403   $EGREP "memchr" >/dev/null 2>&1; then
4404   :
4405 else
4406   ac_cv_header_stdc=no
4407 fi
4408 rm -f conftest*
4409
4410 fi
4411
4412 if test $ac_cv_header_stdc = yes; then
4413   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414   cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420 #include <stdlib.h>
4421
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424   $EGREP "free" >/dev/null 2>&1; then
4425   :
4426 else
4427   ac_cv_header_stdc=no
4428 fi
4429 rm -f conftest*
4430
4431 fi
4432
4433 if test $ac_cv_header_stdc = yes; then
4434   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435   if test "$cross_compiling" = yes; then
4436   :
4437 else
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 #include <ctype.h>
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 #else
4449 # define ISLOWER(c) \
4450                    (('a' <= (c) && (c) <= 'i') \
4451                      || ('j' <= (c) && (c) <= 'r') \
4452                      || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454 #endif
4455
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4457 int
4458 main ()
4459 {
4460   int i;
4461   for (i = 0; i < 256; i++)
4462     if (XOR (islower (i), ISLOWER (i))
4463         || toupper (i) != TOUPPER (i))
4464       exit(2);
4465   exit (0);
4466 }
4467 _ACEOF
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470   (eval $ac_link) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   :
4480 else
4481   echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ( exit $ac_status )
4486 ac_cv_header_stdc=no
4487 fi
4488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4489 fi
4490 fi
4491 fi
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4495
4496 cat >>confdefs.h <<\_ACEOF
4497 #define STDC_HEADERS 1
4498 _ACEOF
4499
4500 fi
4501
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4513                   inttypes.h stdint.h unistd.h
4514 do
4515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527 $ac_includes_default
4528
4529 #include <$ac_header>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533   (eval $ac_compile) 2>conftest.er1
4534   ac_status=$?
4535   grep -v '^ *+' conftest.er1 >conftest.err
4536   rm -f conftest.er1
4537   cat conftest.err >&5
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); } &&
4540          { ac_try='test -z "$ac_c_werror_flag"
4541                          || test ! -s conftest.err'
4542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543   (eval $ac_try) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }; } &&
4547          { ac_try='test -s conftest.$ac_objext'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; }; then
4553   eval "$as_ac_Header=yes"
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 eval "$as_ac_Header=no"
4559 fi
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565   cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567 _ACEOF
4568
4569 fi
4570
4571 done
4572
4573
4574
4575 for ac_header in dlfcn.h
4576 do
4577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579   echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 fi
4584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4586 else
4587   # Is the header compilable?
4588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 $ac_includes_default
4597 #include <$ac_header>
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601   (eval $ac_compile) 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } &&
4608          { ac_try='test -z "$ac_c_werror_flag"
4609                          || test ! -s conftest.err'
4610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611   (eval $ac_try) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; } &&
4615          { ac_try='test -s conftest.$ac_objext'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; }; then
4621   ac_header_compiler=yes
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ac_header_compiler=no
4627 fi
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4630 echo "${ECHO_T}$ac_header_compiler" >&6
4631
4632 # Is the header present?
4633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <$ac_header>
4642 _ACEOF
4643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4645   ac_status=$?
4646   grep -v '^ *+' conftest.er1 >conftest.err
4647   rm -f conftest.er1
4648   cat conftest.err >&5
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); } >/dev/null; then
4651   if test -s conftest.err; then
4652     ac_cpp_err=$ac_c_preproc_warn_flag
4653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4654   else
4655     ac_cpp_err=
4656   fi
4657 else
4658   ac_cpp_err=yes
4659 fi
4660 if test -z "$ac_cpp_err"; then
4661   ac_header_preproc=yes
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666   ac_header_preproc=no
4667 fi
4668 rm -f conftest.err conftest.$ac_ext
4669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670 echo "${ECHO_T}$ac_header_preproc" >&6
4671
4672 # So?  What about this header?
4673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4674   yes:no: )
4675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4679     ac_header_preproc=yes
4680     ;;
4681   no:yes:* )
4682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4694     (
4695       cat <<\_ASBOX
4696 ## ----------------------------------- ##
4697 ## Report this to llvmbugs@cs.uiuc.edu ##
4698 ## ----------------------------------- ##
4699 _ASBOX
4700     ) |
4701       sed "s/^/$as_me: WARNING:     /" >&2
4702     ;;
4703 esac
4704 echo "$as_me:$LINENO: checking for $ac_header" >&5
4705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   eval "$as_ac_Header=\$ac_header_preproc"
4710 fi
4711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4713
4714 fi
4715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4716   cat >>confdefs.h <<_ACEOF
4717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 _ACEOF
4719
4720 fi
4721
4722 done
4723
4724
4725
4726 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4727     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4728     (test "X$CXX" != "Xg++"))) ; then
4729   ac_ext=cc
4730 ac_cpp='$CXXCPP $CPPFLAGS'
4731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4734 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4735 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4736 if test -z "$CXXCPP"; then
4737   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740       # Double quotes because CXXCPP needs to be expanded
4741     for CXXCPP in "$CXX -E" "/lib/cpp"
4742     do
4743       ac_preproc_ok=false
4744 for ac_cxx_preproc_warn_flag in '' yes
4745 do
4746   # Use a header file that comes with gcc, so configuring glibc
4747   # with a fresh cross-compiler works.
4748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749   # <limits.h> exists even on freestanding compilers.
4750   # On the NeXT, cc -E runs the code through the compiler's parser,
4751   # not just through cpp. "Syntax error" is here to catch this case.
4752   cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 #ifdef __STDC__
4759 # include <limits.h>
4760 #else
4761 # include <assert.h>
4762 #endif
4763                      Syntax error
4764 _ACEOF
4765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } >/dev/null; then
4773   if test -s conftest.err; then
4774     ac_cpp_err=$ac_cxx_preproc_warn_flag
4775     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4776   else
4777     ac_cpp_err=
4778   fi
4779 else
4780   ac_cpp_err=yes
4781 fi
4782 if test -z "$ac_cpp_err"; then
4783   :
4784 else
4785   echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788   # Broken: fails on valid input.
4789 continue
4790 fi
4791 rm -f conftest.err conftest.$ac_ext
4792
4793   # OK, works on sane cases.  Now check whether non-existent headers
4794   # can be detected and how.
4795   cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 #include <ac_nonexistent.h>
4802 _ACEOF
4803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } >/dev/null; then
4811   if test -s conftest.err; then
4812     ac_cpp_err=$ac_cxx_preproc_warn_flag
4813     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4814   else
4815     ac_cpp_err=
4816   fi
4817 else
4818   ac_cpp_err=yes
4819 fi
4820 if test -z "$ac_cpp_err"; then
4821   # Broken: success on invalid input.
4822 continue
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827   # Passes both tests.
4828 ac_preproc_ok=:
4829 break
4830 fi
4831 rm -f conftest.err conftest.$ac_ext
4832
4833 done
4834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4835 rm -f conftest.err conftest.$ac_ext
4836 if $ac_preproc_ok; then
4837   break
4838 fi
4839
4840     done
4841     ac_cv_prog_CXXCPP=$CXXCPP
4842
4843 fi
4844   CXXCPP=$ac_cv_prog_CXXCPP
4845 else
4846   ac_cv_prog_CXXCPP=$CXXCPP
4847 fi
4848 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4849 echo "${ECHO_T}$CXXCPP" >&6
4850 ac_preproc_ok=false
4851 for ac_cxx_preproc_warn_flag in '' yes
4852 do
4853   # Use a header file that comes with gcc, so configuring glibc
4854   # with a fresh cross-compiler works.
4855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856   # <limits.h> exists even on freestanding compilers.
4857   # On the NeXT, cc -E runs the code through the compiler's parser,
4858   # not just through cpp. "Syntax error" is here to catch this case.
4859   cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h.  */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h.  */
4865 #ifdef __STDC__
4866 # include <limits.h>
4867 #else
4868 # include <assert.h>
4869 #endif
4870                      Syntax error
4871 _ACEOF
4872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4874   ac_status=$?
4875   grep -v '^ *+' conftest.er1 >conftest.err
4876   rm -f conftest.er1
4877   cat conftest.err >&5
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } >/dev/null; then
4880   if test -s conftest.err; then
4881     ac_cpp_err=$ac_cxx_preproc_warn_flag
4882     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4883   else
4884     ac_cpp_err=
4885   fi
4886 else
4887   ac_cpp_err=yes
4888 fi
4889 if test -z "$ac_cpp_err"; then
4890   :
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895   # Broken: fails on valid input.
4896 continue
4897 fi
4898 rm -f conftest.err conftest.$ac_ext
4899
4900   # OK, works on sane cases.  Now check whether non-existent headers
4901   # can be detected and how.
4902   cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 #include <ac_nonexistent.h>
4909 _ACEOF
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
4915   cat conftest.err >&5
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } >/dev/null; then
4918   if test -s conftest.err; then
4919     ac_cpp_err=$ac_cxx_preproc_warn_flag
4920     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4921   else
4922     ac_cpp_err=
4923   fi
4924 else
4925   ac_cpp_err=yes
4926 fi
4927 if test -z "$ac_cpp_err"; then
4928   # Broken: success on invalid input.
4929 continue
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934   # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4937 fi
4938 rm -f conftest.err conftest.$ac_ext
4939
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then
4944   :
4945 else
4946   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4947 See \`config.log' for more details." >&5
4948 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4949 See \`config.log' for more details." >&2;}
4950    { (exit 1); exit 1; }; }
4951 fi
4952
4953 ac_ext=cc
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958
4959 fi
4960
4961
4962 ac_ext=f
4963 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4964 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4966 if test -n "$ac_tool_prefix"; then
4967   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4968   do
4969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_prog_F77+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   if test -n "$F77"; then
4977   ac_cv_prog_F77="$F77" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984   for ac_exec_ext in '' $ac_executable_extensions; do
4985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991 done
4992
4993 fi
4994 fi
4995 F77=$ac_cv_prog_F77
4996 if test -n "$F77"; then
4997   echo "$as_me:$LINENO: result: $F77" >&5
4998 echo "${ECHO_T}$F77" >&6
4999 else
5000   echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004     test -n "$F77" && break
5005   done
5006 fi
5007 if test -z "$F77"; then
5008   ac_ct_F77=$F77
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_prog", so it can be a program name with args.
5012 set dummy $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_ac_ct_F77+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   if test -n "$ac_ct_F77"; then
5019   ac_cv_prog_ac_ct_F77="$ac_ct_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_ac_ct_F77="$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 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5038 if test -n "$ac_ct_F77"; then
5039   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5040 echo "${ECHO_T}$ac_ct_F77" >&6
5041 else
5042   echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5044 fi
5045
5046   test -n "$ac_ct_F77" && break
5047 done
5048
5049   F77=$ac_ct_F77
5050 fi
5051
5052
5053 # Provide some information about the compiler.
5054 echo "$as_me:5054:" \
5055      "checking for Fortran 77 compiler version" >&5
5056 ac_compiler=`set X $ac_compile; echo $2`
5057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5058   (eval $ac_compiler --version </dev/null >&5) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }
5062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5063   (eval $ac_compiler -v </dev/null >&5) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }
5067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5068   (eval $ac_compiler -V </dev/null >&5) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }
5072 rm -f a.out
5073
5074 # If we don't use `.F' as extension, the preprocessor is not run on the
5075 # input file.  (Note that this only needs to work for GNU compilers.)
5076 ac_save_ext=$ac_ext
5077 ac_ext=F
5078 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5079 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5080 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   cat >conftest.$ac_ext <<_ACEOF
5084       program main
5085 #ifndef __GNUC__
5086        choke me
5087 #endif
5088
5089       end
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093   (eval $ac_compile) 2>conftest.er1
5094   ac_status=$?
5095   grep -v '^ *+' conftest.er1 >conftest.err
5096   rm -f conftest.er1
5097   cat conftest.err >&5
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); } &&
5100          { ac_try='test -z "$ac_f77_werror_flag"
5101                          || test ! -s conftest.err'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; } &&
5107          { ac_try='test -s conftest.$ac_objext'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; }; then
5113   ac_compiler_gnu=yes
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 ac_compiler_gnu=no
5119 fi
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5122
5123 fi
5124 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5125 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5126 ac_ext=$ac_save_ext
5127 ac_test_FFLAGS=${FFLAGS+set}
5128 ac_save_FFLAGS=$FFLAGS
5129 FFLAGS=
5130 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5131 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5132 if test "${ac_cv_prog_f77_g+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   FFLAGS=-g
5136 cat >conftest.$ac_ext <<_ACEOF
5137       program main
5138
5139       end
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143   (eval $ac_compile) 2>conftest.er1
5144   ac_status=$?
5145   grep -v '^ *+' conftest.er1 >conftest.err
5146   rm -f conftest.er1
5147   cat conftest.err >&5
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } &&
5150          { ac_try='test -z "$ac_f77_werror_flag"
5151                          || test ! -s conftest.err'
5152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153   (eval $ac_try) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; } &&
5157          { ac_try='test -s conftest.$ac_objext'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; }; then
5163   ac_cv_prog_f77_g=yes
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 ac_cv_prog_f77_g=no
5169 fi
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5171
5172 fi
5173 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5174 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5175 if test "$ac_test_FFLAGS" = set; then
5176   FFLAGS=$ac_save_FFLAGS
5177 elif test $ac_cv_prog_f77_g = yes; then
5178   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5179     FFLAGS="-g -O2"
5180   else
5181     FFLAGS="-g"
5182   fi
5183 else
5184   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5185     FFLAGS="-O2"
5186   else
5187     FFLAGS=
5188   fi
5189 fi
5190
5191 G77=`test $ac_compiler_gnu = yes && echo yes`
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197
5198
5199
5200 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5201
5202 # find the maximum length of command line arguments
5203 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5204 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5205 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208     i=0
5209   teststring="ABCD"
5210
5211   case $build_os in
5212   msdosdjgpp*)
5213     # On DJGPP, this test can blow up pretty badly due to problems in libc
5214     # (any single argument exceeding 2000 bytes causes a buffer overrun
5215     # during glob expansion).  Even if it were fixed, the result of this
5216     # check would be larger than it should be.
5217     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5218     ;;
5219
5220   gnu*)
5221     # Under GNU Hurd, this test is not required because there is
5222     # no limit to the length of command line arguments.
5223     # Libtool will interpret -1 as no limit whatsoever
5224     lt_cv_sys_max_cmd_len=-1;
5225     ;;
5226
5227   cygwin* | mingw*)
5228     # On Win9x/ME, this test blows up -- it succeeds, but takes
5229     # about 5 minutes as the teststring grows exponentially.
5230     # Worse, since 9x/ME are not pre-emptively multitasking,
5231     # you end up with a "frozen" computer, even though with patience
5232     # the test eventually succeeds (with a max line length of 256k).
5233     # Instead, let's just punt: use the minimum linelength reported by
5234     # all of the supported platforms: 8192 (on NT/2K/XP).
5235     lt_cv_sys_max_cmd_len=8192;
5236     ;;
5237
5238   amigaos*)
5239     # On AmigaOS with pdksh, this test takes hours, literally.
5240     # So we just punt and use a minimum line length of 8192.
5241     lt_cv_sys_max_cmd_len=8192;
5242     ;;
5243
5244   netbsd* | freebsd* | openbsd* | darwin* )
5245     # This has been around since 386BSD, at least.  Likely further.
5246     if test -x /sbin/sysctl; then
5247       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5248     elif test -x /usr/sbin/sysctl; then
5249       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5250     else
5251       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5252     fi
5253     # And add a safety zone
5254     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255     ;;
5256
5257  *)
5258     # If test is not a shell built-in, we'll probably end up computing a
5259     # maximum length that is only half of the actual maximum length, but
5260     # we can't tell.
5261     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5262     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5263                = "XX$teststring") >/dev/null 2>&1 &&
5264             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5265             lt_cv_sys_max_cmd_len=$new_result &&
5266             test $i != 17 # 1/2 MB should be enough
5267     do
5268       i=`expr $i + 1`
5269       teststring=$teststring$teststring
5270     done
5271     teststring=
5272     # Add a significant safety factor because C++ compilers can tack on massive
5273     # amounts of additional arguments before passing them to the linker.
5274     # It appears as though 1/2 is a usable value.
5275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5276     ;;
5277   esac
5278
5279 fi
5280
5281 if test -n $lt_cv_sys_max_cmd_len ; then
5282   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5283 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5284 else
5285   echo "$as_me:$LINENO: result: none" >&5
5286 echo "${ECHO_T}none" >&6
5287 fi
5288
5289
5290
5291
5292 # Check for command to grab the raw symbol name followed by C symbol from nm.
5293 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5294 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5295 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298
5299 # These are sane defaults that work on at least a few old systems.
5300 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5301
5302 # Character class describing NM global symbol codes.
5303 symcode='[BCDEGRST]'
5304
5305 # Regexp to match symbols that can be accessed directly from C.
5306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5307
5308 # Transform the above into a raw symbol and a C symbol.
5309 symxfrm='\1 \2\3 \3'
5310
5311 # Transform an extracted symbol line into a proper C declaration
5312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5313
5314 # Transform an extracted symbol line into symbol name and symbol address
5315 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'"
5316
5317 # Define system-specific variables.
5318 case $host_os in
5319 aix*)
5320   symcode='[BCDT]'
5321   ;;
5322 cygwin* | mingw* | pw32*)
5323   symcode='[ABCDGISTW]'
5324   ;;
5325 hpux*) # Its linker distinguishes data from code symbols
5326   if test "$host_cpu" = ia64; then
5327     symcode='[ABCDEGRST]'
5328   fi
5329   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5330   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'"
5331   ;;
5332 linux*)
5333   if test "$host_cpu" = ia64; then
5334     symcode='[ABCDGIRSTW]'
5335     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336     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'"
5337   fi
5338   ;;
5339 irix* | nonstopux*)
5340   symcode='[BCDEGRST]'
5341   ;;
5342 osf*)
5343   symcode='[BCDEGQRST]'
5344   ;;
5345 solaris* | sysv5*)
5346   symcode='[BDRT]'
5347   ;;
5348 sysv4)
5349   symcode='[DFNSTU]'
5350   ;;
5351 esac
5352
5353 # Handle CRLF in mingw tool chain
5354 opt_cr=
5355 case $build_os in
5356 mingw*)
5357   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5358   ;;
5359 esac
5360
5361 # If we're using GNU nm, then use its standard symbol codes.
5362 case `$NM -V 2>&1` in
5363 *GNU* | *'with BFD'*)
5364   symcode='[ABCDGIRSTW]' ;;
5365 esac
5366
5367 # Try without a prefix undercore, then with it.
5368 for ac_symprfx in "" "_"; do
5369
5370   # Write the raw and C identifiers.
5371   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5372
5373   # Check to see that the pipe works correctly.
5374   pipe_works=no
5375
5376   rm -f conftest*
5377   cat > conftest.$ac_ext <<EOF
5378 #ifdef __cplusplus
5379 extern "C" {
5380 #endif
5381 char nm_test_var;
5382 void nm_test_func(){}
5383 #ifdef __cplusplus
5384 }
5385 #endif
5386 int main(){nm_test_var='a';nm_test_func();return(0);}
5387 EOF
5388
5389   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; then
5394     # Now try to grab the symbols.
5395     nlist=conftest.nm
5396     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5397   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); } && test -s "$nlist"; then
5401       # Try sorting and uniquifying the output.
5402       if sort "$nlist" | uniq > "$nlist"T; then
5403         mv -f "$nlist"T "$nlist"
5404       else
5405         rm -f "$nlist"T
5406       fi
5407
5408       # Make sure that we snagged all the symbols we need.
5409       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5410         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5411           cat <<EOF > conftest.$ac_ext
5412 #ifdef __cplusplus
5413 extern "C" {
5414 #endif
5415
5416 EOF
5417           # Now generate the symbol file.
5418           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5419
5420           cat <<EOF >> conftest.$ac_ext
5421 #if defined (__STDC__) && __STDC__
5422 # define lt_ptr_t void *
5423 #else
5424 # define lt_ptr_t char *
5425 # define const
5426 #endif
5427
5428 /* The mapping between symbol names and symbols. */
5429 const struct {
5430   const char *name;
5431   lt_ptr_t address;
5432 }
5433 lt_preloaded_symbols[] =
5434 {
5435 EOF
5436           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5437           cat <<\EOF >> conftest.$ac_ext
5438   {0, (lt_ptr_t) 0}
5439 };
5440
5441 #ifdef __cplusplus
5442 }
5443 #endif
5444 EOF
5445           # Now try linking the two files.
5446           mv conftest.$ac_objext conftstm.$ac_objext
5447           lt_save_LIBS="$LIBS"
5448           lt_save_CFLAGS="$CFLAGS"
5449           LIBS="conftstm.$ac_objext"
5450           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5451           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452   (eval $ac_link) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5456             pipe_works=yes
5457           fi
5458           LIBS="$lt_save_LIBS"
5459           CFLAGS="$lt_save_CFLAGS"
5460         else
5461           echo "cannot find nm_test_func in $nlist" >&5
5462         fi
5463       else
5464         echo "cannot find nm_test_var in $nlist" >&5
5465       fi
5466     else
5467       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5468     fi
5469   else
5470     echo "$progname: failed program was:" >&5
5471     cat conftest.$ac_ext >&5
5472   fi
5473   rm -f conftest* conftst*
5474
5475   # Do not use the global_symbol_pipe unless it works.
5476   if test "$pipe_works" = yes; then
5477     break
5478   else
5479     lt_cv_sys_global_symbol_pipe=
5480   fi
5481 done
5482
5483 fi
5484
5485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5486   lt_cv_sys_global_symbol_to_cdecl=
5487 fi
5488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5489   echo "$as_me:$LINENO: result: failed" >&5
5490 echo "${ECHO_T}failed" >&6
5491 else
5492   echo "$as_me:$LINENO: result: ok" >&5
5493 echo "${ECHO_T}ok" >&6
5494 fi
5495
5496 echo "$as_me:$LINENO: checking for objdir" >&5
5497 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5498 if test "${lt_cv_objdir+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   rm -f .libs 2>/dev/null
5502 mkdir .libs 2>/dev/null
5503 if test -d .libs; then
5504   lt_cv_objdir=.libs
5505 else
5506   # MS-DOS does not allow filenames that begin with a dot.
5507   lt_cv_objdir=_libs
5508 fi
5509 rmdir .libs 2>/dev/null
5510 fi
5511 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5512 echo "${ECHO_T}$lt_cv_objdir" >&6
5513 objdir=$lt_cv_objdir
5514
5515
5516
5517
5518
5519 case $host_os in
5520 aix3*)
5521   # AIX sometimes has problems with the GCC collect2 program.  For some
5522   # reason, if we set the COLLECT_NAMES environment variable, the problems
5523   # vanish in a puff of smoke.
5524   if test "X${COLLECT_NAMES+set}" != Xset; then
5525     COLLECT_NAMES=
5526     export COLLECT_NAMES
5527   fi
5528   ;;
5529 esac
5530
5531 # Sed substitution that helps us do robust quoting.  It backslashifies
5532 # metacharacters that are still active within double-quoted strings.
5533 Xsed='sed -e s/^X//'
5534 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5535
5536 # Same as above, but do not quote variable references.
5537 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5538
5539 # Sed substitution to delay expansion of an escaped shell variable in a
5540 # double_quote_subst'ed string.
5541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5542
5543 # Sed substitution to avoid accidental globbing in evaled expressions
5544 no_glob_subst='s/\*/\\\*/g'
5545
5546 # Constants:
5547 rm="rm -f"
5548
5549 # Global variables:
5550 default_ofile=mklib
5551 can_build_shared=yes
5552
5553 # All known linkers require a `.a' archive for static linking (except M$VC,
5554 # which needs '.lib').
5555 libext=a
5556 ltmain="$ac_aux_dir/ltmain.sh"
5557 ofile="$default_ofile"
5558 with_gnu_ld="$lt_cv_prog_gnu_ld"
5559
5560 if test -n "$ac_tool_prefix"; then
5561   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ar; ac_word=$2
5563 echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 if test "${ac_cv_prog_AR+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568   if test -n "$AR"; then
5569   ac_cv_prog_AR="$AR" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576   for ac_exec_ext in '' $ac_executable_extensions; do
5577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578     ac_cv_prog_AR="${ac_tool_prefix}ar"
5579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583 done
5584
5585 fi
5586 fi
5587 AR=$ac_cv_prog_AR
5588 if test -n "$AR"; then
5589   echo "$as_me:$LINENO: result: $AR" >&5
5590 echo "${ECHO_T}$AR" >&6
5591 else
5592   echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 fi
5595
5596 fi
5597 if test -z "$ac_cv_prog_AR"; then
5598   ac_ct_AR=$AR
5599   # Extract the first word of "ar", so it can be a program name with args.
5600 set dummy ar; ac_word=$2
5601 echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   if test -n "$ac_ct_AR"; then
5607   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614   for ac_exec_ext in '' $ac_executable_extensions; do
5615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_prog_ac_ct_AR="ar"
5617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621 done
5622
5623   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5624 fi
5625 fi
5626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5627 if test -n "$ac_ct_AR"; then
5628   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5629 echo "${ECHO_T}$ac_ct_AR" >&6
5630 else
5631   echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5633 fi
5634
5635   AR=$ac_ct_AR
5636 else
5637   AR="$ac_cv_prog_AR"
5638 fi
5639
5640 if test -n "$ac_tool_prefix"; then
5641   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5643 echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645 if test "${ac_cv_prog_RANLIB+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   if test -n "$RANLIB"; then
5649   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656   for ac_exec_ext in '' $ac_executable_extensions; do
5657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660     break 2
5661   fi
5662 done
5663 done
5664
5665 fi
5666 fi
5667 RANLIB=$ac_cv_prog_RANLIB
5668 if test -n "$RANLIB"; then
5669   echo "$as_me:$LINENO: result: $RANLIB" >&5
5670 echo "${ECHO_T}$RANLIB" >&6
5671 else
5672   echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5674 fi
5675
5676 fi
5677 if test -z "$ac_cv_prog_RANLIB"; then
5678   ac_ct_RANLIB=$RANLIB
5679   # Extract the first word of "ranlib", so it can be a program name with args.
5680 set dummy ranlib; ac_word=$2
5681 echo "$as_me:$LINENO: checking for $ac_word" >&5
5682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   if test -n "$ac_ct_RANLIB"; then
5687   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694   for ac_exec_ext in '' $ac_executable_extensions; do
5695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696     ac_cv_prog_ac_ct_RANLIB="ranlib"
5697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698     break 2
5699   fi
5700 done
5701 done
5702
5703   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5704 fi
5705 fi
5706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5707 if test -n "$ac_ct_RANLIB"; then
5708   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5709 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5710 else
5711   echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 fi
5714
5715   RANLIB=$ac_ct_RANLIB
5716 else
5717   RANLIB="$ac_cv_prog_RANLIB"
5718 fi
5719
5720 if test -n "$ac_tool_prefix"; then
5721   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5722 set dummy ${ac_tool_prefix}strip; ac_word=$2
5723 echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5725 if test "${ac_cv_prog_STRIP+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728   if test -n "$STRIP"; then
5729   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736   for ac_exec_ext in '' $ac_executable_extensions; do
5737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743 done
5744
5745 fi
5746 fi
5747 STRIP=$ac_cv_prog_STRIP
5748 if test -n "$STRIP"; then
5749   echo "$as_me:$LINENO: result: $STRIP" >&5
5750 echo "${ECHO_T}$STRIP" >&6
5751 else
5752   echo "$as_me:$LINENO: result: no" >&5
5753 echo "${ECHO_T}no" >&6
5754 fi
5755
5756 fi
5757 if test -z "$ac_cv_prog_STRIP"; then
5758   ac_ct_STRIP=$STRIP
5759   # Extract the first word of "strip", so it can be a program name with args.
5760 set dummy strip; ac_word=$2
5761 echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   if test -n "$ac_ct_STRIP"; then
5767   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774   for ac_exec_ext in '' $ac_executable_extensions; do
5775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_prog_ac_ct_STRIP="strip"
5777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781 done
5782
5783   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5784 fi
5785 fi
5786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787 if test -n "$ac_ct_STRIP"; then
5788   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789 echo "${ECHO_T}$ac_ct_STRIP" >&6
5790 else
5791   echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5793 fi
5794
5795   STRIP=$ac_ct_STRIP
5796 else
5797   STRIP="$ac_cv_prog_STRIP"
5798 fi
5799
5800
5801 old_CC="$CC"
5802 old_CFLAGS="$CFLAGS"
5803
5804 # Set sane defaults for various variables
5805 test -z "$AR" && AR=ar
5806 test -z "$AR_FLAGS" && AR_FLAGS=cru
5807 test -z "$AS" && AS=as
5808 test -z "$CC" && CC=cc
5809 test -z "$LTCC" && LTCC=$CC
5810 test -z "$DLLTOOL" && DLLTOOL=dlltool
5811 test -z "$LD" && LD=ld
5812 test -z "$LN_S" && LN_S="ln -s"
5813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5814 test -z "$NM" && NM=nm
5815 test -z "$SED" && SED=sed
5816 test -z "$OBJDUMP" && OBJDUMP=objdump
5817 test -z "$RANLIB" && RANLIB=:
5818 test -z "$STRIP" && STRIP=:
5819 test -z "$ac_objext" && ac_objext=o
5820
5821 # Determine commands to create old-style static archives.
5822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5823 old_postinstall_cmds='chmod 644 $oldlib'
5824 old_postuninstall_cmds=
5825
5826 if test -n "$RANLIB"; then
5827   case $host_os in
5828   openbsd*)
5829     old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5830     ;;
5831   *)
5832     old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5833     ;;
5834   esac
5835   old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5836 fi
5837
5838 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5839
5840 # Only perform the check for file, if the check method requires it
5841 case $deplibs_check_method in
5842 file_magic*)
5843   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5844     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5845 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5846 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   case $MAGIC_CMD in
5850 [\\/*] |  ?:[\\/]*)
5851   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5852   ;;
5853 *)
5854   lt_save_MAGIC_CMD="$MAGIC_CMD"
5855   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5856   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5857   for ac_dir in $ac_dummy; do
5858     IFS="$lt_save_ifs"
5859     test -z "$ac_dir" && ac_dir=.
5860     if test -f $ac_dir/${ac_tool_prefix}file; then
5861       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5862       if test -n "$file_magic_test_file"; then
5863         case $deplibs_check_method in
5864         "file_magic "*)
5865           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5866           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5867           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5868             $EGREP "$file_magic_regex" > /dev/null; then
5869             :
5870           else
5871             cat <<EOF 1>&2
5872
5873 *** Warning: the command libtool uses to detect shared libraries,
5874 *** $file_magic_cmd, produces output that libtool cannot recognize.
5875 *** The result is that libtool may fail to recognize shared libraries
5876 *** as such.  This will affect the creation of libtool libraries that
5877 *** depend on shared libraries, but programs linked with such libtool
5878 *** libraries will work regardless of this problem.  Nevertheless, you
5879 *** may want to report the problem to your system manager and/or to
5880 *** bug-libtool@gnu.org
5881
5882 EOF
5883           fi ;;
5884         esac
5885       fi
5886       break
5887     fi
5888   done
5889   IFS="$lt_save_ifs"
5890   MAGIC_CMD="$lt_save_MAGIC_CMD"
5891   ;;
5892 esac
5893 fi
5894
5895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5896 if test -n "$MAGIC_CMD"; then
5897   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5898 echo "${ECHO_T}$MAGIC_CMD" >&6
5899 else
5900   echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5902 fi
5903
5904 if test -z "$lt_cv_path_MAGIC_CMD"; then
5905   if test -n "$ac_tool_prefix"; then
5906     echo "$as_me:$LINENO: checking for file" >&5
5907 echo $ECHO_N "checking for file... $ECHO_C" >&6
5908 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   case $MAGIC_CMD in
5912 [\\/*] |  ?:[\\/]*)
5913   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5914   ;;
5915 *)
5916   lt_save_MAGIC_CMD="$MAGIC_CMD"
5917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5918   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5919   for ac_dir in $ac_dummy; do
5920     IFS="$lt_save_ifs"
5921     test -z "$ac_dir" && ac_dir=.
5922     if test -f $ac_dir/file; then
5923       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5924       if test -n "$file_magic_test_file"; then
5925         case $deplibs_check_method in
5926         "file_magic "*)
5927           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5928           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5929           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5930             $EGREP "$file_magic_regex" > /dev/null; then
5931             :
5932           else
5933             cat <<EOF 1>&2
5934
5935 *** Warning: the command libtool uses to detect shared libraries,
5936 *** $file_magic_cmd, produces output that libtool cannot recognize.
5937 *** The result is that libtool may fail to recognize shared libraries
5938 *** as such.  This will affect the creation of libtool libraries that
5939 *** depend on shared libraries, but programs linked with such libtool
5940 *** libraries will work regardless of this problem.  Nevertheless, you
5941 *** may want to report the problem to your system manager and/or to
5942 *** bug-libtool@gnu.org
5943
5944 EOF
5945           fi ;;
5946         esac
5947       fi
5948       break
5949     fi
5950   done
5951   IFS="$lt_save_ifs"
5952   MAGIC_CMD="$lt_save_MAGIC_CMD"
5953   ;;
5954 esac
5955 fi
5956
5957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5958 if test -n "$MAGIC_CMD"; then
5959   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5960 echo "${ECHO_T}$MAGIC_CMD" >&6
5961 else
5962   echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5964 fi
5965
5966   else
5967     MAGIC_CMD=:
5968   fi
5969 fi
5970
5971   fi
5972   ;;
5973 esac
5974
5975 enable_dlopen=no
5976 enable_win32_dll=no
5977
5978 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5979 if test "${enable_libtool_lock+set}" = set; then
5980   enableval="$enable_libtool_lock"
5981
5982 fi;
5983 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5984
5985
5986 # Check whether --with-pic or --without-pic was given.
5987 if test "${with_pic+set}" = set; then
5988   withval="$with_pic"
5989   pic_mode="$withval"
5990 else
5991   pic_mode=default
5992 fi;
5993 test -z "$pic_mode" && pic_mode=default
5994
5995 # Use C for the default configuration in the libtool script
5996 tagname=
5997 lt_save_CC="$CC"
5998 ac_ext=c
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003
6004
6005 # Source file extension for C test sources.
6006 ac_ext=c
6007
6008 # Object file extension for compiled C test sources.
6009 objext=o
6010 objext=$objext
6011
6012 # Code to be used in simple compile tests
6013 lt_simple_compile_test_code="int some_variable = 0;\n"
6014
6015 # Code to be used in simple link tests
6016 lt_simple_link_test_code='int main(){return(0);}\n'
6017
6018
6019 # If no C compiler was specified, use CC.
6020 LTCC=${LTCC-"$CC"}
6021
6022 # Allow CC to be a program name with arguments.
6023 compiler=$CC
6024
6025
6026 #
6027 # Check for any special shared library compilation flags.
6028 #
6029 lt_prog_cc_shlib=
6030 if test "$GCC" = no; then
6031   case $host_os in
6032   sco3.2v5*)
6033     lt_prog_cc_shlib='-belf'
6034     ;;
6035   esac
6036 fi
6037 if test -n "$lt_prog_cc_shlib"; then
6038   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6039 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6040   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6041   else
6042     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6043 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6044     lt_cv_prog_cc_can_build_shared=no
6045   fi
6046 fi
6047
6048
6049 #
6050 # Check to make sure the static flag actually works.
6051 #
6052 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6053 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6054 if test "${lt_prog_compiler_static_works+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   lt_prog_compiler_static_works=no
6058    save_LDFLAGS="$LDFLAGS"
6059    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6060    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6061    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6062      # The compiler can only warn and ignore the option if not recognized
6063      # So say no if there are warnings
6064      if test -s conftest.err; then
6065        # Append any errors to the config.log.
6066        cat conftest.err 1>&5
6067      else
6068        lt_prog_compiler_static_works=yes
6069      fi
6070    fi
6071    $rm conftest*
6072    LDFLAGS="$save_LDFLAGS"
6073
6074 fi
6075 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6076 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6077
6078 if test x"$lt_prog_compiler_static_works" = xyes; then
6079     :
6080 else
6081     lt_prog_compiler_static=
6082 fi
6083
6084
6085
6086
6087 lt_prog_compiler_no_builtin_flag=
6088
6089 if test "$GCC" = yes; then
6090   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6091
6092
6093 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6094 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6095 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   lt_cv_prog_compiler_rtti_exceptions=no
6099   ac_outfile=conftest.$ac_objext
6100    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6101    lt_compiler_flag="-fno-rtti -fno-exceptions"
6102    # Insert the option either (1) after the last *FLAGS variable, or
6103    # (2) before a word containing "conftest.", or (3) at the end.
6104    # Note that $ac_compile itself does not contain backslashes and begins
6105    # with a dollar sign (not a hyphen), so the echo should work correctly.
6106    # The option is referenced via a variable to avoid confusing sed.
6107    lt_compile=`echo "$ac_compile" | $SED \
6108    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6110    -e 's:$: $lt_compiler_flag:'`
6111    (eval echo "\"\$as_me:6111: $lt_compile\"" >&5)
6112    (eval "$lt_compile" 2>conftest.err)
6113    ac_status=$?
6114    cat conftest.err >&5
6115    echo "$as_me:6115: \$? = $ac_status" >&5
6116    if (exit $ac_status) && test -s "$ac_outfile"; then
6117      # The compiler can only warn and ignore the option if not recognized
6118      # So say no if there are warnings
6119      if test ! -s conftest.err; then
6120        lt_cv_prog_compiler_rtti_exceptions=yes
6121      fi
6122    fi
6123    $rm conftest*
6124
6125 fi
6126 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6127 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6128
6129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6130     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6131 else
6132     :
6133 fi
6134
6135 fi
6136
6137 lt_prog_compiler_wl=
6138 lt_prog_compiler_pic=
6139 lt_prog_compiler_static=
6140
6141 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6142 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6143
6144   if test "$GCC" = yes; then
6145     lt_prog_compiler_wl='-Wl,'
6146     lt_prog_compiler_static='-static'
6147
6148     case $host_os in
6149       aix*)
6150       # All AIX code is PIC.
6151       if test "$host_cpu" = ia64; then
6152         # AIX 5 now supports IA64 processor
6153         lt_prog_compiler_static='-Bstatic'
6154       fi
6155       ;;
6156
6157     amigaos*)
6158       # FIXME: we need at least 68020 code to build shared libraries, but
6159       # adding the `-m68020' flag to GCC prevents building anything better,
6160       # like `-m68040'.
6161       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6162       ;;
6163
6164     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6165       # PIC is the default for these OSes.
6166       ;;
6167
6168     mingw* | pw32* | os2*)
6169       # This hack is so that the source file can tell whether it is being
6170       # built for inclusion in a dll (and should export symbols for example).
6171       lt_prog_compiler_pic='-DDLL_EXPORT'
6172       ;;
6173
6174     darwin* | rhapsody*)
6175       # PIC is the default on this platform
6176       # Common symbols not allowed in MH_DYLIB files
6177       lt_prog_compiler_pic='-fno-common'
6178       ;;
6179
6180     msdosdjgpp*)
6181       # Just because we use GCC doesn't mean we suddenly get shared libraries
6182       # on systems that don't support them.
6183       lt_prog_compiler_can_build_shared=no
6184       enable_shared=no
6185       ;;
6186
6187     sysv4*MP*)
6188       if test -d /usr/nec; then
6189         lt_prog_compiler_pic=-Kconform_pic
6190       fi
6191       ;;
6192
6193     hpux*)
6194       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6195       # not for PA HP-UX.
6196       case "$host_cpu" in
6197       hppa*64*|ia64*)
6198         # +Z the default
6199         ;;
6200       *)
6201         lt_prog_compiler_pic='-fPIC'
6202         ;;
6203       esac
6204       ;;
6205
6206     *)
6207       lt_prog_compiler_pic='-fPIC'
6208       ;;
6209     esac
6210   else
6211     # PORTME Check for flag to pass linker flags through the system compiler.
6212     case $host_os in
6213     aix*)
6214       lt_prog_compiler_wl='-Wl,'
6215       if test "$host_cpu" = ia64; then
6216         # AIX 5 now supports IA64 processor
6217         lt_prog_compiler_static='-Bstatic'
6218       else
6219         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6220       fi
6221       ;;
6222       darwin*)
6223         # PIC is the default on this platform
6224         # Common symbols not allowed in MH_DYLIB files
6225        case "$cc_basename" in
6226          xlc*)
6227          lt_prog_compiler_pic='-qnocommon'
6228          lt_prog_compiler_wl='-Wl,'
6229          ;;
6230        esac
6231        ;;
6232
6233     mingw* | pw32* | os2*)
6234       # This hack is so that the source file can tell whether it is being
6235       # built for inclusion in a dll (and should export symbols for example).
6236       lt_prog_compiler_pic='-DDLL_EXPORT'
6237       ;;
6238
6239     hpux9* | hpux10* | hpux11*)
6240       lt_prog_compiler_wl='-Wl,'
6241       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6242       # not for PA HP-UX.
6243       case "$host_cpu" in
6244       hppa*64*|ia64*)
6245         # +Z the default
6246         ;;
6247       *)
6248         lt_prog_compiler_pic='+Z'
6249         ;;
6250       esac
6251       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6252       lt_prog_compiler_static='${wl}-a ${wl}archive'
6253       ;;
6254
6255     irix5* | irix6* | nonstopux*)
6256       lt_prog_compiler_wl='-Wl,'
6257       # PIC (with -KPIC) is the default.
6258       lt_prog_compiler_static='-non_shared'
6259       ;;
6260
6261     newsos6)
6262       lt_prog_compiler_pic='-KPIC'
6263       lt_prog_compiler_static='-Bstatic'
6264       ;;
6265
6266     linux*)
6267       case $CC in
6268       icc* | ecc*)
6269         lt_prog_compiler_wl='-Wl,'
6270         lt_prog_compiler_pic='-KPIC'
6271         lt_prog_compiler_static='-static'
6272         ;;
6273       ccc*)
6274         lt_prog_compiler_wl='-Wl,'
6275         # All Alpha code is PIC.
6276         lt_prog_compiler_static='-non_shared'
6277         ;;
6278       esac
6279       ;;
6280
6281     osf3* | osf4* | osf5*)
6282       lt_prog_compiler_wl='-Wl,'
6283       # All OSF/1 code is PIC.
6284       lt_prog_compiler_static='-non_shared'
6285       ;;
6286
6287     sco3.2v5*)
6288       lt_prog_compiler_pic='-Kpic'
6289       lt_prog_compiler_static='-dn'
6290       ;;
6291
6292     solaris*)
6293       lt_prog_compiler_wl='-Wl,'
6294       lt_prog_compiler_pic='-KPIC'
6295       lt_prog_compiler_static='-Bstatic'
6296       ;;
6297
6298     sunos4*)
6299       lt_prog_compiler_wl='-Qoption ld '
6300       lt_prog_compiler_pic='-PIC'
6301       lt_prog_compiler_static='-Bstatic'
6302       ;;
6303
6304     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6305       lt_prog_compiler_wl='-Wl,'
6306       lt_prog_compiler_pic='-KPIC'
6307       lt_prog_compiler_static='-Bstatic'
6308       ;;
6309
6310     sysv4*MP*)
6311       if test -d /usr/nec ;then
6312         lt_prog_compiler_pic='-Kconform_pic'
6313         lt_prog_compiler_static='-Bstatic'
6314       fi
6315       ;;
6316
6317     uts4*)
6318       lt_prog_compiler_pic='-pic'
6319       lt_prog_compiler_static='-Bstatic'
6320       ;;
6321
6322     *)
6323       lt_prog_compiler_can_build_shared=no
6324       ;;
6325     esac
6326   fi
6327
6328 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6329 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6330
6331 #
6332 # Check to make sure the PIC flag actually works.
6333 #
6334 if test -n "$lt_prog_compiler_pic"; then
6335
6336 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6338 if test "${lt_prog_compiler_pic_works+set}" = set; then
6339   echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341   lt_prog_compiler_pic_works=no
6342   ac_outfile=conftest.$ac_objext
6343    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6344    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6345    # Insert the option either (1) after the last *FLAGS variable, or
6346    # (2) before a word containing "conftest.", or (3) at the end.
6347    # Note that $ac_compile itself does not contain backslashes and begins
6348    # with a dollar sign (not a hyphen), so the echo should work correctly.
6349    # The option is referenced via a variable to avoid confusing sed.
6350    lt_compile=`echo "$ac_compile" | $SED \
6351    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6353    -e 's:$: $lt_compiler_flag:'`
6354    (eval echo "\"\$as_me:6354: $lt_compile\"" >&5)
6355    (eval "$lt_compile" 2>conftest.err)
6356    ac_status=$?
6357    cat conftest.err >&5
6358    echo "$as_me:6358: \$? = $ac_status" >&5
6359    if (exit $ac_status) && test -s "$ac_outfile"; then
6360      # The compiler can only warn and ignore the option if not recognized
6361      # So say no if there are warnings
6362      if test ! -s conftest.err; then
6363        lt_prog_compiler_pic_works=yes
6364      fi
6365    fi
6366    $rm conftest*
6367
6368 fi
6369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6370 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6371
6372 if test x"$lt_prog_compiler_pic_works" = xyes; then
6373     case $lt_prog_compiler_pic in
6374      "" | " "*) ;;
6375      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6376      esac
6377 else
6378     lt_prog_compiler_pic=
6379      lt_prog_compiler_can_build_shared=no
6380 fi
6381
6382 fi
6383 case "$host_os" in
6384   # For platforms which do not support PIC, -DPIC is meaningless:
6385   *djgpp*)
6386     lt_prog_compiler_pic=
6387     ;;
6388   *)
6389     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6390     ;;
6391 esac
6392
6393 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6395 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   lt_cv_prog_compiler_c_o=no
6399    $rm -r conftest 2>/dev/null
6400    mkdir conftest
6401    cd conftest
6402    mkdir out
6403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6404
6405    lt_compiler_flag="-o out/conftest2.$ac_objext"
6406    # Insert the option either (1) after the last *FLAGS variable, or
6407    # (2) before a word containing "conftest.", or (3) at the end.
6408    # Note that $ac_compile itself does not contain backslashes and begins
6409    # with a dollar sign (not a hyphen), so the echo should work correctly.
6410    lt_compile=`echo "$ac_compile" | $SED \
6411    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6413    -e 's:$: $lt_compiler_flag:'`
6414    (eval echo "\"\$as_me:6414: $lt_compile\"" >&5)
6415    (eval "$lt_compile" 2>out/conftest.err)
6416    ac_status=$?
6417    cat out/conftest.err >&5
6418    echo "$as_me:6418: \$? = $ac_status" >&5
6419    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6420    then
6421      # The compiler can only warn and ignore the option if not recognized
6422      # So say no if there are warnings
6423      if test ! -s out/conftest.err; then
6424        lt_cv_prog_compiler_c_o=yes
6425      fi
6426    fi
6427    chmod u+w .
6428    $rm conftest*
6429    # SGI C++ compiler will create directory out/ii_files/ for
6430    # template instantiation
6431    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6432    $rm out/* && rmdir out
6433    cd ..
6434    rmdir conftest
6435    $rm conftest*
6436
6437 fi
6438 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6439 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6440
6441
6442 hard_links="nottested"
6443 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6444   # do not overwrite the value of need_locks provided by the user
6445   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6446 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6447   hard_links=yes
6448   $rm conftest*
6449   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6450   touch conftest.a
6451   ln conftest.a conftest.b 2>&5 || hard_links=no
6452   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6453   echo "$as_me:$LINENO: result: $hard_links" >&5
6454 echo "${ECHO_T}$hard_links" >&6
6455   if test "$hard_links" = no; then
6456     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6457 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6458     need_locks=warn
6459   fi
6460 else
6461   need_locks=no
6462 fi
6463
6464 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6465 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6466
6467   runpath_var=
6468   allow_undefined_flag=
6469   enable_shared_with_static_runtimes=no
6470   archive_cmds=
6471   archive_expsym_cmds=
6472   old_archive_From_new_cmds=
6473   old_archive_from_expsyms_cmds=
6474   export_dynamic_flag_spec=
6475   whole_archive_flag_spec=
6476   thread_safe_flag_spec=
6477   hardcode_libdir_flag_spec=
6478   hardcode_libdir_flag_spec_ld=
6479   hardcode_libdir_separator=
6480   hardcode_direct=no
6481   hardcode_minus_L=no
6482   hardcode_shlibpath_var=unsupported
6483   link_all_deplibs=unknown
6484   hardcode_automatic=no
6485   module_cmds=
6486   module_expsym_cmds=
6487   always_export_symbols=no
6488   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6489   # include_expsyms should be a list of space-separated symbols to be *always*
6490   # included in the symbol list
6491   include_expsyms=
6492   # exclude_expsyms can be an extended regexp of symbols to exclude
6493   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6494   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6495   # as well as any symbol that contains `d'.
6496   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6497   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6498   # platforms (ab)use it in PIC code, but their linkers get confused if
6499   # the symbol is explicitly referenced.  Since portable code cannot
6500   # rely on this symbol name, it's probably fine to never include it in
6501   # preloaded symbol tables.
6502   extract_expsyms_cmds=
6503
6504   case $host_os in
6505   cygwin* | mingw* | pw32*)
6506     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6507     # When not using gcc, we currently assume that we are using
6508     # Microsoft Visual C++.
6509     if test "$GCC" != yes; then
6510       with_gnu_ld=no
6511     fi
6512     ;;
6513   openbsd*)
6514     with_gnu_ld=no
6515     ;;
6516   esac
6517
6518   ld_shlibs=yes
6519   if test "$with_gnu_ld" = yes; then
6520     # If archive_cmds runs LD, not CC, wlarc should be empty
6521     wlarc='${wl}'
6522
6523     # See if GNU ld supports shared libraries.
6524     case $host_os in
6525     aix3* | aix4* | aix5*)
6526       # On AIX/PPC, the GNU linker is very broken
6527       if test "$host_cpu" != ia64; then
6528         ld_shlibs=no
6529         cat <<EOF 1>&2
6530
6531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6532 *** to be unable to reliably create shared libraries on AIX.
6533 *** Therefore, libtool is disabling shared libraries support.  If you
6534 *** really care for shared libraries, you may want to modify your PATH
6535 *** so that a non-GNU linker is found, and then restart.
6536
6537 EOF
6538       fi
6539       ;;
6540
6541     amigaos*)
6542       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)'
6543       hardcode_libdir_flag_spec='-L$libdir'
6544       hardcode_minus_L=yes
6545
6546       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6547       # that the semantics of dynamic libraries on AmigaOS, at least up
6548       # to version 4, is to share data among multiple programs linked
6549       # with the same dynamic library.  Since this doesn't match the
6550       # behavior of shared libraries on other platforms, we can't use
6551       # them.
6552       ld_shlibs=no
6553       ;;
6554
6555     beos*)
6556       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6557         allow_undefined_flag=unsupported
6558         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6559         # support --undefined.  This deserves some investigation.  FIXME
6560         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6561       else
6562         ld_shlibs=no
6563       fi
6564       ;;
6565
6566     cygwin* | mingw* | pw32*)
6567       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6568       # as there is no search path for DLLs.
6569       hardcode_libdir_flag_spec='-L$libdir'
6570       allow_undefined_flag=unsupported
6571       always_export_symbols=no
6572       enable_shared_with_static_runtimes=yes
6573       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6574
6575       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6576         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6577         # If the export-symbols file already is a .def file (1st line
6578         # is EXPORTS), use it as is; otherwise, prepend...
6579         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6580           cp $export_symbols $output_objdir/$soname.def;
6581         else
6582           echo EXPORTS > $output_objdir/$soname.def;
6583           cat $export_symbols >> $output_objdir/$soname.def;
6584         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6585       else
6586         ld_shlibs=no
6587       fi
6588       ;;
6589
6590     netbsd*)
6591       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6592         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6593         wlarc=
6594       else
6595         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6596         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6597       fi
6598       ;;
6599
6600     solaris* | sysv5*)
6601       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6602         ld_shlibs=no
6603         cat <<EOF 1>&2
6604
6605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6606 *** create shared libraries on Solaris systems.  Therefore, libtool
6607 *** is disabling shared libraries support.  We urge you to upgrade GNU
6608 *** binutils to release 2.9.1 or newer.  Another option is to modify
6609 *** your PATH or compiler configuration so that the native linker is
6610 *** used, and then restart.
6611
6612 EOF
6613       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6614         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6615         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6616       else
6617         ld_shlibs=no
6618       fi
6619       ;;
6620
6621     sunos4*)
6622       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6623       wlarc=
6624       hardcode_direct=yes
6625       hardcode_shlibpath_var=no
6626       ;;
6627
6628   linux*)
6629     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6630         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6631         archive_cmds="$tmp_archive_cmds"
6632       supports_anon_versioning=no
6633       case `$LD -v 2>/dev/null` in
6634         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6635         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6636         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6637         *\ 2.11.*) ;; # other 2.11 versions
6638         *) supports_anon_versioning=yes ;;
6639       esac
6640       if test $supports_anon_versioning = yes; then
6641         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6642         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6643       else
6644         archive_expsym_cmds="$tmp_archive_cmds"
6645       fi
6646     else
6647       ld_shlibs=no
6648     fi
6649     ;;
6650
6651     *)
6652       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6655       else
6656         ld_shlibs=no
6657       fi
6658       ;;
6659     esac
6660
6661     if test "$ld_shlibs" = yes; then
6662       runpath_var=LD_RUN_PATH
6663       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6664       export_dynamic_flag_spec='${wl}--export-dynamic'
6665       # ancient GNU ld didn't support --whole-archive et. al.
6666       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6667         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6668       else
6669         whole_archive_flag_spec=
6670       fi
6671     fi
6672   else
6673     # PORTME fill in a description of your system's linker (not GNU ld)
6674     case $host_os in
6675     aix3*)
6676       allow_undefined_flag=unsupported
6677       always_export_symbols=yes
6678       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'
6679       # Note: this linker hardcodes the directories in LIBPATH if there
6680       # are no directories specified by -L.
6681       hardcode_minus_L=yes
6682       if test "$GCC" = yes && test -z "$link_static_flag"; then
6683         # Neither direct hardcoding nor static linking is supported with a
6684         # broken collect2.
6685         hardcode_direct=unsupported
6686       fi
6687       ;;
6688
6689     aix4* | aix5*)
6690       if test "$host_cpu" = ia64; then
6691         # On IA64, the linker does run time linking by default, so we don't
6692         # have to do anything special.
6693         aix_use_runtimelinking=no
6694         exp_sym_flag='-Bexport'
6695         no_entry_flag=""
6696       else
6697         # If we're using GNU nm, then we don't want the "-C" option.
6698         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6699         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6700           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'
6701         else
6702           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'
6703         fi
6704         aix_use_runtimelinking=no
6705
6706         # Test if we are trying to use run time linking or normal
6707         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6708         # need to do runtime linking.
6709         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6710           for ld_flag in $LDFLAGS; do
6711           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6712             aix_use_runtimelinking=yes
6713             break
6714           fi
6715           done
6716         esac
6717
6718         exp_sym_flag='-bexport'
6719         no_entry_flag='-bnoentry'
6720       fi
6721
6722       # When large executables or shared objects are built, AIX ld can
6723       # have problems creating the table of contents.  If linking a library
6724       # or program results in "error TOC overflow" add -mminimal-toc to
6725       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6726       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6727
6728       archive_cmds=''
6729       hardcode_direct=yes
6730       hardcode_libdir_separator=':'
6731       link_all_deplibs=yes
6732
6733       if test "$GCC" = yes; then
6734         case $host_os in aix4.012|aix4.012.*)
6735         # We only want to do this on AIX 4.2 and lower, the check
6736         # below for broken collect2 doesn't work under 4.3+
6737           collect2name=`${CC} -print-prog-name=collect2`
6738           if test -f "$collect2name" && \
6739            strings "$collect2name" | grep resolve_lib_name >/dev/null
6740           then
6741           # We have reworked collect2
6742           hardcode_direct=yes
6743           else
6744           # We have old collect2
6745           hardcode_direct=unsupported
6746           # It fails to find uninstalled libraries when the uninstalled
6747           # path is not listed in the libpath.  Setting hardcode_minus_L
6748           # to unsupported forces relinking
6749           hardcode_minus_L=yes
6750           hardcode_libdir_flag_spec='-L$libdir'
6751           hardcode_libdir_separator=
6752           fi
6753         esac
6754         shared_flag='-shared'
6755       else
6756         # not using gcc
6757         if test "$host_cpu" = ia64; then
6758         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6759         # chokes on -Wl,-G. The following line is correct:
6760           shared_flag='-G'
6761         else
6762         if test "$aix_use_runtimelinking" = yes; then
6763             shared_flag='${wl}-G'
6764           else
6765             shared_flag='${wl}-bM:SRE'
6766         fi
6767         fi
6768       fi
6769
6770       # It seems that -bexpall does not export symbols beginning with
6771       # underscore (_), so it is better to generate a list of symbols to export.
6772       always_export_symbols=yes
6773       if test "$aix_use_runtimelinking" = yes; then
6774         # Warning - without using the other runtime loading flags (-brtl),
6775         # -berok will link without error, but may produce a broken library.
6776         allow_undefined_flag='-berok'
6777        # Determine the default libpath from the value encoded in an empty executable.
6778        cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h.  */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h.  */
6784
6785 int
6786 main ()
6787 {
6788
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795   (eval $ac_link) 2>conftest.er1
6796   ac_status=$?
6797   grep -v '^ *+' conftest.er1 >conftest.err
6798   rm -f conftest.er1
6799   cat conftest.err >&5
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          { ac_try='test -z "$ac_c_werror_flag"
6803                          || test ! -s conftest.err'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; } &&
6809          { ac_try='test -s conftest$ac_exeext'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815
6816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6817 }'`
6818 # Check for a 64-bit object if we didn't find anything.
6819 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; }
6820 }'`; fi
6821 else
6822   echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 fi
6826 rm -f conftest.err conftest.$ac_objext \
6827       conftest$ac_exeext conftest.$ac_ext
6828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6829
6830        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6831         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"
6832        else
6833         if test "$host_cpu" = ia64; then
6834           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6835           allow_undefined_flag="-z nodefs"
6836           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"
6837         else
6838          # Determine the default libpath from the value encoded in an empty executable.
6839          cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h.  */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h.  */
6845
6846 int
6847 main ()
6848 {
6849
6850   ;
6851   return 0;
6852 }
6853 _ACEOF
6854 rm -f conftest.$ac_objext conftest$ac_exeext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856   (eval $ac_link) 2>conftest.er1
6857   ac_status=$?
6858   grep -v '^ *+' conftest.er1 >conftest.err
6859   rm -f conftest.er1
6860   cat conftest.err >&5
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); } &&
6863          { ac_try='test -z "$ac_c_werror_flag"
6864                          || test ! -s conftest.err'
6865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866   (eval $ac_try) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); }; } &&
6870          { ac_try='test -s conftest$ac_exeext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876
6877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6878 }'`
6879 # Check for a 64-bit object if we didn't find anything.
6880 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; }
6881 }'`; fi
6882 else
6883   echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 fi
6887 rm -f conftest.err conftest.$ac_objext \
6888       conftest$ac_exeext conftest.$ac_ext
6889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6890
6891          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6892           # Warning - without using the other run time loading flags,
6893           # -berok will link without error, but may produce a broken library.
6894           no_undefined_flag=' ${wl}-bernotok'
6895           allow_undefined_flag=' ${wl}-berok'
6896           # -bexpall does not export symbols beginning with underscore (_)
6897           always_export_symbols=yes
6898           # Exported symbols can be pulled into shared objects from archives
6899           whole_archive_flag_spec=' '
6900           archive_cmds_need_lc=yes
6901           # This is similar to how AIX traditionally builds it's shared libraries.
6902           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'
6903         fi
6904       fi
6905       ;;
6906
6907     amigaos*)
6908       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)'
6909       hardcode_libdir_flag_spec='-L$libdir'
6910       hardcode_minus_L=yes
6911       # see comment about different semantics on the GNU ld section
6912       ld_shlibs=no
6913       ;;
6914
6915     bsdi[45]*)
6916       export_dynamic_flag_spec=-rdynamic
6917       ;;
6918
6919     cygwin* | mingw* | pw32*)
6920       # When not using gcc, we currently assume that we are using
6921       # Microsoft Visual C++.
6922       # hardcode_libdir_flag_spec is actually meaningless, as there is
6923       # no search path for DLLs.
6924       hardcode_libdir_flag_spec=' '
6925       allow_undefined_flag=unsupported
6926       # Tell ltmain to make .lib files, not .a files.
6927       libext=lib
6928       # Tell ltmain to make .dll files, not .so files.
6929       shrext_cmds=".dll"
6930       # FIXME: Setting linknames here is a bad hack.
6931       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6932       # The linker will automatically build a .lib file if we build a DLL.
6933       old_archive_From_new_cmds='true'
6934       # FIXME: Should let the user specify the lib program.
6935       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6936       fix_srcfile_path='`cygpath -w "$srcfile"`'
6937       enable_shared_with_static_runtimes=yes
6938       ;;
6939
6940     darwin* | rhapsody*)
6941       case "$host_os" in
6942         rhapsody* | darwin1.[012])
6943          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6944          ;;
6945        *) # Darwin 1.3 on
6946          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6947            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6948          else
6949            case ${MACOSX_DEPLOYMENT_TARGET} in
6950              10.[012])
6951                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6952                ;;
6953              10.*)
6954                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6955                ;;
6956            esac
6957          fi
6958          ;;
6959       esac
6960       archive_cmds_need_lc=no
6961       hardcode_direct=no
6962       hardcode_automatic=yes
6963       hardcode_shlibpath_var=unsupported
6964       whole_archive_flag_spec=''
6965       link_all_deplibs=yes
6966     if test "$GCC" = yes ; then
6967         output_verbose_link_cmd='echo'
6968         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6969       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6970       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6971       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}'
6972       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6973     else
6974       case "$cc_basename" in
6975         xlc*)
6976          output_verbose_link_cmd='echo'
6977          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6978          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6980          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6981           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6982           ;;
6983        *)
6984          ld_shlibs=no
6985           ;;
6986       esac
6987     fi
6988       ;;
6989
6990     dgux*)
6991       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6992       hardcode_libdir_flag_spec='-L$libdir'
6993       hardcode_shlibpath_var=no
6994       ;;
6995
6996     freebsd1*)
6997       ld_shlibs=no
6998       ;;
6999
7000     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7001     # support.  Future versions do this automatically, but an explicit c++rt0.o
7002     # does not break anything, and helps significantly (at the cost of a little
7003     # extra space).
7004     freebsd2.2*)
7005       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7006       hardcode_libdir_flag_spec='-R$libdir'
7007       hardcode_direct=yes
7008       hardcode_shlibpath_var=no
7009       ;;
7010
7011     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7012     freebsd2*)
7013       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7014       hardcode_direct=yes
7015       hardcode_minus_L=yes
7016       hardcode_shlibpath_var=no
7017       ;;
7018
7019     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7020     freebsd* | kfreebsd*-gnu)
7021       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7022       hardcode_libdir_flag_spec='-R$libdir'
7023       hardcode_direct=yes
7024       hardcode_shlibpath_var=no
7025       ;;
7026
7027     hpux9*)
7028       if test "$GCC" = yes; then
7029         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'
7030       else
7031         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'
7032       fi
7033       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7034       hardcode_libdir_separator=:
7035       hardcode_direct=yes
7036
7037       # hardcode_minus_L: Not really in the search PATH,
7038       # but as the default location of the library.
7039       hardcode_minus_L=yes
7040       export_dynamic_flag_spec='${wl}-E'
7041       ;;
7042
7043     hpux10* | hpux11*)
7044       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7045         case "$host_cpu" in
7046         hppa*64*|ia64*)
7047           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7048           ;;
7049         *)
7050           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7051           ;;
7052         esac
7053       else
7054         case "$host_cpu" in
7055         hppa*64*|ia64*)
7056           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7057           ;;
7058         *)
7059           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7060           ;;
7061         esac
7062       fi
7063       if test "$with_gnu_ld" = no; then
7064         case "$host_cpu" in
7065         hppa*64*)
7066           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7067           hardcode_libdir_flag_spec_ld='+b $libdir'
7068           hardcode_libdir_separator=:
7069           hardcode_direct=no
7070           hardcode_shlibpath_var=no
7071           ;;
7072         ia64*)
7073           hardcode_libdir_flag_spec='-L$libdir'
7074           hardcode_direct=no
7075           hardcode_shlibpath_var=no
7076
7077           # hardcode_minus_L: Not really in the search PATH,
7078           # but as the default location of the library.
7079           hardcode_minus_L=yes
7080           ;;
7081         *)
7082           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7083           hardcode_libdir_separator=:
7084           hardcode_direct=yes
7085           export_dynamic_flag_spec='${wl}-E'
7086
7087           # hardcode_minus_L: Not really in the search PATH,
7088           # but as the default location of the library.
7089           hardcode_minus_L=yes
7090           ;;
7091         esac
7092       fi
7093       ;;
7094
7095     irix5* | irix6* | nonstopux*)
7096       if test "$GCC" = yes; then
7097         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'
7098       else
7099         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'
7100         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7101       fi
7102       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7103       hardcode_libdir_separator=:
7104       link_all_deplibs=yes
7105       ;;
7106
7107     netbsd*)
7108       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7109         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7110       else
7111         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7112       fi
7113       hardcode_libdir_flag_spec='-R$libdir'
7114       hardcode_direct=yes
7115       hardcode_shlibpath_var=no
7116       ;;
7117
7118     newsos6)
7119       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7120       hardcode_direct=yes
7121       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7122       hardcode_libdir_separator=:
7123       hardcode_shlibpath_var=no
7124       ;;
7125
7126     openbsd*)
7127       hardcode_direct=yes
7128       hardcode_shlibpath_var=no
7129       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7130         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7131         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7132         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7133         export_dynamic_flag_spec='${wl}-E'
7134       else
7135        case $host_os in
7136          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7137            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7138            hardcode_libdir_flag_spec='-R$libdir'
7139            ;;
7140          *)
7141            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7142            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7143            ;;
7144        esac
7145       fi
7146       ;;
7147
7148     os2*)
7149       hardcode_libdir_flag_spec='-L$libdir'
7150       hardcode_minus_L=yes
7151       allow_undefined_flag=unsupported
7152       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'
7153       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7154       ;;
7155
7156     osf3*)
7157       if test "$GCC" = yes; then
7158         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7159         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'
7160       else
7161         allow_undefined_flag=' -expect_unresolved \*'
7162         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'
7163       fi
7164       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7165       hardcode_libdir_separator=:
7166       ;;
7167
7168     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7169       if test "$GCC" = yes; then
7170         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7171         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'
7172         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7173       else
7174         allow_undefined_flag=' -expect_unresolved \*'
7175         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'
7176         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
7177         # Both c and cxx compiler support -rpath directly
7178         hardcode_libdir_flag_spec='-rpath $libdir'
7179       fi
7180       hardcode_libdir_separator=:
7181       ;;
7182
7183     sco3.2v5*)
7184       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185       hardcode_shlibpath_var=no
7186       export_dynamic_flag_spec='${wl}-Bexport'
7187       runpath_var=LD_RUN_PATH
7188       hardcode_runpath_var=yes
7189       ;;
7190
7191     solaris*)
7192       no_undefined_flag=' -z text'
7193       if test "$GCC" = yes; then
7194         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7195         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
7196       else
7197         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7198         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7199       fi
7200       hardcode_libdir_flag_spec='-R$libdir'
7201       hardcode_shlibpath_var=no
7202       case $host_os in
7203       solaris2.[0-5] | solaris2.[0-5].*) ;;
7204       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7205         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7206       esac
7207       link_all_deplibs=yes
7208       ;;
7209
7210     sunos4*)
7211       if test "x$host_vendor" = xsequent; then
7212         # Use $CC to link under sequent, because it throws in some extra .o
7213         # files that make .init and .fini sections work.
7214         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7215       else
7216         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7217       fi
7218       hardcode_libdir_flag_spec='-L$libdir'
7219       hardcode_direct=yes
7220       hardcode_minus_L=yes
7221       hardcode_shlibpath_var=no
7222       ;;
7223
7224     sysv4)
7225       case $host_vendor in
7226         sni)
7227           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7228           hardcode_direct=yes # is this really true???
7229         ;;
7230         siemens)
7231           ## LD is ld it makes a PLAMLIB
7232           ## CC just makes a GrossModule.
7233           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7234           reload_cmds='$CC -r -o $output$reload_objs'
7235           hardcode_direct=no
7236         ;;
7237         motorola)
7238           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7240         ;;
7241       esac
7242       runpath_var='LD_RUN_PATH'
7243       hardcode_shlibpath_var=no
7244       ;;
7245
7246     sysv4.3*)
7247       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7248       hardcode_shlibpath_var=no
7249       export_dynamic_flag_spec='-Bexport'
7250       ;;
7251
7252     sysv4*MP*)
7253       if test -d /usr/nec; then
7254         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7255         hardcode_shlibpath_var=no
7256         runpath_var=LD_RUN_PATH
7257         hardcode_runpath_var=yes
7258         ld_shlibs=yes
7259       fi
7260       ;;
7261
7262     sysv4.2uw2*)
7263       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7264       hardcode_direct=yes
7265       hardcode_minus_L=no
7266       hardcode_shlibpath_var=no
7267       hardcode_runpath_var=yes
7268       runpath_var=LD_RUN_PATH
7269       ;;
7270
7271    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7272       no_undefined_flag='${wl}-z ${wl}text'
7273       if test "$GCC" = yes; then
7274         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7275       else
7276         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7277       fi
7278       runpath_var='LD_RUN_PATH'
7279       hardcode_shlibpath_var=no
7280       ;;
7281
7282     sysv5*)
7283       no_undefined_flag=' -z text'
7284       # $CC -shared without GNU ld will not create a library from C++
7285       # object files and a static libstdc++, better avoid it by now
7286       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7287       archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7288       hardcode_libdir_flag_spec=
7289       hardcode_shlibpath_var=no
7290       runpath_var='LD_RUN_PATH'
7291       ;;
7292
7293     uts4*)
7294       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295       hardcode_libdir_flag_spec='-L$libdir'
7296       hardcode_shlibpath_var=no
7297       ;;
7298
7299     *)
7300       ld_shlibs=no
7301       ;;
7302     esac
7303   fi
7304
7305 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7306 echo "${ECHO_T}$ld_shlibs" >&6
7307 test "$ld_shlibs" = no && can_build_shared=no
7308
7309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7310 if test "$GCC" = yes; then
7311   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7312 fi
7313
7314 #
7315 # Do we need to explicitly link libc?
7316 #
7317 case "x$archive_cmds_need_lc" in
7318 x|xyes)
7319   # Assume -lc should be added
7320   archive_cmds_need_lc=yes
7321
7322   if test "$enable_shared" = yes && test "$GCC" = yes; then
7323     case $archive_cmds in
7324     *'~'*)
7325       # FIXME: we may have to deal with multi-command sequences.
7326       ;;
7327     '$CC '*)
7328       # Test whether the compiler implicitly links with -lc since on some
7329       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7330       # to ld, don't add -lc before -lgcc.
7331       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7333       $rm conftest*
7334       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335
7336       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337   (eval $ac_compile) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } 2>conftest.err; then
7341         soname=conftest
7342         lib=conftest
7343         libobjs=conftest.$ac_objext
7344         deplibs=
7345         wl=$lt_prog_compiler_wl
7346         compiler_flags=-v
7347         linker_flags=-v
7348         verstring=
7349         output_objdir=.
7350         libname=conftest
7351         lt_save_allow_undefined_flag=$allow_undefined_flag
7352         allow_undefined_flag=
7353         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7354   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }
7358         then
7359           archive_cmds_need_lc=no
7360         else
7361           archive_cmds_need_lc=yes
7362         fi
7363         allow_undefined_flag=$lt_save_allow_undefined_flag
7364       else
7365         cat conftest.err 1>&5
7366       fi
7367       $rm conftest*
7368       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7369 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7370       ;;
7371     esac
7372   fi
7373   ;;
7374 esac
7375
7376 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7377 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7378 library_names_spec=
7379 libname_spec='lib$name'
7380 soname_spec=
7381 shrext_cmds=".so"
7382 postinstall_cmds=
7383 postuninstall_cmds=
7384 finish_cmds=
7385 finish_eval=
7386 shlibpath_var=
7387 shlibpath_overrides_runpath=unknown
7388 version_type=none
7389 dynamic_linker="$host_os ld.so"
7390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7391 if test "$GCC" = yes; then
7392   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7393   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7394     # if the path contains ";" then we assume it to be the separator
7395     # otherwise default to the standard path separator (i.e. ":") - it is
7396     # assumed that no part of a normal pathname contains ";" but that should
7397     # okay in the real world where ";" in dirpaths is itself problematic.
7398     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7399   else
7400     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7401   fi
7402 else
7403   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7404 fi
7405 need_lib_prefix=unknown
7406 hardcode_into_libs=no
7407
7408 # when you set need_version to no, make sure it does not cause -set_version
7409 # flags to be left without arguments
7410 need_version=unknown
7411
7412 case $host_os in
7413 aix3*)
7414   version_type=linux
7415   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7416   shlibpath_var=LIBPATH
7417
7418   # AIX 3 has no versioning support, so we append a major version to the name.
7419   soname_spec='${libname}${release}${shared_ext}$major'
7420   ;;
7421
7422 aix4* | aix5*)
7423   version_type=linux
7424   need_lib_prefix=no
7425   need_version=no
7426   hardcode_into_libs=yes
7427   if test "$host_cpu" = ia64; then
7428     # AIX 5 supports IA64
7429     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7430     shlibpath_var=LD_LIBRARY_PATH
7431   else
7432     # With GCC up to 2.95.x, collect2 would create an import file
7433     # for dependence libraries.  The import file would start with
7434     # the line `#! .'.  This would cause the generated library to
7435     # depend on `.', always an invalid library.  This was fixed in
7436     # development snapshots of GCC prior to 3.0.
7437     case $host_os in
7438       aix4 | aix4.[01] | aix4.[01].*)
7439       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7440            echo ' yes '
7441            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7442         :
7443       else
7444         can_build_shared=no
7445       fi
7446       ;;
7447     esac
7448     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7449     # soname into executable. Probably we can add versioning support to
7450     # collect2, so additional links can be useful in future.
7451     if test "$aix_use_runtimelinking" = yes; then
7452       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7453       # instead of lib<name>.a to let people know that these are not
7454       # typical AIX shared libraries.
7455       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456     else
7457       # We preserve .a as extension for shared libraries through AIX4.2
7458       # and later when we are not doing run time linking.
7459       library_names_spec='${libname}${release}.a $libname.a'
7460       soname_spec='${libname}${release}${shared_ext}$major'
7461     fi
7462     shlibpath_var=LIBPATH
7463   fi
7464   ;;
7465
7466 amigaos*)
7467   library_names_spec='$libname.ixlibrary $libname.a'
7468   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7469   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'
7470   ;;
7471
7472 beos*)
7473   library_names_spec='${libname}${shared_ext}'
7474   dynamic_linker="$host_os ld.so"
7475   shlibpath_var=LIBRARY_PATH
7476   ;;
7477
7478 bsdi[45]*)
7479   version_type=linux
7480   need_version=no
7481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482   soname_spec='${libname}${release}${shared_ext}$major'
7483   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7484   shlibpath_var=LD_LIBRARY_PATH
7485   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7486   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7487   # the default ld.so.conf also contains /usr/contrib/lib and
7488   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7489   # libtool to hard-code these into programs
7490   ;;
7491
7492 cygwin* | mingw* | pw32*)
7493   version_type=windows
7494   shrext_cmds=".dll"
7495   need_version=no
7496   need_lib_prefix=no
7497
7498   case $GCC,$host_os in
7499   yes,cygwin* | yes,mingw* | yes,pw32*)
7500     library_names_spec='$libname.dll.a'
7501     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7502     postinstall_cmds='base_file=`basename \${file}`;
7503       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7504       dldir=$destdir/`dirname \$dlpath`;
7505       test -d \$dldir || mkdir -p \$dldir;
7506       $install_prog $dir/$dlname \$dldir/$dlname'
7507     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7508       dlpath=$dir/\$dldll;
7509        $rm \$dlpath'
7510     shlibpath_overrides_runpath=yes
7511
7512     case $host_os in
7513     cygwin*)
7514       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7515       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7516       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7517       ;;
7518     mingw*)
7519       # MinGW DLLs use traditional 'lib' prefix
7520       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7521       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7522       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7523         # It is most probably a Windows format PATH printed by
7524         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7525         # path with ; separators, and with drive letters. We can handle the
7526         # drive letters (cygwin fileutils understands them), so leave them,
7527         # especially as we might pass files found there to a mingw objdump,
7528         # which wouldn't understand a cygwinified path. Ahh.
7529         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7530       else
7531         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7532       fi
7533       ;;
7534     pw32*)
7535       # pw32 DLLs use 'pw' prefix rather than 'lib'
7536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7537       ;;
7538     esac
7539     ;;
7540
7541   *)
7542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7543     ;;
7544   esac
7545   dynamic_linker='Win32 ld.exe'
7546   # FIXME: first we should search . and the directory the executable is in
7547   shlibpath_var=PATH
7548   ;;
7549
7550 darwin* | rhapsody*)
7551   dynamic_linker="$host_os dyld"
7552   version_type=darwin
7553   need_lib_prefix=no
7554   need_version=no
7555   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7556   soname_spec='${libname}${release}${major}$shared_ext'
7557   shlibpath_overrides_runpath=yes
7558   shlibpath_var=DYLD_LIBRARY_PATH
7559   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7560   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7561   if test "$GCC" = yes; then
7562     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"`
7563   else
7564     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7565   fi
7566   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7567   ;;
7568
7569 dgux*)
7570   version_type=linux
7571   need_lib_prefix=no
7572   need_version=no
7573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7574   soname_spec='${libname}${release}${shared_ext}$major'
7575   shlibpath_var=LD_LIBRARY_PATH
7576   ;;
7577
7578 freebsd1*)
7579   dynamic_linker=no
7580   ;;
7581
7582 kfreebsd*-gnu)
7583   version_type=linux
7584   need_lib_prefix=no
7585   need_version=no
7586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7587   soname_spec='${libname}${release}${shared_ext}$major'
7588   shlibpath_var=LD_LIBRARY_PATH
7589   shlibpath_overrides_runpath=no
7590   hardcode_into_libs=yes
7591   dynamic_linker='GNU ld.so'
7592   ;;
7593
7594 freebsd*)
7595   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7596   version_type=freebsd-$objformat
7597   case $version_type in
7598     freebsd-elf*)
7599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7600       need_version=no
7601       need_lib_prefix=no
7602       ;;
7603     freebsd-*)
7604       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7605       need_version=yes
7606       ;;
7607   esac
7608   shlibpath_var=LD_LIBRARY_PATH
7609   case $host_os in
7610   freebsd2*)
7611     shlibpath_overrides_runpath=yes
7612     ;;
7613   freebsd3.01* | freebsdelf3.01*)
7614     shlibpath_overrides_runpath=yes
7615     hardcode_into_libs=yes
7616     ;;
7617   *) # from 3.2 on
7618     shlibpath_overrides_runpath=no
7619     hardcode_into_libs=yes
7620     ;;
7621   esac
7622   ;;
7623
7624 gnu*)
7625   version_type=linux
7626   need_lib_prefix=no
7627   need_version=no
7628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7629   soname_spec='${libname}${release}${shared_ext}$major'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   hardcode_into_libs=yes
7632   ;;
7633
7634 hpux9* | hpux10* | hpux11*)
7635   # Give a soname corresponding to the major version so that dld.sl refuses to
7636   # link against other versions.
7637   version_type=sunos
7638   need_lib_prefix=no
7639   need_version=no
7640   case "$host_cpu" in
7641   ia64*)
7642     shrext_cmds='.so'
7643     hardcode_into_libs=yes
7644     dynamic_linker="$host_os dld.so"
7645     shlibpath_var=LD_LIBRARY_PATH
7646     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648     soname_spec='${libname}${release}${shared_ext}$major'
7649     if test "X$HPUX_IA64_MODE" = X32; then
7650       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7651     else
7652       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7653     fi
7654     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7655     ;;
7656    hppa*64*)
7657      shrext_cmds='.sl'
7658      hardcode_into_libs=yes
7659      dynamic_linker="$host_os dld.sl"
7660      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7661      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7663      soname_spec='${libname}${release}${shared_ext}$major'
7664      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7665      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7666      ;;
7667    *)
7668     shrext_cmds='.sl'
7669     dynamic_linker="$host_os dld.sl"
7670     shlibpath_var=SHLIB_PATH
7671     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673     soname_spec='${libname}${release}${shared_ext}$major'
7674     ;;
7675   esac
7676   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7677   postinstall_cmds='chmod 555 $lib'
7678   ;;
7679
7680 irix5* | irix6* | nonstopux*)
7681   case $host_os in
7682     nonstopux*) version_type=nonstopux ;;
7683     *)
7684         if test "$lt_cv_prog_gnu_ld" = yes; then
7685                 version_type=linux
7686         else
7687                 version_type=irix
7688         fi ;;
7689   esac
7690   need_lib_prefix=no
7691   need_version=no
7692   soname_spec='${libname}${release}${shared_ext}$major'
7693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7694   case $host_os in
7695   irix5* | nonstopux*)
7696     libsuff= shlibsuff=
7697     ;;
7698   *)
7699     case $LD in # libtool.m4 will add one of these switches to LD
7700     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7701       libsuff= shlibsuff= libmagic=32-bit;;
7702     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7703       libsuff=32 shlibsuff=N32 libmagic=N32;;
7704     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7705       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7706     *) libsuff= shlibsuff= libmagic=never-match;;
7707     esac
7708     ;;
7709   esac
7710   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7711   shlibpath_overrides_runpath=no
7712   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7713   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7714   hardcode_into_libs=yes
7715   ;;
7716
7717 # No shared lib support for Linux oldld, aout, or coff.
7718 linux*oldld* | linux*aout* | linux*coff*)
7719   dynamic_linker=no
7720   ;;
7721
7722 # This must be Linux ELF.
7723 linux*)
7724   version_type=linux
7725   need_lib_prefix=no
7726   need_version=no
7727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7728   soname_spec='${libname}${release}${shared_ext}$major'
7729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7730   shlibpath_var=LD_LIBRARY_PATH
7731   shlibpath_overrides_runpath=no
7732   # This implies no fast_install, which is unacceptable.
7733   # Some rework will be needed to allow for fast_install
7734   # before this can be enabled.
7735   hardcode_into_libs=yes
7736
7737   # Append ld.so.conf contents to the search path
7738   if test -f /etc/ld.so.conf; then
7739     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7740     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7741   fi
7742
7743   # We used to test for /lib/ld.so.1 and disable shared libraries on
7744   # powerpc, because MkLinux only supported shared libraries with the
7745   # GNU dynamic linker.  Since this was broken with cross compilers,
7746   # most powerpc-linux boxes support dynamic linking these days and
7747   # people can always --disable-shared, the test was removed, and we
7748   # assume the GNU/Linux dynamic linker is in use.
7749   dynamic_linker='GNU/Linux ld.so'
7750   ;;
7751
7752 knetbsd*-gnu)
7753   version_type=linux
7754   need_lib_prefix=no
7755   need_version=no
7756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757   soname_spec='${libname}${release}${shared_ext}$major'
7758   shlibpath_var=LD_LIBRARY_PATH
7759   shlibpath_overrides_runpath=no
7760   hardcode_into_libs=yes
7761   dynamic_linker='GNU ld.so'
7762   ;;
7763
7764 netbsd*)
7765   version_type=sunos
7766   need_lib_prefix=no
7767   need_version=no
7768   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7770     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7771     dynamic_linker='NetBSD (a.out) ld.so'
7772   else
7773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7774     soname_spec='${libname}${release}${shared_ext}$major'
7775     dynamic_linker='NetBSD ld.elf_so'
7776   fi
7777   shlibpath_var=LD_LIBRARY_PATH
7778   shlibpath_overrides_runpath=yes
7779   hardcode_into_libs=yes
7780   ;;
7781
7782 newsos6)
7783   version_type=linux
7784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785   shlibpath_var=LD_LIBRARY_PATH
7786   shlibpath_overrides_runpath=yes
7787   ;;
7788
7789 nto-qnx*)
7790   version_type=linux
7791   need_lib_prefix=no
7792   need_version=no
7793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794   soname_spec='${libname}${release}${shared_ext}$major'
7795   shlibpath_var=LD_LIBRARY_PATH
7796   shlibpath_overrides_runpath=yes
7797   ;;
7798
7799 openbsd*)
7800   version_type=sunos
7801   need_lib_prefix=no
7802   need_version=no
7803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7805   shlibpath_var=LD_LIBRARY_PATH
7806   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7807     case $host_os in
7808       openbsd2.[89] | openbsd2.[89].*)
7809         shlibpath_overrides_runpath=no
7810         ;;
7811       *)
7812         shlibpath_overrides_runpath=yes
7813         ;;
7814       esac
7815   else
7816     shlibpath_overrides_runpath=yes
7817   fi
7818   ;;
7819
7820 os2*)
7821   libname_spec='$name'
7822   shrext_cmds=".dll"
7823   need_lib_prefix=no
7824   library_names_spec='$libname${shared_ext} $libname.a'
7825   dynamic_linker='OS/2 ld.exe'
7826   shlibpath_var=LIBPATH
7827   ;;
7828
7829 osf3* | osf4* | osf5*)
7830   version_type=osf
7831   need_lib_prefix=no
7832   need_version=no
7833   soname_spec='${libname}${release}${shared_ext}$major'
7834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835   shlibpath_var=LD_LIBRARY_PATH
7836   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7837   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7838   ;;
7839
7840 sco3.2v5*)
7841   version_type=osf
7842   soname_spec='${libname}${release}${shared_ext}$major'
7843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7844   shlibpath_var=LD_LIBRARY_PATH
7845   ;;
7846
7847 solaris*)
7848   version_type=linux
7849   need_lib_prefix=no
7850   need_version=no
7851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7852   soname_spec='${libname}${release}${shared_ext}$major'
7853   shlibpath_var=LD_LIBRARY_PATH
7854   shlibpath_overrides_runpath=yes
7855   hardcode_into_libs=yes
7856   # ldd complains unless libraries are executable
7857   postinstall_cmds='chmod +x $lib'
7858   ;;
7859
7860 sunos4*)
7861   version_type=sunos
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7864   shlibpath_var=LD_LIBRARY_PATH
7865   shlibpath_overrides_runpath=yes
7866   if test "$with_gnu_ld" = yes; then
7867     need_lib_prefix=no
7868   fi
7869   need_version=yes
7870   ;;
7871
7872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7873   version_type=linux
7874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875   soname_spec='${libname}${release}${shared_ext}$major'
7876   shlibpath_var=LD_LIBRARY_PATH
7877   case $host_vendor in
7878     sni)
7879       shlibpath_overrides_runpath=no
7880       need_lib_prefix=no
7881       export_dynamic_flag_spec='${wl}-Blargedynsym'
7882       runpath_var=LD_RUN_PATH
7883       ;;
7884     siemens)
7885       need_lib_prefix=no
7886       ;;
7887     motorola)
7888       need_lib_prefix=no
7889       need_version=no
7890       shlibpath_overrides_runpath=no
7891       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7892       ;;
7893   esac
7894   ;;
7895
7896 sysv4*MP*)
7897   if test -d /usr/nec ;then
7898     version_type=linux
7899     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7900     soname_spec='$libname${shared_ext}.$major'
7901     shlibpath_var=LD_LIBRARY_PATH
7902   fi
7903   ;;
7904
7905 uts4*)
7906   version_type=linux
7907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7908   soname_spec='${libname}${release}${shared_ext}$major'
7909   shlibpath_var=LD_LIBRARY_PATH
7910   ;;
7911
7912 *)
7913   dynamic_linker=no
7914   ;;
7915 esac
7916 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7917 echo "${ECHO_T}$dynamic_linker" >&6
7918 test "$dynamic_linker" = no && can_build_shared=no
7919
7920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7922 hardcode_action=
7923 if test -n "$hardcode_libdir_flag_spec" || \
7924    test -n "$runpath_var" || \
7925    test "X$hardcode_automatic" = "Xyes" ; then
7926
7927   # We can hardcode non-existant directories.
7928   if test "$hardcode_direct" != no &&
7929      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7930      # have to relink, otherwise we might link with an installed library
7931      # when we should be linking with a yet-to-be-installed one
7932      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7933      test "$hardcode_minus_L" != no; then
7934     # Linking always hardcodes the temporary library directory.
7935     hardcode_action=relink
7936   else
7937     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7938     hardcode_action=immediate
7939   fi
7940 else
7941   # We cannot hardcode anything, or else we can only hardcode existing
7942   # directories.
7943   hardcode_action=unsupported
7944 fi
7945 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7946 echo "${ECHO_T}$hardcode_action" >&6
7947
7948 if test "$hardcode_action" = relink; then
7949   # Fast installation is not supported
7950   enable_fast_install=no
7951 elif test "$shlibpath_overrides_runpath" = yes ||
7952      test "$enable_shared" = no; then
7953   # Fast installation is not necessary
7954   enable_fast_install=needless
7955 fi
7956
7957 striplib=
7958 old_striplib=
7959 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7960 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7961 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7962   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7963   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7964   echo "$as_me:$LINENO: result: yes" >&5
7965 echo "${ECHO_T}yes" >&6
7966 else
7967 # FIXME - insert some real tests, host_os isn't really good enough
7968   case $host_os in
7969    darwin*)
7970        if test -n "$STRIP" ; then
7971          striplib="$STRIP -x"
7972          echo "$as_me:$LINENO: result: yes" >&5
7973 echo "${ECHO_T}yes" >&6
7974        else
7975   echo "$as_me:$LINENO: result: no" >&5
7976 echo "${ECHO_T}no" >&6
7977 fi
7978        ;;
7979    *)
7980   echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6
7982     ;;
7983   esac
7984 fi
7985
7986 if test "x$enable_dlopen" != xyes; then
7987   enable_dlopen=unknown
7988   enable_dlopen_self=unknown
7989   enable_dlopen_self_static=unknown
7990 else
7991   lt_cv_dlopen=no
7992   lt_cv_dlopen_libs=
7993
7994   case $host_os in
7995   beos*)
7996     lt_cv_dlopen="load_add_on"
7997     lt_cv_dlopen_libs=
7998     lt_cv_dlopen_self=yes
7999     ;;
8000
8001   mingw* | pw32*)
8002     lt_cv_dlopen="LoadLibrary"
8003     lt_cv_dlopen_libs=
8004    ;;
8005
8006   cygwin*)
8007     lt_cv_dlopen="dlopen"
8008     lt_cv_dlopen_libs=
8009    ;;
8010
8011   darwin*)
8012   # if libdl is installed we need to link against it
8013     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   ac_check_lib_save_LIBS=$LIBS
8019 LIBS="-ldl  $LIBS"
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 /* Override any gcc2 internal prototype to avoid an error.  */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 /* We use char because int might match the return type of a gcc2
8032    builtin and then its argument prototype would still apply.  */
8033 char dlopen ();
8034 int
8035 main ()
8036 {
8037 dlopen ();
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044   (eval $ac_link) 2>conftest.er1
8045   ac_status=$?
8046   grep -v '^ *+' conftest.er1 >conftest.err
8047   rm -f conftest.er1
8048   cat conftest.err >&5
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } &&
8051          { ac_try='test -z "$ac_c_werror_flag"
8052                          || test ! -s conftest.err'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; } &&
8058          { ac_try='test -s conftest$ac_exeext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_cv_lib_dl_dlopen=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 ac_cv_lib_dl_dlopen=no
8070 fi
8071 rm -f conftest.err conftest.$ac_objext \
8072       conftest$ac_exeext conftest.$ac_ext
8073 LIBS=$ac_check_lib_save_LIBS
8074 fi
8075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8077 if test $ac_cv_lib_dl_dlopen = yes; then
8078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8079 else
8080
8081     lt_cv_dlopen="dyld"
8082     lt_cv_dlopen_libs=
8083     lt_cv_dlopen_self=yes
8084
8085 fi
8086
8087    ;;
8088
8089   *)
8090     echo "$as_me:$LINENO: checking for shl_load" >&5
8091 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8092 if test "${ac_cv_func_shl_load+set}" = set; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095   cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8103 #define shl_load innocuous_shl_load
8104
8105 /* System header to define __stub macros and hopefully few prototypes,
8106     which can conflict with char shl_load (); below.
8107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8108     <limits.h> exists even on freestanding compilers.  */
8109
8110 #ifdef __STDC__
8111 # include <limits.h>
8112 #else
8113 # include <assert.h>
8114 #endif
8115
8116 #undef shl_load
8117
8118 /* Override any gcc2 internal prototype to avoid an error.  */
8119 #ifdef __cplusplus
8120 extern "C"
8121 {
8122 #endif
8123 /* We use char because int might match the return type of a gcc2
8124    builtin and then its argument prototype would still apply.  */
8125 char shl_load ();
8126 /* The GNU C library defines this for functions which it implements
8127     to always fail with ENOSYS.  Some functions are actually named
8128     something starting with __ and the normal name is an alias.  */
8129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8130 choke me
8131 #else
8132 char (*f) () = shl_load;
8133 #endif
8134 #ifdef __cplusplus
8135 }
8136 #endif
8137
8138 int
8139 main ()
8140 {
8141 return f != shl_load;
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148   (eval $ac_link) 2>conftest.er1
8149   ac_status=$?
8150   grep -v '^ *+' conftest.er1 >conftest.err
8151   rm -f conftest.er1
8152   cat conftest.err >&5
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); } &&
8155          { ac_try='test -z "$ac_c_werror_flag"
8156                          || test ! -s conftest.err'
8157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158   (eval $ac_try) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest$ac_exeext'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   ac_cv_func_shl_load=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_cv_func_shl_load=no
8174 fi
8175 rm -f conftest.err conftest.$ac_objext \
8176       conftest$ac_exeext conftest.$ac_ext
8177 fi
8178 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8179 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8180 if test $ac_cv_func_shl_load = yes; then
8181   lt_cv_dlopen="shl_load"
8182 else
8183   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8184 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   ac_check_lib_save_LIBS=$LIBS
8189 LIBS="-ldld  $LIBS"
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h.  */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h.  */
8196
8197 /* Override any gcc2 internal prototype to avoid an error.  */
8198 #ifdef __cplusplus
8199 extern "C"
8200 #endif
8201 /* We use char because int might match the return type of a gcc2
8202    builtin and then its argument prototype would still apply.  */
8203 char shl_load ();
8204 int
8205 main ()
8206 {
8207 shl_load ();
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214   (eval $ac_link) 2>conftest.er1
8215   ac_status=$?
8216   grep -v '^ *+' conftest.er1 >conftest.err
8217   rm -f conftest.er1
8218   cat conftest.err >&5
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } &&
8221          { ac_try='test -z "$ac_c_werror_flag"
8222                          || test ! -s conftest.err'
8223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224   (eval $ac_try) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; } &&
8228          { ac_try='test -s conftest$ac_exeext'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   ac_cv_lib_dld_shl_load=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 ac_cv_lib_dld_shl_load=no
8240 fi
8241 rm -f conftest.err conftest.$ac_objext \
8242       conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8244 fi
8245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8246 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8247 if test $ac_cv_lib_dld_shl_load = yes; then
8248   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8249 else
8250   echo "$as_me:$LINENO: checking for dlopen" >&5
8251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8252 if test "${ac_cv_func_dlopen+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8263 #define dlopen innocuous_dlopen
8264
8265 /* System header to define __stub macros and hopefully few prototypes,
8266     which can conflict with char dlopen (); below.
8267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8268     <limits.h> exists even on freestanding compilers.  */
8269
8270 #ifdef __STDC__
8271 # include <limits.h>
8272 #else
8273 # include <assert.h>
8274 #endif
8275
8276 #undef dlopen
8277
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 {
8282 #endif
8283 /* We use char because int might match the return type of a gcc2
8284    builtin and then its argument prototype would still apply.  */
8285 char dlopen ();
8286 /* The GNU C library defines this for functions which it implements
8287     to always fail with ENOSYS.  Some functions are actually named
8288     something starting with __ and the normal name is an alias.  */
8289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8290 choke me
8291 #else
8292 char (*f) () = dlopen;
8293 #endif
8294 #ifdef __cplusplus
8295 }
8296 #endif
8297
8298 int
8299 main ()
8300 {
8301 return f != dlopen;
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308   (eval $ac_link) 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } &&
8315          { ac_try='test -z "$ac_c_werror_flag"
8316                          || test ! -s conftest.err'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; }; then
8328   ac_cv_func_dlopen=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333 ac_cv_func_dlopen=no
8334 fi
8335 rm -f conftest.err conftest.$ac_objext \
8336       conftest$ac_exeext conftest.$ac_ext
8337 fi
8338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8340 if test $ac_cv_func_dlopen = yes; then
8341   lt_cv_dlopen="dlopen"
8342 else
8343   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   ac_check_lib_save_LIBS=$LIBS
8349 LIBS="-ldl  $LIBS"
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h.  */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h.  */
8356
8357 /* Override any gcc2 internal prototype to avoid an error.  */
8358 #ifdef __cplusplus
8359 extern "C"
8360 #endif
8361 /* We use char because int might match the return type of a gcc2
8362    builtin and then its argument prototype would still apply.  */
8363 char dlopen ();
8364 int
8365 main ()
8366 {
8367 dlopen ();
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374   (eval $ac_link) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"
8382                          || test ! -s conftest.err'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; } &&
8388          { ac_try='test -s conftest$ac_exeext'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   ac_cv_lib_dl_dlopen=yes
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ac_cv_lib_dl_dlopen=no
8400 fi
8401 rm -f conftest.err conftest.$ac_objext \
8402       conftest$ac_exeext conftest.$ac_ext
8403 LIBS=$ac_check_lib_save_LIBS
8404 fi
8405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8407 if test $ac_cv_lib_dl_dlopen = yes; then
8408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8409 else
8410   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lsvld  $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 /* Override any gcc2 internal prototype to avoid an error.  */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 /* We use char because int might match the return type of a gcc2
8429    builtin and then its argument prototype would still apply.  */
8430 char dlopen ();
8431 int
8432 main ()
8433 {
8434 dlopen ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441   (eval $ac_link) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"
8449                          || test ! -s conftest.err'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461   ac_cv_lib_svld_dlopen=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 ac_cv_lib_svld_dlopen=no
8467 fi
8468 rm -f conftest.err conftest.$ac_objext \
8469       conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8471 fi
8472 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8473 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8474 if test $ac_cv_lib_svld_dlopen = yes; then
8475   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8476 else
8477   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8478 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8479 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-ldld  $LIBS"
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 /* Override any gcc2 internal prototype to avoid an error.  */
8492 #ifdef __cplusplus
8493 extern "C"
8494 #endif
8495 /* We use char because int might match the return type of a gcc2
8496    builtin and then its argument prototype would still apply.  */
8497 char dld_link ();
8498 int
8499 main ()
8500 {
8501 dld_link ();
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508   (eval $ac_link) 2>conftest.er1
8509   ac_status=$?
8510   grep -v '^ *+' conftest.er1 >conftest.err
8511   rm -f conftest.er1
8512   cat conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } &&
8515          { ac_try='test -z "$ac_c_werror_flag"
8516                          || test ! -s conftest.err'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; } &&
8522          { ac_try='test -s conftest$ac_exeext'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; }; then
8528   ac_cv_lib_dld_dld_link=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 ac_cv_lib_dld_dld_link=no
8534 fi
8535 rm -f conftest.err conftest.$ac_objext \
8536       conftest$ac_exeext conftest.$ac_ext
8537 LIBS=$ac_check_lib_save_LIBS
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8541 if test $ac_cv_lib_dld_dld_link = yes; then
8542   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8543 fi
8544
8545
8546 fi
8547
8548
8549 fi
8550
8551
8552 fi
8553
8554
8555 fi
8556
8557
8558 fi
8559
8560     ;;
8561   esac
8562
8563   if test "x$lt_cv_dlopen" != xno; then
8564     enable_dlopen=yes
8565   else
8566     enable_dlopen=no
8567   fi
8568
8569   case $lt_cv_dlopen in
8570   dlopen)
8571     save_CPPFLAGS="$CPPFLAGS"
8572     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8573
8574     save_LDFLAGS="$LDFLAGS"
8575     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8576
8577     save_LIBS="$LIBS"
8578     LIBS="$lt_cv_dlopen_libs $LIBS"
8579
8580     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8582 if test "${lt_cv_dlopen_self+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585           if test "$cross_compiling" = yes; then :
8586   lt_cv_dlopen_self=cross
8587 else
8588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8589   lt_status=$lt_dlunknown
8590   cat > conftest.$ac_ext <<EOF
8591 #line 8591 "configure"
8592 #include "confdefs.h"
8593
8594 #if HAVE_DLFCN_H
8595 #include <dlfcn.h>
8596 #endif
8597
8598 #include <stdio.h>
8599
8600 #ifdef RTLD_GLOBAL
8601 #  define LT_DLGLOBAL           RTLD_GLOBAL
8602 #else
8603 #  ifdef DL_GLOBAL
8604 #    define LT_DLGLOBAL         DL_GLOBAL
8605 #  else
8606 #    define LT_DLGLOBAL         0
8607 #  endif
8608 #endif
8609
8610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8611    find out it does not work in some platform. */
8612 #ifndef LT_DLLAZY_OR_NOW
8613 #  ifdef RTLD_LAZY
8614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8615 #  else
8616 #    ifdef DL_LAZY
8617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8618 #    else
8619 #      ifdef RTLD_NOW
8620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8621 #      else
8622 #        ifdef DL_NOW
8623 #          define LT_DLLAZY_OR_NOW      DL_NOW
8624 #        else
8625 #          define LT_DLLAZY_OR_NOW      0
8626 #        endif
8627 #      endif
8628 #    endif
8629 #  endif
8630 #endif
8631
8632 #ifdef __cplusplus
8633 extern "C" void exit (int);
8634 #endif
8635
8636 void fnord() { int i=42;}
8637 int main ()
8638 {
8639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8640   int status = $lt_dlunknown;
8641
8642   if (self)
8643     {
8644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8646       /* dlclose (self); */
8647     }
8648
8649     exit (status);
8650 }
8651 EOF
8652   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653   (eval $ac_link) 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8657     (./conftest; exit; ) 2>/dev/null
8658     lt_status=$?
8659     case x$lt_status in
8660       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8661       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8662       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8663     esac
8664   else :
8665     # compilation failed
8666     lt_cv_dlopen_self=no
8667   fi
8668 fi
8669 rm -fr conftest*
8670
8671
8672 fi
8673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8675
8676     if test "x$lt_cv_dlopen_self" = xyes; then
8677       LDFLAGS="$LDFLAGS $link_static_flag"
8678       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8680 if test "${lt_cv_dlopen_self_static+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683           if test "$cross_compiling" = yes; then :
8684   lt_cv_dlopen_self_static=cross
8685 else
8686   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8687   lt_status=$lt_dlunknown
8688   cat > conftest.$ac_ext <<EOF
8689 #line 8689 "configure"
8690 #include "confdefs.h"
8691
8692 #if HAVE_DLFCN_H
8693 #include <dlfcn.h>
8694 #endif
8695
8696 #include <stdio.h>
8697
8698 #ifdef RTLD_GLOBAL
8699 #  define LT_DLGLOBAL           RTLD_GLOBAL
8700 #else
8701 #  ifdef DL_GLOBAL
8702 #    define LT_DLGLOBAL         DL_GLOBAL
8703 #  else
8704 #    define LT_DLGLOBAL         0
8705 #  endif
8706 #endif
8707
8708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8709    find out it does not work in some platform. */
8710 #ifndef LT_DLLAZY_OR_NOW
8711 #  ifdef RTLD_LAZY
8712 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8713 #  else
8714 #    ifdef DL_LAZY
8715 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8716 #    else
8717 #      ifdef RTLD_NOW
8718 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8719 #      else
8720 #        ifdef DL_NOW
8721 #          define LT_DLLAZY_OR_NOW      DL_NOW
8722 #        else
8723 #          define LT_DLLAZY_OR_NOW      0
8724 #        endif
8725 #      endif
8726 #    endif
8727 #  endif
8728 #endif
8729
8730 #ifdef __cplusplus
8731 extern "C" void exit (int);
8732 #endif
8733
8734 void fnord() { int i=42;}
8735 int main ()
8736 {
8737   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8738   int status = $lt_dlunknown;
8739
8740   if (self)
8741     {
8742       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8743       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8744       /* dlclose (self); */
8745     }
8746
8747     exit (status);
8748 }
8749 EOF
8750   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751   (eval $ac_link) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8755     (./conftest; exit; ) 2>/dev/null
8756     lt_status=$?
8757     case x$lt_status in
8758       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8759       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8760       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8761     esac
8762   else :
8763     # compilation failed
8764     lt_cv_dlopen_self_static=no
8765   fi
8766 fi
8767 rm -fr conftest*
8768
8769
8770 fi
8771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8773     fi
8774
8775     CPPFLAGS="$save_CPPFLAGS"
8776     LDFLAGS="$save_LDFLAGS"
8777     LIBS="$save_LIBS"
8778     ;;
8779   esac
8780
8781   case $lt_cv_dlopen_self in
8782   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8783   *) enable_dlopen_self=unknown ;;
8784   esac
8785
8786   case $lt_cv_dlopen_self_static in
8787   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8788   *) enable_dlopen_self_static=unknown ;;
8789   esac
8790 fi
8791
8792
8793 # Report which librarie types wil actually be built
8794 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8795 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8796 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8797 echo "${ECHO_T}$can_build_shared" >&6
8798
8799 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8800 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8801 test "$can_build_shared" = "no" && enable_shared=no
8802
8803 # On AIX, shared libraries and static libraries use the same namespace, and
8804 # are all built from PIC.
8805 case "$host_os" in
8806 aix3*)
8807   test "$enable_shared" = yes && enable_static=no
8808   if test -n "$RANLIB"; then
8809     archive_cmds="$archive_cmds;\$RANLIB \$lib"
8810     postinstall_cmds='$RANLIB $lib'
8811   fi
8812   ;;
8813
8814 aix4* | aix5*)
8815   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8816     test "$enable_shared" = yes && enable_static=no
8817   fi
8818     ;;
8819 esac
8820 echo "$as_me:$LINENO: result: $enable_shared" >&5
8821 echo "${ECHO_T}$enable_shared" >&6
8822
8823 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8824 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8825 # Make sure either enable_shared or enable_static is yes.
8826 test "$enable_shared" = yes || enable_static=yes
8827 echo "$as_me:$LINENO: result: $enable_static" >&5
8828 echo "${ECHO_T}$enable_static" >&6
8829
8830 # The else clause should only fire when bootstrapping the
8831 # libtool distribution, otherwise you forgot to ship ltmain.sh
8832 # with your package, and you will get complaints that there are
8833 # no rules to generate ltmain.sh.
8834 if test -f "$ltmain"; then
8835   # See if we are running on zsh, and set the options which allow our commands through
8836   # without removal of \ escapes.
8837   if test -n "${ZSH_VERSION+set}" ; then
8838     setopt NO_GLOB_SUBST
8839   fi
8840   # Now quote all the things that may contain metacharacters while being
8841   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8842   # variables and quote the copies for generation of the libtool script.
8843   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8844     SED SHELL STRIP \
8845     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8846     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8847     deplibs_check_method reload_flag reload_cmds need_locks \
8848     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8849     lt_cv_sys_global_symbol_to_c_name_address \
8850     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8851     old_postinstall_cmds old_postuninstall_cmds \
8852     compiler \
8853     CC \
8854     LD \
8855     lt_prog_compiler_wl \
8856     lt_prog_compiler_pic \
8857     lt_prog_compiler_static \
8858     lt_prog_compiler_no_builtin_flag \
8859     export_dynamic_flag_spec \
8860     thread_safe_flag_spec \
8861     whole_archive_flag_spec \
8862     enable_shared_with_static_runtimes \
8863     old_archive_cmds \
8864     old_archive_from_new_cmds \
8865     predep_objects \
8866     postdep_objects \
8867     predeps \
8868     postdeps \
8869     compiler_lib_search_path \
8870     archive_cmds \
8871     archive_expsym_cmds \
8872     postinstall_cmds \
8873     postuninstall_cmds \
8874     old_archive_from_expsyms_cmds \
8875     allow_undefined_flag \
8876     no_undefined_flag \
8877     export_symbols_cmds \
8878     hardcode_libdir_flag_spec \
8879     hardcode_libdir_flag_spec_ld \
8880     hardcode_libdir_separator \
8881     hardcode_automatic \
8882     module_cmds \
8883     module_expsym_cmds \
8884     lt_cv_prog_compiler_c_o \
8885     exclude_expsyms \
8886     include_expsyms; do
8887
8888     case $var in
8889     old_archive_cmds | \
8890     old_archive_from_new_cmds | \
8891     archive_cmds | \
8892     archive_expsym_cmds | \
8893     module_cmds | \
8894     module_expsym_cmds | \
8895     old_archive_from_expsyms_cmds | \
8896     export_symbols_cmds | \
8897     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8898     postinstall_cmds | postuninstall_cmds | \
8899     old_postinstall_cmds | old_postuninstall_cmds | \
8900     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8901       # Double-quote double-evaled strings.
8902       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8903       ;;
8904     *)
8905       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8906       ;;
8907     esac
8908   done
8909
8910   case $lt_echo in
8911   *'\$0 --fallback-echo"')
8912     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8913     ;;
8914   esac
8915
8916 cfgfile="${ofile}T"
8917   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8918   $rm -f "$cfgfile"
8919   { echo "$as_me:$LINENO: creating $ofile" >&5
8920 echo "$as_me: creating $ofile" >&6;}
8921
8922   cat <<__EOF__ >> "$cfgfile"
8923 #! $SHELL
8924
8925 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8926 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8927 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8928 #
8929 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8930 # Free Software Foundation, Inc.
8931 #
8932 # This file is part of GNU Libtool:
8933 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8934 #
8935 # This program is free software; you can redistribute it and/or modify
8936 # it under the terms of the GNU General Public License as published by
8937 # the Free Software Foundation; either version 2 of the License, or
8938 # (at your option) any later version.
8939 #
8940 # This program is distributed in the hope that it will be useful, but
8941 # WITHOUT ANY WARRANTY; without even the implied warranty of
8942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8943 # General Public License for more details.
8944 #
8945 # You should have received a copy of the GNU General Public License
8946 # along with this program; if not, write to the Free Software
8947 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8948 #
8949 # As a special exception to the GNU General Public License, if you
8950 # distribute this file as part of a program that contains a
8951 # configuration script generated by Autoconf, you may include it under
8952 # the same distribution terms that you use for the rest of that program.
8953
8954 # A sed program that does not truncate output.
8955 SED=$lt_SED
8956
8957 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8958 Xsed="$SED -e s/^X//"
8959
8960 # The HP-UX ksh and POSIX shell print the target directory to stdout
8961 # if CDPATH is set.
8962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8963
8964 # The names of the tagged configurations supported by this script.
8965 available_tags=
8966
8967 # ### BEGIN LIBTOOL CONFIG
8968
8969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8970
8971 # Shell to use when invoking shell scripts.
8972 SHELL=$lt_SHELL
8973
8974 # Whether or not to build shared libraries.
8975 build_libtool_libs=$enable_shared
8976
8977 # Whether or not to build static libraries.
8978 build_old_libs=$enable_static
8979
8980 # Whether or not to add -lc for building shared libraries.
8981 build_libtool_need_lc=$archive_cmds_need_lc
8982
8983 # Whether or not to disallow shared libs when runtime libs are static
8984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8985
8986 # Whether or not to optimize for fast installation.
8987 fast_install=$enable_fast_install
8988
8989 # The host system.
8990 host_alias=$host_alias
8991 host=$host
8992
8993 # An echo program that does not interpret backslashes.
8994 echo=$lt_echo
8995
8996 # The archiver.
8997 AR=$lt_AR
8998 AR_FLAGS=$lt_AR_FLAGS
8999
9000 # A C compiler.
9001 LTCC=$lt_LTCC
9002
9003 # A language-specific compiler.
9004 CC=$lt_compiler
9005
9006 # Is the compiler the GNU C compiler?
9007 with_gcc=$GCC
9008
9009 # An ERE matcher.
9010 EGREP=$lt_EGREP
9011
9012 # The linker used to build libraries.
9013 LD=$lt_LD
9014
9015 # Whether we need hard or soft links.
9016 LN_S=$lt_LN_S
9017
9018 # A BSD-compatible nm program.
9019 NM=$lt_NM
9020
9021 # A symbol stripping program
9022 STRIP=$lt_STRIP
9023
9024 # Used to examine libraries when file_magic_cmd begins "file"
9025 MAGIC_CMD=$MAGIC_CMD
9026
9027 # Used on cygwin: DLL creation program.
9028 DLLTOOL="$DLLTOOL"
9029
9030 # Used on cygwin: object dumper.
9031 OBJDUMP="$OBJDUMP"
9032
9033 # Used on cygwin: assembler.
9034 AS="$AS"
9035
9036 # The name of the directory that contains temporary libtool files.
9037 objdir=$objdir
9038
9039 # How to create reloadable object files.
9040 reload_flag=$lt_reload_flag
9041 reload_cmds=$lt_reload_cmds
9042
9043 # How to pass a linker flag through the compiler.
9044 wl=$lt_lt_prog_compiler_wl
9045
9046 # Object file suffix (normally "o").
9047 objext="$ac_objext"
9048
9049 # Old archive suffix (normally "a").
9050 libext="$libext"
9051
9052 # Shared library suffix (normally ".so").
9053 shrext_cmds='$shrext_cmds'
9054
9055 # Executable file suffix (normally "").
9056 exeext="$exeext"
9057
9058 # Additional compiler flags for building library objects.
9059 pic_flag=$lt_lt_prog_compiler_pic
9060 pic_mode=$pic_mode
9061
9062 # What is the maximum length of a command?
9063 max_cmd_len=$lt_cv_sys_max_cmd_len
9064
9065 # Does compiler simultaneously support -c and -o options?
9066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9067
9068 # Must we lock files when doing compilation ?
9069 need_locks=$lt_need_locks
9070
9071 # Do we need the lib prefix for modules?
9072 need_lib_prefix=$need_lib_prefix
9073
9074 # Do we need a version for libraries?
9075 need_version=$need_version
9076
9077 # Whether dlopen is supported.
9078 dlopen_support=$enable_dlopen
9079
9080 # Whether dlopen of programs is supported.
9081 dlopen_self=$enable_dlopen_self
9082
9083 # Whether dlopen of statically linked programs is supported.
9084 dlopen_self_static=$enable_dlopen_self_static
9085
9086 # Compiler flag to prevent dynamic linking.
9087 link_static_flag=$lt_lt_prog_compiler_static
9088
9089 # Compiler flag to turn off builtin functions.
9090 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9091
9092 # Compiler flag to allow reflexive dlopens.
9093 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9094
9095 # Compiler flag to generate shared objects directly from archives.
9096 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9097
9098 # Compiler flag to generate thread-safe objects.
9099 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9100
9101 # Library versioning type.
9102 version_type=$version_type
9103
9104 # Format of library name prefix.
9105 libname_spec=$lt_libname_spec
9106
9107 # List of archive names.  First name is the real one, the rest are links.
9108 # The last name is the one that the linker finds with -lNAME.
9109 library_names_spec=$lt_library_names_spec
9110
9111 # The coded name of the library, if different from the real name.
9112 soname_spec=$lt_soname_spec
9113
9114 # Commands used to build and install an old-style archive.
9115 RANLIB=$lt_RANLIB
9116 old_archive_cmds=$lt_old_archive_cmds
9117 old_postinstall_cmds=$lt_old_postinstall_cmds
9118 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9119
9120 # Create an old-style archive from a shared archive.
9121 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9122
9123 # Create a temporary old-style archive to link instead of a shared archive.
9124 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9125
9126 # Commands used to build and install a shared archive.
9127 archive_cmds=$lt_archive_cmds
9128 archive_expsym_cmds=$lt_archive_expsym_cmds
9129 postinstall_cmds=$lt_postinstall_cmds
9130 postuninstall_cmds=$lt_postuninstall_cmds
9131
9132 # Commands used to build a loadable module (assumed same as above if empty)
9133 module_cmds=$lt_module_cmds
9134 module_expsym_cmds=$lt_module_expsym_cmds
9135
9136 # Commands to strip libraries.
9137 old_striplib=$lt_old_striplib
9138 striplib=$lt_striplib
9139
9140 # Dependencies to place before the objects being linked to create a
9141 # shared library.
9142 predep_objects=$lt_predep_objects
9143
9144 # Dependencies to place after the objects being linked to create a
9145 # shared library.
9146 postdep_objects=$lt_postdep_objects
9147
9148 # Dependencies to place before the objects being linked to create a
9149 # shared library.
9150 predeps=$lt_predeps
9151
9152 # Dependencies to place after the objects being linked to create a
9153 # shared library.
9154 postdeps=$lt_postdeps
9155
9156 # The library search path used internally by the compiler when linking
9157 # a shared library.
9158 compiler_lib_search_path=$lt_compiler_lib_search_path
9159
9160 # Method to check whether dependent libraries are shared objects.
9161 deplibs_check_method=$lt_deplibs_check_method
9162
9163 # Command to use when deplibs_check_method == file_magic.
9164 file_magic_cmd=$lt_file_magic_cmd
9165
9166 # Flag that allows shared libraries with undefined symbols to be built.
9167 allow_undefined_flag=$lt_allow_undefined_flag
9168
9169 # Flag that forces no undefined symbols.
9170 no_undefined_flag=$lt_no_undefined_flag
9171
9172 # Commands used to finish a libtool library installation in a directory.
9173 finish_cmds=$lt_finish_cmds
9174
9175 # Same as above, but a single script fragment to be evaled but not shown.
9176 finish_eval=$lt_finish_eval
9177
9178 # Take the output of nm and produce a listing of raw symbols and C names.
9179 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9180
9181 # Transform the output of nm in a proper C declaration
9182 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9183
9184 # Transform the output of nm in a C name address pair
9185 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9186
9187 # This is the shared library runtime path variable.
9188 runpath_var=$runpath_var
9189
9190 # This is the shared library path variable.
9191 shlibpath_var=$shlibpath_var
9192
9193 # Is shlibpath searched before the hard-coded library search path?
9194 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9195
9196 # How to hardcode a shared library path into an executable.
9197 hardcode_action=$hardcode_action
9198
9199 # Whether we should hardcode library paths into libraries.
9200 hardcode_into_libs=$hardcode_into_libs
9201
9202 # Flag to hardcode \$libdir into a binary during linking.
9203 # This must work even if \$libdir does not exist.
9204 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9205
9206 # If ld is used when linking, flag to hardcode \$libdir into
9207 # a binary during linking. This must work even if \$libdir does
9208 # not exist.
9209 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9210
9211 # Whether we need a single -rpath flag with a separated argument.
9212 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9213
9214 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9215 # resulting binary.
9216 hardcode_direct=$hardcode_direct
9217
9218 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9219 # resulting binary.
9220 hardcode_minus_L=$hardcode_minus_L
9221
9222 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9223 # the resulting binary.
9224 hardcode_shlibpath_var=$hardcode_shlibpath_var
9225
9226 # Set to yes if building a shared library automatically hardcodes DIR into the library
9227 # and all subsequent libraries and executables linked against it.
9228 hardcode_automatic=$hardcode_automatic
9229
9230 # Variables whose values should be saved in libtool wrapper scripts and
9231 # restored at relink time.
9232 variables_saved_for_relink="$variables_saved_for_relink"
9233
9234 # Whether libtool must link a program against all its dependency libraries.
9235 link_all_deplibs=$link_all_deplibs
9236
9237 # Compile-time system search path for libraries
9238 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9239
9240 # Run-time system search path for libraries
9241 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9242
9243 # Fix the shell variable \$srcfile for the compiler.
9244 fix_srcfile_path="$fix_srcfile_path"
9245
9246 # Set to yes if exported symbols are required.
9247 always_export_symbols=$always_export_symbols
9248
9249 # The commands to list exported symbols.
9250 export_symbols_cmds=$lt_export_symbols_cmds
9251
9252 # The commands to extract the exported symbol list from a shared archive.
9253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9254
9255 # Symbols that should not be listed in the preloaded symbols.
9256 exclude_expsyms=$lt_exclude_expsyms
9257
9258 # Symbols that must always be exported.
9259 include_expsyms=$lt_include_expsyms
9260
9261 # ### END LIBTOOL CONFIG
9262
9263 __EOF__
9264
9265
9266   case $host_os in
9267   aix3*)
9268     cat <<\EOF >> "$cfgfile"
9269
9270 # AIX sometimes has problems with the GCC collect2 program.  For some
9271 # reason, if we set the COLLECT_NAMES environment variable, the problems
9272 # vanish in a puff of smoke.
9273 if test "X${COLLECT_NAMES+set}" != Xset; then
9274   COLLECT_NAMES=
9275   export COLLECT_NAMES
9276 fi
9277 EOF
9278     ;;
9279   esac
9280
9281   # We use sed instead of cat because bash on DJGPP gets confused if
9282   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9283   # text mode, it properly converts lines to CR/LF.  This bash problem
9284   # is reportedly fixed, but why not run on old versions too?
9285   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9286
9287   mv -f "$cfgfile" "$ofile" || \
9288     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9289   chmod +x "$ofile"
9290
9291 else
9292   # If there is no Makefile yet, we rely on a make rule to execute
9293   # `config.status --recheck' to rerun these tests and create the
9294   # libtool script then.
9295   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9296   if test -f "$ltmain_in"; then
9297     test -f Makefile && make "$ltmain"
9298   fi
9299 fi
9300
9301
9302 ac_ext=c
9303 ac_cpp='$CPP $CPPFLAGS'
9304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9307
9308 CC="$lt_save_CC"
9309
9310
9311 # Check whether --with-tags or --without-tags was given.
9312 if test "${with_tags+set}" = set; then
9313   withval="$with_tags"
9314   tagnames="$withval"
9315 fi;
9316
9317 if test -f "$ltmain" && test -n "$tagnames"; then
9318   if test ! -f "${ofile}"; then
9319     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9320 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9321   fi
9322
9323   if test -z "$LTCC"; then
9324     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9325     if test -z "$LTCC"; then
9326       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9327 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9328     else
9329       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9330 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9331     fi
9332   fi
9333
9334   # Extract list of available tagged configurations in $ofile.
9335   # Note that this assumes the entire list is on one line.
9336   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9337
9338   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9339   for tagname in $tagnames; do
9340     IFS="$lt_save_ifs"
9341     # Check whether tagname contains only valid characters
9342     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9343     "") ;;
9344     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9345 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9346    { (exit 1); exit 1; }; }
9347         ;;
9348     esac
9349
9350     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9351     then
9352       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9353 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9354    { (exit 1); exit 1; }; }
9355     fi
9356
9357     # Update the list of available tags.
9358     if test -n "$tagname"; then
9359       echo appending configuration tag \"$tagname\" to $ofile
9360
9361       case $tagname in
9362       CXX)
9363         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9364             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9365             (test "X$CXX" != "Xg++"))) ; then
9366           ac_ext=cc
9367 ac_cpp='$CXXCPP $CPPFLAGS'
9368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9371
9372
9373
9374
9375 archive_cmds_need_lc_CXX=no
9376 allow_undefined_flag_CXX=
9377 always_export_symbols_CXX=no
9378 archive_expsym_cmds_CXX=
9379 export_dynamic_flag_spec_CXX=
9380 hardcode_direct_CXX=no
9381 hardcode_libdir_flag_spec_CXX=
9382 hardcode_libdir_flag_spec_ld_CXX=
9383 hardcode_libdir_separator_CXX=
9384 hardcode_minus_L_CXX=no
9385 hardcode_automatic_CXX=no
9386 module_cmds_CXX=
9387 module_expsym_cmds_CXX=
9388 link_all_deplibs_CXX=unknown
9389 old_archive_cmds_CXX=$old_archive_cmds
9390 no_undefined_flag_CXX=
9391 whole_archive_flag_spec_CXX=
9392 enable_shared_with_static_runtimes_CXX=no
9393
9394 # Dependencies to place before and after the object being linked:
9395 predep_objects_CXX=
9396 postdep_objects_CXX=
9397 predeps_CXX=
9398 postdeps_CXX=
9399 compiler_lib_search_path_CXX=
9400
9401 # Source file extension for C++ test sources.
9402 ac_ext=cc
9403
9404 # Object file extension for compiled C++ test sources.
9405 objext=o
9406 objext_CXX=$objext
9407
9408 # Code to be used in simple compile tests
9409 lt_simple_compile_test_code="int some_variable = 0;\n"
9410
9411 # Code to be used in simple link tests
9412 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9413
9414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9415
9416 # If no C compiler was specified, use CC.
9417 LTCC=${LTCC-"$CC"}
9418
9419 # Allow CC to be a program name with arguments.
9420 compiler=$CC
9421
9422
9423 # Allow CC to be a program name with arguments.
9424 lt_save_CC=$CC
9425 lt_save_LD=$LD
9426 lt_save_GCC=$GCC
9427 GCC=$GXX
9428 lt_save_with_gnu_ld=$with_gnu_ld
9429 lt_save_path_LD=$lt_cv_path_LD
9430 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9431   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9432 else
9433   unset lt_cv_prog_gnu_ld
9434 fi
9435 if test -n "${lt_cv_path_LDCXX+set}"; then
9436   lt_cv_path_LD=$lt_cv_path_LDCXX
9437 else
9438   unset lt_cv_path_LD
9439 fi
9440 test -z "${LDCXX+set}" || LD=$LDCXX
9441 CC=${CXX-"c++"}
9442 compiler=$CC
9443 compiler_CXX=$CC
9444 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9445
9446 # We don't want -fno-exception wen compiling C++ code, so set the
9447 # no_builtin_flag separately
9448 if test "$GXX" = yes; then
9449   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9450 else
9451   lt_prog_compiler_no_builtin_flag_CXX=
9452 fi
9453
9454 if test "$GXX" = yes; then
9455   # Set up default GNU C++ configuration
9456
9457
9458 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9459 if test "${with_gnu_ld+set}" = set; then
9460   withval="$with_gnu_ld"
9461   test "$withval" = no || with_gnu_ld=yes
9462 else
9463   with_gnu_ld=no
9464 fi;
9465 ac_prog=ld
9466 if test "$GCC" = yes; then
9467   # Check if gcc -print-prog-name=ld gives a path.
9468   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9469 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9470   case $host in
9471   *-*-mingw*)
9472     # gcc leaves a trailing carriage return which upsets mingw
9473     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9474   *)
9475     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9476   esac
9477   case $ac_prog in
9478     # Accept absolute paths.
9479     [\\/]* | ?:[\\/]*)
9480       re_direlt='/[^/][^/]*/\.\./'
9481       # Canonicalize the pathname of ld
9482       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9483       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9484         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9485       done
9486       test -z "$LD" && LD="$ac_prog"
9487       ;;
9488   "")
9489     # If it fails, then pretend we aren't using GCC.
9490     ac_prog=ld
9491     ;;
9492   *)
9493     # If it is relative, then search for the first ld in PATH.
9494     with_gnu_ld=unknown
9495     ;;
9496   esac
9497 elif test "$with_gnu_ld" = yes; then
9498   echo "$as_me:$LINENO: checking for GNU ld" >&5
9499 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9500 else
9501   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9502 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9503 fi
9504 if test "${lt_cv_path_LD+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   if test -z "$LD"; then
9508   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9509   for ac_dir in $PATH; do
9510     IFS="$lt_save_ifs"
9511     test -z "$ac_dir" && ac_dir=.
9512     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9513       lt_cv_path_LD="$ac_dir/$ac_prog"
9514       # Check to see if the program is GNU ld.  I'd rather use --version,
9515       # but apparently some GNU ld's only accept -v.
9516       # Break only if it was the GNU/non-GNU ld that we prefer.
9517       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9518       *GNU* | *'with BFD'*)
9519         test "$with_gnu_ld" != no && break
9520         ;;
9521       *)
9522         test "$with_gnu_ld" != yes && break
9523         ;;
9524       esac
9525     fi
9526   done
9527   IFS="$lt_save_ifs"
9528 else
9529   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9530 fi
9531 fi
9532
9533 LD="$lt_cv_path_LD"
9534 if test -n "$LD"; then
9535   echo "$as_me:$LINENO: result: $LD" >&5
9536 echo "${ECHO_T}$LD" >&6
9537 else
9538   echo "$as_me:$LINENO: result: no" >&5
9539 echo "${ECHO_T}no" >&6
9540 fi
9541 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9543    { (exit 1); exit 1; }; }
9544 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9546 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9550 case `$LD -v 2>&1 </dev/null` in
9551 *GNU* | *'with BFD'*)
9552   lt_cv_prog_gnu_ld=yes
9553   ;;
9554 *)
9555   lt_cv_prog_gnu_ld=no
9556   ;;
9557 esac
9558 fi
9559 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9560 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9561 with_gnu_ld=$lt_cv_prog_gnu_ld
9562
9563
9564
9565   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9566   # archiving commands below assume that GNU ld is being used.
9567   if test "$with_gnu_ld" = yes; then
9568     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569     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'
9570
9571     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9572     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9573
9574     # If archive_cmds runs LD, not CC, wlarc should be empty
9575     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9576     #     investigate it a little bit more. (MM)
9577     wlarc='${wl}'
9578
9579     # ancient GNU ld didn't support --whole-archive et. al.
9580     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9581         grep 'no-whole-archive' > /dev/null; then
9582       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9583     else
9584       whole_archive_flag_spec_CXX=
9585     fi
9586   else
9587     with_gnu_ld=no
9588     wlarc=
9589
9590     # A generic and very simple default shared library creation
9591     # command for GNU C++ for the case where it uses the native
9592     # linker, instead of GNU ld.  If possible, this setting should
9593     # overridden to take advantage of the native linker features on
9594     # the platform it is being used on.
9595     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9596   fi
9597
9598   # Commands to make compiler produce verbose output that lists
9599   # what "hidden" libraries, object files and flags are used when
9600   # linking a shared library.
9601   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9602
9603 else
9604   GXX=no
9605   with_gnu_ld=no
9606   wlarc=
9607 fi
9608
9609 # PORTME: fill in a description of your system's C++ link characteristics
9610 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9611 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9612 ld_shlibs_CXX=yes
9613 case $host_os in
9614   aix3*)
9615     # FIXME: insert proper C++ library support
9616     ld_shlibs_CXX=no
9617     ;;
9618   aix4* | aix5*)
9619     if test "$host_cpu" = ia64; then
9620       # On IA64, the linker does run time linking by default, so we don't
9621       # have to do anything special.
9622       aix_use_runtimelinking=no
9623       exp_sym_flag='-Bexport'
9624       no_entry_flag=""
9625     else
9626       aix_use_runtimelinking=no
9627
9628       # Test if we are trying to use run time linking or normal
9629       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9630       # need to do runtime linking.
9631       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9632         for ld_flag in $LDFLAGS; do
9633           case $ld_flag in
9634           *-brtl*)
9635             aix_use_runtimelinking=yes
9636             break
9637             ;;
9638           esac
9639         done
9640       esac
9641
9642       exp_sym_flag='-bexport'
9643       no_entry_flag='-bnoentry'
9644     fi
9645
9646     # When large executables or shared objects are built, AIX ld can
9647     # have problems creating the table of contents.  If linking a library
9648     # or program results in "error TOC overflow" add -mminimal-toc to
9649     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9650     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9651
9652     archive_cmds_CXX=''
9653     hardcode_direct_CXX=yes
9654     hardcode_libdir_separator_CXX=':'
9655     link_all_deplibs_CXX=yes
9656
9657     if test "$GXX" = yes; then
9658       case $host_os in aix4.012|aix4.012.*)
9659       # We only want to do this on AIX 4.2 and lower, the check
9660       # below for broken collect2 doesn't work under 4.3+
9661         collect2name=`${CC} -print-prog-name=collect2`
9662         if test -f "$collect2name" && \
9663            strings "$collect2name" | grep resolve_lib_name >/dev/null
9664         then
9665           # We have reworked collect2
9666           hardcode_direct_CXX=yes
9667         else
9668           # We have old collect2
9669           hardcode_direct_CXX=unsupported
9670           # It fails to find uninstalled libraries when the uninstalled
9671           # path is not listed in the libpath.  Setting hardcode_minus_L
9672           # to unsupported forces relinking
9673           hardcode_minus_L_CXX=yes
9674           hardcode_libdir_flag_spec_CXX='-L$libdir'
9675           hardcode_libdir_separator_CXX=
9676         fi
9677       esac
9678       shared_flag='-shared'
9679     else
9680       # not using gcc
9681       if test "$host_cpu" = ia64; then
9682         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683         # chokes on -Wl,-G. The following line is correct:
9684         shared_flag='-G'
9685       else
9686         if test "$aix_use_runtimelinking" = yes; then
9687           shared_flag='${wl}-G'
9688         else
9689           shared_flag='${wl}-bM:SRE'
9690         fi
9691       fi
9692     fi
9693
9694     # It seems that -bexpall does not export symbols beginning with
9695     # underscore (_), so it is better to generate a list of symbols to export.
9696     always_export_symbols_CXX=yes
9697     if test "$aix_use_runtimelinking" = yes; then
9698       # Warning - without using the other runtime loading flags (-brtl),
9699       # -berok will link without error, but may produce a broken library.
9700       allow_undefined_flag_CXX='-berok'
9701       # Determine the default libpath from the value encoded in an empty executable.
9702       cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708
9709 int
9710 main ()
9711 {
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719   (eval $ac_link) 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } &&
9726          { ac_try='test -z "$ac_cxx_werror_flag"
9727                          || test ! -s conftest.err'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; } &&
9733          { ac_try='test -s conftest$ac_exeext'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; }; then
9739
9740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9741 }'`
9742 # Check for a 64-bit object if we didn't find anything.
9743 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; }
9744 }'`; fi
9745 else
9746   echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 fi
9750 rm -f conftest.err conftest.$ac_objext \
9751       conftest$ac_exeext conftest.$ac_ext
9752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9753
9754       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9755
9756       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"
9757      else
9758       if test "$host_cpu" = ia64; then
9759         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9760         allow_undefined_flag_CXX="-z nodefs"
9761         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"
9762       else
9763         # Determine the default libpath from the value encoded in an empty executable.
9764         cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770
9771 int
9772 main ()
9773 {
9774
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781   (eval $ac_link) 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_cxx_werror_flag"
9789                          || test ! -s conftest.err'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; } &&
9795          { ac_try='test -s conftest$ac_exeext'
9796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797   (eval $ac_try) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; }; then
9801
9802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9803 }'`
9804 # Check for a 64-bit object if we didn't find anything.
9805 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; }
9806 }'`; fi
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 fi
9812 rm -f conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9815
9816         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9817         # Warning - without using the other run time loading flags,
9818         # -berok will link without error, but may produce a broken library.
9819         no_undefined_flag_CXX=' ${wl}-bernotok'
9820         allow_undefined_flag_CXX=' ${wl}-berok'
9821         # -bexpall does not export symbols beginning with underscore (_)
9822         always_export_symbols_CXX=yes
9823         # Exported symbols can be pulled into shared objects from archives
9824         whole_archive_flag_spec_CXX=' '
9825         archive_cmds_need_lc_CXX=yes
9826         # This is similar to how AIX traditionally builds it's shared libraries.
9827         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'
9828       fi
9829     fi
9830     ;;
9831   chorus*)
9832     case $cc_basename in
9833       *)
9834         # FIXME: insert proper C++ library support
9835         ld_shlibs_CXX=no
9836         ;;
9837     esac
9838     ;;
9839
9840
9841   cygwin* | mingw* | pw32*)
9842     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9843     # as there is no search path for DLLs.
9844     hardcode_libdir_flag_spec_CXX='-L$libdir'
9845     allow_undefined_flag_CXX=unsupported
9846     always_export_symbols_CXX=no
9847     enable_shared_with_static_runtimes_CXX=yes
9848
9849     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9850       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'
9851       # If the export-symbols file already is a .def file (1st line
9852       # is EXPORTS), use it as is; otherwise, prepend...
9853       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9854         cp $export_symbols $output_objdir/$soname.def;
9855       else
9856         echo EXPORTS > $output_objdir/$soname.def;
9857         cat $export_symbols >> $output_objdir/$soname.def;
9858       fi;$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'
9859     else
9860       ld_shlibs_CXX=no
9861     fi
9862   ;;
9863       darwin* | rhapsody*)
9864         case "$host_os" in
9865         rhapsody* | darwin1.[012])
9866          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9867          ;;
9868        *) # Darwin 1.3 on
9869          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9870            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9871          else
9872            case ${MACOSX_DEPLOYMENT_TARGET} in
9873              10.[012])
9874                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9875                ;;
9876              10.*)
9877                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9878                ;;
9879            esac
9880          fi
9881          ;;
9882         esac
9883       archive_cmds_need_lc_CXX=no
9884       hardcode_direct_CXX=no
9885       hardcode_automatic_CXX=yes
9886       hardcode_shlibpath_var_CXX=unsupported
9887       whole_archive_flag_spec_CXX=''
9888       link_all_deplibs_CXX=yes
9889
9890     if test "$GXX" = yes ; then
9891       lt_int_apple_cc_single_mod=no
9892       output_verbose_link_cmd='echo'
9893       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9894        lt_int_apple_cc_single_mod=yes
9895       fi
9896       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9897        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9898       else
9899           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9900         fi
9901         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9902         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9903           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9904             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}'
9905           else
9906             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9907           fi
9908             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9909       else
9910       case "$cc_basename" in
9911         xlc*)
9912          output_verbose_link_cmd='echo'
9913           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9914           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9915           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9916           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9917           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9918           ;;
9919        *)
9920          ld_shlibs_CXX=no
9921           ;;
9922       esac
9923       fi
9924         ;;
9925
9926   dgux*)
9927     case $cc_basename in
9928       ec++)
9929         # FIXME: insert proper C++ library support
9930         ld_shlibs_CXX=no
9931         ;;
9932       ghcx)
9933         # Green Hills C++ Compiler
9934         # FIXME: insert proper C++ library support
9935         ld_shlibs_CXX=no
9936         ;;
9937       *)
9938         # FIXME: insert proper C++ library support
9939         ld_shlibs_CXX=no
9940         ;;
9941     esac
9942     ;;
9943   freebsd12*)
9944     # C++ shared libraries reported to be fairly broken before switch to ELF
9945     ld_shlibs_CXX=no
9946     ;;
9947   freebsd-elf*)
9948     archive_cmds_need_lc_CXX=no
9949     ;;
9950   freebsd* | kfreebsd*-gnu)
9951     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9952     # conventions
9953     ld_shlibs_CXX=yes
9954     ;;
9955   gnu*)
9956     ;;
9957   hpux9*)
9958     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9959     hardcode_libdir_separator_CXX=:
9960     export_dynamic_flag_spec_CXX='${wl}-E'
9961     hardcode_direct_CXX=yes
9962     hardcode_minus_L_CXX=yes # Not in the search PATH,
9963                                 # but as the default
9964                                 # location of the library.
9965
9966     case $cc_basename in
9967     CC)
9968       # FIXME: insert proper C++ library support
9969       ld_shlibs_CXX=no
9970       ;;
9971     aCC)
9972       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'
9973       # Commands to make compiler produce verbose output that lists
9974       # what "hidden" libraries, object files and flags are used when
9975       # linking a shared library.
9976       #
9977       # There doesn't appear to be a way to prevent this compiler from
9978       # explicitly linking system object files so we need to strip them
9979       # from the output so that they don't get included in the library
9980       # dependencies.
9981       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'
9982       ;;
9983     *)
9984       if test "$GXX" = yes; then
9985         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'
9986       else
9987         # FIXME: insert proper C++ library support
9988         ld_shlibs_CXX=no
9989       fi
9990       ;;
9991     esac
9992     ;;
9993   hpux10*|hpux11*)
9994     if test $with_gnu_ld = no; then
9995       case "$host_cpu" in
9996       hppa*64*)
9997         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9998         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9999         hardcode_libdir_separator_CXX=:
10000         ;;
10001       ia64*)
10002         hardcode_libdir_flag_spec_CXX='-L$libdir'
10003         ;;
10004       *)
10005         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10006         hardcode_libdir_separator_CXX=:
10007         export_dynamic_flag_spec_CXX='${wl}-E'
10008         ;;
10009       esac
10010     fi
10011     case "$host_cpu" in
10012     hppa*64*)
10013       hardcode_direct_CXX=no
10014       hardcode_shlibpath_var_CXX=no
10015       ;;
10016     ia64*)
10017       hardcode_direct_CXX=no
10018       hardcode_shlibpath_var_CXX=no
10019       hardcode_minus_L_CXX=yes # Not in the search PATH,
10020                                               # but as the default
10021                                               # location of the library.
10022       ;;
10023     *)
10024       hardcode_direct_CXX=yes
10025       hardcode_minus_L_CXX=yes # Not in the search PATH,
10026                                               # but as the default
10027                                               # location of the library.
10028       ;;
10029     esac
10030
10031     case $cc_basename in
10032       CC)
10033         # FIXME: insert proper C++ library support
10034         ld_shlibs_CXX=no
10035         ;;
10036       aCC)
10037         case "$host_cpu" in
10038         hppa*64*|ia64*)
10039           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10040           ;;
10041         *)
10042           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10043           ;;
10044         esac
10045         # Commands to make compiler produce verbose output that lists
10046         # what "hidden" libraries, object files and flags are used when
10047         # linking a shared library.
10048         #
10049         # There doesn't appear to be a way to prevent this compiler from
10050         # explicitly linking system object files so we need to strip them
10051         # from the output so that they don't get included in the library
10052         # dependencies.
10053         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'
10054         ;;
10055       *)
10056         if test "$GXX" = yes; then
10057           if test $with_gnu_ld = no; then
10058             case "$host_cpu" in
10059             ia64*|hppa*64*)
10060               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10061               ;;
10062             *)
10063               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'
10064               ;;
10065             esac
10066           fi
10067         else
10068           # FIXME: insert proper C++ library support
10069           ld_shlibs_CXX=no
10070         fi
10071         ;;
10072     esac
10073     ;;
10074   irix5* | irix6*)
10075     case $cc_basename in
10076       CC)
10077         # SGI C++
10078         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'
10079
10080         # Archives containing C++ object files must be created using
10081         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10082         # necessary to make sure instantiated templates are included
10083         # in the archive.
10084         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10085         ;;
10086       *)
10087         if test "$GXX" = yes; then
10088           if test "$with_gnu_ld" = no; then
10089             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'
10090           else
10091             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'
10092           fi
10093         fi
10094         link_all_deplibs_CXX=yes
10095         ;;
10096     esac
10097     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10098     hardcode_libdir_separator_CXX=:
10099     ;;
10100   linux*)
10101     case $cc_basename in
10102       KCC)
10103         # Kuck and Associates, Inc. (KAI) C++ Compiler
10104
10105         # KCC will only create a shared library if the output file
10106         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10107         # to its proper name (with version) after linking.
10108         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'
10109         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'
10110         # Commands to make compiler produce verbose output that lists
10111         # what "hidden" libraries, object files and flags are used when
10112         # linking a shared library.
10113         #
10114         # There doesn't appear to be a way to prevent this compiler from
10115         # explicitly linking system object files so we need to strip them
10116         # from the output so that they don't get included in the library
10117         # dependencies.
10118         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'
10119
10120         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10121         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10122
10123         # Archives containing C++ object files must be created using
10124         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10125         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10126         ;;
10127       icpc)
10128         # Intel C++
10129         with_gnu_ld=yes
10130         # version 8.0 and above of icpc choke on multiply defined symbols
10131         # if we add $predep_objects and $postdep_objects, however 7.1 and
10132         # earlier do not add the objects themselves.
10133         case `$CC -V 2>&1` in
10134         *"Version 7."*)
10135           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136           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'
10137           ;;
10138         *)  # Version 8.0 or newer
10139           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10141           ;;
10142         esac
10143         archive_cmds_need_lc_CXX=no
10144         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10145         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10146         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10147         ;;
10148       cxx)
10149         # Compaq C++
10150         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151         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'
10152
10153         runpath_var=LD_RUN_PATH
10154         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10155         hardcode_libdir_separator_CXX=:
10156
10157         # Commands to make compiler produce verbose output that lists
10158         # what "hidden" libraries, object files and flags are used when
10159         # linking a shared library.
10160         #
10161         # There doesn't appear to be a way to prevent this compiler from
10162         # explicitly linking system object files so we need to strip them
10163         # from the output so that they don't get included in the library
10164         # dependencies.
10165         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'
10166         ;;
10167     esac
10168     ;;
10169   lynxos*)
10170     # FIXME: insert proper C++ library support
10171     ld_shlibs_CXX=no
10172     ;;
10173   m88k*)
10174     # FIXME: insert proper C++ library support
10175     ld_shlibs_CXX=no
10176     ;;
10177   mvs*)
10178     case $cc_basename in
10179       cxx)
10180         # FIXME: insert proper C++ library support
10181         ld_shlibs_CXX=no
10182         ;;
10183       *)
10184         # FIXME: insert proper C++ library support
10185         ld_shlibs_CXX=no
10186         ;;
10187     esac
10188     ;;
10189   netbsd*)
10190     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10191       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10192       wlarc=
10193       hardcode_libdir_flag_spec_CXX='-R$libdir'
10194       hardcode_direct_CXX=yes
10195       hardcode_shlibpath_var_CXX=no
10196     fi
10197     # Workaround some broken pre-1.5 toolchains
10198     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10199     ;;
10200   openbsd2*)
10201     # C++ shared libraries are fairly broken
10202     ld_shlibs_CXX=no
10203     ;;
10204   openbsd*)
10205     hardcode_direct_CXX=yes
10206     hardcode_shlibpath_var_CXX=no
10207     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10208     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10211       export_dynamic_flag_spec_CXX='${wl}-E'
10212       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10213     fi
10214     output_verbose_link_cmd='echo'
10215     ;;
10216   osf3*)
10217     case $cc_basename in
10218       KCC)
10219         # Kuck and Associates, Inc. (KAI) C++ Compiler
10220
10221         # KCC will only create a shared library if the output file
10222         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10223         # to its proper name (with version) after linking.
10224         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'
10225
10226         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10227         hardcode_libdir_separator_CXX=:
10228
10229         # Archives containing C++ object files must be created using
10230         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10231         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10232
10233         ;;
10234       RCC)
10235         # Rational C++ 2.4.1
10236         # FIXME: insert proper C++ library support
10237         ld_shlibs_CXX=no
10238         ;;
10239       cxx)
10240         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10241         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'
10242
10243         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10244         hardcode_libdir_separator_CXX=:
10245
10246         # Commands to make compiler produce verbose output that lists
10247         # what "hidden" libraries, object files and flags are used when
10248         # linking a shared library.
10249         #
10250         # There doesn't appear to be a way to prevent this compiler from
10251         # explicitly linking system object files so we need to strip them
10252         # from the output so that they don't get included in the library
10253         # dependencies.
10254         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'
10255         ;;
10256       *)
10257         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10258           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10259           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'
10260
10261           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10262           hardcode_libdir_separator_CXX=:
10263
10264           # Commands to make compiler produce verbose output that lists
10265           # what "hidden" libraries, object files and flags are used when
10266           # linking a shared library.
10267           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10268
10269         else
10270           # FIXME: insert proper C++ library support
10271           ld_shlibs_CXX=no
10272         fi
10273         ;;
10274     esac
10275     ;;
10276   osf4* | osf5*)
10277     case $cc_basename in
10278       KCC)
10279         # Kuck and Associates, Inc. (KAI) C++ Compiler
10280
10281         # KCC will only create a shared library if the output file
10282         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10283         # to its proper name (with version) after linking.
10284         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'
10285
10286         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10287         hardcode_libdir_separator_CXX=:
10288
10289         # Archives containing C++ object files must be created using
10290         # the KAI C++ compiler.
10291         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10292         ;;
10293       RCC)
10294         # Rational C++ 2.4.1
10295         # FIXME: insert proper C++ library support
10296         ld_shlibs_CXX=no
10297         ;;
10298       cxx)
10299         allow_undefined_flag_CXX=' -expect_unresolved \*'
10300         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'
10301         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
10302
10303         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10304         hardcode_libdir_separator_CXX=:
10305
10306         # Commands to make compiler produce verbose output that lists
10307         # what "hidden" libraries, object files and flags are used when
10308         # linking a shared library.
10309         #
10310         # There doesn't appear to be a way to prevent this compiler from
10311         # explicitly linking system object files so we need to strip them
10312         # from the output so that they don't get included in the library
10313         # dependencies.
10314         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'
10315         ;;
10316       *)
10317         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10318           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10319          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'
10320
10321           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10322           hardcode_libdir_separator_CXX=:
10323
10324           # Commands to make compiler produce verbose output that lists
10325           # what "hidden" libraries, object files and flags are used when
10326           # linking a shared library.
10327           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10328
10329         else
10330           # FIXME: insert proper C++ library support
10331           ld_shlibs_CXX=no
10332         fi
10333         ;;
10334     esac
10335     ;;
10336   psos*)
10337     # FIXME: insert proper C++ library support
10338     ld_shlibs_CXX=no
10339     ;;
10340   sco*)
10341     archive_cmds_need_lc_CXX=no
10342     case $cc_basename in
10343       CC)
10344         # FIXME: insert proper C++ library support
10345         ld_shlibs_CXX=no
10346         ;;
10347       *)
10348         # FIXME: insert proper C++ library support
10349         ld_shlibs_CXX=no
10350         ;;
10351     esac
10352     ;;
10353   sunos4*)
10354     case $cc_basename in
10355       CC)
10356         # Sun C++ 4.x
10357         # FIXME: insert proper C++ library support
10358         ld_shlibs_CXX=no
10359         ;;
10360       lcc)
10361         # Lucid
10362         # FIXME: insert proper C++ library support
10363         ld_shlibs_CXX=no
10364         ;;
10365       *)
10366         # FIXME: insert proper C++ library support
10367         ld_shlibs_CXX=no
10368         ;;
10369     esac
10370     ;;
10371   solaris*)
10372     case $cc_basename in
10373       CC)
10374         # Sun C++ 4.2, 5.x and Centerline C++
10375         no_undefined_flag_CXX=' -zdefs'
10376         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10377         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
10378
10379         hardcode_libdir_flag_spec_CXX='-R$libdir'
10380         hardcode_shlibpath_var_CXX=no
10381         case $host_os in
10382           solaris2.0-5 | solaris2.0-5.*) ;;
10383           *)
10384             # The C++ compiler is used as linker so we must use $wl
10385             # flag to pass the commands to the underlying system
10386             # linker.
10387             # Supported since Solaris 2.6 (maybe 2.5.1?)
10388             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10389             ;;
10390         esac
10391         link_all_deplibs_CXX=yes
10392
10393         # Commands to make compiler produce verbose output that lists
10394         # what "hidden" libraries, object files and flags are used when
10395         # linking a shared library.
10396         #
10397         # There doesn't appear to be a way to prevent this compiler from
10398         # explicitly linking system object files so we need to strip them
10399         # from the output so that they don't get included in the library
10400         # dependencies.
10401         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'
10402
10403         # Archives containing C++ object files must be created using
10404         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10405         # necessary to make sure instantiated templates are included
10406         # in the archive.
10407         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10408         ;;
10409       gcx)
10410         # Green Hills C++ Compiler
10411         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10412
10413         # The C++ compiler must be used to create the archive.
10414         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10415         ;;
10416       *)
10417         # GNU C++ compiler with Solaris linker
10418         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10419           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10420           if $CC --version | grep -v '^2\.7' > /dev/null; then
10421             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10422             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10423             # Commands to make compiler produce verbose output that lists
10424             # what "hidden" libraries, object files and flags are used when
10425             # linking a shared library.
10426             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10427           else
10428             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10429             # platform.
10430             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10431             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10432                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10433
10434             # Commands to make compiler produce verbose output that lists
10435             # what "hidden" libraries, object files and flags are used when
10436             # linking a shared library.
10437             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10438           fi
10439
10440           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10441         fi
10442         ;;
10443     esac
10444     ;;
10445   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10446     archive_cmds_need_lc_CXX=no
10447     ;;
10448   tandem*)
10449     case $cc_basename in
10450       NCC)
10451         # NonStop-UX NCC 3.20
10452         # FIXME: insert proper C++ library support
10453         ld_shlibs_CXX=no
10454         ;;
10455       *)
10456         # FIXME: insert proper C++ library support
10457         ld_shlibs_CXX=no
10458         ;;
10459     esac
10460     ;;
10461   vxworks*)
10462     # FIXME: insert proper C++ library support
10463     ld_shlibs_CXX=no
10464     ;;
10465   *)
10466     # FIXME: insert proper C++ library support
10467     ld_shlibs_CXX=no
10468     ;;
10469 esac
10470 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10471 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10472 test "$ld_shlibs_CXX" = no && can_build_shared=no
10473
10474 GCC_CXX="$GXX"
10475 LD_CXX="$LD"
10476
10477
10478 cat > conftest.$ac_ext <<EOF
10479 class Foo
10480 {
10481 public:
10482   Foo (void) { a = 0; }
10483 private:
10484   int a;
10485 };
10486 EOF
10487
10488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489   (eval $ac_compile) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; then
10493   # Parse the compiler output and extract the necessary
10494   # objects, libraries and library flags.
10495
10496   # Sentinel used to keep track of whether or not we are before
10497   # the conftest object file.
10498   pre_test_object_deps_done=no
10499
10500   # The `*' in the case matches for architectures that use `case' in
10501   # $output_verbose_cmd can trigger glob expansion during the loop
10502   # eval without this substitution.
10503   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10504
10505   for p in `eval $output_verbose_link_cmd`; do
10506     case $p in
10507
10508     -L* | -R* | -l*)
10509        # Some compilers place space between "-{L,R}" and the path.
10510        # Remove the space.
10511        if test $p = "-L" \
10512           || test $p = "-R"; then
10513          prev=$p
10514          continue
10515        else
10516          prev=
10517        fi
10518
10519        if test "$pre_test_object_deps_done" = no; then
10520          case $p in
10521          -L* | -R*)
10522            # Internal compiler library paths should come after those
10523            # provided the user.  The postdeps already come after the
10524            # user supplied libs so there is no need to process them.
10525            if test -z "$compiler_lib_search_path_CXX"; then
10526              compiler_lib_search_path_CXX="${prev}${p}"
10527            else
10528              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10529            fi
10530            ;;
10531          # The "-l" case would never come before the object being
10532          # linked, so don't bother handling this case.
10533          esac
10534        else
10535          if test -z "$postdeps_CXX"; then
10536            postdeps_CXX="${prev}${p}"
10537          else
10538            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10539          fi
10540        fi
10541        ;;
10542
10543     *.$objext)
10544        # This assumes that the test object file only shows up
10545        # once in the compiler output.
10546        if test "$p" = "conftest.$objext"; then
10547          pre_test_object_deps_done=yes
10548          continue
10549        fi
10550
10551        if test "$pre_test_object_deps_done" = no; then
10552          if test -z "$predep_objects_CXX"; then
10553            predep_objects_CXX="$p"
10554          else
10555            predep_objects_CXX="$predep_objects_CXX $p"
10556          fi
10557        else
10558          if test -z "$postdep_objects_CXX"; then
10559            postdep_objects_CXX="$p"
10560          else
10561            postdep_objects_CXX="$postdep_objects_CXX $p"
10562          fi
10563        fi
10564        ;;
10565
10566     *) ;; # Ignore the rest.
10567
10568     esac
10569   done
10570
10571   # Clean up.
10572   rm -f a.out a.exe
10573 else
10574   echo "libtool.m4: error: problem compiling CXX test program"
10575 fi
10576
10577 $rm -f confest.$objext
10578
10579 case " $postdeps_CXX " in
10580 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10581 esac
10582
10583 lt_prog_compiler_wl_CXX=
10584 lt_prog_compiler_pic_CXX=
10585 lt_prog_compiler_static_CXX=
10586
10587 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10589
10590   # C++ specific cases for pic, static, wl, etc.
10591   if test "$GXX" = yes; then
10592     lt_prog_compiler_wl_CXX='-Wl,'
10593     lt_prog_compiler_static_CXX='-static'
10594
10595     case $host_os in
10596     aix*)
10597       # All AIX code is PIC.
10598       if test "$host_cpu" = ia64; then
10599         # AIX 5 now supports IA64 processor
10600         lt_prog_compiler_static_CXX='-Bstatic'
10601       fi
10602       ;;
10603     amigaos*)
10604       # FIXME: we need at least 68020 code to build shared libraries, but
10605       # adding the `-m68020' flag to GCC prevents building anything better,
10606       # like `-m68040'.
10607       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10608       ;;
10609     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10610       # PIC is the default for these OSes.
10611       ;;
10612     mingw* | os2* | pw32*)
10613       # This hack is so that the source file can tell whether it is being
10614       # built for inclusion in a dll (and should export symbols for example).
10615       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10616       ;;
10617     darwin* | rhapsody*)
10618       # PIC is the default on this platform
10619       # Common symbols not allowed in MH_DYLIB files
10620       lt_prog_compiler_pic_CXX='-fno-common'
10621       ;;
10622     *djgpp*)
10623       # DJGPP does not support shared libraries at all
10624       lt_prog_compiler_pic_CXX=
10625       ;;
10626     sysv4*MP*)
10627       if test -d /usr/nec; then
10628         lt_prog_compiler_pic_CXX=-Kconform_pic
10629       fi
10630       ;;
10631     hpux*)
10632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10633       # not for PA HP-UX.
10634       case "$host_cpu" in
10635       hppa*64*|ia64*)
10636         ;;
10637       *)
10638         lt_prog_compiler_pic_CXX='-fPIC'
10639         ;;
10640       esac
10641       ;;
10642     *)
10643       lt_prog_compiler_pic_CXX='-fPIC'
10644       ;;
10645     esac
10646   else
10647     case $host_os in
10648       aix4* | aix5*)
10649         # All AIX code is PIC.
10650         if test "$host_cpu" = ia64; then
10651           # AIX 5 now supports IA64 processor
10652           lt_prog_compiler_static_CXX='-Bstatic'
10653         else
10654           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10655         fi
10656         ;;
10657       chorus*)
10658         case $cc_basename in
10659         cxch68)
10660           # Green Hills C++ Compiler
10661           # _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"
10662           ;;
10663         esac
10664         ;;
10665        darwin*)
10666          # PIC is the default on this platform
10667          # Common symbols not allowed in MH_DYLIB files
10668          case "$cc_basename" in
10669            xlc*)
10670            lt_prog_compiler_pic_CXX='-qnocommon'
10671            lt_prog_compiler_wl_CXX='-Wl,'
10672            ;;
10673          esac
10674        ;;
10675       dgux*)
10676         case $cc_basename in
10677           ec++)
10678             lt_prog_compiler_pic_CXX='-KPIC'
10679             ;;
10680           ghcx)
10681             # Green Hills C++ Compiler
10682             lt_prog_compiler_pic_CXX='-pic'
10683             ;;
10684           *)
10685             ;;
10686         esac
10687         ;;
10688       freebsd* | kfreebsd*-gnu)
10689         # FreeBSD uses GNU C++
10690         ;;
10691       hpux9* | hpux10* | hpux11*)
10692         case $cc_basename in
10693           CC)
10694             lt_prog_compiler_wl_CXX='-Wl,'
10695             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10696             if test "$host_cpu" != ia64; then
10697               lt_prog_compiler_pic_CXX='+Z'
10698             fi
10699             ;;
10700           aCC)
10701             lt_prog_compiler_wl_CXX='-Wl,'
10702             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10703             case "$host_cpu" in
10704             hppa*64*|ia64*)
10705               # +Z the default
10706               ;;
10707             *)
10708               lt_prog_compiler_pic_CXX='+Z'
10709               ;;
10710             esac
10711             ;;
10712           *)
10713             ;;
10714         esac
10715         ;;
10716       irix5* | irix6* | nonstopux*)
10717         case $cc_basename in
10718           CC)
10719             lt_prog_compiler_wl_CXX='-Wl,'
10720             lt_prog_compiler_static_CXX='-non_shared'
10721             # CC pic flag -KPIC is the default.
10722             ;;
10723           *)
10724             ;;
10725         esac
10726         ;;
10727       linux*)
10728         case $cc_basename in
10729           KCC)
10730             # KAI C++ Compiler
10731             lt_prog_compiler_wl_CXX='--backend -Wl,'
10732             lt_prog_compiler_pic_CXX='-fPIC'
10733             ;;
10734           icpc)
10735             # Intel C++
10736             lt_prog_compiler_wl_CXX='-Wl,'
10737             lt_prog_compiler_pic_CXX='-KPIC'
10738             lt_prog_compiler_static_CXX='-static'
10739             ;;
10740           cxx)
10741             # Compaq C++
10742             # Make sure the PIC flag is empty.  It appears that all Alpha
10743             # Linux and Compaq Tru64 Unix objects are PIC.
10744             lt_prog_compiler_pic_CXX=
10745             lt_prog_compiler_static_CXX='-non_shared'
10746             ;;
10747           *)
10748             ;;
10749         esac
10750         ;;
10751       lynxos*)
10752         ;;
10753       m88k*)
10754         ;;
10755       mvs*)
10756         case $cc_basename in
10757           cxx)
10758             lt_prog_compiler_pic_CXX='-W c,exportall'
10759             ;;
10760           *)
10761             ;;
10762         esac
10763         ;;
10764       netbsd*)
10765         ;;
10766       osf3* | osf4* | osf5*)
10767         case $cc_basename in
10768           KCC)
10769             lt_prog_compiler_wl_CXX='--backend -Wl,'
10770             ;;
10771           RCC)
10772             # Rational C++ 2.4.1
10773             lt_prog_compiler_pic_CXX='-pic'
10774             ;;
10775           cxx)
10776             # Digital/Compaq C++
10777             lt_prog_compiler_wl_CXX='-Wl,'
10778             # Make sure the PIC flag is empty.  It appears that all Alpha
10779             # Linux and Compaq Tru64 Unix objects are PIC.
10780             lt_prog_compiler_pic_CXX=
10781             lt_prog_compiler_static_CXX='-non_shared'
10782             ;;
10783           *)
10784             ;;
10785         esac
10786         ;;
10787       psos*)
10788         ;;
10789       sco*)
10790         case $cc_basename in
10791           CC)
10792             lt_prog_compiler_pic_CXX='-fPIC'
10793             ;;
10794           *)
10795             ;;
10796         esac
10797         ;;
10798       solaris*)
10799         case $cc_basename in
10800           CC)
10801             # Sun C++ 4.2, 5.x and Centerline C++
10802             lt_prog_compiler_pic_CXX='-KPIC'
10803             lt_prog_compiler_static_CXX='-Bstatic'
10804             lt_prog_compiler_wl_CXX='-Qoption ld '
10805             ;;
10806           gcx)
10807             # Green Hills C++ Compiler
10808             lt_prog_compiler_pic_CXX='-PIC'
10809             ;;
10810           *)
10811             ;;
10812         esac
10813         ;;
10814       sunos4*)
10815         case $cc_basename in
10816           CC)
10817             # Sun C++ 4.x
10818             lt_prog_compiler_pic_CXX='-pic'
10819             lt_prog_compiler_static_CXX='-Bstatic'
10820             ;;
10821           lcc)
10822             # Lucid
10823             lt_prog_compiler_pic_CXX='-pic'
10824             ;;
10825           *)
10826             ;;
10827         esac
10828         ;;
10829       tandem*)
10830         case $cc_basename in
10831           NCC)
10832             # NonStop-UX NCC 3.20
10833             lt_prog_compiler_pic_CXX='-KPIC'
10834             ;;
10835           *)
10836             ;;
10837         esac
10838         ;;
10839       unixware*)
10840         ;;
10841       vxworks*)
10842         ;;
10843       *)
10844         lt_prog_compiler_can_build_shared_CXX=no
10845         ;;
10846     esac
10847   fi
10848
10849 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10850 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10851
10852 #
10853 # Check to make sure the PIC flag actually works.
10854 #
10855 if test -n "$lt_prog_compiler_pic_CXX"; then
10856
10857 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10859 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   lt_prog_compiler_pic_works_CXX=no
10863   ac_outfile=conftest.$ac_objext
10864    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10865    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10866    # Insert the option either (1) after the last *FLAGS variable, or
10867    # (2) before a word containing "conftest.", or (3) at the end.
10868    # Note that $ac_compile itself does not contain backslashes and begins
10869    # with a dollar sign (not a hyphen), so the echo should work correctly.
10870    # The option is referenced via a variable to avoid confusing sed.
10871    lt_compile=`echo "$ac_compile" | $SED \
10872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874    -e 's:$: $lt_compiler_flag:'`
10875    (eval echo "\"\$as_me:10875: $lt_compile\"" >&5)
10876    (eval "$lt_compile" 2>conftest.err)
10877    ac_status=$?
10878    cat conftest.err >&5
10879    echo "$as_me:10879: \$? = $ac_status" >&5
10880    if (exit $ac_status) && test -s "$ac_outfile"; then
10881      # The compiler can only warn and ignore the option if not recognized
10882      # So say no if there are warnings
10883      if test ! -s conftest.err; then
10884        lt_prog_compiler_pic_works_CXX=yes
10885      fi
10886    fi
10887    $rm conftest*
10888
10889 fi
10890 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10891 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10892
10893 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10894     case $lt_prog_compiler_pic_CXX in
10895      "" | " "*) ;;
10896      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10897      esac
10898 else
10899     lt_prog_compiler_pic_CXX=
10900      lt_prog_compiler_can_build_shared_CXX=no
10901 fi
10902
10903 fi
10904 case "$host_os" in
10905   # For platforms which do not support PIC, -DPIC is meaningless:
10906   *djgpp*)
10907     lt_prog_compiler_pic_CXX=
10908     ;;
10909   *)
10910     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10911     ;;
10912 esac
10913
10914 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10916 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919   lt_cv_prog_compiler_c_o_CXX=no
10920    $rm -r conftest 2>/dev/null
10921    mkdir conftest
10922    cd conftest
10923    mkdir out
10924    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10925
10926    lt_compiler_flag="-o out/conftest2.$ac_objext"
10927    # Insert the option either (1) after the last *FLAGS variable, or
10928    # (2) before a word containing "conftest.", or (3) at the end.
10929    # Note that $ac_compile itself does not contain backslashes and begins
10930    # with a dollar sign (not a hyphen), so the echo should work correctly.
10931    lt_compile=`echo "$ac_compile" | $SED \
10932    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10934    -e 's:$: $lt_compiler_flag:'`
10935    (eval echo "\"\$as_me:10935: $lt_compile\"" >&5)
10936    (eval "$lt_compile" 2>out/conftest.err)
10937    ac_status=$?
10938    cat out/conftest.err >&5
10939    echo "$as_me:10939: \$? = $ac_status" >&5
10940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10941    then
10942      # The compiler can only warn and ignore the option if not recognized
10943      # So say no if there are warnings
10944      if test ! -s out/conftest.err; then
10945        lt_cv_prog_compiler_c_o_CXX=yes
10946      fi
10947    fi
10948    chmod u+w .
10949    $rm conftest*
10950    # SGI C++ compiler will create directory out/ii_files/ for
10951    # template instantiation
10952    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10953    $rm out/* && rmdir out
10954    cd ..
10955    rmdir conftest
10956    $rm conftest*
10957
10958 fi
10959 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10961
10962
10963 hard_links="nottested"
10964 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10965   # do not overwrite the value of need_locks provided by the user
10966   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10968   hard_links=yes
10969   $rm conftest*
10970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10971   touch conftest.a
10972   ln conftest.a conftest.b 2>&5 || hard_links=no
10973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10974   echo "$as_me:$LINENO: result: $hard_links" >&5
10975 echo "${ECHO_T}$hard_links" >&6
10976   if test "$hard_links" = no; then
10977     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10979     need_locks=warn
10980   fi
10981 else
10982   need_locks=no
10983 fi
10984
10985 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10986 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10987
10988   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10989   case $host_os in
10990   aix4* | aix5*)
10991     # If we're using GNU nm, then we don't want the "-C" option.
10992     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10993     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10994       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'
10995     else
10996       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'
10997     fi
10998     ;;
10999   pw32*)
11000     export_symbols_cmds_CXX="$ltdll_cmds"
11001   ;;
11002   cygwin* | mingw*)
11003     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11004   ;;
11005   *)
11006     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11007   ;;
11008   esac
11009
11010 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11011 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11012 test "$ld_shlibs_CXX" = no && can_build_shared=no
11013
11014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11015 if test "$GCC" = yes; then
11016   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11017 fi
11018
11019 #
11020 # Do we need to explicitly link libc?
11021 #
11022 case "x$archive_cmds_need_lc_CXX" in
11023 x|xyes)
11024   # Assume -lc should be added
11025   archive_cmds_need_lc_CXX=yes
11026
11027   if test "$enable_shared" = yes && test "$GCC" = yes; then
11028     case $archive_cmds_CXX in
11029     *'~'*)
11030       # FIXME: we may have to deal with multi-command sequences.
11031       ;;
11032     '$CC '*)
11033       # Test whether the compiler implicitly links with -lc since on some
11034       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11035       # to ld, don't add -lc before -lgcc.
11036       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11037 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11038       $rm conftest*
11039       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11040
11041       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042   (eval $ac_compile) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } 2>conftest.err; then
11046         soname=conftest
11047         lib=conftest
11048         libobjs=conftest.$ac_objext
11049         deplibs=
11050         wl=$lt_prog_compiler_wl_CXX
11051         compiler_flags=-v
11052         linker_flags=-v
11053         verstring=
11054         output_objdir=.
11055         libname=conftest
11056         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11057         allow_undefined_flag_CXX=
11058         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11059   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }
11063         then
11064           archive_cmds_need_lc_CXX=no
11065         else
11066           archive_cmds_need_lc_CXX=yes
11067         fi
11068         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11069       else
11070         cat conftest.err 1>&5
11071       fi
11072       $rm conftest*
11073       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11074 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11075       ;;
11076     esac
11077   fi
11078   ;;
11079 esac
11080
11081 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11083 library_names_spec=
11084 libname_spec='lib$name'
11085 soname_spec=
11086 shrext_cmds=".so"
11087 postinstall_cmds=
11088 postuninstall_cmds=
11089 finish_cmds=
11090 finish_eval=
11091 shlibpath_var=
11092 shlibpath_overrides_runpath=unknown
11093 version_type=none
11094 dynamic_linker="$host_os ld.so"
11095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11096 if test "$GCC" = yes; then
11097   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11098   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11099     # if the path contains ";" then we assume it to be the separator
11100     # otherwise default to the standard path separator (i.e. ":") - it is
11101     # assumed that no part of a normal pathname contains ";" but that should
11102     # okay in the real world where ";" in dirpaths is itself problematic.
11103     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11104   else
11105     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11106   fi
11107 else
11108   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11109 fi
11110 need_lib_prefix=unknown
11111 hardcode_into_libs=no
11112
11113 # when you set need_version to no, make sure it does not cause -set_version
11114 # flags to be left without arguments
11115 need_version=unknown
11116
11117 case $host_os in
11118 aix3*)
11119   version_type=linux
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11121   shlibpath_var=LIBPATH
11122
11123   # AIX 3 has no versioning support, so we append a major version to the name.
11124   soname_spec='${libname}${release}${shared_ext}$major'
11125   ;;
11126
11127 aix4* | aix5*)
11128   version_type=linux
11129   need_lib_prefix=no
11130   need_version=no
11131   hardcode_into_libs=yes
11132   if test "$host_cpu" = ia64; then
11133     # AIX 5 supports IA64
11134     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11135     shlibpath_var=LD_LIBRARY_PATH
11136   else
11137     # With GCC up to 2.95.x, collect2 would create an import file
11138     # for dependence libraries.  The import file would start with
11139     # the line `#! .'.  This would cause the generated library to
11140     # depend on `.', always an invalid library.  This was fixed in
11141     # development snapshots of GCC prior to 3.0.
11142     case $host_os in
11143       aix4 | aix4.[01] | aix4.[01].*)
11144       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11145            echo ' yes '
11146            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11147         :
11148       else
11149         can_build_shared=no
11150       fi
11151       ;;
11152     esac
11153     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11154     # soname into executable. Probably we can add versioning support to
11155     # collect2, so additional links can be useful in future.
11156     if test "$aix_use_runtimelinking" = yes; then
11157       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158       # instead of lib<name>.a to let people know that these are not
11159       # typical AIX shared libraries.
11160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161     else
11162       # We preserve .a as extension for shared libraries through AIX4.2
11163       # and later when we are not doing run time linking.
11164       library_names_spec='${libname}${release}.a $libname.a'
11165       soname_spec='${libname}${release}${shared_ext}$major'
11166     fi
11167     shlibpath_var=LIBPATH
11168   fi
11169   ;;
11170
11171 amigaos*)
11172   library_names_spec='$libname.ixlibrary $libname.a'
11173   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11174   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'
11175   ;;
11176
11177 beos*)
11178   library_names_spec='${libname}${shared_ext}'
11179   dynamic_linker="$host_os ld.so"
11180   shlibpath_var=LIBRARY_PATH
11181   ;;
11182
11183 bsdi[45]*)
11184   version_type=linux
11185   need_version=no
11186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187   soname_spec='${libname}${release}${shared_ext}$major'
11188   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11189   shlibpath_var=LD_LIBRARY_PATH
11190   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11191   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11192   # the default ld.so.conf also contains /usr/contrib/lib and
11193   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11194   # libtool to hard-code these into programs
11195   ;;
11196
11197 cygwin* | mingw* | pw32*)
11198   version_type=windows
11199   shrext_cmds=".dll"
11200   need_version=no
11201   need_lib_prefix=no
11202
11203   case $GCC,$host_os in
11204   yes,cygwin* | yes,mingw* | yes,pw32*)
11205     library_names_spec='$libname.dll.a'
11206     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11207     postinstall_cmds='base_file=`basename \${file}`;
11208       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11209       dldir=$destdir/`dirname \$dlpath`;
11210       test -d \$dldir || mkdir -p \$dldir;
11211       $install_prog $dir/$dlname \$dldir/$dlname'
11212     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11213       dlpath=$dir/\$dldll;
11214        $rm \$dlpath'
11215     shlibpath_overrides_runpath=yes
11216
11217     case $host_os in
11218     cygwin*)
11219       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11220       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11222       ;;
11223     mingw*)
11224       # MinGW DLLs use traditional 'lib' prefix
11225       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11226       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11227       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11228         # It is most probably a Windows format PATH printed by
11229         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11230         # path with ; separators, and with drive letters. We can handle the
11231         # drive letters (cygwin fileutils understands them), so leave them,
11232         # especially as we might pass files found there to a mingw objdump,
11233         # which wouldn't understand a cygwinified path. Ahh.
11234         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11235       else
11236         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11237       fi
11238       ;;
11239     pw32*)
11240       # pw32 DLLs use 'pw' prefix rather than 'lib'
11241       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11242       ;;
11243     esac
11244     ;;
11245
11246   *)
11247     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11248     ;;
11249   esac
11250   dynamic_linker='Win32 ld.exe'
11251   # FIXME: first we should search . and the directory the executable is in
11252   shlibpath_var=PATH
11253   ;;
11254
11255 darwin* | rhapsody*)
11256   dynamic_linker="$host_os dyld"
11257   version_type=darwin
11258   need_lib_prefix=no
11259   need_version=no
11260   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11261   soname_spec='${libname}${release}${major}$shared_ext'
11262   shlibpath_overrides_runpath=yes
11263   shlibpath_var=DYLD_LIBRARY_PATH
11264   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11265   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11266   if test "$GCC" = yes; then
11267     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"`
11268   else
11269     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11270   fi
11271   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11272   ;;
11273
11274 dgux*)
11275   version_type=linux
11276   need_lib_prefix=no
11277   need_version=no
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11279   soname_spec='${libname}${release}${shared_ext}$major'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   ;;
11282
11283 freebsd1*)
11284   dynamic_linker=no
11285   ;;
11286
11287 kfreebsd*-gnu)
11288   version_type=linux
11289   need_lib_prefix=no
11290   need_version=no
11291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292   soname_spec='${libname}${release}${shared_ext}$major'
11293   shlibpath_var=LD_LIBRARY_PATH
11294   shlibpath_overrides_runpath=no
11295   hardcode_into_libs=yes
11296   dynamic_linker='GNU ld.so'
11297   ;;
11298
11299 freebsd*)
11300   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11301   version_type=freebsd-$objformat
11302   case $version_type in
11303     freebsd-elf*)
11304       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305       need_version=no
11306       need_lib_prefix=no
11307       ;;
11308     freebsd-*)
11309       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11310       need_version=yes
11311       ;;
11312   esac
11313   shlibpath_var=LD_LIBRARY_PATH
11314   case $host_os in
11315   freebsd2*)
11316     shlibpath_overrides_runpath=yes
11317     ;;
11318   freebsd3.01* | freebsdelf3.01*)
11319     shlibpath_overrides_runpath=yes
11320     hardcode_into_libs=yes
11321     ;;
11322   *) # from 3.2 on
11323     shlibpath_overrides_runpath=no
11324     hardcode_into_libs=yes
11325     ;;
11326   esac
11327   ;;
11328
11329 gnu*)
11330   version_type=linux
11331   need_lib_prefix=no
11332   need_version=no
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11334   soname_spec='${libname}${release}${shared_ext}$major'
11335   shlibpath_var=LD_LIBRARY_PATH
11336   hardcode_into_libs=yes
11337   ;;
11338
11339 hpux9* | hpux10* | hpux11*)
11340   # Give a soname corresponding to the major version so that dld.sl refuses to
11341   # link against other versions.
11342   version_type=sunos
11343   need_lib_prefix=no
11344   need_version=no
11345   case "$host_cpu" in
11346   ia64*)
11347     shrext_cmds='.so'
11348     hardcode_into_libs=yes
11349     dynamic_linker="$host_os dld.so"
11350     shlibpath_var=LD_LIBRARY_PATH
11351     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     soname_spec='${libname}${release}${shared_ext}$major'
11354     if test "X$HPUX_IA64_MODE" = X32; then
11355       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356     else
11357       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358     fi
11359     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360     ;;
11361    hppa*64*)
11362      shrext_cmds='.sl'
11363      hardcode_into_libs=yes
11364      dynamic_linker="$host_os dld.sl"
11365      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368      soname_spec='${libname}${release}${shared_ext}$major'
11369      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371      ;;
11372    *)
11373     shrext_cmds='.sl'
11374     dynamic_linker="$host_os dld.sl"
11375     shlibpath_var=SHLIB_PATH
11376     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378     soname_spec='${libname}${release}${shared_ext}$major'
11379     ;;
11380   esac
11381   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11382   postinstall_cmds='chmod 555 $lib'
11383   ;;
11384
11385 irix5* | irix6* | nonstopux*)
11386   case $host_os in
11387     nonstopux*) version_type=nonstopux ;;
11388     *)
11389         if test "$lt_cv_prog_gnu_ld" = yes; then
11390                 version_type=linux
11391         else
11392                 version_type=irix
11393         fi ;;
11394   esac
11395   need_lib_prefix=no
11396   need_version=no
11397   soname_spec='${libname}${release}${shared_ext}$major'
11398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11399   case $host_os in
11400   irix5* | nonstopux*)
11401     libsuff= shlibsuff=
11402     ;;
11403   *)
11404     case $LD in # libtool.m4 will add one of these switches to LD
11405     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11406       libsuff= shlibsuff= libmagic=32-bit;;
11407     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11408       libsuff=32 shlibsuff=N32 libmagic=N32;;
11409     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11410       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11411     *) libsuff= shlibsuff= libmagic=never-match;;
11412     esac
11413     ;;
11414   esac
11415   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11416   shlibpath_overrides_runpath=no
11417   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11418   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11419   hardcode_into_libs=yes
11420   ;;
11421
11422 # No shared lib support for Linux oldld, aout, or coff.
11423 linux*oldld* | linux*aout* | linux*coff*)
11424   dynamic_linker=no
11425   ;;
11426
11427 # This must be Linux ELF.
11428 linux*)
11429   version_type=linux
11430   need_lib_prefix=no
11431   need_version=no
11432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433   soname_spec='${libname}${release}${shared_ext}$major'
11434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=no
11437   # This implies no fast_install, which is unacceptable.
11438   # Some rework will be needed to allow for fast_install
11439   # before this can be enabled.
11440   hardcode_into_libs=yes
11441
11442   # Append ld.so.conf contents to the search path
11443   if test -f /etc/ld.so.conf; then
11444     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11445     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11446   fi
11447
11448   # We used to test for /lib/ld.so.1 and disable shared libraries on
11449   # powerpc, because MkLinux only supported shared libraries with the
11450   # GNU dynamic linker.  Since this was broken with cross compilers,
11451   # most powerpc-linux boxes support dynamic linking these days and
11452   # people can always --disable-shared, the test was removed, and we
11453   # assume the GNU/Linux dynamic linker is in use.
11454   dynamic_linker='GNU/Linux ld.so'
11455   ;;
11456
11457 knetbsd*-gnu)
11458   version_type=linux
11459   need_lib_prefix=no
11460   need_version=no
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462   soname_spec='${libname}${release}${shared_ext}$major'
11463   shlibpath_var=LD_LIBRARY_PATH
11464   shlibpath_overrides_runpath=no
11465   hardcode_into_libs=yes
11466   dynamic_linker='GNU ld.so'
11467   ;;
11468
11469 netbsd*)
11470   version_type=sunos
11471   need_lib_prefix=no
11472   need_version=no
11473   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11475     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11476     dynamic_linker='NetBSD (a.out) ld.so'
11477   else
11478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11479     soname_spec='${libname}${release}${shared_ext}$major'
11480     dynamic_linker='NetBSD ld.elf_so'
11481   fi
11482   shlibpath_var=LD_LIBRARY_PATH
11483   shlibpath_overrides_runpath=yes
11484   hardcode_into_libs=yes
11485   ;;
11486
11487 newsos6)
11488   version_type=linux
11489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   shlibpath_overrides_runpath=yes
11492   ;;
11493
11494 nto-qnx*)
11495   version_type=linux
11496   need_lib_prefix=no
11497   need_version=no
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499   soname_spec='${libname}${release}${shared_ext}$major'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   shlibpath_overrides_runpath=yes
11502   ;;
11503
11504 openbsd*)
11505   version_type=sunos
11506   need_lib_prefix=no
11507   need_version=no
11508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11512     case $host_os in
11513       openbsd2.[89] | openbsd2.[89].*)
11514         shlibpath_overrides_runpath=no
11515         ;;
11516       *)
11517         shlibpath_overrides_runpath=yes
11518         ;;
11519       esac
11520   else
11521     shlibpath_overrides_runpath=yes
11522   fi
11523   ;;
11524
11525 os2*)
11526   libname_spec='$name'
11527   shrext_cmds=".dll"
11528   need_lib_prefix=no
11529   library_names_spec='$libname${shared_ext} $libname.a'
11530   dynamic_linker='OS/2 ld.exe'
11531   shlibpath_var=LIBPATH
11532   ;;
11533
11534 osf3* | osf4* | osf5*)
11535   version_type=osf
11536   need_lib_prefix=no
11537   need_version=no
11538   soname_spec='${libname}${release}${shared_ext}$major'
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540   shlibpath_var=LD_LIBRARY_PATH
11541   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11542   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11543   ;;
11544
11545 sco3.2v5*)
11546   version_type=osf
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   ;;
11551
11552 solaris*)
11553   version_type=linux
11554   need_lib_prefix=no
11555   need_version=no
11556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557   soname_spec='${libname}${release}${shared_ext}$major'
11558   shlibpath_var=LD_LIBRARY_PATH
11559   shlibpath_overrides_runpath=yes
11560   hardcode_into_libs=yes
11561   # ldd complains unless libraries are executable
11562   postinstall_cmds='chmod +x $lib'
11563   ;;
11564
11565 sunos4*)
11566   version_type=sunos
11567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11568   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11569   shlibpath_var=LD_LIBRARY_PATH
11570   shlibpath_overrides_runpath=yes
11571   if test "$with_gnu_ld" = yes; then
11572     need_lib_prefix=no
11573   fi
11574   need_version=yes
11575   ;;
11576
11577 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11578   version_type=linux
11579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580   soname_spec='${libname}${release}${shared_ext}$major'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   case $host_vendor in
11583     sni)
11584       shlibpath_overrides_runpath=no
11585       need_lib_prefix=no
11586       export_dynamic_flag_spec='${wl}-Blargedynsym'
11587       runpath_var=LD_RUN_PATH
11588       ;;
11589     siemens)
11590       need_lib_prefix=no
11591       ;;
11592     motorola)
11593       need_lib_prefix=no
11594       need_version=no
11595       shlibpath_overrides_runpath=no
11596       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11597       ;;
11598   esac
11599   ;;
11600
11601 sysv4*MP*)
11602   if test -d /usr/nec ;then
11603     version_type=linux
11604     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11605     soname_spec='$libname${shared_ext}.$major'
11606     shlibpath_var=LD_LIBRARY_PATH
11607   fi
11608   ;;
11609
11610 uts4*)
11611   version_type=linux
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   shlibpath_var=LD_LIBRARY_PATH
11615   ;;
11616
11617 *)
11618   dynamic_linker=no
11619   ;;
11620 esac
11621 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11622 echo "${ECHO_T}$dynamic_linker" >&6
11623 test "$dynamic_linker" = no && can_build_shared=no
11624
11625 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11627 hardcode_action_CXX=
11628 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11629    test -n "$runpath_var_CXX" || \
11630    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11631
11632   # We can hardcode non-existant directories.
11633   if test "$hardcode_direct_CXX" != no &&
11634      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11635      # have to relink, otherwise we might link with an installed library
11636      # when we should be linking with a yet-to-be-installed one
11637      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11638      test "$hardcode_minus_L_CXX" != no; then
11639     # Linking always hardcodes the temporary library directory.
11640     hardcode_action_CXX=relink
11641   else
11642     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11643     hardcode_action_CXX=immediate
11644   fi
11645 else
11646   # We cannot hardcode anything, or else we can only hardcode existing
11647   # directories.
11648   hardcode_action_CXX=unsupported
11649 fi
11650 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11651 echo "${ECHO_T}$hardcode_action_CXX" >&6
11652
11653 if test "$hardcode_action_CXX" = relink; then
11654   # Fast installation is not supported
11655   enable_fast_install=no
11656 elif test "$shlibpath_overrides_runpath" = yes ||
11657      test "$enable_shared" = no; then
11658   # Fast installation is not necessary
11659   enable_fast_install=needless
11660 fi
11661
11662 striplib=
11663 old_striplib=
11664 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11665 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11666 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11667   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11668   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11669   echo "$as_me:$LINENO: result: yes" >&5
11670 echo "${ECHO_T}yes" >&6
11671 else
11672 # FIXME - insert some real tests, host_os isn't really good enough
11673   case $host_os in
11674    darwin*)
11675        if test -n "$STRIP" ; then
11676          striplib="$STRIP -x"
11677          echo "$as_me:$LINENO: result: yes" >&5
11678 echo "${ECHO_T}yes" >&6
11679        else
11680   echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11682 fi
11683        ;;
11684    *)
11685   echo "$as_me:$LINENO: result: no" >&5
11686 echo "${ECHO_T}no" >&6
11687     ;;
11688   esac
11689 fi
11690
11691 if test "x$enable_dlopen" != xyes; then
11692   enable_dlopen=unknown
11693   enable_dlopen_self=unknown
11694   enable_dlopen_self_static=unknown
11695 else
11696   lt_cv_dlopen=no
11697   lt_cv_dlopen_libs=
11698
11699   case $host_os in
11700   beos*)
11701     lt_cv_dlopen="load_add_on"
11702     lt_cv_dlopen_libs=
11703     lt_cv_dlopen_self=yes
11704     ;;
11705
11706   mingw* | pw32*)
11707     lt_cv_dlopen="LoadLibrary"
11708     lt_cv_dlopen_libs=
11709    ;;
11710
11711   cygwin*)
11712     lt_cv_dlopen="dlopen"
11713     lt_cv_dlopen_libs=
11714    ;;
11715
11716   darwin*)
11717   # if libdl is installed we need to link against it
11718     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-ldl  $LIBS"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731
11732 /* Override any gcc2 internal prototype to avoid an error.  */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737    builtin and then its argument prototype would still apply.  */
11738 char dlopen ();
11739 int
11740 main ()
11741 {
11742 dlopen ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749   (eval $ac_link) 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -z "$ac_cxx_werror_flag"
11757                          || test ! -s conftest.err'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; } &&
11763          { ac_try='test -s conftest$ac_exeext'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   ac_cv_lib_dl_dlopen=yes
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 ac_cv_lib_dl_dlopen=no
11775 fi
11776 rm -f conftest.err conftest.$ac_objext \
11777       conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_lib_save_LIBS
11779 fi
11780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11782 if test $ac_cv_lib_dl_dlopen = yes; then
11783   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11784 else
11785
11786     lt_cv_dlopen="dyld"
11787     lt_cv_dlopen_libs=
11788     lt_cv_dlopen_self=yes
11789
11790 fi
11791
11792    ;;
11793
11794   *)
11795     echo "$as_me:$LINENO: checking for shl_load" >&5
11796 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11797 if test "${ac_cv_func_shl_load+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11808 #define shl_load innocuous_shl_load
11809
11810 /* System header to define __stub macros and hopefully few prototypes,
11811     which can conflict with char shl_load (); below.
11812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813     <limits.h> exists even on freestanding compilers.  */
11814
11815 #ifdef __STDC__
11816 # include <limits.h>
11817 #else
11818 # include <assert.h>
11819 #endif
11820
11821 #undef shl_load
11822
11823 /* Override any gcc2 internal prototype to avoid an error.  */
11824 #ifdef __cplusplus
11825 extern "C"
11826 {
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829    builtin and then its argument prototype would still apply.  */
11830 char shl_load ();
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11835 choke me
11836 #else
11837 char (*f) () = shl_load;
11838 #endif
11839 #ifdef __cplusplus
11840 }
11841 #endif
11842
11843 int
11844 main ()
11845 {
11846 return f != shl_load;
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853   (eval $ac_link) 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -z "$ac_cxx_werror_flag"
11861                          || test ! -s conftest.err'
11862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863   (eval $ac_try) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; } &&
11867          { ac_try='test -s conftest$ac_exeext'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; }; then
11873   ac_cv_func_shl_load=yes
11874 else
11875   echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ac_cv_func_shl_load=no
11879 fi
11880 rm -f conftest.err conftest.$ac_objext \
11881       conftest$ac_exeext conftest.$ac_ext
11882 fi
11883 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11884 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11885 if test $ac_cv_func_shl_load = yes; then
11886   lt_cv_dlopen="shl_load"
11887 else
11888   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11889 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893   ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-ldld  $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901
11902 /* Override any gcc2 internal prototype to avoid an error.  */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 /* We use char because int might match the return type of a gcc2
11907    builtin and then its argument prototype would still apply.  */
11908 char shl_load ();
11909 int
11910 main ()
11911 {
11912 shl_load ();
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919   (eval $ac_link) 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -z "$ac_cxx_werror_flag"
11927                          || test ! -s conftest.err'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; } &&
11933          { ac_try='test -s conftest$ac_exeext'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }; then
11939   ac_cv_lib_dld_shl_load=yes
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 ac_cv_lib_dld_shl_load=no
11945 fi
11946 rm -f conftest.err conftest.$ac_objext \
11947       conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11951 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11952 if test $ac_cv_lib_dld_shl_load = yes; then
11953   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11954 else
11955   echo "$as_me:$LINENO: checking for dlopen" >&5
11956 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11957 if test "${ac_cv_func_dlopen+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960   cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h.  */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h.  */
11966 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11968 #define dlopen innocuous_dlopen
11969
11970 /* System header to define __stub macros and hopefully few prototypes,
11971     which can conflict with char dlopen (); below.
11972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11973     <limits.h> exists even on freestanding compilers.  */
11974
11975 #ifdef __STDC__
11976 # include <limits.h>
11977 #else
11978 # include <assert.h>
11979 #endif
11980
11981 #undef dlopen
11982
11983 /* Override any gcc2 internal prototype to avoid an error.  */
11984 #ifdef __cplusplus
11985 extern "C"
11986 {
11987 #endif
11988 /* We use char because int might match the return type of a gcc2
11989    builtin and then its argument prototype would still apply.  */
11990 char dlopen ();
11991 /* The GNU C library defines this for functions which it implements
11992     to always fail with ENOSYS.  Some functions are actually named
11993     something starting with __ and the normal name is an alias.  */
11994 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11995 choke me
11996 #else
11997 char (*f) () = dlopen;
11998 #endif
11999 #ifdef __cplusplus
12000 }
12001 #endif
12002
12003 int
12004 main ()
12005 {
12006 return f != dlopen;
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013   (eval $ac_link) 2>conftest.er1
12014   ac_status=$?
12015   grep -v '^ *+' conftest.er1 >conftest.err
12016   rm -f conftest.er1
12017   cat conftest.err >&5
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); } &&
12020          { ac_try='test -z "$ac_cxx_werror_flag"
12021                          || test ! -s conftest.err'
12022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023   (eval $ac_try) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; } &&
12027          { ac_try='test -s conftest$ac_exeext'
12028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029   (eval $ac_try) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; }; then
12033   ac_cv_func_dlopen=yes
12034 else
12035   echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_cv_func_dlopen=no
12039 fi
12040 rm -f conftest.err conftest.$ac_objext \
12041       conftest$ac_exeext conftest.$ac_ext
12042 fi
12043 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12044 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12045 if test $ac_cv_func_dlopen = yes; then
12046   lt_cv_dlopen="dlopen"
12047 else
12048   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12049 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12050 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   ac_check_lib_save_LIBS=$LIBS
12054 LIBS="-ldl  $LIBS"
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061
12062 /* Override any gcc2 internal prototype to avoid an error.  */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 /* We use char because int might match the return type of a gcc2
12067    builtin and then its argument prototype would still apply.  */
12068 char dlopen ();
12069 int
12070 main ()
12071 {
12072 dlopen ();
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079   (eval $ac_link) 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } &&
12086          { ac_try='test -z "$ac_cxx_werror_flag"
12087                          || test ! -s conftest.err'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; } &&
12093          { ac_try='test -s conftest$ac_exeext'
12094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095   (eval $ac_try) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; }; then
12099   ac_cv_lib_dl_dlopen=yes
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104 ac_cv_lib_dl_dlopen=no
12105 fi
12106 rm -f conftest.err conftest.$ac_objext \
12107       conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12112 if test $ac_cv_lib_dl_dlopen = yes; then
12113   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12114 else
12115   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12116 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120   ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lsvld  $LIBS"
12122 cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h.  */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h.  */
12128
12129 /* Override any gcc2 internal prototype to avoid an error.  */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 /* We use char because int might match the return type of a gcc2
12134    builtin and then its argument prototype would still apply.  */
12135 char dlopen ();
12136 int
12137 main ()
12138 {
12139 dlopen ();
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146   (eval $ac_link) 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -z "$ac_cxx_werror_flag"
12154                          || test ! -s conftest.err'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_lib_svld_dlopen=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_cv_lib_svld_dlopen=no
12172 fi
12173 rm -f conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12176 fi
12177 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12178 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12179 if test $ac_cv_lib_svld_dlopen = yes; then
12180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12181 else
12182   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12183 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12184 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   ac_check_lib_save_LIBS=$LIBS
12188 LIBS="-ldld  $LIBS"
12189 cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h.  */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h.  */
12195
12196 /* Override any gcc2 internal prototype to avoid an error.  */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201    builtin and then its argument prototype would still apply.  */
12202 char dld_link ();
12203 int
12204 main ()
12205 {
12206 dld_link ();
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213   (eval $ac_link) 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -z "$ac_cxx_werror_flag"
12221                          || test ! -s conftest.err'
12222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223   (eval $ac_try) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; } &&
12227          { ac_try='test -s conftest$ac_exeext'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; }; then
12233   ac_cv_lib_dld_dld_link=yes
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238 ac_cv_lib_dld_dld_link=no
12239 fi
12240 rm -f conftest.err conftest.$ac_objext \
12241       conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12243 fi
12244 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12245 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12246 if test $ac_cv_lib_dld_dld_link = yes; then
12247   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12248 fi
12249
12250
12251 fi
12252
12253
12254 fi
12255
12256
12257 fi
12258
12259
12260 fi
12261
12262
12263 fi
12264
12265     ;;
12266   esac
12267
12268   if test "x$lt_cv_dlopen" != xno; then
12269     enable_dlopen=yes
12270   else
12271     enable_dlopen=no
12272   fi
12273
12274   case $lt_cv_dlopen in
12275   dlopen)
12276     save_CPPFLAGS="$CPPFLAGS"
12277     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12278
12279     save_LDFLAGS="$LDFLAGS"
12280     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12281
12282     save_LIBS="$LIBS"
12283     LIBS="$lt_cv_dlopen_libs $LIBS"
12284
12285     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12286 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12287 if test "${lt_cv_dlopen_self+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290           if test "$cross_compiling" = yes; then :
12291   lt_cv_dlopen_self=cross
12292 else
12293   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12294   lt_status=$lt_dlunknown
12295   cat > conftest.$ac_ext <<EOF
12296 #line 12296 "configure"
12297 #include "confdefs.h"
12298
12299 #if HAVE_DLFCN_H
12300 #include <dlfcn.h>
12301 #endif
12302
12303 #include <stdio.h>
12304
12305 #ifdef RTLD_GLOBAL
12306 #  define LT_DLGLOBAL           RTLD_GLOBAL
12307 #else
12308 #  ifdef DL_GLOBAL
12309 #    define LT_DLGLOBAL         DL_GLOBAL
12310 #  else
12311 #    define LT_DLGLOBAL         0
12312 #  endif
12313 #endif
12314
12315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12316    find out it does not work in some platform. */
12317 #ifndef LT_DLLAZY_OR_NOW
12318 #  ifdef RTLD_LAZY
12319 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12320 #  else
12321 #    ifdef DL_LAZY
12322 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12323 #    else
12324 #      ifdef RTLD_NOW
12325 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12326 #      else
12327 #        ifdef DL_NOW
12328 #          define LT_DLLAZY_OR_NOW      DL_NOW
12329 #        else
12330 #          define LT_DLLAZY_OR_NOW      0
12331 #        endif
12332 #      endif
12333 #    endif
12334 #  endif
12335 #endif
12336
12337 #ifdef __cplusplus
12338 extern "C" void exit (int);
12339 #endif
12340
12341 void fnord() { int i=42;}
12342 int main ()
12343 {
12344   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12345   int status = $lt_dlunknown;
12346
12347   if (self)
12348     {
12349       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12350       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12351       /* dlclose (self); */
12352     }
12353
12354     exit (status);
12355 }
12356 EOF
12357   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358   (eval $ac_link) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12362     (./conftest; exit; ) 2>/dev/null
12363     lt_status=$?
12364     case x$lt_status in
12365       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12366       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12367       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12368     esac
12369   else :
12370     # compilation failed
12371     lt_cv_dlopen_self=no
12372   fi
12373 fi
12374 rm -fr conftest*
12375
12376
12377 fi
12378 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12379 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12380
12381     if test "x$lt_cv_dlopen_self" = xyes; then
12382       LDFLAGS="$LDFLAGS $link_static_flag"
12383       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12384 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12385 if test "${lt_cv_dlopen_self_static+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388           if test "$cross_compiling" = yes; then :
12389   lt_cv_dlopen_self_static=cross
12390 else
12391   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392   lt_status=$lt_dlunknown
12393   cat > conftest.$ac_ext <<EOF
12394 #line 12394 "configure"
12395 #include "confdefs.h"
12396
12397 #if HAVE_DLFCN_H
12398 #include <dlfcn.h>
12399 #endif
12400
12401 #include <stdio.h>
12402
12403 #ifdef RTLD_GLOBAL
12404 #  define LT_DLGLOBAL           RTLD_GLOBAL
12405 #else
12406 #  ifdef DL_GLOBAL
12407 #    define LT_DLGLOBAL         DL_GLOBAL
12408 #  else
12409 #    define LT_DLGLOBAL         0
12410 #  endif
12411 #endif
12412
12413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414    find out it does not work in some platform. */
12415 #ifndef LT_DLLAZY_OR_NOW
12416 #  ifdef RTLD_LAZY
12417 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12418 #  else
12419 #    ifdef DL_LAZY
12420 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12421 #    else
12422 #      ifdef RTLD_NOW
12423 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12424 #      else
12425 #        ifdef DL_NOW
12426 #          define LT_DLLAZY_OR_NOW      DL_NOW
12427 #        else
12428 #          define LT_DLLAZY_OR_NOW      0
12429 #        endif
12430 #      endif
12431 #    endif
12432 #  endif
12433 #endif
12434
12435 #ifdef __cplusplus
12436 extern "C" void exit (int);
12437 #endif
12438
12439 void fnord() { int i=42;}
12440 int main ()
12441 {
12442   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12443   int status = $lt_dlunknown;
12444
12445   if (self)
12446     {
12447       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12448       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12449       /* dlclose (self); */
12450     }
12451
12452     exit (status);
12453 }
12454 EOF
12455   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456   (eval $ac_link) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12460     (./conftest; exit; ) 2>/dev/null
12461     lt_status=$?
12462     case x$lt_status in
12463       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12464       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12465       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12466     esac
12467   else :
12468     # compilation failed
12469     lt_cv_dlopen_self_static=no
12470   fi
12471 fi
12472 rm -fr conftest*
12473
12474
12475 fi
12476 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12477 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12478     fi
12479
12480     CPPFLAGS="$save_CPPFLAGS"
12481     LDFLAGS="$save_LDFLAGS"
12482     LIBS="$save_LIBS"
12483     ;;
12484   esac
12485
12486   case $lt_cv_dlopen_self in
12487   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12488   *) enable_dlopen_self=unknown ;;
12489   esac
12490
12491   case $lt_cv_dlopen_self_static in
12492   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12493   *) enable_dlopen_self_static=unknown ;;
12494   esac
12495 fi
12496
12497
12498 # The else clause should only fire when bootstrapping the
12499 # libtool distribution, otherwise you forgot to ship ltmain.sh
12500 # with your package, and you will get complaints that there are
12501 # no rules to generate ltmain.sh.
12502 if test -f "$ltmain"; then
12503   # See if we are running on zsh, and set the options which allow our commands through
12504   # without removal of \ escapes.
12505   if test -n "${ZSH_VERSION+set}" ; then
12506     setopt NO_GLOB_SUBST
12507   fi
12508   # Now quote all the things that may contain metacharacters while being
12509   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12510   # variables and quote the copies for generation of the libtool script.
12511   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12512     SED SHELL STRIP \
12513     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12514     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12515     deplibs_check_method reload_flag reload_cmds need_locks \
12516     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12517     lt_cv_sys_global_symbol_to_c_name_address \
12518     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12519     old_postinstall_cmds old_postuninstall_cmds \
12520     compiler_CXX \
12521     CC_CXX \
12522     LD_CXX \
12523     lt_prog_compiler_wl_CXX \
12524     lt_prog_compiler_pic_CXX \
12525     lt_prog_compiler_static_CXX \
12526     lt_prog_compiler_no_builtin_flag_CXX \
12527     export_dynamic_flag_spec_CXX \
12528     thread_safe_flag_spec_CXX \
12529     whole_archive_flag_spec_CXX \
12530     enable_shared_with_static_runtimes_CXX \
12531     old_archive_cmds_CXX \
12532     old_archive_from_new_cmds_CXX \
12533     predep_objects_CXX \
12534     postdep_objects_CXX \
12535     predeps_CXX \
12536     postdeps_CXX \
12537     compiler_lib_search_path_CXX \
12538     archive_cmds_CXX \
12539     archive_expsym_cmds_CXX \
12540     postinstall_cmds_CXX \
12541     postuninstall_cmds_CXX \
12542     old_archive_from_expsyms_cmds_CXX \
12543     allow_undefined_flag_CXX \
12544     no_undefined_flag_CXX \
12545     export_symbols_cmds_CXX \
12546     hardcode_libdir_flag_spec_CXX \
12547     hardcode_libdir_flag_spec_ld_CXX \
12548     hardcode_libdir_separator_CXX \
12549     hardcode_automatic_CXX \
12550     module_cmds_CXX \
12551     module_expsym_cmds_CXX \
12552     lt_cv_prog_compiler_c_o_CXX \
12553     exclude_expsyms_CXX \
12554     include_expsyms_CXX; do
12555
12556     case $var in
12557     old_archive_cmds_CXX | \
12558     old_archive_from_new_cmds_CXX | \
12559     archive_cmds_CXX | \
12560     archive_expsym_cmds_CXX | \
12561     module_cmds_CXX | \
12562     module_expsym_cmds_CXX | \
12563     old_archive_from_expsyms_cmds_CXX | \
12564     export_symbols_cmds_CXX | \
12565     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12566     postinstall_cmds | postuninstall_cmds | \
12567     old_postinstall_cmds | old_postuninstall_cmds | \
12568     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12569       # Double-quote double-evaled strings.
12570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12571       ;;
12572     *)
12573       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12574       ;;
12575     esac
12576   done
12577
12578   case $lt_echo in
12579   *'\$0 --fallback-echo"')
12580     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12581     ;;
12582   esac
12583
12584 cfgfile="$ofile"
12585
12586   cat <<__EOF__ >> "$cfgfile"
12587 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12588
12589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12590
12591 # Shell to use when invoking shell scripts.
12592 SHELL=$lt_SHELL
12593
12594 # Whether or not to build shared libraries.
12595 build_libtool_libs=$enable_shared
12596
12597 # Whether or not to build static libraries.
12598 build_old_libs=$enable_static
12599
12600 # Whether or not to add -lc for building shared libraries.
12601 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12602
12603 # Whether or not to disallow shared libs when runtime libs are static
12604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12605
12606 # Whether or not to optimize for fast installation.
12607 fast_install=$enable_fast_install
12608
12609 # The host system.
12610 host_alias=$host_alias
12611 host=$host
12612
12613 # An echo program that does not interpret backslashes.
12614 echo=$lt_echo
12615
12616 # The archiver.
12617 AR=$lt_AR
12618 AR_FLAGS=$lt_AR_FLAGS
12619
12620 # A C compiler.
12621 LTCC=$lt_LTCC
12622
12623 # A language-specific compiler.
12624 CC=$lt_compiler_CXX
12625
12626 # Is the compiler the GNU C compiler?
12627 with_gcc=$GCC_CXX
12628
12629 # An ERE matcher.
12630 EGREP=$lt_EGREP
12631
12632 # The linker used to build libraries.
12633 LD=$lt_LD_CXX
12634
12635 # Whether we need hard or soft links.
12636 LN_S=$lt_LN_S
12637
12638 # A BSD-compatible nm program.
12639 NM=$lt_NM
12640
12641 # A symbol stripping program
12642 STRIP=$lt_STRIP
12643
12644 # Used to examine libraries when file_magic_cmd begins "file"
12645 MAGIC_CMD=$MAGIC_CMD
12646
12647 # Used on cygwin: DLL creation program.
12648 DLLTOOL="$DLLTOOL"
12649
12650 # Used on cygwin: object dumper.
12651 OBJDUMP="$OBJDUMP"
12652
12653 # Used on cygwin: assembler.
12654 AS="$AS"
12655
12656 # The name of the directory that contains temporary libtool files.
12657 objdir=$objdir
12658
12659 # How to create reloadable object files.
12660 reload_flag=$lt_reload_flag
12661 reload_cmds=$lt_reload_cmds
12662
12663 # How to pass a linker flag through the compiler.
12664 wl=$lt_lt_prog_compiler_wl_CXX
12665
12666 # Object file suffix (normally "o").
12667 objext="$ac_objext"
12668
12669 # Old archive suffix (normally "a").
12670 libext="$libext"
12671
12672 # Shared library suffix (normally ".so").
12673 shrext_cmds='$shrext_cmds'
12674
12675 # Executable file suffix (normally "").
12676 exeext="$exeext"
12677
12678 # Additional compiler flags for building library objects.
12679 pic_flag=$lt_lt_prog_compiler_pic_CXX
12680 pic_mode=$pic_mode
12681
12682 # What is the maximum length of a command?
12683 max_cmd_len=$lt_cv_sys_max_cmd_len
12684
12685 # Does compiler simultaneously support -c and -o options?
12686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12687
12688 # Must we lock files when doing compilation ?
12689 need_locks=$lt_need_locks
12690
12691 # Do we need the lib prefix for modules?
12692 need_lib_prefix=$need_lib_prefix
12693
12694 # Do we need a version for libraries?
12695 need_version=$need_version
12696
12697 # Whether dlopen is supported.
12698 dlopen_support=$enable_dlopen
12699
12700 # Whether dlopen of programs is supported.
12701 dlopen_self=$enable_dlopen_self
12702
12703 # Whether dlopen of statically linked programs is supported.
12704 dlopen_self_static=$enable_dlopen_self_static
12705
12706 # Compiler flag to prevent dynamic linking.
12707 link_static_flag=$lt_lt_prog_compiler_static_CXX
12708
12709 # Compiler flag to turn off builtin functions.
12710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12711
12712 # Compiler flag to allow reflexive dlopens.
12713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12714
12715 # Compiler flag to generate shared objects directly from archives.
12716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12717
12718 # Compiler flag to generate thread-safe objects.
12719 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12720
12721 # Library versioning type.
12722 version_type=$version_type
12723
12724 # Format of library name prefix.
12725 libname_spec=$lt_libname_spec
12726
12727 # List of archive names.  First name is the real one, the rest are links.
12728 # The last name is the one that the linker finds with -lNAME.
12729 library_names_spec=$lt_library_names_spec
12730
12731 # The coded name of the library, if different from the real name.
12732 soname_spec=$lt_soname_spec
12733
12734 # Commands used to build and install an old-style archive.
12735 RANLIB=$lt_RANLIB
12736 old_archive_cmds=$lt_old_archive_cmds_CXX
12737 old_postinstall_cmds=$lt_old_postinstall_cmds
12738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12739
12740 # Create an old-style archive from a shared archive.
12741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12742
12743 # Create a temporary old-style archive to link instead of a shared archive.
12744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12745
12746 # Commands used to build and install a shared archive.
12747 archive_cmds=$lt_archive_cmds_CXX
12748 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12749 postinstall_cmds=$lt_postinstall_cmds
12750 postuninstall_cmds=$lt_postuninstall_cmds
12751
12752 # Commands used to build a loadable module (assumed same as above if empty)
12753 module_cmds=$lt_module_cmds_CXX
12754 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12755
12756 # Commands to strip libraries.
12757 old_striplib=$lt_old_striplib
12758 striplib=$lt_striplib
12759
12760 # Dependencies to place before the objects being linked to create a
12761 # shared library.
12762 predep_objects=$lt_predep_objects_CXX
12763
12764 # Dependencies to place after the objects being linked to create a
12765 # shared library.
12766 postdep_objects=$lt_postdep_objects_CXX
12767
12768 # Dependencies to place before the objects being linked to create a
12769 # shared library.
12770 predeps=$lt_predeps_CXX
12771
12772 # Dependencies to place after the objects being linked to create a
12773 # shared library.
12774 postdeps=$lt_postdeps_CXX
12775
12776 # The library search path used internally by the compiler when linking
12777 # a shared library.
12778 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12779
12780 # Method to check whether dependent libraries are shared objects.
12781 deplibs_check_method=$lt_deplibs_check_method
12782
12783 # Command to use when deplibs_check_method == file_magic.
12784 file_magic_cmd=$lt_file_magic_cmd
12785
12786 # Flag that allows shared libraries with undefined symbols to be built.
12787 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12788
12789 # Flag that forces no undefined symbols.
12790 no_undefined_flag=$lt_no_undefined_flag_CXX
12791
12792 # Commands used to finish a libtool library installation in a directory.
12793 finish_cmds=$lt_finish_cmds
12794
12795 # Same as above, but a single script fragment to be evaled but not shown.
12796 finish_eval=$lt_finish_eval
12797
12798 # Take the output of nm and produce a listing of raw symbols and C names.
12799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12800
12801 # Transform the output of nm in a proper C declaration
12802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12803
12804 # Transform the output of nm in a C name address pair
12805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12806
12807 # This is the shared library runtime path variable.
12808 runpath_var=$runpath_var
12809
12810 # This is the shared library path variable.
12811 shlibpath_var=$shlibpath_var
12812
12813 # Is shlibpath searched before the hard-coded library search path?
12814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12815
12816 # How to hardcode a shared library path into an executable.
12817 hardcode_action=$hardcode_action_CXX
12818
12819 # Whether we should hardcode library paths into libraries.
12820 hardcode_into_libs=$hardcode_into_libs
12821
12822 # Flag to hardcode \$libdir into a binary during linking.
12823 # This must work even if \$libdir does not exist.
12824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12825
12826 # If ld is used when linking, flag to hardcode \$libdir into
12827 # a binary during linking. This must work even if \$libdir does
12828 # not exist.
12829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12830
12831 # Whether we need a single -rpath flag with a separated argument.
12832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12833
12834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12835 # resulting binary.
12836 hardcode_direct=$hardcode_direct_CXX
12837
12838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12839 # resulting binary.
12840 hardcode_minus_L=$hardcode_minus_L_CXX
12841
12842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12843 # the resulting binary.
12844 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12845
12846 # Set to yes if building a shared library automatically hardcodes DIR into the library
12847 # and all subsequent libraries and executables linked against it.
12848 hardcode_automatic=$hardcode_automatic_CXX
12849
12850 # Variables whose values should be saved in libtool wrapper scripts and
12851 # restored at relink time.
12852 variables_saved_for_relink="$variables_saved_for_relink"
12853
12854 # Whether libtool must link a program against all its dependency libraries.
12855 link_all_deplibs=$link_all_deplibs_CXX
12856
12857 # Compile-time system search path for libraries
12858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12859
12860 # Run-time system search path for libraries
12861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12862
12863 # Fix the shell variable \$srcfile for the compiler.
12864 fix_srcfile_path="$fix_srcfile_path_CXX"
12865
12866 # Set to yes if exported symbols are required.
12867 always_export_symbols=$always_export_symbols_CXX
12868
12869 # The commands to list exported symbols.
12870 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12871
12872 # The commands to extract the exported symbol list from a shared archive.
12873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12874
12875 # Symbols that should not be listed in the preloaded symbols.
12876 exclude_expsyms=$lt_exclude_expsyms_CXX
12877
12878 # Symbols that must always be exported.
12879 include_expsyms=$lt_include_expsyms_CXX
12880
12881 # ### END LIBTOOL TAG CONFIG: $tagname
12882
12883 __EOF__
12884
12885
12886 else
12887   # If there is no Makefile yet, we rely on a make rule to execute
12888   # `config.status --recheck' to rerun these tests and create the
12889   # libtool script then.
12890   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12891   if test -f "$ltmain_in"; then
12892     test -f Makefile && make "$ltmain"
12893   fi
12894 fi
12895
12896
12897 ac_ext=c
12898 ac_cpp='$CPP $CPPFLAGS'
12899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12902
12903 CC=$lt_save_CC
12904 LDCXX=$LD
12905 LD=$lt_save_LD
12906 GCC=$lt_save_GCC
12907 with_gnu_ldcxx=$with_gnu_ld
12908 with_gnu_ld=$lt_save_with_gnu_ld
12909 lt_cv_path_LDCXX=$lt_cv_path_LD
12910 lt_cv_path_LD=$lt_save_path_LD
12911 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12912 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12913
12914         else
12915           tagname=""
12916         fi
12917         ;;
12918
12919       F77)
12920         if test -n "$F77" && test "X$F77" != "Xno"; then
12921
12922 ac_ext=f
12923 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12924 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12926
12927
12928 archive_cmds_need_lc_F77=no
12929 allow_undefined_flag_F77=
12930 always_export_symbols_F77=no
12931 archive_expsym_cmds_F77=
12932 export_dynamic_flag_spec_F77=
12933 hardcode_direct_F77=no
12934 hardcode_libdir_flag_spec_F77=
12935 hardcode_libdir_flag_spec_ld_F77=
12936 hardcode_libdir_separator_F77=
12937 hardcode_minus_L_F77=no
12938 hardcode_automatic_F77=no
12939 module_cmds_F77=
12940 module_expsym_cmds_F77=
12941 link_all_deplibs_F77=unknown
12942 old_archive_cmds_F77=$old_archive_cmds
12943 no_undefined_flag_F77=
12944 whole_archive_flag_spec_F77=
12945 enable_shared_with_static_runtimes_F77=no
12946
12947 # Source file extension for f77 test sources.
12948 ac_ext=f
12949
12950 # Object file extension for compiled f77 test sources.
12951 objext=o
12952 objext_F77=$objext
12953
12954 # Code to be used in simple compile tests
12955 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12956
12957 # Code to be used in simple link tests
12958 lt_simple_link_test_code="      program t\n      end\n"
12959
12960 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12961
12962 # If no C compiler was specified, use CC.
12963 LTCC=${LTCC-"$CC"}
12964
12965 # Allow CC to be a program name with arguments.
12966 compiler=$CC
12967
12968
12969 # Allow CC to be a program name with arguments.
12970 lt_save_CC="$CC"
12971 CC=${F77-"f77"}
12972 compiler=$CC
12973 compiler_F77=$CC
12974 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12975
12976 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12977 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12978 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12979 echo "${ECHO_T}$can_build_shared" >&6
12980
12981 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12982 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12983 test "$can_build_shared" = "no" && enable_shared=no
12984
12985 # On AIX, shared libraries and static libraries use the same namespace, and
12986 # are all built from PIC.
12987 case "$host_os" in
12988 aix3*)
12989   test "$enable_shared" = yes && enable_static=no
12990   if test -n "$RANLIB"; then
12991     archive_cmds="$archive_cmds;\$RANLIB \$lib"
12992     postinstall_cmds='$RANLIB $lib'
12993   fi
12994   ;;
12995 aix4* | aix5*)
12996   test "$enable_shared" = yes && enable_static=no
12997   ;;
12998 esac
12999 echo "$as_me:$LINENO: result: $enable_shared" >&5
13000 echo "${ECHO_T}$enable_shared" >&6
13001
13002 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13003 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13004 # Make sure either enable_shared or enable_static is yes.
13005 test "$enable_shared" = yes || enable_static=yes
13006 echo "$as_me:$LINENO: result: $enable_static" >&5
13007 echo "${ECHO_T}$enable_static" >&6
13008
13009 test "$ld_shlibs_F77" = no && can_build_shared=no
13010
13011 GCC_F77="$G77"
13012 LD_F77="$LD"
13013
13014 lt_prog_compiler_wl_F77=
13015 lt_prog_compiler_pic_F77=
13016 lt_prog_compiler_static_F77=
13017
13018 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13019 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13020
13021   if test "$GCC" = yes; then
13022     lt_prog_compiler_wl_F77='-Wl,'
13023     lt_prog_compiler_static_F77='-static'
13024
13025     case $host_os in
13026       aix*)
13027       # All AIX code is PIC.
13028       if test "$host_cpu" = ia64; then
13029         # AIX 5 now supports IA64 processor
13030         lt_prog_compiler_static_F77='-Bstatic'
13031       fi
13032       ;;
13033
13034     amigaos*)
13035       # FIXME: we need at least 68020 code to build shared libraries, but
13036       # adding the `-m68020' flag to GCC prevents building anything better,
13037       # like `-m68040'.
13038       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13039       ;;
13040
13041     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13042       # PIC is the default for these OSes.
13043       ;;
13044
13045     mingw* | pw32* | os2*)
13046       # This hack is so that the source file can tell whether it is being
13047       # built for inclusion in a dll (and should export symbols for example).
13048       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13049       ;;
13050
13051     darwin* | rhapsody*)
13052       # PIC is the default on this platform
13053       # Common symbols not allowed in MH_DYLIB files
13054       lt_prog_compiler_pic_F77='-fno-common'
13055       ;;
13056
13057     msdosdjgpp*)
13058       # Just because we use GCC doesn't mean we suddenly get shared libraries
13059       # on systems that don't support them.
13060       lt_prog_compiler_can_build_shared_F77=no
13061       enable_shared=no
13062       ;;
13063
13064     sysv4*MP*)
13065       if test -d /usr/nec; then
13066         lt_prog_compiler_pic_F77=-Kconform_pic
13067       fi
13068       ;;
13069
13070     hpux*)
13071       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13072       # not for PA HP-UX.
13073       case "$host_cpu" in
13074       hppa*64*|ia64*)
13075         # +Z the default
13076         ;;
13077       *)
13078         lt_prog_compiler_pic_F77='-fPIC'
13079         ;;
13080       esac
13081       ;;
13082
13083     *)
13084       lt_prog_compiler_pic_F77='-fPIC'
13085       ;;
13086     esac
13087   else
13088     # PORTME Check for flag to pass linker flags through the system compiler.
13089     case $host_os in
13090     aix*)
13091       lt_prog_compiler_wl_F77='-Wl,'
13092       if test "$host_cpu" = ia64; then
13093         # AIX 5 now supports IA64 processor
13094         lt_prog_compiler_static_F77='-Bstatic'
13095       else
13096         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13097       fi
13098       ;;
13099       darwin*)
13100         # PIC is the default on this platform
13101         # Common symbols not allowed in MH_DYLIB files
13102        case "$cc_basename" in
13103          xlc*)
13104          lt_prog_compiler_pic_F77='-qnocommon'
13105          lt_prog_compiler_wl_F77='-Wl,'
13106          ;;
13107        esac
13108        ;;
13109
13110     mingw* | pw32* | os2*)
13111       # This hack is so that the source file can tell whether it is being
13112       # built for inclusion in a dll (and should export symbols for example).
13113       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13114       ;;
13115
13116     hpux9* | hpux10* | hpux11*)
13117       lt_prog_compiler_wl_F77='-Wl,'
13118       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13119       # not for PA HP-UX.
13120       case "$host_cpu" in
13121       hppa*64*|ia64*)
13122         # +Z the default
13123         ;;
13124       *)
13125         lt_prog_compiler_pic_F77='+Z'
13126         ;;
13127       esac
13128       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13129       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13130       ;;
13131
13132     irix5* | irix6* | nonstopux*)
13133       lt_prog_compiler_wl_F77='-Wl,'
13134       # PIC (with -KPIC) is the default.
13135       lt_prog_compiler_static_F77='-non_shared'
13136       ;;
13137
13138     newsos6)
13139       lt_prog_compiler_pic_F77='-KPIC'
13140       lt_prog_compiler_static_F77='-Bstatic'
13141       ;;
13142
13143     linux*)
13144       case $CC in
13145       icc* | ecc*)
13146         lt_prog_compiler_wl_F77='-Wl,'
13147         lt_prog_compiler_pic_F77='-KPIC'
13148         lt_prog_compiler_static_F77='-static'
13149         ;;
13150       ccc*)
13151         lt_prog_compiler_wl_F77='-Wl,'
13152         # All Alpha code is PIC.
13153         lt_prog_compiler_static_F77='-non_shared'
13154         ;;
13155       esac
13156       ;;
13157
13158     osf3* | osf4* | osf5*)
13159       lt_prog_compiler_wl_F77='-Wl,'
13160       # All OSF/1 code is PIC.
13161       lt_prog_compiler_static_F77='-non_shared'
13162       ;;
13163
13164     sco3.2v5*)
13165       lt_prog_compiler_pic_F77='-Kpic'
13166       lt_prog_compiler_static_F77='-dn'
13167       ;;
13168
13169     solaris*)
13170       lt_prog_compiler_wl_F77='-Wl,'
13171       lt_prog_compiler_pic_F77='-KPIC'
13172       lt_prog_compiler_static_F77='-Bstatic'
13173       ;;
13174
13175     sunos4*)
13176       lt_prog_compiler_wl_F77='-Qoption ld '
13177       lt_prog_compiler_pic_F77='-PIC'
13178       lt_prog_compiler_static_F77='-Bstatic'
13179       ;;
13180
13181     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13182       lt_prog_compiler_wl_F77='-Wl,'
13183       lt_prog_compiler_pic_F77='-KPIC'
13184       lt_prog_compiler_static_F77='-Bstatic'
13185       ;;
13186
13187     sysv4*MP*)
13188       if test -d /usr/nec ;then
13189         lt_prog_compiler_pic_F77='-Kconform_pic'
13190         lt_prog_compiler_static_F77='-Bstatic'
13191       fi
13192       ;;
13193
13194     uts4*)
13195       lt_prog_compiler_pic_F77='-pic'
13196       lt_prog_compiler_static_F77='-Bstatic'
13197       ;;
13198
13199     *)
13200       lt_prog_compiler_can_build_shared_F77=no
13201       ;;
13202     esac
13203   fi
13204
13205 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13206 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13207
13208 #
13209 # Check to make sure the PIC flag actually works.
13210 #
13211 if test -n "$lt_prog_compiler_pic_F77"; then
13212
13213 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13214 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13215 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   lt_prog_compiler_pic_works_F77=no
13219   ac_outfile=conftest.$ac_objext
13220    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13221    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13222    # Insert the option either (1) after the last *FLAGS variable, or
13223    # (2) before a word containing "conftest.", or (3) at the end.
13224    # Note that $ac_compile itself does not contain backslashes and begins
13225    # with a dollar sign (not a hyphen), so the echo should work correctly.
13226    # The option is referenced via a variable to avoid confusing sed.
13227    lt_compile=`echo "$ac_compile" | $SED \
13228    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13230    -e 's:$: $lt_compiler_flag:'`
13231    (eval echo "\"\$as_me:13231: $lt_compile\"" >&5)
13232    (eval "$lt_compile" 2>conftest.err)
13233    ac_status=$?
13234    cat conftest.err >&5
13235    echo "$as_me:13235: \$? = $ac_status" >&5
13236    if (exit $ac_status) && test -s "$ac_outfile"; then
13237      # The compiler can only warn and ignore the option if not recognized
13238      # So say no if there are warnings
13239      if test ! -s conftest.err; then
13240        lt_prog_compiler_pic_works_F77=yes
13241      fi
13242    fi
13243    $rm conftest*
13244
13245 fi
13246 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13247 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13248
13249 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13250     case $lt_prog_compiler_pic_F77 in
13251      "" | " "*) ;;
13252      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13253      esac
13254 else
13255     lt_prog_compiler_pic_F77=
13256      lt_prog_compiler_can_build_shared_F77=no
13257 fi
13258
13259 fi
13260 case "$host_os" in
13261   # For platforms which do not support PIC, -DPIC is meaningless:
13262   *djgpp*)
13263     lt_prog_compiler_pic_F77=
13264     ;;
13265   *)
13266     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13267     ;;
13268 esac
13269
13270 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13271 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13272 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   lt_cv_prog_compiler_c_o_F77=no
13276    $rm -r conftest 2>/dev/null
13277    mkdir conftest
13278    cd conftest
13279    mkdir out
13280    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13281
13282    lt_compiler_flag="-o out/conftest2.$ac_objext"
13283    # Insert the option either (1) after the last *FLAGS variable, or
13284    # (2) before a word containing "conftest.", or (3) at the end.
13285    # Note that $ac_compile itself does not contain backslashes and begins
13286    # with a dollar sign (not a hyphen), so the echo should work correctly.
13287    lt_compile=`echo "$ac_compile" | $SED \
13288    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13289    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13290    -e 's:$: $lt_compiler_flag:'`
13291    (eval echo "\"\$as_me:13291: $lt_compile\"" >&5)
13292    (eval "$lt_compile" 2>out/conftest.err)
13293    ac_status=$?
13294    cat out/conftest.err >&5
13295    echo "$as_me:13295: \$? = $ac_status" >&5
13296    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13297    then
13298      # The compiler can only warn and ignore the option if not recognized
13299      # So say no if there are warnings
13300      if test ! -s out/conftest.err; then
13301        lt_cv_prog_compiler_c_o_F77=yes
13302      fi
13303    fi
13304    chmod u+w .
13305    $rm conftest*
13306    # SGI C++ compiler will create directory out/ii_files/ for
13307    # template instantiation
13308    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309    $rm out/* && rmdir out
13310    cd ..
13311    rmdir conftest
13312    $rm conftest*
13313
13314 fi
13315 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13317
13318
13319 hard_links="nottested"
13320 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321   # do not overwrite the value of need_locks provided by the user
13322   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13324   hard_links=yes
13325   $rm conftest*
13326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327   touch conftest.a
13328   ln conftest.a conftest.b 2>&5 || hard_links=no
13329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330   echo "$as_me:$LINENO: result: $hard_links" >&5
13331 echo "${ECHO_T}$hard_links" >&6
13332   if test "$hard_links" = no; then
13333     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13335     need_locks=warn
13336   fi
13337 else
13338   need_locks=no
13339 fi
13340
13341 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13343
13344   runpath_var=
13345   allow_undefined_flag_F77=
13346   enable_shared_with_static_runtimes_F77=no
13347   archive_cmds_F77=
13348   archive_expsym_cmds_F77=
13349   old_archive_From_new_cmds_F77=
13350   old_archive_from_expsyms_cmds_F77=
13351   export_dynamic_flag_spec_F77=
13352   whole_archive_flag_spec_F77=
13353   thread_safe_flag_spec_F77=
13354   hardcode_libdir_flag_spec_F77=
13355   hardcode_libdir_flag_spec_ld_F77=
13356   hardcode_libdir_separator_F77=
13357   hardcode_direct_F77=no
13358   hardcode_minus_L_F77=no
13359   hardcode_shlibpath_var_F77=unsupported
13360   link_all_deplibs_F77=unknown
13361   hardcode_automatic_F77=no
13362   module_cmds_F77=
13363   module_expsym_cmds_F77=
13364   always_export_symbols_F77=no
13365   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366   # include_expsyms should be a list of space-separated symbols to be *always*
13367   # included in the symbol list
13368   include_expsyms_F77=
13369   # exclude_expsyms can be an extended regexp of symbols to exclude
13370   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372   # as well as any symbol that contains `d'.
13373   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375   # platforms (ab)use it in PIC code, but their linkers get confused if
13376   # the symbol is explicitly referenced.  Since portable code cannot
13377   # rely on this symbol name, it's probably fine to never include it in
13378   # preloaded symbol tables.
13379   extract_expsyms_cmds=
13380
13381   case $host_os in
13382   cygwin* | mingw* | pw32*)
13383     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13384     # When not using gcc, we currently assume that we are using
13385     # Microsoft Visual C++.
13386     if test "$GCC" != yes; then
13387       with_gnu_ld=no
13388     fi
13389     ;;
13390   openbsd*)
13391     with_gnu_ld=no
13392     ;;
13393   esac
13394
13395   ld_shlibs_F77=yes
13396   if test "$with_gnu_ld" = yes; then
13397     # If archive_cmds runs LD, not CC, wlarc should be empty
13398     wlarc='${wl}'
13399
13400     # See if GNU ld supports shared libraries.
13401     case $host_os in
13402     aix3* | aix4* | aix5*)
13403       # On AIX/PPC, the GNU linker is very broken
13404       if test "$host_cpu" != ia64; then
13405         ld_shlibs_F77=no
13406         cat <<EOF 1>&2
13407
13408 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13409 *** to be unable to reliably create shared libraries on AIX.
13410 *** Therefore, libtool is disabling shared libraries support.  If you
13411 *** really care for shared libraries, you may want to modify your PATH
13412 *** so that a non-GNU linker is found, and then restart.
13413
13414 EOF
13415       fi
13416       ;;
13417
13418     amigaos*)
13419       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)'
13420       hardcode_libdir_flag_spec_F77='-L$libdir'
13421       hardcode_minus_L_F77=yes
13422
13423       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13424       # that the semantics of dynamic libraries on AmigaOS, at least up
13425       # to version 4, is to share data among multiple programs linked
13426       # with the same dynamic library.  Since this doesn't match the
13427       # behavior of shared libraries on other platforms, we can't use
13428       # them.
13429       ld_shlibs_F77=no
13430       ;;
13431
13432     beos*)
13433       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13434         allow_undefined_flag_F77=unsupported
13435         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13436         # support --undefined.  This deserves some investigation.  FIXME
13437         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438       else
13439         ld_shlibs_F77=no
13440       fi
13441       ;;
13442
13443     cygwin* | mingw* | pw32*)
13444       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13445       # as there is no search path for DLLs.
13446       hardcode_libdir_flag_spec_F77='-L$libdir'
13447       allow_undefined_flag_F77=unsupported
13448       always_export_symbols_F77=no
13449       enable_shared_with_static_runtimes_F77=yes
13450       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13451
13452       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13453         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13454         # If the export-symbols file already is a .def file (1st line
13455         # is EXPORTS), use it as is; otherwise, prepend...
13456         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13457           cp $export_symbols $output_objdir/$soname.def;
13458         else
13459           echo EXPORTS > $output_objdir/$soname.def;
13460           cat $export_symbols >> $output_objdir/$soname.def;
13461         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13462       else
13463         ld_shlibs=no
13464       fi
13465       ;;
13466
13467     netbsd*)
13468       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13469         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13470         wlarc=
13471       else
13472         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13474       fi
13475       ;;
13476
13477     solaris* | sysv5*)
13478       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13479         ld_shlibs_F77=no
13480         cat <<EOF 1>&2
13481
13482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13483 *** create shared libraries on Solaris systems.  Therefore, libtool
13484 *** is disabling shared libraries support.  We urge you to upgrade GNU
13485 *** binutils to release 2.9.1 or newer.  Another option is to modify
13486 *** your PATH or compiler configuration so that the native linker is
13487 *** used, and then restart.
13488
13489 EOF
13490       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13491         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13493       else
13494         ld_shlibs_F77=no
13495       fi
13496       ;;
13497
13498     sunos4*)
13499       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13500       wlarc=
13501       hardcode_direct_F77=yes
13502       hardcode_shlibpath_var_F77=no
13503       ;;
13504
13505   linux*)
13506     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13507         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508         archive_cmds_F77="$tmp_archive_cmds"
13509       supports_anon_versioning=no
13510       case `$LD -v 2>/dev/null` in
13511         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13512         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13513         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13514         *\ 2.11.*) ;; # other 2.11 versions
13515         *) supports_anon_versioning=yes ;;
13516       esac
13517       if test $supports_anon_versioning = yes; then
13518         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13519         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13520       else
13521         archive_expsym_cmds_F77="$tmp_archive_cmds"
13522       fi
13523     else
13524       ld_shlibs_F77=no
13525     fi
13526     ;;
13527
13528     *)
13529       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13532       else
13533         ld_shlibs_F77=no
13534       fi
13535       ;;
13536     esac
13537
13538     if test "$ld_shlibs_F77" = yes; then
13539       runpath_var=LD_RUN_PATH
13540       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542       # ancient GNU ld didn't support --whole-archive et. al.
13543       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13545       else
13546         whole_archive_flag_spec_F77=
13547       fi
13548     fi
13549   else
13550     # PORTME fill in a description of your system's linker (not GNU ld)
13551     case $host_os in
13552     aix3*)
13553       allow_undefined_flag_F77=unsupported
13554       always_export_symbols_F77=yes
13555       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'
13556       # Note: this linker hardcodes the directories in LIBPATH if there
13557       # are no directories specified by -L.
13558       hardcode_minus_L_F77=yes
13559       if test "$GCC" = yes && test -z "$link_static_flag"; then
13560         # Neither direct hardcoding nor static linking is supported with a
13561         # broken collect2.
13562         hardcode_direct_F77=unsupported
13563       fi
13564       ;;
13565
13566     aix4* | aix5*)
13567       if test "$host_cpu" = ia64; then
13568         # On IA64, the linker does run time linking by default, so we don't
13569         # have to do anything special.
13570         aix_use_runtimelinking=no
13571         exp_sym_flag='-Bexport'
13572         no_entry_flag=""
13573       else
13574         # If we're using GNU nm, then we don't want the "-C" option.
13575         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13576         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577           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'
13578         else
13579           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'
13580         fi
13581         aix_use_runtimelinking=no
13582
13583         # Test if we are trying to use run time linking or normal
13584         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585         # need to do runtime linking.
13586         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587           for ld_flag in $LDFLAGS; do
13588           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589             aix_use_runtimelinking=yes
13590             break
13591           fi
13592           done
13593         esac
13594
13595         exp_sym_flag='-bexport'
13596         no_entry_flag='-bnoentry'
13597       fi
13598
13599       # When large executables or shared objects are built, AIX ld can
13600       # have problems creating the table of contents.  If linking a library
13601       # or program results in "error TOC overflow" add -mminimal-toc to
13602       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13603       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13604
13605       archive_cmds_F77=''
13606       hardcode_direct_F77=yes
13607       hardcode_libdir_separator_F77=':'
13608       link_all_deplibs_F77=yes
13609
13610       if test "$GCC" = yes; then
13611         case $host_os in aix4.012|aix4.012.*)
13612         # We only want to do this on AIX 4.2 and lower, the check
13613         # below for broken collect2 doesn't work under 4.3+
13614           collect2name=`${CC} -print-prog-name=collect2`
13615           if test -f "$collect2name" && \
13616            strings "$collect2name" | grep resolve_lib_name >/dev/null
13617           then
13618           # We have reworked collect2
13619           hardcode_direct_F77=yes
13620           else
13621           # We have old collect2
13622           hardcode_direct_F77=unsupported
13623           # It fails to find uninstalled libraries when the uninstalled
13624           # path is not listed in the libpath.  Setting hardcode_minus_L
13625           # to unsupported forces relinking
13626           hardcode_minus_L_F77=yes
13627           hardcode_libdir_flag_spec_F77='-L$libdir'
13628           hardcode_libdir_separator_F77=
13629           fi
13630         esac
13631         shared_flag='-shared'
13632       else
13633         # not using gcc
13634         if test "$host_cpu" = ia64; then
13635         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636         # chokes on -Wl,-G. The following line is correct:
13637           shared_flag='-G'
13638         else
13639         if test "$aix_use_runtimelinking" = yes; then
13640             shared_flag='${wl}-G'
13641           else
13642             shared_flag='${wl}-bM:SRE'
13643         fi
13644         fi
13645       fi
13646
13647       # It seems that -bexpall does not export symbols beginning with
13648       # underscore (_), so it is better to generate a list of symbols to export.
13649       always_export_symbols_F77=yes
13650       if test "$aix_use_runtimelinking" = yes; then
13651         # Warning - without using the other runtime loading flags (-brtl),
13652         # -berok will link without error, but may produce a broken library.
13653         allow_undefined_flag_F77='-berok'
13654        # Determine the default libpath from the value encoded in an empty executable.
13655        cat >conftest.$ac_ext <<_ACEOF
13656       program main
13657
13658       end
13659 _ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662   (eval $ac_link) 2>conftest.er1
13663   ac_status=$?
13664   grep -v '^ *+' conftest.er1 >conftest.err
13665   rm -f conftest.er1
13666   cat conftest.err >&5
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -z "$ac_f77_werror_flag"
13670                          || test ! -s conftest.err'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; } &&
13676          { ac_try='test -s conftest$ac_exeext'
13677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678   (eval $ac_try) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; }; then
13682
13683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13684 }'`
13685 # Check for a 64-bit object if we didn't find anything.
13686 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; }
13687 }'`; fi
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692 fi
13693 rm -f conftest.err conftest.$ac_objext \
13694       conftest$ac_exeext conftest.$ac_ext
13695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13696
13697        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13698         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"
13699        else
13700         if test "$host_cpu" = ia64; then
13701           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13702           allow_undefined_flag_F77="-z nodefs"
13703           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"
13704         else
13705          # Determine the default libpath from the value encoded in an empty executable.
13706          cat >conftest.$ac_ext <<_ACEOF
13707       program main
13708
13709       end
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713   (eval $ac_link) 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -z "$ac_f77_werror_flag"
13721                          || test ! -s conftest.err'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; } &&
13727          { ac_try='test -s conftest$ac_exeext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733
13734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13735 }'`
13736 # Check for a 64-bit object if we didn't find anything.
13737 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; }
13738 }'`; fi
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 fi
13744 rm -f conftest.err conftest.$ac_objext \
13745       conftest$ac_exeext conftest.$ac_ext
13746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13747
13748          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13749           # Warning - without using the other run time loading flags,
13750           # -berok will link without error, but may produce a broken library.
13751           no_undefined_flag_F77=' ${wl}-bernotok'
13752           allow_undefined_flag_F77=' ${wl}-berok'
13753           # -bexpall does not export symbols beginning with underscore (_)
13754           always_export_symbols_F77=yes
13755           # Exported symbols can be pulled into shared objects from archives
13756           whole_archive_flag_spec_F77=' '
13757           archive_cmds_need_lc_F77=yes
13758           # This is similar to how AIX traditionally builds it's shared libraries.
13759           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'
13760         fi
13761       fi
13762       ;;
13763
13764     amigaos*)
13765       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)'
13766       hardcode_libdir_flag_spec_F77='-L$libdir'
13767       hardcode_minus_L_F77=yes
13768       # see comment about different semantics on the GNU ld section
13769       ld_shlibs_F77=no
13770       ;;
13771
13772     bsdi[45]*)
13773       export_dynamic_flag_spec_F77=-rdynamic
13774       ;;
13775
13776     cygwin* | mingw* | pw32*)
13777       # When not using gcc, we currently assume that we are using
13778       # Microsoft Visual C++.
13779       # hardcode_libdir_flag_spec is actually meaningless, as there is
13780       # no search path for DLLs.
13781       hardcode_libdir_flag_spec_F77=' '
13782       allow_undefined_flag_F77=unsupported
13783       # Tell ltmain to make .lib files, not .a files.
13784       libext=lib
13785       # Tell ltmain to make .dll files, not .so files.
13786       shrext_cmds=".dll"
13787       # FIXME: Setting linknames here is a bad hack.
13788       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13789       # The linker will automatically build a .lib file if we build a DLL.
13790       old_archive_From_new_cmds_F77='true'
13791       # FIXME: Should let the user specify the lib program.
13792       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13793       fix_srcfile_path='`cygpath -w "$srcfile"`'
13794       enable_shared_with_static_runtimes_F77=yes
13795       ;;
13796
13797     darwin* | rhapsody*)
13798       case "$host_os" in
13799         rhapsody* | darwin1.[012])
13800          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13801          ;;
13802        *) # Darwin 1.3 on
13803          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13804            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13805          else
13806            case ${MACOSX_DEPLOYMENT_TARGET} in
13807              10.[012])
13808                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13809                ;;
13810              10.*)
13811                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13812                ;;
13813            esac
13814          fi
13815          ;;
13816       esac
13817       archive_cmds_need_lc_F77=no
13818       hardcode_direct_F77=no
13819       hardcode_automatic_F77=yes
13820       hardcode_shlibpath_var_F77=unsupported
13821       whole_archive_flag_spec_F77=''
13822       link_all_deplibs_F77=yes
13823     if test "$GCC" = yes ; then
13824         output_verbose_link_cmd='echo'
13825         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13826       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13827       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13828       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13829       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13830     else
13831       case "$cc_basename" in
13832         xlc*)
13833          output_verbose_link_cmd='echo'
13834          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13835          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13836           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13837          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13838           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13839           ;;
13840        *)
13841          ld_shlibs_F77=no
13842           ;;
13843       esac
13844     fi
13845       ;;
13846
13847     dgux*)
13848       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849       hardcode_libdir_flag_spec_F77='-L$libdir'
13850       hardcode_shlibpath_var_F77=no
13851       ;;
13852
13853     freebsd1*)
13854       ld_shlibs_F77=no
13855       ;;
13856
13857     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13858     # support.  Future versions do this automatically, but an explicit c++rt0.o
13859     # does not break anything, and helps significantly (at the cost of a little
13860     # extra space).
13861     freebsd2.2*)
13862       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13863       hardcode_libdir_flag_spec_F77='-R$libdir'
13864       hardcode_direct_F77=yes
13865       hardcode_shlibpath_var_F77=no
13866       ;;
13867
13868     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13869     freebsd2*)
13870       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13871       hardcode_direct_F77=yes
13872       hardcode_minus_L_F77=yes
13873       hardcode_shlibpath_var_F77=no
13874       ;;
13875
13876     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13877     freebsd* | kfreebsd*-gnu)
13878       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13879       hardcode_libdir_flag_spec_F77='-R$libdir'
13880       hardcode_direct_F77=yes
13881       hardcode_shlibpath_var_F77=no
13882       ;;
13883
13884     hpux9*)
13885       if test "$GCC" = yes; then
13886         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'
13887       else
13888         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'
13889       fi
13890       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13891       hardcode_libdir_separator_F77=:
13892       hardcode_direct_F77=yes
13893
13894       # hardcode_minus_L: Not really in the search PATH,
13895       # but as the default location of the library.
13896       hardcode_minus_L_F77=yes
13897       export_dynamic_flag_spec_F77='${wl}-E'
13898       ;;
13899
13900     hpux10* | hpux11*)
13901       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13902         case "$host_cpu" in
13903         hppa*64*|ia64*)
13904           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905           ;;
13906         *)
13907           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13908           ;;
13909         esac
13910       else
13911         case "$host_cpu" in
13912         hppa*64*|ia64*)
13913           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13914           ;;
13915         *)
13916           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13917           ;;
13918         esac
13919       fi
13920       if test "$with_gnu_ld" = no; then
13921         case "$host_cpu" in
13922         hppa*64*)
13923           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13924           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13925           hardcode_libdir_separator_F77=:
13926           hardcode_direct_F77=no
13927           hardcode_shlibpath_var_F77=no
13928           ;;
13929         ia64*)
13930           hardcode_libdir_flag_spec_F77='-L$libdir'
13931           hardcode_direct_F77=no
13932           hardcode_shlibpath_var_F77=no
13933
13934           # hardcode_minus_L: Not really in the search PATH,
13935           # but as the default location of the library.
13936           hardcode_minus_L_F77=yes
13937           ;;
13938         *)
13939           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13940           hardcode_libdir_separator_F77=:
13941           hardcode_direct_F77=yes
13942           export_dynamic_flag_spec_F77='${wl}-E'
13943
13944           # hardcode_minus_L: Not really in the search PATH,
13945           # but as the default location of the library.
13946           hardcode_minus_L_F77=yes
13947           ;;
13948         esac
13949       fi
13950       ;;
13951
13952     irix5* | irix6* | nonstopux*)
13953       if test "$GCC" = yes; then
13954         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'
13955       else
13956         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'
13957         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13958       fi
13959       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13960       hardcode_libdir_separator_F77=:
13961       link_all_deplibs_F77=yes
13962       ;;
13963
13964     netbsd*)
13965       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13966         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13967       else
13968         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13969       fi
13970       hardcode_libdir_flag_spec_F77='-R$libdir'
13971       hardcode_direct_F77=yes
13972       hardcode_shlibpath_var_F77=no
13973       ;;
13974
13975     newsos6)
13976       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977       hardcode_direct_F77=yes
13978       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13979       hardcode_libdir_separator_F77=:
13980       hardcode_shlibpath_var_F77=no
13981       ;;
13982
13983     openbsd*)
13984       hardcode_direct_F77=yes
13985       hardcode_shlibpath_var_F77=no
13986       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13987         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13988         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13989         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13990         export_dynamic_flag_spec_F77='${wl}-E'
13991       else
13992        case $host_os in
13993          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13994            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13995            hardcode_libdir_flag_spec_F77='-R$libdir'
13996            ;;
13997          *)
13998            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13999            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14000            ;;
14001        esac
14002       fi
14003       ;;
14004
14005     os2*)
14006       hardcode_libdir_flag_spec_F77='-L$libdir'
14007       hardcode_minus_L_F77=yes
14008       allow_undefined_flag_F77=unsupported
14009       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'
14010       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14011       ;;
14012
14013     osf3*)
14014       if test "$GCC" = yes; then
14015         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14016         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'
14017       else
14018         allow_undefined_flag_F77=' -expect_unresolved \*'
14019         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'
14020       fi
14021       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14022       hardcode_libdir_separator_F77=:
14023       ;;
14024
14025     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14026       if test "$GCC" = yes; then
14027         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14028         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'
14029         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14030       else
14031         allow_undefined_flag_F77=' -expect_unresolved \*'
14032         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'
14033         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; $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'
14034         # Both c and cxx compiler support -rpath directly
14035         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14036       fi
14037       hardcode_libdir_separator_F77=:
14038       ;;
14039
14040     sco3.2v5*)
14041       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042       hardcode_shlibpath_var_F77=no
14043       export_dynamic_flag_spec_F77='${wl}-Bexport'
14044       runpath_var=LD_RUN_PATH
14045       hardcode_runpath_var=yes
14046       ;;
14047
14048     solaris*)
14049       no_undefined_flag_F77=' -z text'
14050       if test "$GCC" = yes; then
14051         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14052         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
14053       else
14054         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14055         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14056       fi
14057       hardcode_libdir_flag_spec_F77='-R$libdir'
14058       hardcode_shlibpath_var_F77=no
14059       case $host_os in
14060       solaris2.[0-5] | solaris2.[0-5].*) ;;
14061       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14062         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14063       esac
14064       link_all_deplibs_F77=yes
14065       ;;
14066
14067     sunos4*)
14068       if test "x$host_vendor" = xsequent; then
14069         # Use $CC to link under sequent, because it throws in some extra .o
14070         # files that make .init and .fini sections work.
14071         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14072       else
14073         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14074       fi
14075       hardcode_libdir_flag_spec_F77='-L$libdir'
14076       hardcode_direct_F77=yes
14077       hardcode_minus_L_F77=yes
14078       hardcode_shlibpath_var_F77=no
14079       ;;
14080
14081     sysv4)
14082       case $host_vendor in
14083         sni)
14084           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085           hardcode_direct_F77=yes # is this really true???
14086         ;;
14087         siemens)
14088           ## LD is ld it makes a PLAMLIB
14089           ## CC just makes a GrossModule.
14090           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14091           reload_cmds_F77='$CC -r -o $output$reload_objs'
14092           hardcode_direct_F77=no
14093         ;;
14094         motorola)
14095           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14097         ;;
14098       esac
14099       runpath_var='LD_RUN_PATH'
14100       hardcode_shlibpath_var_F77=no
14101       ;;
14102
14103     sysv4.3*)
14104       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105       hardcode_shlibpath_var_F77=no
14106       export_dynamic_flag_spec_F77='-Bexport'
14107       ;;
14108
14109     sysv4*MP*)
14110       if test -d /usr/nec; then
14111         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112         hardcode_shlibpath_var_F77=no
14113         runpath_var=LD_RUN_PATH
14114         hardcode_runpath_var=yes
14115         ld_shlibs_F77=yes
14116       fi
14117       ;;
14118
14119     sysv4.2uw2*)
14120       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14121       hardcode_direct_F77=yes
14122       hardcode_minus_L_F77=no
14123       hardcode_shlibpath_var_F77=no
14124       hardcode_runpath_var=yes
14125       runpath_var=LD_RUN_PATH
14126       ;;
14127
14128    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14129       no_undefined_flag_F77='${wl}-z ${wl}text'
14130       if test "$GCC" = yes; then
14131         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14132       else
14133         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134       fi
14135       runpath_var='LD_RUN_PATH'
14136       hardcode_shlibpath_var_F77=no
14137       ;;
14138
14139     sysv5*)
14140       no_undefined_flag_F77=' -z text'
14141       # $CC -shared without GNU ld will not create a library from C++
14142       # object files and a static libstdc++, better avoid it by now
14143       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14144       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14145       hardcode_libdir_flag_spec_F77=
14146       hardcode_shlibpath_var_F77=no
14147       runpath_var='LD_RUN_PATH'
14148       ;;
14149
14150     uts4*)
14151       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14152       hardcode_libdir_flag_spec_F77='-L$libdir'
14153       hardcode_shlibpath_var_F77=no
14154       ;;
14155
14156     *)
14157       ld_shlibs_F77=no
14158       ;;
14159     esac
14160   fi
14161
14162 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14163 echo "${ECHO_T}$ld_shlibs_F77" >&6
14164 test "$ld_shlibs_F77" = no && can_build_shared=no
14165
14166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14167 if test "$GCC" = yes; then
14168   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14169 fi
14170
14171 #
14172 # Do we need to explicitly link libc?
14173 #
14174 case "x$archive_cmds_need_lc_F77" in
14175 x|xyes)
14176   # Assume -lc should be added
14177   archive_cmds_need_lc_F77=yes
14178
14179   if test "$enable_shared" = yes && test "$GCC" = yes; then
14180     case $archive_cmds_F77 in
14181     *'~'*)
14182       # FIXME: we may have to deal with multi-command sequences.
14183       ;;
14184     '$CC '*)
14185       # Test whether the compiler implicitly links with -lc since on some
14186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14187       # to ld, don't add -lc before -lgcc.
14188       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14189 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14190       $rm conftest*
14191       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14192
14193       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194   (eval $ac_compile) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); } 2>conftest.err; then
14198         soname=conftest
14199         lib=conftest
14200         libobjs=conftest.$ac_objext
14201         deplibs=
14202         wl=$lt_prog_compiler_wl_F77
14203         compiler_flags=-v
14204         linker_flags=-v
14205         verstring=
14206         output_objdir=.
14207         libname=conftest
14208         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14209         allow_undefined_flag_F77=
14210         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14211   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }
14215         then
14216           archive_cmds_need_lc_F77=no
14217         else
14218           archive_cmds_need_lc_F77=yes
14219         fi
14220         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14221       else
14222         cat conftest.err 1>&5
14223       fi
14224       $rm conftest*
14225       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14226 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14227       ;;
14228     esac
14229   fi
14230   ;;
14231 esac
14232
14233 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14234 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14235 library_names_spec=
14236 libname_spec='lib$name'
14237 soname_spec=
14238 shrext_cmds=".so"
14239 postinstall_cmds=
14240 postuninstall_cmds=
14241 finish_cmds=
14242 finish_eval=
14243 shlibpath_var=
14244 shlibpath_overrides_runpath=unknown
14245 version_type=none
14246 dynamic_linker="$host_os ld.so"
14247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14248 if test "$GCC" = yes; then
14249   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14250   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14251     # if the path contains ";" then we assume it to be the separator
14252     # otherwise default to the standard path separator (i.e. ":") - it is
14253     # assumed that no part of a normal pathname contains ";" but that should
14254     # okay in the real world where ";" in dirpaths is itself problematic.
14255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14256   else
14257     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14258   fi
14259 else
14260   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14261 fi
14262 need_lib_prefix=unknown
14263 hardcode_into_libs=no
14264
14265 # when you set need_version to no, make sure it does not cause -set_version
14266 # flags to be left without arguments
14267 need_version=unknown
14268
14269 case $host_os in
14270 aix3*)
14271   version_type=linux
14272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14273   shlibpath_var=LIBPATH
14274
14275   # AIX 3 has no versioning support, so we append a major version to the name.
14276   soname_spec='${libname}${release}${shared_ext}$major'
14277   ;;
14278
14279 aix4* | aix5*)
14280   version_type=linux
14281   need_lib_prefix=no
14282   need_version=no
14283   hardcode_into_libs=yes
14284   if test "$host_cpu" = ia64; then
14285     # AIX 5 supports IA64
14286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14287     shlibpath_var=LD_LIBRARY_PATH
14288   else
14289     # With GCC up to 2.95.x, collect2 would create an import file
14290     # for dependence libraries.  The import file would start with
14291     # the line `#! .'.  This would cause the generated library to
14292     # depend on `.', always an invalid library.  This was fixed in
14293     # development snapshots of GCC prior to 3.0.
14294     case $host_os in
14295       aix4 | aix4.[01] | aix4.[01].*)
14296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14297            echo ' yes '
14298            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14299         :
14300       else
14301         can_build_shared=no
14302       fi
14303       ;;
14304     esac
14305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14306     # soname into executable. Probably we can add versioning support to
14307     # collect2, so additional links can be useful in future.
14308     if test "$aix_use_runtimelinking" = yes; then
14309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14310       # instead of lib<name>.a to let people know that these are not
14311       # typical AIX shared libraries.
14312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313     else
14314       # We preserve .a as extension for shared libraries through AIX4.2
14315       # and later when we are not doing run time linking.
14316       library_names_spec='${libname}${release}.a $libname.a'
14317       soname_spec='${libname}${release}${shared_ext}$major'
14318     fi
14319     shlibpath_var=LIBPATH
14320   fi
14321   ;;
14322
14323 amigaos*)
14324   library_names_spec='$libname.ixlibrary $libname.a'
14325   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14326   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'
14327   ;;
14328
14329 beos*)
14330   library_names_spec='${libname}${shared_ext}'
14331   dynamic_linker="$host_os ld.so"
14332   shlibpath_var=LIBRARY_PATH
14333   ;;
14334
14335 bsdi[45]*)
14336   version_type=linux
14337   need_version=no
14338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339   soname_spec='${libname}${release}${shared_ext}$major'
14340   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14341   shlibpath_var=LD_LIBRARY_PATH
14342   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14343   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14344   # the default ld.so.conf also contains /usr/contrib/lib and
14345   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14346   # libtool to hard-code these into programs
14347   ;;
14348
14349 cygwin* | mingw* | pw32*)
14350   version_type=windows
14351   shrext_cmds=".dll"
14352   need_version=no
14353   need_lib_prefix=no
14354
14355   case $GCC,$host_os in
14356   yes,cygwin* | yes,mingw* | yes,pw32*)
14357     library_names_spec='$libname.dll.a'
14358     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14359     postinstall_cmds='base_file=`basename \${file}`;
14360       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14361       dldir=$destdir/`dirname \$dlpath`;
14362       test -d \$dldir || mkdir -p \$dldir;
14363       $install_prog $dir/$dlname \$dldir/$dlname'
14364     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14365       dlpath=$dir/\$dldll;
14366        $rm \$dlpath'
14367     shlibpath_overrides_runpath=yes
14368
14369     case $host_os in
14370     cygwin*)
14371       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14372       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14373       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14374       ;;
14375     mingw*)
14376       # MinGW DLLs use traditional 'lib' prefix
14377       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14378       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14379       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14380         # It is most probably a Windows format PATH printed by
14381         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14382         # path with ; separators, and with drive letters. We can handle the
14383         # drive letters (cygwin fileutils understands them), so leave them,
14384         # especially as we might pass files found there to a mingw objdump,
14385         # which wouldn't understand a cygwinified path. Ahh.
14386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14387       else
14388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14389       fi
14390       ;;
14391     pw32*)
14392       # pw32 DLLs use 'pw' prefix rather than 'lib'
14393       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14394       ;;
14395     esac
14396     ;;
14397
14398   *)
14399     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14400     ;;
14401   esac
14402   dynamic_linker='Win32 ld.exe'
14403   # FIXME: first we should search . and the directory the executable is in
14404   shlibpath_var=PATH
14405   ;;
14406
14407 darwin* | rhapsody*)
14408   dynamic_linker="$host_os dyld"
14409   version_type=darwin
14410   need_lib_prefix=no
14411   need_version=no
14412   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14413   soname_spec='${libname}${release}${major}$shared_ext'
14414   shlibpath_overrides_runpath=yes
14415   shlibpath_var=DYLD_LIBRARY_PATH
14416   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14417   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14418   if test "$GCC" = yes; then
14419     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"`
14420   else
14421     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14422   fi
14423   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14424   ;;
14425
14426 dgux*)
14427   version_type=linux
14428   need_lib_prefix=no
14429   need_version=no
14430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14431   soname_spec='${libname}${release}${shared_ext}$major'
14432   shlibpath_var=LD_LIBRARY_PATH
14433   ;;
14434
14435 freebsd1*)
14436   dynamic_linker=no
14437   ;;
14438
14439 kfreebsd*-gnu)
14440   version_type=linux
14441   need_lib_prefix=no
14442   need_version=no
14443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14444   soname_spec='${libname}${release}${shared_ext}$major'
14445   shlibpath_var=LD_LIBRARY_PATH
14446   shlibpath_overrides_runpath=no
14447   hardcode_into_libs=yes
14448   dynamic_linker='GNU ld.so'
14449   ;;
14450
14451 freebsd*)
14452   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14453   version_type=freebsd-$objformat
14454   case $version_type in
14455     freebsd-elf*)
14456       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14457       need_version=no
14458       need_lib_prefix=no
14459       ;;
14460     freebsd-*)
14461       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14462       need_version=yes
14463       ;;
14464   esac
14465   shlibpath_var=LD_LIBRARY_PATH
14466   case $host_os in
14467   freebsd2*)
14468     shlibpath_overrides_runpath=yes
14469     ;;
14470   freebsd3.01* | freebsdelf3.01*)
14471     shlibpath_overrides_runpath=yes
14472     hardcode_into_libs=yes
14473     ;;
14474   *) # from 3.2 on
14475     shlibpath_overrides_runpath=no
14476     hardcode_into_libs=yes
14477     ;;
14478   esac
14479   ;;
14480
14481 gnu*)
14482   version_type=linux
14483   need_lib_prefix=no
14484   need_version=no
14485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14486   soname_spec='${libname}${release}${shared_ext}$major'
14487   shlibpath_var=LD_LIBRARY_PATH
14488   hardcode_into_libs=yes
14489   ;;
14490
14491 hpux9* | hpux10* | hpux11*)
14492   # Give a soname corresponding to the major version so that dld.sl refuses to
14493   # link against other versions.
14494   version_type=sunos
14495   need_lib_prefix=no
14496   need_version=no
14497   case "$host_cpu" in
14498   ia64*)
14499     shrext_cmds='.so'
14500     hardcode_into_libs=yes
14501     dynamic_linker="$host_os dld.so"
14502     shlibpath_var=LD_LIBRARY_PATH
14503     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505     soname_spec='${libname}${release}${shared_ext}$major'
14506     if test "X$HPUX_IA64_MODE" = X32; then
14507       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14508     else
14509       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14510     fi
14511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512     ;;
14513    hppa*64*)
14514      shrext_cmds='.sl'
14515      hardcode_into_libs=yes
14516      dynamic_linker="$host_os dld.sl"
14517      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14518      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14519      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520      soname_spec='${libname}${release}${shared_ext}$major'
14521      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14522      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14523      ;;
14524    *)
14525     shrext_cmds='.sl'
14526     dynamic_linker="$host_os dld.sl"
14527     shlibpath_var=SHLIB_PATH
14528     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530     soname_spec='${libname}${release}${shared_ext}$major'
14531     ;;
14532   esac
14533   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14534   postinstall_cmds='chmod 555 $lib'
14535   ;;
14536
14537 irix5* | irix6* | nonstopux*)
14538   case $host_os in
14539     nonstopux*) version_type=nonstopux ;;
14540     *)
14541         if test "$lt_cv_prog_gnu_ld" = yes; then
14542                 version_type=linux
14543         else
14544                 version_type=irix
14545         fi ;;
14546   esac
14547   need_lib_prefix=no
14548   need_version=no
14549   soname_spec='${libname}${release}${shared_ext}$major'
14550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14551   case $host_os in
14552   irix5* | nonstopux*)
14553     libsuff= shlibsuff=
14554     ;;
14555   *)
14556     case $LD in # libtool.m4 will add one of these switches to LD
14557     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558       libsuff= shlibsuff= libmagic=32-bit;;
14559     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14560       libsuff=32 shlibsuff=N32 libmagic=N32;;
14561     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563     *) libsuff= shlibsuff= libmagic=never-match;;
14564     esac
14565     ;;
14566   esac
14567   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14568   shlibpath_overrides_runpath=no
14569   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14570   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14571   hardcode_into_libs=yes
14572   ;;
14573
14574 # No shared lib support for Linux oldld, aout, or coff.
14575 linux*oldld* | linux*aout* | linux*coff*)
14576   dynamic_linker=no
14577   ;;
14578
14579 # This must be Linux ELF.
14580 linux*)
14581   version_type=linux
14582   need_lib_prefix=no
14583   need_version=no
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585   soname_spec='${libname}${release}${shared_ext}$major'
14586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587   shlibpath_var=LD_LIBRARY_PATH
14588   shlibpath_overrides_runpath=no
14589   # This implies no fast_install, which is unacceptable.
14590   # Some rework will be needed to allow for fast_install
14591   # before this can be enabled.
14592   hardcode_into_libs=yes
14593
14594   # Append ld.so.conf contents to the search path
14595   if test -f /etc/ld.so.conf; then
14596     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14597     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14598   fi
14599
14600   # We used to test for /lib/ld.so.1 and disable shared libraries on
14601   # powerpc, because MkLinux only supported shared libraries with the
14602   # GNU dynamic linker.  Since this was broken with cross compilers,
14603   # most powerpc-linux boxes support dynamic linking these days and
14604   # people can always --disable-shared, the test was removed, and we
14605   # assume the GNU/Linux dynamic linker is in use.
14606   dynamic_linker='GNU/Linux ld.so'
14607   ;;
14608
14609 knetbsd*-gnu)
14610   version_type=linux
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   shlibpath_var=LD_LIBRARY_PATH
14616   shlibpath_overrides_runpath=no
14617   hardcode_into_libs=yes
14618   dynamic_linker='GNU ld.so'
14619   ;;
14620
14621 netbsd*)
14622   version_type=sunos
14623   need_lib_prefix=no
14624   need_version=no
14625   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14627     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628     dynamic_linker='NetBSD (a.out) ld.so'
14629   else
14630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14631     soname_spec='${libname}${release}${shared_ext}$major'
14632     dynamic_linker='NetBSD ld.elf_so'
14633   fi
14634   shlibpath_var=LD_LIBRARY_PATH
14635   shlibpath_overrides_runpath=yes
14636   hardcode_into_libs=yes
14637   ;;
14638
14639 newsos6)
14640   version_type=linux
14641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642   shlibpath_var=LD_LIBRARY_PATH
14643   shlibpath_overrides_runpath=yes
14644   ;;
14645
14646 nto-qnx*)
14647   version_type=linux
14648   need_lib_prefix=no
14649   need_version=no
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651   soname_spec='${libname}${release}${shared_ext}$major'
14652   shlibpath_var=LD_LIBRARY_PATH
14653   shlibpath_overrides_runpath=yes
14654   ;;
14655
14656 openbsd*)
14657   version_type=sunos
14658   need_lib_prefix=no
14659   need_version=no
14660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14662   shlibpath_var=LD_LIBRARY_PATH
14663   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14664     case $host_os in
14665       openbsd2.[89] | openbsd2.[89].*)
14666         shlibpath_overrides_runpath=no
14667         ;;
14668       *)
14669         shlibpath_overrides_runpath=yes
14670         ;;
14671       esac
14672   else
14673     shlibpath_overrides_runpath=yes
14674   fi
14675   ;;
14676
14677 os2*)
14678   libname_spec='$name'
14679   shrext_cmds=".dll"
14680   need_lib_prefix=no
14681   library_names_spec='$libname${shared_ext} $libname.a'
14682   dynamic_linker='OS/2 ld.exe'
14683   shlibpath_var=LIBPATH
14684   ;;
14685
14686 osf3* | osf4* | osf5*)
14687   version_type=osf
14688   need_lib_prefix=no
14689   need_version=no
14690   soname_spec='${libname}${release}${shared_ext}$major'
14691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692   shlibpath_var=LD_LIBRARY_PATH
14693   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14694   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14695   ;;
14696
14697 sco3.2v5*)
14698   version_type=osf
14699   soname_spec='${libname}${release}${shared_ext}$major'
14700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701   shlibpath_var=LD_LIBRARY_PATH
14702   ;;
14703
14704 solaris*)
14705   version_type=linux
14706   need_lib_prefix=no
14707   need_version=no
14708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709   soname_spec='${libname}${release}${shared_ext}$major'
14710   shlibpath_var=LD_LIBRARY_PATH
14711   shlibpath_overrides_runpath=yes
14712   hardcode_into_libs=yes
14713   # ldd complains unless libraries are executable
14714   postinstall_cmds='chmod +x $lib'
14715   ;;
14716
14717 sunos4*)
14718   version_type=sunos
14719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   shlibpath_overrides_runpath=yes
14723   if test "$with_gnu_ld" = yes; then
14724     need_lib_prefix=no
14725   fi
14726   need_version=yes
14727   ;;
14728
14729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14730   version_type=linux
14731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732   soname_spec='${libname}${release}${shared_ext}$major'
14733   shlibpath_var=LD_LIBRARY_PATH
14734   case $host_vendor in
14735     sni)
14736       shlibpath_overrides_runpath=no
14737       need_lib_prefix=no
14738       export_dynamic_flag_spec='${wl}-Blargedynsym'
14739       runpath_var=LD_RUN_PATH
14740       ;;
14741     siemens)
14742       need_lib_prefix=no
14743       ;;
14744     motorola)
14745       need_lib_prefix=no
14746       need_version=no
14747       shlibpath_overrides_runpath=no
14748       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14749       ;;
14750   esac
14751   ;;
14752
14753 sysv4*MP*)
14754   if test -d /usr/nec ;then
14755     version_type=linux
14756     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14757     soname_spec='$libname${shared_ext}.$major'
14758     shlibpath_var=LD_LIBRARY_PATH
14759   fi
14760   ;;
14761
14762 uts4*)
14763   version_type=linux
14764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765   soname_spec='${libname}${release}${shared_ext}$major'
14766   shlibpath_var=LD_LIBRARY_PATH
14767   ;;
14768
14769 *)
14770   dynamic_linker=no
14771   ;;
14772 esac
14773 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14774 echo "${ECHO_T}$dynamic_linker" >&6
14775 test "$dynamic_linker" = no && can_build_shared=no
14776
14777 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14778 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14779 hardcode_action_F77=
14780 if test -n "$hardcode_libdir_flag_spec_F77" || \
14781    test -n "$runpath_var_F77" || \
14782    test "X$hardcode_automatic_F77" = "Xyes" ; then
14783
14784   # We can hardcode non-existant directories.
14785   if test "$hardcode_direct_F77" != no &&
14786      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14787      # have to relink, otherwise we might link with an installed library
14788      # when we should be linking with a yet-to-be-installed one
14789      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14790      test "$hardcode_minus_L_F77" != no; then
14791     # Linking always hardcodes the temporary library directory.
14792     hardcode_action_F77=relink
14793   else
14794     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14795     hardcode_action_F77=immediate
14796   fi
14797 else
14798   # We cannot hardcode anything, or else we can only hardcode existing
14799   # directories.
14800   hardcode_action_F77=unsupported
14801 fi
14802 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14803 echo "${ECHO_T}$hardcode_action_F77" >&6
14804
14805 if test "$hardcode_action_F77" = relink; then
14806   # Fast installation is not supported
14807   enable_fast_install=no
14808 elif test "$shlibpath_overrides_runpath" = yes ||
14809      test "$enable_shared" = no; then
14810   # Fast installation is not necessary
14811   enable_fast_install=needless
14812 fi
14813
14814 striplib=
14815 old_striplib=
14816 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14817 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14818 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14819   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14820   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14821   echo "$as_me:$LINENO: result: yes" >&5
14822 echo "${ECHO_T}yes" >&6
14823 else
14824 # FIXME - insert some real tests, host_os isn't really good enough
14825   case $host_os in
14826    darwin*)
14827        if test -n "$STRIP" ; then
14828          striplib="$STRIP -x"
14829          echo "$as_me:$LINENO: result: yes" >&5
14830 echo "${ECHO_T}yes" >&6
14831        else
14832   echo "$as_me:$LINENO: result: no" >&5
14833 echo "${ECHO_T}no" >&6
14834 fi
14835        ;;
14836    *)
14837   echo "$as_me:$LINENO: result: no" >&5
14838 echo "${ECHO_T}no" >&6
14839     ;;
14840   esac
14841 fi
14842
14843
14844
14845 # The else clause should only fire when bootstrapping the
14846 # libtool distribution, otherwise you forgot to ship ltmain.sh
14847 # with your package, and you will get complaints that there are
14848 # no rules to generate ltmain.sh.
14849 if test -f "$ltmain"; then
14850   # See if we are running on zsh, and set the options which allow our commands through
14851   # without removal of \ escapes.
14852   if test -n "${ZSH_VERSION+set}" ; then
14853     setopt NO_GLOB_SUBST
14854   fi
14855   # Now quote all the things that may contain metacharacters while being
14856   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14857   # variables and quote the copies for generation of the libtool script.
14858   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14859     SED SHELL STRIP \
14860     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14861     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14862     deplibs_check_method reload_flag reload_cmds need_locks \
14863     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14864     lt_cv_sys_global_symbol_to_c_name_address \
14865     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14866     old_postinstall_cmds old_postuninstall_cmds \
14867     compiler_F77 \
14868     CC_F77 \
14869     LD_F77 \
14870     lt_prog_compiler_wl_F77 \
14871     lt_prog_compiler_pic_F77 \
14872     lt_prog_compiler_static_F77 \
14873     lt_prog_compiler_no_builtin_flag_F77 \
14874     export_dynamic_flag_spec_F77 \
14875     thread_safe_flag_spec_F77 \
14876     whole_archive_flag_spec_F77 \
14877     enable_shared_with_static_runtimes_F77 \
14878     old_archive_cmds_F77 \
14879     old_archive_from_new_cmds_F77 \
14880     predep_objects_F77 \
14881     postdep_objects_F77 \
14882     predeps_F77 \
14883     postdeps_F77 \
14884     compiler_lib_search_path_F77 \
14885     archive_cmds_F77 \
14886     archive_expsym_cmds_F77 \
14887     postinstall_cmds_F77 \
14888     postuninstall_cmds_F77 \
14889     old_archive_from_expsyms_cmds_F77 \
14890     allow_undefined_flag_F77 \
14891     no_undefined_flag_F77 \
14892     export_symbols_cmds_F77 \
14893     hardcode_libdir_flag_spec_F77 \
14894     hardcode_libdir_flag_spec_ld_F77 \
14895     hardcode_libdir_separator_F77 \
14896     hardcode_automatic_F77 \
14897     module_cmds_F77 \
14898     module_expsym_cmds_F77 \
14899     lt_cv_prog_compiler_c_o_F77 \
14900     exclude_expsyms_F77 \
14901     include_expsyms_F77; do
14902
14903     case $var in
14904     old_archive_cmds_F77 | \
14905     old_archive_from_new_cmds_F77 | \
14906     archive_cmds_F77 | \
14907     archive_expsym_cmds_F77 | \
14908     module_cmds_F77 | \
14909     module_expsym_cmds_F77 | \
14910     old_archive_from_expsyms_cmds_F77 | \
14911     export_symbols_cmds_F77 | \
14912     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14913     postinstall_cmds | postuninstall_cmds | \
14914     old_postinstall_cmds | old_postuninstall_cmds | \
14915     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14916       # Double-quote double-evaled strings.
14917       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14918       ;;
14919     *)
14920       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14921       ;;
14922     esac
14923   done
14924
14925   case $lt_echo in
14926   *'\$0 --fallback-echo"')
14927     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14928     ;;
14929   esac
14930
14931 cfgfile="$ofile"
14932
14933   cat <<__EOF__ >> "$cfgfile"
14934 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14935
14936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14937
14938 # Shell to use when invoking shell scripts.
14939 SHELL=$lt_SHELL
14940
14941 # Whether or not to build shared libraries.
14942 build_libtool_libs=$enable_shared
14943
14944 # Whether or not to build static libraries.
14945 build_old_libs=$enable_static
14946
14947 # Whether or not to add -lc for building shared libraries.
14948 build_libtool_need_lc=$archive_cmds_need_lc_F77
14949
14950 # Whether or not to disallow shared libs when runtime libs are static
14951 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14952
14953 # Whether or not to optimize for fast installation.
14954 fast_install=$enable_fast_install
14955
14956 # The host system.
14957 host_alias=$host_alias
14958 host=$host
14959
14960 # An echo program that does not interpret backslashes.
14961 echo=$lt_echo
14962
14963 # The archiver.
14964 AR=$lt_AR
14965 AR_FLAGS=$lt_AR_FLAGS
14966
14967 # A C compiler.
14968 LTCC=$lt_LTCC
14969
14970 # A language-specific compiler.
14971 CC=$lt_compiler_F77
14972
14973 # Is the compiler the GNU C compiler?
14974 with_gcc=$GCC_F77
14975
14976 # An ERE matcher.
14977 EGREP=$lt_EGREP
14978
14979 # The linker used to build libraries.
14980 LD=$lt_LD_F77
14981
14982 # Whether we need hard or soft links.
14983 LN_S=$lt_LN_S
14984
14985 # A BSD-compatible nm program.
14986 NM=$lt_NM
14987
14988 # A symbol stripping program
14989 STRIP=$lt_STRIP
14990
14991 # Used to examine libraries when file_magic_cmd begins "file"
14992 MAGIC_CMD=$MAGIC_CMD
14993
14994 # Used on cygwin: DLL creation program.
14995 DLLTOOL="$DLLTOOL"
14996
14997 # Used on cygwin: object dumper.
14998 OBJDUMP="$OBJDUMP"
14999
15000 # Used on cygwin: assembler.
15001 AS="$AS"
15002
15003 # The name of the directory that contains temporary libtool files.
15004 objdir=$objdir
15005
15006 # How to create reloadable object files.
15007 reload_flag=$lt_reload_flag
15008 reload_cmds=$lt_reload_cmds
15009
15010 # How to pass a linker flag through the compiler.
15011 wl=$lt_lt_prog_compiler_wl_F77
15012
15013 # Object file suffix (normally "o").
15014 objext="$ac_objext"
15015
15016 # Old archive suffix (normally "a").
15017 libext="$libext"
15018
15019 # Shared library suffix (normally ".so").
15020 shrext_cmds='$shrext_cmds'
15021
15022 # Executable file suffix (normally "").
15023 exeext="$exeext"
15024
15025 # Additional compiler flags for building library objects.
15026 pic_flag=$lt_lt_prog_compiler_pic_F77
15027 pic_mode=$pic_mode
15028
15029 # What is the maximum length of a command?
15030 max_cmd_len=$lt_cv_sys_max_cmd_len
15031
15032 # Does compiler simultaneously support -c and -o options?
15033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15034
15035 # Must we lock files when doing compilation ?
15036 need_locks=$lt_need_locks
15037
15038 # Do we need the lib prefix for modules?
15039 need_lib_prefix=$need_lib_prefix
15040
15041 # Do we need a version for libraries?
15042 need_version=$need_version
15043
15044 # Whether dlopen is supported.
15045 dlopen_support=$enable_dlopen
15046
15047 # Whether dlopen of programs is supported.
15048 dlopen_self=$enable_dlopen_self
15049
15050 # Whether dlopen of statically linked programs is supported.
15051 dlopen_self_static=$enable_dlopen_self_static
15052
15053 # Compiler flag to prevent dynamic linking.
15054 link_static_flag=$lt_lt_prog_compiler_static_F77
15055
15056 # Compiler flag to turn off builtin functions.
15057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15058
15059 # Compiler flag to allow reflexive dlopens.
15060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15061
15062 # Compiler flag to generate shared objects directly from archives.
15063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15064
15065 # Compiler flag to generate thread-safe objects.
15066 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15067
15068 # Library versioning type.
15069 version_type=$version_type
15070
15071 # Format of library name prefix.
15072 libname_spec=$lt_libname_spec
15073
15074 # List of archive names.  First name is the real one, the rest are links.
15075 # The last name is the one that the linker finds with -lNAME.
15076 library_names_spec=$lt_library_names_spec
15077
15078 # The coded name of the library, if different from the real name.
15079 soname_spec=$lt_soname_spec
15080
15081 # Commands used to build and install an old-style archive.
15082 RANLIB=$lt_RANLIB
15083 old_archive_cmds=$lt_old_archive_cmds_F77
15084 old_postinstall_cmds=$lt_old_postinstall_cmds
15085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15086
15087 # Create an old-style archive from a shared archive.
15088 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15089
15090 # Create a temporary old-style archive to link instead of a shared archive.
15091 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15092
15093 # Commands used to build and install a shared archive.
15094 archive_cmds=$lt_archive_cmds_F77
15095 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15096 postinstall_cmds=$lt_postinstall_cmds
15097 postuninstall_cmds=$lt_postuninstall_cmds
15098
15099 # Commands used to build a loadable module (assumed same as above if empty)
15100 module_cmds=$lt_module_cmds_F77
15101 module_expsym_cmds=$lt_module_expsym_cmds_F77
15102
15103 # Commands to strip libraries.
15104 old_striplib=$lt_old_striplib
15105 striplib=$lt_striplib
15106
15107 # Dependencies to place before the objects being linked to create a
15108 # shared library.
15109 predep_objects=$lt_predep_objects_F77
15110
15111 # Dependencies to place after the objects being linked to create a
15112 # shared library.
15113 postdep_objects=$lt_postdep_objects_F77
15114
15115 # Dependencies to place before the objects being linked to create a
15116 # shared library.
15117 predeps=$lt_predeps_F77
15118
15119 # Dependencies to place after the objects being linked to create a
15120 # shared library.
15121 postdeps=$lt_postdeps_F77
15122
15123 # The library search path used internally by the compiler when linking
15124 # a shared library.
15125 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15126
15127 # Method to check whether dependent libraries are shared objects.
15128 deplibs_check_method=$lt_deplibs_check_method
15129
15130 # Command to use when deplibs_check_method == file_magic.
15131 file_magic_cmd=$lt_file_magic_cmd
15132
15133 # Flag that allows shared libraries with undefined symbols to be built.
15134 allow_undefined_flag=$lt_allow_undefined_flag_F77
15135
15136 # Flag that forces no undefined symbols.
15137 no_undefined_flag=$lt_no_undefined_flag_F77
15138
15139 # Commands used to finish a libtool library installation in a directory.
15140 finish_cmds=$lt_finish_cmds
15141
15142 # Same as above, but a single script fragment to be evaled but not shown.
15143 finish_eval=$lt_finish_eval
15144
15145 # Take the output of nm and produce a listing of raw symbols and C names.
15146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15147
15148 # Transform the output of nm in a proper C declaration
15149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15150
15151 # Transform the output of nm in a C name address pair
15152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15153
15154 # This is the shared library runtime path variable.
15155 runpath_var=$runpath_var
15156
15157 # This is the shared library path variable.
15158 shlibpath_var=$shlibpath_var
15159
15160 # Is shlibpath searched before the hard-coded library search path?
15161 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15162
15163 # How to hardcode a shared library path into an executable.
15164 hardcode_action=$hardcode_action_F77
15165
15166 # Whether we should hardcode library paths into libraries.
15167 hardcode_into_libs=$hardcode_into_libs
15168
15169 # Flag to hardcode \$libdir into a binary during linking.
15170 # This must work even if \$libdir does not exist.
15171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15172
15173 # If ld is used when linking, flag to hardcode \$libdir into
15174 # a binary during linking. This must work even if \$libdir does
15175 # not exist.
15176 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15177
15178 # Whether we need a single -rpath flag with a separated argument.
15179 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15180
15181 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15182 # resulting binary.
15183 hardcode_direct=$hardcode_direct_F77
15184
15185 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15186 # resulting binary.
15187 hardcode_minus_L=$hardcode_minus_L_F77
15188
15189 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15190 # the resulting binary.
15191 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15192
15193 # Set to yes if building a shared library automatically hardcodes DIR into the library
15194 # and all subsequent libraries and executables linked against it.
15195 hardcode_automatic=$hardcode_automatic_F77
15196
15197 # Variables whose values should be saved in libtool wrapper scripts and
15198 # restored at relink time.
15199 variables_saved_for_relink="$variables_saved_for_relink"
15200
15201 # Whether libtool must link a program against all its dependency libraries.
15202 link_all_deplibs=$link_all_deplibs_F77
15203
15204 # Compile-time system search path for libraries
15205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15206
15207 # Run-time system search path for libraries
15208 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15209
15210 # Fix the shell variable \$srcfile for the compiler.
15211 fix_srcfile_path="$fix_srcfile_path_F77"
15212
15213 # Set to yes if exported symbols are required.
15214 always_export_symbols=$always_export_symbols_F77
15215
15216 # The commands to list exported symbols.
15217 export_symbols_cmds=$lt_export_symbols_cmds_F77
15218
15219 # The commands to extract the exported symbol list from a shared archive.
15220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15221
15222 # Symbols that should not be listed in the preloaded symbols.
15223 exclude_expsyms=$lt_exclude_expsyms_F77
15224
15225 # Symbols that must always be exported.
15226 include_expsyms=$lt_include_expsyms_F77
15227
15228 # ### END LIBTOOL TAG CONFIG: $tagname
15229
15230 __EOF__
15231
15232
15233 else
15234   # If there is no Makefile yet, we rely on a make rule to execute
15235   # `config.status --recheck' to rerun these tests and create the
15236   # libtool script then.
15237   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15238   if test -f "$ltmain_in"; then
15239     test -f Makefile && make "$ltmain"
15240   fi
15241 fi
15242
15243
15244 ac_ext=c
15245 ac_cpp='$CPP $CPPFLAGS'
15246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15249
15250 CC="$lt_save_CC"
15251
15252         else
15253           tagname=""
15254         fi
15255         ;;
15256
15257       GCJ)
15258         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15259           ac_ext=c
15260 ac_cpp='$CPP $CPPFLAGS'
15261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15264
15265
15266 # Source file extension for Java test sources.
15267 ac_ext=java
15268
15269 # Object file extension for compiled Java test sources.
15270 objext=o
15271 objext_GCJ=$objext
15272
15273 # Code to be used in simple compile tests
15274 lt_simple_compile_test_code="class foo {}\n"
15275
15276 # Code to be used in simple link tests
15277 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15278
15279 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15280
15281 # If no C compiler was specified, use CC.
15282 LTCC=${LTCC-"$CC"}
15283
15284 # Allow CC to be a program name with arguments.
15285 compiler=$CC
15286
15287
15288 # Allow CC to be a program name with arguments.
15289 lt_save_CC="$CC"
15290 CC=${GCJ-"gcj"}
15291 compiler=$CC
15292 compiler_GCJ=$CC
15293
15294 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15295 archive_cmds_need_lc_GCJ=no
15296
15297
15298 lt_prog_compiler_no_builtin_flag_GCJ=
15299
15300 if test "$GCC" = yes; then
15301   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15302
15303
15304 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15305 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15306 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15307   echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309   lt_cv_prog_compiler_rtti_exceptions=no
15310   ac_outfile=conftest.$ac_objext
15311    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15312    lt_compiler_flag="-fno-rtti -fno-exceptions"
15313    # Insert the option either (1) after the last *FLAGS variable, or
15314    # (2) before a word containing "conftest.", or (3) at the end.
15315    # Note that $ac_compile itself does not contain backslashes and begins
15316    # with a dollar sign (not a hyphen), so the echo should work correctly.
15317    # The option is referenced via a variable to avoid confusing sed.
15318    lt_compile=`echo "$ac_compile" | $SED \
15319    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15320    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321    -e 's:$: $lt_compiler_flag:'`
15322    (eval echo "\"\$as_me:15322: $lt_compile\"" >&5)
15323    (eval "$lt_compile" 2>conftest.err)
15324    ac_status=$?
15325    cat conftest.err >&5
15326    echo "$as_me:15326: \$? = $ac_status" >&5
15327    if (exit $ac_status) && test -s "$ac_outfile"; then
15328      # The compiler can only warn and ignore the option if not recognized
15329      # So say no if there are warnings
15330      if test ! -s conftest.err; then
15331        lt_cv_prog_compiler_rtti_exceptions=yes
15332      fi
15333    fi
15334    $rm conftest*
15335
15336 fi
15337 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15338 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15339
15340 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15341     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15342 else
15343     :
15344 fi
15345
15346 fi
15347
15348 lt_prog_compiler_wl_GCJ=
15349 lt_prog_compiler_pic_GCJ=
15350 lt_prog_compiler_static_GCJ=
15351
15352 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15353 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15354
15355   if test "$GCC" = yes; then
15356     lt_prog_compiler_wl_GCJ='-Wl,'
15357     lt_prog_compiler_static_GCJ='-static'
15358
15359     case $host_os in
15360       aix*)
15361       # All AIX code is PIC.
15362       if test "$host_cpu" = ia64; then
15363         # AIX 5 now supports IA64 processor
15364         lt_prog_compiler_static_GCJ='-Bstatic'
15365       fi
15366       ;;
15367
15368     amigaos*)
15369       # FIXME: we need at least 68020 code to build shared libraries, but
15370       # adding the `-m68020' flag to GCC prevents building anything better,
15371       # like `-m68040'.
15372       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15373       ;;
15374
15375     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15376       # PIC is the default for these OSes.
15377       ;;
15378
15379     mingw* | pw32* | os2*)
15380       # This hack is so that the source file can tell whether it is being
15381       # built for inclusion in a dll (and should export symbols for example).
15382       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15383       ;;
15384
15385     darwin* | rhapsody*)
15386       # PIC is the default on this platform
15387       # Common symbols not allowed in MH_DYLIB files
15388       lt_prog_compiler_pic_GCJ='-fno-common'
15389       ;;
15390
15391     msdosdjgpp*)
15392       # Just because we use GCC doesn't mean we suddenly get shared libraries
15393       # on systems that don't support them.
15394       lt_prog_compiler_can_build_shared_GCJ=no
15395       enable_shared=no
15396       ;;
15397
15398     sysv4*MP*)
15399       if test -d /usr/nec; then
15400         lt_prog_compiler_pic_GCJ=-Kconform_pic
15401       fi
15402       ;;
15403
15404     hpux*)
15405       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15406       # not for PA HP-UX.
15407       case "$host_cpu" in
15408       hppa*64*|ia64*)
15409         # +Z the default
15410         ;;
15411       *)
15412         lt_prog_compiler_pic_GCJ='-fPIC'
15413         ;;
15414       esac
15415       ;;
15416
15417     *)
15418       lt_prog_compiler_pic_GCJ='-fPIC'
15419       ;;
15420     esac
15421   else
15422     # PORTME Check for flag to pass linker flags through the system compiler.
15423     case $host_os in
15424     aix*)
15425       lt_prog_compiler_wl_GCJ='-Wl,'
15426       if test "$host_cpu" = ia64; then
15427         # AIX 5 now supports IA64 processor
15428         lt_prog_compiler_static_GCJ='-Bstatic'
15429       else
15430         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15431       fi
15432       ;;
15433       darwin*)
15434         # PIC is the default on this platform
15435         # Common symbols not allowed in MH_DYLIB files
15436        case "$cc_basename" in
15437          xlc*)
15438          lt_prog_compiler_pic_GCJ='-qnocommon'
15439          lt_prog_compiler_wl_GCJ='-Wl,'
15440          ;;
15441        esac
15442        ;;
15443
15444     mingw* | pw32* | os2*)
15445       # This hack is so that the source file can tell whether it is being
15446       # built for inclusion in a dll (and should export symbols for example).
15447       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15448       ;;
15449
15450     hpux9* | hpux10* | hpux11*)
15451       lt_prog_compiler_wl_GCJ='-Wl,'
15452       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15453       # not for PA HP-UX.
15454       case "$host_cpu" in
15455       hppa*64*|ia64*)
15456         # +Z the default
15457         ;;
15458       *)
15459         lt_prog_compiler_pic_GCJ='+Z'
15460         ;;
15461       esac
15462       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15463       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15464       ;;
15465
15466     irix5* | irix6* | nonstopux*)
15467       lt_prog_compiler_wl_GCJ='-Wl,'
15468       # PIC (with -KPIC) is the default.
15469       lt_prog_compiler_static_GCJ='-non_shared'
15470       ;;
15471
15472     newsos6)
15473       lt_prog_compiler_pic_GCJ='-KPIC'
15474       lt_prog_compiler_static_GCJ='-Bstatic'
15475       ;;
15476
15477     linux*)
15478       case $CC in
15479       icc* | ecc*)
15480         lt_prog_compiler_wl_GCJ='-Wl,'
15481         lt_prog_compiler_pic_GCJ='-KPIC'
15482         lt_prog_compiler_static_GCJ='-static'
15483         ;;
15484       ccc*)
15485         lt_prog_compiler_wl_GCJ='-Wl,'
15486         # All Alpha code is PIC.
15487         lt_prog_compiler_static_GCJ='-non_shared'
15488         ;;
15489       esac
15490       ;;
15491
15492     osf3* | osf4* | osf5*)
15493       lt_prog_compiler_wl_GCJ='-Wl,'
15494       # All OSF/1 code is PIC.
15495       lt_prog_compiler_static_GCJ='-non_shared'
15496       ;;
15497
15498     sco3.2v5*)
15499       lt_prog_compiler_pic_GCJ='-Kpic'
15500       lt_prog_compiler_static_GCJ='-dn'
15501       ;;
15502
15503     solaris*)
15504       lt_prog_compiler_wl_GCJ='-Wl,'
15505       lt_prog_compiler_pic_GCJ='-KPIC'
15506       lt_prog_compiler_static_GCJ='-Bstatic'
15507       ;;
15508
15509     sunos4*)
15510       lt_prog_compiler_wl_GCJ='-Qoption ld '
15511       lt_prog_compiler_pic_GCJ='-PIC'
15512       lt_prog_compiler_static_GCJ='-Bstatic'
15513       ;;
15514
15515     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15516       lt_prog_compiler_wl_GCJ='-Wl,'
15517       lt_prog_compiler_pic_GCJ='-KPIC'
15518       lt_prog_compiler_static_GCJ='-Bstatic'
15519       ;;
15520
15521     sysv4*MP*)
15522       if test -d /usr/nec ;then
15523         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15524         lt_prog_compiler_static_GCJ='-Bstatic'
15525       fi
15526       ;;
15527
15528     uts4*)
15529       lt_prog_compiler_pic_GCJ='-pic'
15530       lt_prog_compiler_static_GCJ='-Bstatic'
15531       ;;
15532
15533     *)
15534       lt_prog_compiler_can_build_shared_GCJ=no
15535       ;;
15536     esac
15537   fi
15538
15539 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15540 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15541
15542 #
15543 # Check to make sure the PIC flag actually works.
15544 #
15545 if test -n "$lt_prog_compiler_pic_GCJ"; then
15546
15547 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15549 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   lt_prog_compiler_pic_works_GCJ=no
15553   ac_outfile=conftest.$ac_objext
15554    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15555    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15556    # Insert the option either (1) after the last *FLAGS variable, or
15557    # (2) before a word containing "conftest.", or (3) at the end.
15558    # Note that $ac_compile itself does not contain backslashes and begins
15559    # with a dollar sign (not a hyphen), so the echo should work correctly.
15560    # The option is referenced via a variable to avoid confusing sed.
15561    lt_compile=`echo "$ac_compile" | $SED \
15562    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15564    -e 's:$: $lt_compiler_flag:'`
15565    (eval echo "\"\$as_me:15565: $lt_compile\"" >&5)
15566    (eval "$lt_compile" 2>conftest.err)
15567    ac_status=$?
15568    cat conftest.err >&5
15569    echo "$as_me:15569: \$? = $ac_status" >&5
15570    if (exit $ac_status) && test -s "$ac_outfile"; then
15571      # The compiler can only warn and ignore the option if not recognized
15572      # So say no if there are warnings
15573      if test ! -s conftest.err; then
15574        lt_prog_compiler_pic_works_GCJ=yes
15575      fi
15576    fi
15577    $rm conftest*
15578
15579 fi
15580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15581 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15582
15583 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15584     case $lt_prog_compiler_pic_GCJ in
15585      "" | " "*) ;;
15586      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15587      esac
15588 else
15589     lt_prog_compiler_pic_GCJ=
15590      lt_prog_compiler_can_build_shared_GCJ=no
15591 fi
15592
15593 fi
15594 case "$host_os" in
15595   # For platforms which do not support PIC, -DPIC is meaningless:
15596   *djgpp*)
15597     lt_prog_compiler_pic_GCJ=
15598     ;;
15599   *)
15600     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15601     ;;
15602 esac
15603
15604 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15605 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15606 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15607   echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609   lt_cv_prog_compiler_c_o_GCJ=no
15610    $rm -r conftest 2>/dev/null
15611    mkdir conftest
15612    cd conftest
15613    mkdir out
15614    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15615
15616    lt_compiler_flag="-o out/conftest2.$ac_objext"
15617    # Insert the option either (1) after the last *FLAGS variable, or
15618    # (2) before a word containing "conftest.", or (3) at the end.
15619    # Note that $ac_compile itself does not contain backslashes and begins
15620    # with a dollar sign (not a hyphen), so the echo should work correctly.
15621    lt_compile=`echo "$ac_compile" | $SED \
15622    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15624    -e 's:$: $lt_compiler_flag:'`
15625    (eval echo "\"\$as_me:15625: $lt_compile\"" >&5)
15626    (eval "$lt_compile" 2>out/conftest.err)
15627    ac_status=$?
15628    cat out/conftest.err >&5
15629    echo "$as_me:15629: \$? = $ac_status" >&5
15630    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15631    then
15632      # The compiler can only warn and ignore the option if not recognized
15633      # So say no if there are warnings
15634      if test ! -s out/conftest.err; then
15635        lt_cv_prog_compiler_c_o_GCJ=yes
15636      fi
15637    fi
15638    chmod u+w .
15639    $rm conftest*
15640    # SGI C++ compiler will create directory out/ii_files/ for
15641    # template instantiation
15642    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15643    $rm out/* && rmdir out
15644    cd ..
15645    rmdir conftest
15646    $rm conftest*
15647
15648 fi
15649 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15651
15652
15653 hard_links="nottested"
15654 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15655   # do not overwrite the value of need_locks provided by the user
15656   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15657 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15658   hard_links=yes
15659   $rm conftest*
15660   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15661   touch conftest.a
15662   ln conftest.a conftest.b 2>&5 || hard_links=no
15663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15664   echo "$as_me:$LINENO: result: $hard_links" >&5
15665 echo "${ECHO_T}$hard_links" >&6
15666   if test "$hard_links" = no; then
15667     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15668 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15669     need_locks=warn
15670   fi
15671 else
15672   need_locks=no
15673 fi
15674
15675 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15676 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15677
15678   runpath_var=
15679   allow_undefined_flag_GCJ=
15680   enable_shared_with_static_runtimes_GCJ=no
15681   archive_cmds_GCJ=
15682   archive_expsym_cmds_GCJ=
15683   old_archive_From_new_cmds_GCJ=
15684   old_archive_from_expsyms_cmds_GCJ=
15685   export_dynamic_flag_spec_GCJ=
15686   whole_archive_flag_spec_GCJ=
15687   thread_safe_flag_spec_GCJ=
15688   hardcode_libdir_flag_spec_GCJ=
15689   hardcode_libdir_flag_spec_ld_GCJ=
15690   hardcode_libdir_separator_GCJ=
15691   hardcode_direct_GCJ=no
15692   hardcode_minus_L_GCJ=no
15693   hardcode_shlibpath_var_GCJ=unsupported
15694   link_all_deplibs_GCJ=unknown
15695   hardcode_automatic_GCJ=no
15696   module_cmds_GCJ=
15697   module_expsym_cmds_GCJ=
15698   always_export_symbols_GCJ=no
15699   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15700   # include_expsyms should be a list of space-separated symbols to be *always*
15701   # included in the symbol list
15702   include_expsyms_GCJ=
15703   # exclude_expsyms can be an extended regexp of symbols to exclude
15704   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15705   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15706   # as well as any symbol that contains `d'.
15707   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15708   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15709   # platforms (ab)use it in PIC code, but their linkers get confused if
15710   # the symbol is explicitly referenced.  Since portable code cannot
15711   # rely on this symbol name, it's probably fine to never include it in
15712   # preloaded symbol tables.
15713   extract_expsyms_cmds=
15714
15715   case $host_os in
15716   cygwin* | mingw* | pw32*)
15717     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15718     # When not using gcc, we currently assume that we are using
15719     # Microsoft Visual C++.
15720     if test "$GCC" != yes; then
15721       with_gnu_ld=no
15722     fi
15723     ;;
15724   openbsd*)
15725     with_gnu_ld=no
15726     ;;
15727   esac
15728
15729   ld_shlibs_GCJ=yes
15730   if test "$with_gnu_ld" = yes; then
15731     # If archive_cmds runs LD, not CC, wlarc should be empty
15732     wlarc='${wl}'
15733
15734     # See if GNU ld supports shared libraries.
15735     case $host_os in
15736     aix3* | aix4* | aix5*)
15737       # On AIX/PPC, the GNU linker is very broken
15738       if test "$host_cpu" != ia64; then
15739         ld_shlibs_GCJ=no
15740         cat <<EOF 1>&2
15741
15742 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15743 *** to be unable to reliably create shared libraries on AIX.
15744 *** Therefore, libtool is disabling shared libraries support.  If you
15745 *** really care for shared libraries, you may want to modify your PATH
15746 *** so that a non-GNU linker is found, and then restart.
15747
15748 EOF
15749       fi
15750       ;;
15751
15752     amigaos*)
15753       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)'
15754       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15755       hardcode_minus_L_GCJ=yes
15756
15757       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15758       # that the semantics of dynamic libraries on AmigaOS, at least up
15759       # to version 4, is to share data among multiple programs linked
15760       # with the same dynamic library.  Since this doesn't match the
15761       # behavior of shared libraries on other platforms, we can't use
15762       # them.
15763       ld_shlibs_GCJ=no
15764       ;;
15765
15766     beos*)
15767       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15768         allow_undefined_flag_GCJ=unsupported
15769         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15770         # support --undefined.  This deserves some investigation.  FIXME
15771         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772       else
15773         ld_shlibs_GCJ=no
15774       fi
15775       ;;
15776
15777     cygwin* | mingw* | pw32*)
15778       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15779       # as there is no search path for DLLs.
15780       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781       allow_undefined_flag_GCJ=unsupported
15782       always_export_symbols_GCJ=no
15783       enable_shared_with_static_runtimes_GCJ=yes
15784       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15785
15786       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15787         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15788         # If the export-symbols file already is a .def file (1st line
15789         # is EXPORTS), use it as is; otherwise, prepend...
15790         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15791           cp $export_symbols $output_objdir/$soname.def;
15792         else
15793           echo EXPORTS > $output_objdir/$soname.def;
15794           cat $export_symbols >> $output_objdir/$soname.def;
15795         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15796       else
15797         ld_shlibs=no
15798       fi
15799       ;;
15800
15801     netbsd*)
15802       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15803         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15804         wlarc=
15805       else
15806         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15808       fi
15809       ;;
15810
15811     solaris* | sysv5*)
15812       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15813         ld_shlibs_GCJ=no
15814         cat <<EOF 1>&2
15815
15816 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15817 *** create shared libraries on Solaris systems.  Therefore, libtool
15818 *** is disabling shared libraries support.  We urge you to upgrade GNU
15819 *** binutils to release 2.9.1 or newer.  Another option is to modify
15820 *** your PATH or compiler configuration so that the native linker is
15821 *** used, and then restart.
15822
15823 EOF
15824       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15825         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15826         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15827       else
15828         ld_shlibs_GCJ=no
15829       fi
15830       ;;
15831
15832     sunos4*)
15833       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15834       wlarc=
15835       hardcode_direct_GCJ=yes
15836       hardcode_shlibpath_var_GCJ=no
15837       ;;
15838
15839   linux*)
15840     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15841         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842         archive_cmds_GCJ="$tmp_archive_cmds"
15843       supports_anon_versioning=no
15844       case `$LD -v 2>/dev/null` in
15845         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15846         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15847         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15848         *\ 2.11.*) ;; # other 2.11 versions
15849         *) supports_anon_versioning=yes ;;
15850       esac
15851       if test $supports_anon_versioning = yes; then
15852         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15853         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15854       else
15855         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15856       fi
15857     else
15858       ld_shlibs_GCJ=no
15859     fi
15860     ;;
15861
15862     *)
15863       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15864         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15865         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15866       else
15867         ld_shlibs_GCJ=no
15868       fi
15869       ;;
15870     esac
15871
15872     if test "$ld_shlibs_GCJ" = yes; then
15873       runpath_var=LD_RUN_PATH
15874       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15875       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15876       # ancient GNU ld didn't support --whole-archive et. al.
15877       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15878         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15879       else
15880         whole_archive_flag_spec_GCJ=
15881       fi
15882     fi
15883   else
15884     # PORTME fill in a description of your system's linker (not GNU ld)
15885     case $host_os in
15886     aix3*)
15887       allow_undefined_flag_GCJ=unsupported
15888       always_export_symbols_GCJ=yes
15889       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'
15890       # Note: this linker hardcodes the directories in LIBPATH if there
15891       # are no directories specified by -L.
15892       hardcode_minus_L_GCJ=yes
15893       if test "$GCC" = yes && test -z "$link_static_flag"; then
15894         # Neither direct hardcoding nor static linking is supported with a
15895         # broken collect2.
15896         hardcode_direct_GCJ=unsupported
15897       fi
15898       ;;
15899
15900     aix4* | aix5*)
15901       if test "$host_cpu" = ia64; then
15902         # On IA64, the linker does run time linking by default, so we don't
15903         # have to do anything special.
15904         aix_use_runtimelinking=no
15905         exp_sym_flag='-Bexport'
15906         no_entry_flag=""
15907       else
15908         # If we're using GNU nm, then we don't want the "-C" option.
15909         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15910         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15911           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'
15912         else
15913           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'
15914         fi
15915         aix_use_runtimelinking=no
15916
15917         # Test if we are trying to use run time linking or normal
15918         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15919         # need to do runtime linking.
15920         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15921           for ld_flag in $LDFLAGS; do
15922           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15923             aix_use_runtimelinking=yes
15924             break
15925           fi
15926           done
15927         esac
15928
15929         exp_sym_flag='-bexport'
15930         no_entry_flag='-bnoentry'
15931       fi
15932
15933       # When large executables or shared objects are built, AIX ld can
15934       # have problems creating the table of contents.  If linking a library
15935       # or program results in "error TOC overflow" add -mminimal-toc to
15936       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15937       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15938
15939       archive_cmds_GCJ=''
15940       hardcode_direct_GCJ=yes
15941       hardcode_libdir_separator_GCJ=':'
15942       link_all_deplibs_GCJ=yes
15943
15944       if test "$GCC" = yes; then
15945         case $host_os in aix4.012|aix4.012.*)
15946         # We only want to do this on AIX 4.2 and lower, the check
15947         # below for broken collect2 doesn't work under 4.3+
15948           collect2name=`${CC} -print-prog-name=collect2`
15949           if test -f "$collect2name" && \
15950            strings "$collect2name" | grep resolve_lib_name >/dev/null
15951           then
15952           # We have reworked collect2
15953           hardcode_direct_GCJ=yes
15954           else
15955           # We have old collect2
15956           hardcode_direct_GCJ=unsupported
15957           # It fails to find uninstalled libraries when the uninstalled
15958           # path is not listed in the libpath.  Setting hardcode_minus_L
15959           # to unsupported forces relinking
15960           hardcode_minus_L_GCJ=yes
15961           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15962           hardcode_libdir_separator_GCJ=
15963           fi
15964         esac
15965         shared_flag='-shared'
15966       else
15967         # not using gcc
15968         if test "$host_cpu" = ia64; then
15969         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15970         # chokes on -Wl,-G. The following line is correct:
15971           shared_flag='-G'
15972         else
15973         if test "$aix_use_runtimelinking" = yes; then
15974             shared_flag='${wl}-G'
15975           else
15976             shared_flag='${wl}-bM:SRE'
15977         fi
15978         fi
15979       fi
15980
15981       # It seems that -bexpall does not export symbols beginning with
15982       # underscore (_), so it is better to generate a list of symbols to export.
15983       always_export_symbols_GCJ=yes
15984       if test "$aix_use_runtimelinking" = yes; then
15985         # Warning - without using the other runtime loading flags (-brtl),
15986         # -berok will link without error, but may produce a broken library.
15987         allow_undefined_flag_GCJ='-berok'
15988        # Determine the default libpath from the value encoded in an empty executable.
15989        cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h.  */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h.  */
15995
15996 int
15997 main ()
15998 {
15999
16000   ;
16001   return 0;
16002 }
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16006   (eval $ac_link) 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -z "$ac_c_werror_flag"
16014                          || test ! -s conftest.err'
16015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016   (eval $ac_try) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; } &&
16020          { ac_try='test -s conftest$ac_exeext'
16021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022   (eval $ac_try) 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); }; }; then
16026
16027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16028 }'`
16029 # Check for a 64-bit object if we didn't find anything.
16030 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; }
16031 }'`; fi
16032 else
16033   echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16035
16036 fi
16037 rm -f conftest.err conftest.$ac_objext \
16038       conftest$ac_exeext conftest.$ac_ext
16039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16040
16041        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16042         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"
16043        else
16044         if test "$host_cpu" = ia64; then
16045           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16046           allow_undefined_flag_GCJ="-z nodefs"
16047           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"
16048         else
16049          # Determine the default libpath from the value encoded in an empty executable.
16050          cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056
16057 int
16058 main ()
16059 {
16060
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16067   (eval $ac_link) 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag"
16075                          || test ! -s conftest.err'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; } &&
16081          { ac_try='test -s conftest$ac_exeext'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087
16088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16089 }'`
16090 # Check for a 64-bit object if we didn't find anything.
16091 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; }
16092 }'`; fi
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 fi
16098 rm -f conftest.err conftest.$ac_objext \
16099       conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16101
16102          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16103           # Warning - without using the other run time loading flags,
16104           # -berok will link without error, but may produce a broken library.
16105           no_undefined_flag_GCJ=' ${wl}-bernotok'
16106           allow_undefined_flag_GCJ=' ${wl}-berok'
16107           # -bexpall does not export symbols beginning with underscore (_)
16108           always_export_symbols_GCJ=yes
16109           # Exported symbols can be pulled into shared objects from archives
16110           whole_archive_flag_spec_GCJ=' '
16111           archive_cmds_need_lc_GCJ=yes
16112           # This is similar to how AIX traditionally builds it's shared libraries.
16113           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'
16114         fi
16115       fi
16116       ;;
16117
16118     amigaos*)
16119       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)'
16120       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16121       hardcode_minus_L_GCJ=yes
16122       # see comment about different semantics on the GNU ld section
16123       ld_shlibs_GCJ=no
16124       ;;
16125
16126     bsdi[45]*)
16127       export_dynamic_flag_spec_GCJ=-rdynamic
16128       ;;
16129
16130     cygwin* | mingw* | pw32*)
16131       # When not using gcc, we currently assume that we are using
16132       # Microsoft Visual C++.
16133       # hardcode_libdir_flag_spec is actually meaningless, as there is
16134       # no search path for DLLs.
16135       hardcode_libdir_flag_spec_GCJ=' '
16136       allow_undefined_flag_GCJ=unsupported
16137       # Tell ltmain to make .lib files, not .a files.
16138       libext=lib
16139       # Tell ltmain to make .dll files, not .so files.
16140       shrext_cmds=".dll"
16141       # FIXME: Setting linknames here is a bad hack.
16142       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16143       # The linker will automatically build a .lib file if we build a DLL.
16144       old_archive_From_new_cmds_GCJ='true'
16145       # FIXME: Should let the user specify the lib program.
16146       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16147       fix_srcfile_path='`cygpath -w "$srcfile"`'
16148       enable_shared_with_static_runtimes_GCJ=yes
16149       ;;
16150
16151     darwin* | rhapsody*)
16152       case "$host_os" in
16153         rhapsody* | darwin1.[012])
16154          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16155          ;;
16156        *) # Darwin 1.3 on
16157          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16158            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16159          else
16160            case ${MACOSX_DEPLOYMENT_TARGET} in
16161              10.[012])
16162                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16163                ;;
16164              10.*)
16165                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16166                ;;
16167            esac
16168          fi
16169          ;;
16170       esac
16171       archive_cmds_need_lc_GCJ=no
16172       hardcode_direct_GCJ=no
16173       hardcode_automatic_GCJ=yes
16174       hardcode_shlibpath_var_GCJ=unsupported
16175       whole_archive_flag_spec_GCJ=''
16176       link_all_deplibs_GCJ=yes
16177     if test "$GCC" = yes ; then
16178         output_verbose_link_cmd='echo'
16179         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16180       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16181       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16182       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16183       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16184     else
16185       case "$cc_basename" in
16186         xlc*)
16187          output_verbose_link_cmd='echo'
16188          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16189          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16190           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16191          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16192           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16193           ;;
16194        *)
16195          ld_shlibs_GCJ=no
16196           ;;
16197       esac
16198     fi
16199       ;;
16200
16201     dgux*)
16202       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16204       hardcode_shlibpath_var_GCJ=no
16205       ;;
16206
16207     freebsd1*)
16208       ld_shlibs_GCJ=no
16209       ;;
16210
16211     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16212     # support.  Future versions do this automatically, but an explicit c++rt0.o
16213     # does not break anything, and helps significantly (at the cost of a little
16214     # extra space).
16215     freebsd2.2*)
16216       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16217       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16218       hardcode_direct_GCJ=yes
16219       hardcode_shlibpath_var_GCJ=no
16220       ;;
16221
16222     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16223     freebsd2*)
16224       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16225       hardcode_direct_GCJ=yes
16226       hardcode_minus_L_GCJ=yes
16227       hardcode_shlibpath_var_GCJ=no
16228       ;;
16229
16230     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16231     freebsd* | kfreebsd*-gnu)
16232       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16233       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234       hardcode_direct_GCJ=yes
16235       hardcode_shlibpath_var_GCJ=no
16236       ;;
16237
16238     hpux9*)
16239       if test "$GCC" = yes; then
16240         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'
16241       else
16242         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'
16243       fi
16244       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16245       hardcode_libdir_separator_GCJ=:
16246       hardcode_direct_GCJ=yes
16247
16248       # hardcode_minus_L: Not really in the search PATH,
16249       # but as the default location of the library.
16250       hardcode_minus_L_GCJ=yes
16251       export_dynamic_flag_spec_GCJ='${wl}-E'
16252       ;;
16253
16254     hpux10* | hpux11*)
16255       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16256         case "$host_cpu" in
16257         hppa*64*|ia64*)
16258           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259           ;;
16260         *)
16261           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16262           ;;
16263         esac
16264       else
16265         case "$host_cpu" in
16266         hppa*64*|ia64*)
16267           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16268           ;;
16269         *)
16270           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16271           ;;
16272         esac
16273       fi
16274       if test "$with_gnu_ld" = no; then
16275         case "$host_cpu" in
16276         hppa*64*)
16277           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16278           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16279           hardcode_libdir_separator_GCJ=:
16280           hardcode_direct_GCJ=no
16281           hardcode_shlibpath_var_GCJ=no
16282           ;;
16283         ia64*)
16284           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16285           hardcode_direct_GCJ=no
16286           hardcode_shlibpath_var_GCJ=no
16287
16288           # hardcode_minus_L: Not really in the search PATH,
16289           # but as the default location of the library.
16290           hardcode_minus_L_GCJ=yes
16291           ;;
16292         *)
16293           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16294           hardcode_libdir_separator_GCJ=:
16295           hardcode_direct_GCJ=yes
16296           export_dynamic_flag_spec_GCJ='${wl}-E'
16297
16298           # hardcode_minus_L: Not really in the search PATH,
16299           # but as the default location of the library.
16300           hardcode_minus_L_GCJ=yes
16301           ;;
16302         esac
16303       fi
16304       ;;
16305
16306     irix5* | irix6* | nonstopux*)
16307       if test "$GCC" = yes; then
16308         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'
16309       else
16310         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'
16311         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16312       fi
16313       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16314       hardcode_libdir_separator_GCJ=:
16315       link_all_deplibs_GCJ=yes
16316       ;;
16317
16318     netbsd*)
16319       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16321       else
16322         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16323       fi
16324       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16325       hardcode_direct_GCJ=yes
16326       hardcode_shlibpath_var_GCJ=no
16327       ;;
16328
16329     newsos6)
16330       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331       hardcode_direct_GCJ=yes
16332       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16333       hardcode_libdir_separator_GCJ=:
16334       hardcode_shlibpath_var_GCJ=no
16335       ;;
16336
16337     openbsd*)
16338       hardcode_direct_GCJ=yes
16339       hardcode_shlibpath_var_GCJ=no
16340       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16341         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16342         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16343         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16344         export_dynamic_flag_spec_GCJ='${wl}-E'
16345       else
16346        case $host_os in
16347          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16348            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16349            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16350            ;;
16351          *)
16352            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16353            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16354            ;;
16355        esac
16356       fi
16357       ;;
16358
16359     os2*)
16360       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16361       hardcode_minus_L_GCJ=yes
16362       allow_undefined_flag_GCJ=unsupported
16363       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'
16364       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16365       ;;
16366
16367     osf3*)
16368       if test "$GCC" = yes; then
16369         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16370         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'
16371       else
16372         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16373         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'
16374       fi
16375       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16376       hardcode_libdir_separator_GCJ=:
16377       ;;
16378
16379     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16380       if test "$GCC" = yes; then
16381         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16382         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'
16383         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16384       else
16385         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16386         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'
16387         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; $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'
16388         # Both c and cxx compiler support -rpath directly
16389         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16390       fi
16391       hardcode_libdir_separator_GCJ=:
16392       ;;
16393
16394     sco3.2v5*)
16395       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396       hardcode_shlibpath_var_GCJ=no
16397       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16398       runpath_var=LD_RUN_PATH
16399       hardcode_runpath_var=yes
16400       ;;
16401
16402     solaris*)
16403       no_undefined_flag_GCJ=' -z text'
16404       if test "$GCC" = yes; then
16405         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16406         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
16407       else
16408         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16410       fi
16411       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16412       hardcode_shlibpath_var_GCJ=no
16413       case $host_os in
16414       solaris2.[0-5] | solaris2.[0-5].*) ;;
16415       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16416         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16417       esac
16418       link_all_deplibs_GCJ=yes
16419       ;;
16420
16421     sunos4*)
16422       if test "x$host_vendor" = xsequent; then
16423         # Use $CC to link under sequent, because it throws in some extra .o
16424         # files that make .init and .fini sections work.
16425         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16426       else
16427         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16428       fi
16429       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430       hardcode_direct_GCJ=yes
16431       hardcode_minus_L_GCJ=yes
16432       hardcode_shlibpath_var_GCJ=no
16433       ;;
16434
16435     sysv4)
16436       case $host_vendor in
16437         sni)
16438           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16439           hardcode_direct_GCJ=yes # is this really true???
16440         ;;
16441         siemens)
16442           ## LD is ld it makes a PLAMLIB
16443           ## CC just makes a GrossModule.
16444           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16445           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16446           hardcode_direct_GCJ=no
16447         ;;
16448         motorola)
16449           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16451         ;;
16452       esac
16453       runpath_var='LD_RUN_PATH'
16454       hardcode_shlibpath_var_GCJ=no
16455       ;;
16456
16457     sysv4.3*)
16458       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459       hardcode_shlibpath_var_GCJ=no
16460       export_dynamic_flag_spec_GCJ='-Bexport'
16461       ;;
16462
16463     sysv4*MP*)
16464       if test -d /usr/nec; then
16465         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466         hardcode_shlibpath_var_GCJ=no
16467         runpath_var=LD_RUN_PATH
16468         hardcode_runpath_var=yes
16469         ld_shlibs_GCJ=yes
16470       fi
16471       ;;
16472
16473     sysv4.2uw2*)
16474       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16475       hardcode_direct_GCJ=yes
16476       hardcode_minus_L_GCJ=no
16477       hardcode_shlibpath_var_GCJ=no
16478       hardcode_runpath_var=yes
16479       runpath_var=LD_RUN_PATH
16480       ;;
16481
16482    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16483       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16484       if test "$GCC" = yes; then
16485         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16486       else
16487         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488       fi
16489       runpath_var='LD_RUN_PATH'
16490       hardcode_shlibpath_var_GCJ=no
16491       ;;
16492
16493     sysv5*)
16494       no_undefined_flag_GCJ=' -z text'
16495       # $CC -shared without GNU ld will not create a library from C++
16496       # object files and a static libstdc++, better avoid it by now
16497       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16499       hardcode_libdir_flag_spec_GCJ=
16500       hardcode_shlibpath_var_GCJ=no
16501       runpath_var='LD_RUN_PATH'
16502       ;;
16503
16504     uts4*)
16505       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16507       hardcode_shlibpath_var_GCJ=no
16508       ;;
16509
16510     *)
16511       ld_shlibs_GCJ=no
16512       ;;
16513     esac
16514   fi
16515
16516 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16517 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16518 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16519
16520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16521 if test "$GCC" = yes; then
16522   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16523 fi
16524
16525 #
16526 # Do we need to explicitly link libc?
16527 #
16528 case "x$archive_cmds_need_lc_GCJ" in
16529 x|xyes)
16530   # Assume -lc should be added
16531   archive_cmds_need_lc_GCJ=yes
16532
16533   if test "$enable_shared" = yes && test "$GCC" = yes; then
16534     case $archive_cmds_GCJ in
16535     *'~'*)
16536       # FIXME: we may have to deal with multi-command sequences.
16537       ;;
16538     '$CC '*)
16539       # Test whether the compiler implicitly links with -lc since on some
16540       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16541       # to ld, don't add -lc before -lgcc.
16542       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16544       $rm conftest*
16545       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16546
16547       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16548   (eval $ac_compile) 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } 2>conftest.err; then
16552         soname=conftest
16553         lib=conftest
16554         libobjs=conftest.$ac_objext
16555         deplibs=
16556         wl=$lt_prog_compiler_wl_GCJ
16557         compiler_flags=-v
16558         linker_flags=-v
16559         verstring=
16560         output_objdir=.
16561         libname=conftest
16562         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16563         allow_undefined_flag_GCJ=
16564         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16565   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16566   ac_status=$?
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); }
16569         then
16570           archive_cmds_need_lc_GCJ=no
16571         else
16572           archive_cmds_need_lc_GCJ=yes
16573         fi
16574         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16575       else
16576         cat conftest.err 1>&5
16577       fi
16578       $rm conftest*
16579       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16580 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16581       ;;
16582     esac
16583   fi
16584   ;;
16585 esac
16586
16587 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16589 library_names_spec=
16590 libname_spec='lib$name'
16591 soname_spec=
16592 shrext_cmds=".so"
16593 postinstall_cmds=
16594 postuninstall_cmds=
16595 finish_cmds=
16596 finish_eval=
16597 shlibpath_var=
16598 shlibpath_overrides_runpath=unknown
16599 version_type=none
16600 dynamic_linker="$host_os ld.so"
16601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16602 if test "$GCC" = yes; then
16603   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16604   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16605     # if the path contains ";" then we assume it to be the separator
16606     # otherwise default to the standard path separator (i.e. ":") - it is
16607     # assumed that no part of a normal pathname contains ";" but that should
16608     # okay in the real world where ";" in dirpaths is itself problematic.
16609     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16610   else
16611     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16612   fi
16613 else
16614   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16615 fi
16616 need_lib_prefix=unknown
16617 hardcode_into_libs=no
16618
16619 # when you set need_version to no, make sure it does not cause -set_version
16620 # flags to be left without arguments
16621 need_version=unknown
16622
16623 case $host_os in
16624 aix3*)
16625   version_type=linux
16626   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16627   shlibpath_var=LIBPATH
16628
16629   # AIX 3 has no versioning support, so we append a major version to the name.
16630   soname_spec='${libname}${release}${shared_ext}$major'
16631   ;;
16632
16633 aix4* | aix5*)
16634   version_type=linux
16635   need_lib_prefix=no
16636   need_version=no
16637   hardcode_into_libs=yes
16638   if test "$host_cpu" = ia64; then
16639     # AIX 5 supports IA64
16640     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16641     shlibpath_var=LD_LIBRARY_PATH
16642   else
16643     # With GCC up to 2.95.x, collect2 would create an import file
16644     # for dependence libraries.  The import file would start with
16645     # the line `#! .'.  This would cause the generated library to
16646     # depend on `.', always an invalid library.  This was fixed in
16647     # development snapshots of GCC prior to 3.0.
16648     case $host_os in
16649       aix4 | aix4.[01] | aix4.[01].*)
16650       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16651            echo ' yes '
16652            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16653         :
16654       else
16655         can_build_shared=no
16656       fi
16657       ;;
16658     esac
16659     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16660     # soname into executable. Probably we can add versioning support to
16661     # collect2, so additional links can be useful in future.
16662     if test "$aix_use_runtimelinking" = yes; then
16663       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16664       # instead of lib<name>.a to let people know that these are not
16665       # typical AIX shared libraries.
16666       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667     else
16668       # We preserve .a as extension for shared libraries through AIX4.2
16669       # and later when we are not doing run time linking.
16670       library_names_spec='${libname}${release}.a $libname.a'
16671       soname_spec='${libname}${release}${shared_ext}$major'
16672     fi
16673     shlibpath_var=LIBPATH
16674   fi
16675   ;;
16676
16677 amigaos*)
16678   library_names_spec='$libname.ixlibrary $libname.a'
16679   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16680   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'
16681   ;;
16682
16683 beos*)
16684   library_names_spec='${libname}${shared_ext}'
16685   dynamic_linker="$host_os ld.so"
16686   shlibpath_var=LIBRARY_PATH
16687   ;;
16688
16689 bsdi[45]*)
16690   version_type=linux
16691   need_version=no
16692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693   soname_spec='${libname}${release}${shared_ext}$major'
16694   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16695   shlibpath_var=LD_LIBRARY_PATH
16696   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16697   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16698   # the default ld.so.conf also contains /usr/contrib/lib and
16699   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16700   # libtool to hard-code these into programs
16701   ;;
16702
16703 cygwin* | mingw* | pw32*)
16704   version_type=windows
16705   shrext_cmds=".dll"
16706   need_version=no
16707   need_lib_prefix=no
16708
16709   case $GCC,$host_os in
16710   yes,cygwin* | yes,mingw* | yes,pw32*)
16711     library_names_spec='$libname.dll.a'
16712     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16713     postinstall_cmds='base_file=`basename \${file}`;
16714       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16715       dldir=$destdir/`dirname \$dlpath`;
16716       test -d \$dldir || mkdir -p \$dldir;
16717       $install_prog $dir/$dlname \$dldir/$dlname'
16718     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16719       dlpath=$dir/\$dldll;
16720        $rm \$dlpath'
16721     shlibpath_overrides_runpath=yes
16722
16723     case $host_os in
16724     cygwin*)
16725       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16726       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16727       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16728       ;;
16729     mingw*)
16730       # MinGW DLLs use traditional 'lib' prefix
16731       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16732       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16733       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16734         # It is most probably a Windows format PATH printed by
16735         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16736         # path with ; separators, and with drive letters. We can handle the
16737         # drive letters (cygwin fileutils understands them), so leave them,
16738         # especially as we might pass files found there to a mingw objdump,
16739         # which wouldn't understand a cygwinified path. Ahh.
16740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16741       else
16742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16743       fi
16744       ;;
16745     pw32*)
16746       # pw32 DLLs use 'pw' prefix rather than 'lib'
16747       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16748       ;;
16749     esac
16750     ;;
16751
16752   *)
16753     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16754     ;;
16755   esac
16756   dynamic_linker='Win32 ld.exe'
16757   # FIXME: first we should search . and the directory the executable is in
16758   shlibpath_var=PATH
16759   ;;
16760
16761 darwin* | rhapsody*)
16762   dynamic_linker="$host_os dyld"
16763   version_type=darwin
16764   need_lib_prefix=no
16765   need_version=no
16766   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16767   soname_spec='${libname}${release}${major}$shared_ext'
16768   shlibpath_overrides_runpath=yes
16769   shlibpath_var=DYLD_LIBRARY_PATH
16770   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16771   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16772   if test "$GCC" = yes; then
16773     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"`
16774   else
16775     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16776   fi
16777   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16778   ;;
16779
16780 dgux*)
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   shlibpath_var=LD_LIBRARY_PATH
16787   ;;
16788
16789 freebsd1*)
16790   dynamic_linker=no
16791   ;;
16792
16793 kfreebsd*-gnu)
16794   version_type=linux
16795   need_lib_prefix=no
16796   need_version=no
16797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16798   soname_spec='${libname}${release}${shared_ext}$major'
16799   shlibpath_var=LD_LIBRARY_PATH
16800   shlibpath_overrides_runpath=no
16801   hardcode_into_libs=yes
16802   dynamic_linker='GNU ld.so'
16803   ;;
16804
16805 freebsd*)
16806   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16807   version_type=freebsd-$objformat
16808   case $version_type in
16809     freebsd-elf*)
16810       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16811       need_version=no
16812       need_lib_prefix=no
16813       ;;
16814     freebsd-*)
16815       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16816       need_version=yes
16817       ;;
16818   esac
16819   shlibpath_var=LD_LIBRARY_PATH
16820   case $host_os in
16821   freebsd2*)
16822     shlibpath_overrides_runpath=yes
16823     ;;
16824   freebsd3.01* | freebsdelf3.01*)
16825     shlibpath_overrides_runpath=yes
16826     hardcode_into_libs=yes
16827     ;;
16828   *) # from 3.2 on
16829     shlibpath_overrides_runpath=no
16830     hardcode_into_libs=yes
16831     ;;
16832   esac
16833   ;;
16834
16835 gnu*)
16836   version_type=linux
16837   need_lib_prefix=no
16838   need_version=no
16839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16840   soname_spec='${libname}${release}${shared_ext}$major'
16841   shlibpath_var=LD_LIBRARY_PATH
16842   hardcode_into_libs=yes
16843   ;;
16844
16845 hpux9* | hpux10* | hpux11*)
16846   # Give a soname corresponding to the major version so that dld.sl refuses to
16847   # link against other versions.
16848   version_type=sunos
16849   need_lib_prefix=no
16850   need_version=no
16851   case "$host_cpu" in
16852   ia64*)
16853     shrext_cmds='.so'
16854     hardcode_into_libs=yes
16855     dynamic_linker="$host_os dld.so"
16856     shlibpath_var=LD_LIBRARY_PATH
16857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859     soname_spec='${libname}${release}${shared_ext}$major'
16860     if test "X$HPUX_IA64_MODE" = X32; then
16861       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16862     else
16863       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16864     fi
16865     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16866     ;;
16867    hppa*64*)
16868      shrext_cmds='.sl'
16869      hardcode_into_libs=yes
16870      dynamic_linker="$host_os dld.sl"
16871      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16872      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874      soname_spec='${libname}${release}${shared_ext}$major'
16875      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16876      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16877      ;;
16878    *)
16879     shrext_cmds='.sl'
16880     dynamic_linker="$host_os dld.sl"
16881     shlibpath_var=SHLIB_PATH
16882     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884     soname_spec='${libname}${release}${shared_ext}$major'
16885     ;;
16886   esac
16887   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16888   postinstall_cmds='chmod 555 $lib'
16889   ;;
16890
16891 irix5* | irix6* | nonstopux*)
16892   case $host_os in
16893     nonstopux*) version_type=nonstopux ;;
16894     *)
16895         if test "$lt_cv_prog_gnu_ld" = yes; then
16896                 version_type=linux
16897         else
16898                 version_type=irix
16899         fi ;;
16900   esac
16901   need_lib_prefix=no
16902   need_version=no
16903   soname_spec='${libname}${release}${shared_ext}$major'
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16905   case $host_os in
16906   irix5* | nonstopux*)
16907     libsuff= shlibsuff=
16908     ;;
16909   *)
16910     case $LD in # libtool.m4 will add one of these switches to LD
16911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16912       libsuff= shlibsuff= libmagic=32-bit;;
16913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16914       libsuff=32 shlibsuff=N32 libmagic=N32;;
16915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16917     *) libsuff= shlibsuff= libmagic=never-match;;
16918     esac
16919     ;;
16920   esac
16921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16922   shlibpath_overrides_runpath=no
16923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16925   hardcode_into_libs=yes
16926   ;;
16927
16928 # No shared lib support for Linux oldld, aout, or coff.
16929 linux*oldld* | linux*aout* | linux*coff*)
16930   dynamic_linker=no
16931   ;;
16932
16933 # This must be Linux ELF.
16934 linux*)
16935   version_type=linux
16936   need_lib_prefix=no
16937   need_version=no
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939   soname_spec='${libname}${release}${shared_ext}$major'
16940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16941   shlibpath_var=LD_LIBRARY_PATH
16942   shlibpath_overrides_runpath=no
16943   # This implies no fast_install, which is unacceptable.
16944   # Some rework will be needed to allow for fast_install
16945   # before this can be enabled.
16946   hardcode_into_libs=yes
16947
16948   # Append ld.so.conf contents to the search path
16949   if test -f /etc/ld.so.conf; then
16950     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16951     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16952   fi
16953
16954   # We used to test for /lib/ld.so.1 and disable shared libraries on
16955   # powerpc, because MkLinux only supported shared libraries with the
16956   # GNU dynamic linker.  Since this was broken with cross compilers,
16957   # most powerpc-linux boxes support dynamic linking these days and
16958   # people can always --disable-shared, the test was removed, and we
16959   # assume the GNU/Linux dynamic linker is in use.
16960   dynamic_linker='GNU/Linux ld.so'
16961   ;;
16962
16963 knetbsd*-gnu)
16964   version_type=linux
16965   need_lib_prefix=no
16966   need_version=no
16967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16968   soname_spec='${libname}${release}${shared_ext}$major'
16969   shlibpath_var=LD_LIBRARY_PATH
16970   shlibpath_overrides_runpath=no
16971   hardcode_into_libs=yes
16972   dynamic_linker='GNU ld.so'
16973   ;;
16974
16975 netbsd*)
16976   version_type=sunos
16977   need_lib_prefix=no
16978   need_version=no
16979   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16981     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16982     dynamic_linker='NetBSD (a.out) ld.so'
16983   else
16984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16985     soname_spec='${libname}${release}${shared_ext}$major'
16986     dynamic_linker='NetBSD ld.elf_so'
16987   fi
16988   shlibpath_var=LD_LIBRARY_PATH
16989   shlibpath_overrides_runpath=yes
16990   hardcode_into_libs=yes
16991   ;;
16992
16993 newsos6)
16994   version_type=linux
16995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996   shlibpath_var=LD_LIBRARY_PATH
16997   shlibpath_overrides_runpath=yes
16998   ;;
16999
17000 nto-qnx*)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   shlibpath_overrides_runpath=yes
17008   ;;
17009
17010 openbsd*)
17011   version_type=sunos
17012   need_lib_prefix=no
17013   need_version=no
17014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016   shlibpath_var=LD_LIBRARY_PATH
17017   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17018     case $host_os in
17019       openbsd2.[89] | openbsd2.[89].*)
17020         shlibpath_overrides_runpath=no
17021         ;;
17022       *)
17023         shlibpath_overrides_runpath=yes
17024         ;;
17025       esac
17026   else
17027     shlibpath_overrides_runpath=yes
17028   fi
17029   ;;
17030
17031 os2*)
17032   libname_spec='$name'
17033   shrext_cmds=".dll"
17034   need_lib_prefix=no
17035   library_names_spec='$libname${shared_ext} $libname.a'
17036   dynamic_linker='OS/2 ld.exe'
17037   shlibpath_var=LIBPATH
17038   ;;
17039
17040 osf3* | osf4* | osf5*)
17041   version_type=osf
17042   need_lib_prefix=no
17043   need_version=no
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17046   shlibpath_var=LD_LIBRARY_PATH
17047   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17048   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17049   ;;
17050
17051 sco3.2v5*)
17052   version_type=osf
17053   soname_spec='${libname}${release}${shared_ext}$major'
17054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055   shlibpath_var=LD_LIBRARY_PATH
17056   ;;
17057
17058 solaris*)
17059   version_type=linux
17060   need_lib_prefix=no
17061   need_version=no
17062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   shlibpath_overrides_runpath=yes
17066   hardcode_into_libs=yes
17067   # ldd complains unless libraries are executable
17068   postinstall_cmds='chmod +x $lib'
17069   ;;
17070
17071 sunos4*)
17072   version_type=sunos
17073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17075   shlibpath_var=LD_LIBRARY_PATH
17076   shlibpath_overrides_runpath=yes
17077   if test "$with_gnu_ld" = yes; then
17078     need_lib_prefix=no
17079   fi
17080   need_version=yes
17081   ;;
17082
17083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17084   version_type=linux
17085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086   soname_spec='${libname}${release}${shared_ext}$major'
17087   shlibpath_var=LD_LIBRARY_PATH
17088   case $host_vendor in
17089     sni)
17090       shlibpath_overrides_runpath=no
17091       need_lib_prefix=no
17092       export_dynamic_flag_spec='${wl}-Blargedynsym'
17093       runpath_var=LD_RUN_PATH
17094       ;;
17095     siemens)
17096       need_lib_prefix=no
17097       ;;
17098     motorola)
17099       need_lib_prefix=no
17100       need_version=no
17101       shlibpath_overrides_runpath=no
17102       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17103       ;;
17104   esac
17105   ;;
17106
17107 sysv4*MP*)
17108   if test -d /usr/nec ;then
17109     version_type=linux
17110     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17111     soname_spec='$libname${shared_ext}.$major'
17112     shlibpath_var=LD_LIBRARY_PATH
17113   fi
17114   ;;
17115
17116 uts4*)
17117   version_type=linux
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   ;;
17122
17123 *)
17124   dynamic_linker=no
17125   ;;
17126 esac
17127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17128 echo "${ECHO_T}$dynamic_linker" >&6
17129 test "$dynamic_linker" = no && can_build_shared=no
17130
17131 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17132 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17133 hardcode_action_GCJ=
17134 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17135    test -n "$runpath_var_GCJ" || \
17136    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17137
17138   # We can hardcode non-existant directories.
17139   if test "$hardcode_direct_GCJ" != no &&
17140      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17141      # have to relink, otherwise we might link with an installed library
17142      # when we should be linking with a yet-to-be-installed one
17143      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17144      test "$hardcode_minus_L_GCJ" != no; then
17145     # Linking always hardcodes the temporary library directory.
17146     hardcode_action_GCJ=relink
17147   else
17148     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17149     hardcode_action_GCJ=immediate
17150   fi
17151 else
17152   # We cannot hardcode anything, or else we can only hardcode existing
17153   # directories.
17154   hardcode_action_GCJ=unsupported
17155 fi
17156 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17157 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17158
17159 if test "$hardcode_action_GCJ" = relink; then
17160   # Fast installation is not supported
17161   enable_fast_install=no
17162 elif test "$shlibpath_overrides_runpath" = yes ||
17163      test "$enable_shared" = no; then
17164   # Fast installation is not necessary
17165   enable_fast_install=needless
17166 fi
17167
17168 striplib=
17169 old_striplib=
17170 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17171 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17172 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17173   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17174   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17175   echo "$as_me:$LINENO: result: yes" >&5
17176 echo "${ECHO_T}yes" >&6
17177 else
17178 # FIXME - insert some real tests, host_os isn't really good enough
17179   case $host_os in
17180    darwin*)
17181        if test -n "$STRIP" ; then
17182          striplib="$STRIP -x"
17183          echo "$as_me:$LINENO: result: yes" >&5
17184 echo "${ECHO_T}yes" >&6
17185        else
17186   echo "$as_me:$LINENO: result: no" >&5
17187 echo "${ECHO_T}no" >&6
17188 fi
17189        ;;
17190    *)
17191   echo "$as_me:$LINENO: result: no" >&5
17192 echo "${ECHO_T}no" >&6
17193     ;;
17194   esac
17195 fi
17196
17197 if test "x$enable_dlopen" != xyes; then
17198   enable_dlopen=unknown
17199   enable_dlopen_self=unknown
17200   enable_dlopen_self_static=unknown
17201 else
17202   lt_cv_dlopen=no
17203   lt_cv_dlopen_libs=
17204
17205   case $host_os in
17206   beos*)
17207     lt_cv_dlopen="load_add_on"
17208     lt_cv_dlopen_libs=
17209     lt_cv_dlopen_self=yes
17210     ;;
17211
17212   mingw* | pw32*)
17213     lt_cv_dlopen="LoadLibrary"
17214     lt_cv_dlopen_libs=
17215    ;;
17216
17217   cygwin*)
17218     lt_cv_dlopen="dlopen"
17219     lt_cv_dlopen_libs=
17220    ;;
17221
17222   darwin*)
17223   # if libdl is installed we need to link against it
17224     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17227   echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229   ac_check_lib_save_LIBS=$LIBS
17230 LIBS="-ldl  $LIBS"
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237
17238 /* Override any gcc2 internal prototype to avoid an error.  */
17239 #ifdef __cplusplus
17240 extern "C"
17241 #endif
17242 /* We use char because int might match the return type of a gcc2
17243    builtin and then its argument prototype would still apply.  */
17244 char dlopen ();
17245 int
17246 main ()
17247 {
17248 dlopen ();
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17255   (eval $ac_link) 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } &&
17262          { ac_try='test -z "$ac_c_werror_flag"
17263                          || test ! -s conftest.err'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; } &&
17269          { ac_try='test -s conftest$ac_exeext'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   ac_cv_lib_dl_dlopen=yes
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 ac_cv_lib_dl_dlopen=no
17281 fi
17282 rm -f conftest.err conftest.$ac_objext \
17283       conftest$ac_exeext conftest.$ac_ext
17284 LIBS=$ac_check_lib_save_LIBS
17285 fi
17286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17288 if test $ac_cv_lib_dl_dlopen = yes; then
17289   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17290 else
17291
17292     lt_cv_dlopen="dyld"
17293     lt_cv_dlopen_libs=
17294     lt_cv_dlopen_self=yes
17295
17296 fi
17297
17298    ;;
17299
17300   *)
17301     echo "$as_me:$LINENO: checking for shl_load" >&5
17302 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17303 if test "${ac_cv_func_shl_load+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17314 #define shl_load innocuous_shl_load
17315
17316 /* System header to define __stub macros and hopefully few prototypes,
17317     which can conflict with char shl_load (); below.
17318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319     <limits.h> exists even on freestanding compilers.  */
17320
17321 #ifdef __STDC__
17322 # include <limits.h>
17323 #else
17324 # include <assert.h>
17325 #endif
17326
17327 #undef shl_load
17328
17329 /* Override any gcc2 internal prototype to avoid an error.  */
17330 #ifdef __cplusplus
17331 extern "C"
17332 {
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 shl_load ();
17337 /* The GNU C library defines this for functions which it implements
17338     to always fail with ENOSYS.  Some functions are actually named
17339     something starting with __ and the normal name is an alias.  */
17340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17341 choke me
17342 #else
17343 char (*f) () = shl_load;
17344 #endif
17345 #ifdef __cplusplus
17346 }
17347 #endif
17348
17349 int
17350 main ()
17351 {
17352 return f != shl_load;
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17359   (eval $ac_link) 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } &&
17366          { ac_try='test -z "$ac_c_werror_flag"
17367                          || test ! -s conftest.err'
17368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369   (eval $ac_try) 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; } &&
17373          { ac_try='test -s conftest$ac_exeext'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; }; then
17379   ac_cv_func_shl_load=yes
17380 else
17381   echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_cv_func_shl_load=no
17385 fi
17386 rm -f conftest.err conftest.$ac_objext \
17387       conftest$ac_exeext conftest.$ac_ext
17388 fi
17389 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17390 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17391 if test $ac_cv_func_shl_load = yes; then
17392   lt_cv_dlopen="shl_load"
17393 else
17394   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17395 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17396 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17397   echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399   ac_check_lib_save_LIBS=$LIBS
17400 LIBS="-ldld  $LIBS"
17401 cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407
17408 /* Override any gcc2 internal prototype to avoid an error.  */
17409 #ifdef __cplusplus
17410 extern "C"
17411 #endif
17412 /* We use char because int might match the return type of a gcc2
17413    builtin and then its argument prototype would still apply.  */
17414 char shl_load ();
17415 int
17416 main ()
17417 {
17418 shl_load ();
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425   (eval $ac_link) 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } &&
17432          { ac_try='test -z "$ac_c_werror_flag"
17433                          || test ! -s conftest.err'
17434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435   (eval $ac_try) 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; } &&
17439          { ac_try='test -s conftest$ac_exeext'
17440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441   (eval $ac_try) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; }; then
17445   ac_cv_lib_dld_shl_load=yes
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450 ac_cv_lib_dld_shl_load=no
17451 fi
17452 rm -f conftest.err conftest.$ac_objext \
17453       conftest$ac_exeext conftest.$ac_ext
17454 LIBS=$ac_check_lib_save_LIBS
17455 fi
17456 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17457 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17458 if test $ac_cv_lib_dld_shl_load = yes; then
17459   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17460 else
17461   echo "$as_me:$LINENO: checking for dlopen" >&5
17462 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17463 if test "${ac_cv_func_dlopen+set}" = set; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17474 #define dlopen innocuous_dlopen
17475
17476 /* System header to define __stub macros and hopefully few prototypes,
17477     which can conflict with char dlopen (); below.
17478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479     <limits.h> exists even on freestanding compilers.  */
17480
17481 #ifdef __STDC__
17482 # include <limits.h>
17483 #else
17484 # include <assert.h>
17485 #endif
17486
17487 #undef dlopen
17488
17489 /* Override any gcc2 internal prototype to avoid an error.  */
17490 #ifdef __cplusplus
17491 extern "C"
17492 {
17493 #endif
17494 /* We use char because int might match the return type of a gcc2
17495    builtin and then its argument prototype would still apply.  */
17496 char dlopen ();
17497 /* The GNU C library defines this for functions which it implements
17498     to always fail with ENOSYS.  Some functions are actually named
17499     something starting with __ and the normal name is an alias.  */
17500 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17501 choke me
17502 #else
17503 char (*f) () = dlopen;
17504 #endif
17505 #ifdef __cplusplus
17506 }
17507 #endif
17508
17509 int
17510 main ()
17511 {
17512 return f != dlopen;
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519   (eval $ac_link) 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } &&
17526          { ac_try='test -z "$ac_c_werror_flag"
17527                          || test ! -s conftest.err'
17528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529   (eval $ac_try) 2>&5
17530   ac_status=$?
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); }; } &&
17533          { ac_try='test -s conftest$ac_exeext'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; }; then
17539   ac_cv_func_dlopen=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 ac_cv_func_dlopen=no
17545 fi
17546 rm -f conftest.err conftest.$ac_objext \
17547       conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17550 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17551 if test $ac_cv_func_dlopen = yes; then
17552   lt_cv_dlopen="dlopen"
17553 else
17554   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17555 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559   ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-ldl  $LIBS"
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 /* Override any gcc2 internal prototype to avoid an error.  */
17569 #ifdef __cplusplus
17570 extern "C"
17571 #endif
17572 /* We use char because int might match the return type of a gcc2
17573    builtin and then its argument prototype would still apply.  */
17574 char dlopen ();
17575 int
17576 main ()
17577 {
17578 dlopen ();
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585   (eval $ac_link) 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_c_werror_flag"
17593                          || test ! -s conftest.err'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; } &&
17599          { ac_try='test -s conftest$ac_exeext'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   ac_cv_lib_dl_dlopen=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610 ac_cv_lib_dl_dlopen=no
17611 fi
17612 rm -f conftest.err conftest.$ac_objext \
17613       conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17615 fi
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17617 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17618 if test $ac_cv_lib_dl_dlopen = yes; then
17619   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17620 else
17621   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17622 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17623 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   ac_check_lib_save_LIBS=$LIBS
17627 LIBS="-lsvld  $LIBS"
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h.  */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h.  */
17634
17635 /* Override any gcc2 internal prototype to avoid an error.  */
17636 #ifdef __cplusplus
17637 extern "C"
17638 #endif
17639 /* We use char because int might match the return type of a gcc2
17640    builtin and then its argument prototype would still apply.  */
17641 char dlopen ();
17642 int
17643 main ()
17644 {
17645 dlopen ();
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652   (eval $ac_link) 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -z "$ac_c_werror_flag"
17660                          || test ! -s conftest.err'
17661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662   (eval $ac_try) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; } &&
17666          { ac_try='test -s conftest$ac_exeext'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; }; then
17672   ac_cv_lib_svld_dlopen=yes
17673 else
17674   echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 ac_cv_lib_svld_dlopen=no
17678 fi
17679 rm -f conftest.err conftest.$ac_objext \
17680       conftest$ac_exeext conftest.$ac_ext
17681 LIBS=$ac_check_lib_save_LIBS
17682 fi
17683 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17684 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17685 if test $ac_cv_lib_svld_dlopen = yes; then
17686   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17687 else
17688   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17689 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   ac_check_lib_save_LIBS=$LIBS
17694 LIBS="-ldld  $LIBS"
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h.  */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h.  */
17701
17702 /* Override any gcc2 internal prototype to avoid an error.  */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 /* We use char because int might match the return type of a gcc2
17707    builtin and then its argument prototype would still apply.  */
17708 char dld_link ();
17709 int
17710 main ()
17711 {
17712 dld_link ();
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719   (eval $ac_link) 2>conftest.er1
17720   ac_status=$?
17721   grep -v '^ *+' conftest.er1 >conftest.err
17722   rm -f conftest.er1
17723   cat conftest.err >&5
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); } &&
17726          { ac_try='test -z "$ac_c_werror_flag"
17727                          || test ! -s conftest.err'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; } &&
17733          { ac_try='test -s conftest$ac_exeext'
17734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735   (eval $ac_try) 2>&5
17736   ac_status=$?
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); }; }; then
17739   ac_cv_lib_dld_dld_link=yes
17740 else
17741   echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17743
17744 ac_cv_lib_dld_dld_link=no
17745 fi
17746 rm -f conftest.err conftest.$ac_objext \
17747       conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17749 fi
17750 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17751 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17752 if test $ac_cv_lib_dld_dld_link = yes; then
17753   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17754 fi
17755
17756
17757 fi
17758
17759
17760 fi
17761
17762
17763 fi
17764
17765
17766 fi
17767
17768
17769 fi
17770
17771     ;;
17772   esac
17773
17774   if test "x$lt_cv_dlopen" != xno; then
17775     enable_dlopen=yes
17776   else
17777     enable_dlopen=no
17778   fi
17779
17780   case $lt_cv_dlopen in
17781   dlopen)
17782     save_CPPFLAGS="$CPPFLAGS"
17783     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17784
17785     save_LDFLAGS="$LDFLAGS"
17786     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17787
17788     save_LIBS="$LIBS"
17789     LIBS="$lt_cv_dlopen_libs $LIBS"
17790
17791     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17792 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17793 if test "${lt_cv_dlopen_self+set}" = set; then
17794   echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796           if test "$cross_compiling" = yes; then :
17797   lt_cv_dlopen_self=cross
17798 else
17799   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17800   lt_status=$lt_dlunknown
17801   cat > conftest.$ac_ext <<EOF
17802 #line 17802 "configure"
17803 #include "confdefs.h"
17804
17805 #if HAVE_DLFCN_H
17806 #include <dlfcn.h>
17807 #endif
17808
17809 #include <stdio.h>
17810
17811 #ifdef RTLD_GLOBAL
17812 #  define LT_DLGLOBAL           RTLD_GLOBAL
17813 #else
17814 #  ifdef DL_GLOBAL
17815 #    define LT_DLGLOBAL         DL_GLOBAL
17816 #  else
17817 #    define LT_DLGLOBAL         0
17818 #  endif
17819 #endif
17820
17821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17822    find out it does not work in some platform. */
17823 #ifndef LT_DLLAZY_OR_NOW
17824 #  ifdef RTLD_LAZY
17825 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17826 #  else
17827 #    ifdef DL_LAZY
17828 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17829 #    else
17830 #      ifdef RTLD_NOW
17831 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17832 #      else
17833 #        ifdef DL_NOW
17834 #          define LT_DLLAZY_OR_NOW      DL_NOW
17835 #        else
17836 #          define LT_DLLAZY_OR_NOW      0
17837 #        endif
17838 #      endif
17839 #    endif
17840 #  endif
17841 #endif
17842
17843 #ifdef __cplusplus
17844 extern "C" void exit (int);
17845 #endif
17846
17847 void fnord() { int i=42;}
17848 int main ()
17849 {
17850   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17851   int status = $lt_dlunknown;
17852
17853   if (self)
17854     {
17855       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17856       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17857       /* dlclose (self); */
17858     }
17859
17860     exit (status);
17861 }
17862 EOF
17863   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864   (eval $ac_link) 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17868     (./conftest; exit; ) 2>/dev/null
17869     lt_status=$?
17870     case x$lt_status in
17871       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17872       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17873       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17874     esac
17875   else :
17876     # compilation failed
17877     lt_cv_dlopen_self=no
17878   fi
17879 fi
17880 rm -fr conftest*
17881
17882
17883 fi
17884 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17885 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17886
17887     if test "x$lt_cv_dlopen_self" = xyes; then
17888       LDFLAGS="$LDFLAGS $link_static_flag"
17889       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17890 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17891 if test "${lt_cv_dlopen_self_static+set}" = set; then
17892   echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894           if test "$cross_compiling" = yes; then :
17895   lt_cv_dlopen_self_static=cross
17896 else
17897   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17898   lt_status=$lt_dlunknown
17899   cat > conftest.$ac_ext <<EOF
17900 #line 17900 "configure"
17901 #include "confdefs.h"
17902
17903 #if HAVE_DLFCN_H
17904 #include <dlfcn.h>
17905 #endif
17906
17907 #include <stdio.h>
17908
17909 #ifdef RTLD_GLOBAL
17910 #  define LT_DLGLOBAL           RTLD_GLOBAL
17911 #else
17912 #  ifdef DL_GLOBAL
17913 #    define LT_DLGLOBAL         DL_GLOBAL
17914 #  else
17915 #    define LT_DLGLOBAL         0
17916 #  endif
17917 #endif
17918
17919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17920    find out it does not work in some platform. */
17921 #ifndef LT_DLLAZY_OR_NOW
17922 #  ifdef RTLD_LAZY
17923 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17924 #  else
17925 #    ifdef DL_LAZY
17926 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17927 #    else
17928 #      ifdef RTLD_NOW
17929 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17930 #      else
17931 #        ifdef DL_NOW
17932 #          define LT_DLLAZY_OR_NOW      DL_NOW
17933 #        else
17934 #          define LT_DLLAZY_OR_NOW      0
17935 #        endif
17936 #      endif
17937 #    endif
17938 #  endif
17939 #endif
17940
17941 #ifdef __cplusplus
17942 extern "C" void exit (int);
17943 #endif
17944
17945 void fnord() { int i=42;}
17946 int main ()
17947 {
17948   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17949   int status = $lt_dlunknown;
17950
17951   if (self)
17952     {
17953       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17954       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17955       /* dlclose (self); */
17956     }
17957
17958     exit (status);
17959 }
17960 EOF
17961   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962   (eval $ac_link) 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17966     (./conftest; exit; ) 2>/dev/null
17967     lt_status=$?
17968     case x$lt_status in
17969       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17970       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17971       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17972     esac
17973   else :
17974     # compilation failed
17975     lt_cv_dlopen_self_static=no
17976   fi
17977 fi
17978 rm -fr conftest*
17979
17980
17981 fi
17982 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17983 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17984     fi
17985
17986     CPPFLAGS="$save_CPPFLAGS"
17987     LDFLAGS="$save_LDFLAGS"
17988     LIBS="$save_LIBS"
17989     ;;
17990   esac
17991
17992   case $lt_cv_dlopen_self in
17993   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17994   *) enable_dlopen_self=unknown ;;
17995   esac
17996
17997   case $lt_cv_dlopen_self_static in
17998   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17999   *) enable_dlopen_self_static=unknown ;;
18000   esac
18001 fi
18002
18003
18004 # The else clause should only fire when bootstrapping the
18005 # libtool distribution, otherwise you forgot to ship ltmain.sh
18006 # with your package, and you will get complaints that there are
18007 # no rules to generate ltmain.sh.
18008 if test -f "$ltmain"; then
18009   # See if we are running on zsh, and set the options which allow our commands through
18010   # without removal of \ escapes.
18011   if test -n "${ZSH_VERSION+set}" ; then
18012     setopt NO_GLOB_SUBST
18013   fi
18014   # Now quote all the things that may contain metacharacters while being
18015   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18016   # variables and quote the copies for generation of the libtool script.
18017   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18018     SED SHELL STRIP \
18019     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18020     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18021     deplibs_check_method reload_flag reload_cmds need_locks \
18022     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18023     lt_cv_sys_global_symbol_to_c_name_address \
18024     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18025     old_postinstall_cmds old_postuninstall_cmds \
18026     compiler_GCJ \
18027     CC_GCJ \
18028     LD_GCJ \
18029     lt_prog_compiler_wl_GCJ \
18030     lt_prog_compiler_pic_GCJ \
18031     lt_prog_compiler_static_GCJ \
18032     lt_prog_compiler_no_builtin_flag_GCJ \
18033     export_dynamic_flag_spec_GCJ \
18034     thread_safe_flag_spec_GCJ \
18035     whole_archive_flag_spec_GCJ \
18036     enable_shared_with_static_runtimes_GCJ \
18037     old_archive_cmds_GCJ \
18038     old_archive_from_new_cmds_GCJ \
18039     predep_objects_GCJ \
18040     postdep_objects_GCJ \
18041     predeps_GCJ \
18042     postdeps_GCJ \
18043     compiler_lib_search_path_GCJ \
18044     archive_cmds_GCJ \
18045     archive_expsym_cmds_GCJ \
18046     postinstall_cmds_GCJ \
18047     postuninstall_cmds_GCJ \
18048     old_archive_from_expsyms_cmds_GCJ \
18049     allow_undefined_flag_GCJ \
18050     no_undefined_flag_GCJ \
18051     export_symbols_cmds_GCJ \
18052     hardcode_libdir_flag_spec_GCJ \
18053     hardcode_libdir_flag_spec_ld_GCJ \
18054     hardcode_libdir_separator_GCJ \
18055     hardcode_automatic_GCJ \
18056     module_cmds_GCJ \
18057     module_expsym_cmds_GCJ \
18058     lt_cv_prog_compiler_c_o_GCJ \
18059     exclude_expsyms_GCJ \
18060     include_expsyms_GCJ; do
18061
18062     case $var in
18063     old_archive_cmds_GCJ | \
18064     old_archive_from_new_cmds_GCJ | \
18065     archive_cmds_GCJ | \
18066     archive_expsym_cmds_GCJ | \
18067     module_cmds_GCJ | \
18068     module_expsym_cmds_GCJ | \
18069     old_archive_from_expsyms_cmds_GCJ | \
18070     export_symbols_cmds_GCJ | \
18071     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18072     postinstall_cmds | postuninstall_cmds | \
18073     old_postinstall_cmds | old_postuninstall_cmds | \
18074     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18075       # Double-quote double-evaled strings.
18076       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18077       ;;
18078     *)
18079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18080       ;;
18081     esac
18082   done
18083
18084   case $lt_echo in
18085   *'\$0 --fallback-echo"')
18086     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18087     ;;
18088   esac
18089
18090 cfgfile="$ofile"
18091
18092   cat <<__EOF__ >> "$cfgfile"
18093 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18094
18095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18096
18097 # Shell to use when invoking shell scripts.
18098 SHELL=$lt_SHELL
18099
18100 # Whether or not to build shared libraries.
18101 build_libtool_libs=$enable_shared
18102
18103 # Whether or not to build static libraries.
18104 build_old_libs=$enable_static
18105
18106 # Whether or not to add -lc for building shared libraries.
18107 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18108
18109 # Whether or not to disallow shared libs when runtime libs are static
18110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18111
18112 # Whether or not to optimize for fast installation.
18113 fast_install=$enable_fast_install
18114
18115 # The host system.
18116 host_alias=$host_alias
18117 host=$host
18118
18119 # An echo program that does not interpret backslashes.
18120 echo=$lt_echo
18121
18122 # The archiver.
18123 AR=$lt_AR
18124 AR_FLAGS=$lt_AR_FLAGS
18125
18126 # A C compiler.
18127 LTCC=$lt_LTCC
18128
18129 # A language-specific compiler.
18130 CC=$lt_compiler_GCJ
18131
18132 # Is the compiler the GNU C compiler?
18133 with_gcc=$GCC_GCJ
18134
18135 # An ERE matcher.
18136 EGREP=$lt_EGREP
18137
18138 # The linker used to build libraries.
18139 LD=$lt_LD_GCJ
18140
18141 # Whether we need hard or soft links.
18142 LN_S=$lt_LN_S
18143
18144 # A BSD-compatible nm program.
18145 NM=$lt_NM
18146
18147 # A symbol stripping program
18148 STRIP=$lt_STRIP
18149
18150 # Used to examine libraries when file_magic_cmd begins "file"
18151 MAGIC_CMD=$MAGIC_CMD
18152
18153 # Used on cygwin: DLL creation program.
18154 DLLTOOL="$DLLTOOL"
18155
18156 # Used on cygwin: object dumper.
18157 OBJDUMP="$OBJDUMP"
18158
18159 # Used on cygwin: assembler.
18160 AS="$AS"
18161
18162 # The name of the directory that contains temporary libtool files.
18163 objdir=$objdir
18164
18165 # How to create reloadable object files.
18166 reload_flag=$lt_reload_flag
18167 reload_cmds=$lt_reload_cmds
18168
18169 # How to pass a linker flag through the compiler.
18170 wl=$lt_lt_prog_compiler_wl_GCJ
18171
18172 # Object file suffix (normally "o").
18173 objext="$ac_objext"
18174
18175 # Old archive suffix (normally "a").
18176 libext="$libext"
18177
18178 # Shared library suffix (normally ".so").
18179 shrext_cmds='$shrext_cmds'
18180
18181 # Executable file suffix (normally "").
18182 exeext="$exeext"
18183
18184 # Additional compiler flags for building library objects.
18185 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18186 pic_mode=$pic_mode
18187
18188 # What is the maximum length of a command?
18189 max_cmd_len=$lt_cv_sys_max_cmd_len
18190
18191 # Does compiler simultaneously support -c and -o options?
18192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18193
18194 # Must we lock files when doing compilation ?
18195 need_locks=$lt_need_locks
18196
18197 # Do we need the lib prefix for modules?
18198 need_lib_prefix=$need_lib_prefix
18199
18200 # Do we need a version for libraries?
18201 need_version=$need_version
18202
18203 # Whether dlopen is supported.
18204 dlopen_support=$enable_dlopen
18205
18206 # Whether dlopen of programs is supported.
18207 dlopen_self=$enable_dlopen_self
18208
18209 # Whether dlopen of statically linked programs is supported.
18210 dlopen_self_static=$enable_dlopen_self_static
18211
18212 # Compiler flag to prevent dynamic linking.
18213 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18214
18215 # Compiler flag to turn off builtin functions.
18216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18217
18218 # Compiler flag to allow reflexive dlopens.
18219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18220
18221 # Compiler flag to generate shared objects directly from archives.
18222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18223
18224 # Compiler flag to generate thread-safe objects.
18225 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18226
18227 # Library versioning type.
18228 version_type=$version_type
18229
18230 # Format of library name prefix.
18231 libname_spec=$lt_libname_spec
18232
18233 # List of archive names.  First name is the real one, the rest are links.
18234 # The last name is the one that the linker finds with -lNAME.
18235 library_names_spec=$lt_library_names_spec
18236
18237 # The coded name of the library, if different from the real name.
18238 soname_spec=$lt_soname_spec
18239
18240 # Commands used to build and install an old-style archive.
18241 RANLIB=$lt_RANLIB
18242 old_archive_cmds=$lt_old_archive_cmds_GCJ
18243 old_postinstall_cmds=$lt_old_postinstall_cmds
18244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18245
18246 # Create an old-style archive from a shared archive.
18247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18248
18249 # Create a temporary old-style archive to link instead of a shared archive.
18250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18251
18252 # Commands used to build and install a shared archive.
18253 archive_cmds=$lt_archive_cmds_GCJ
18254 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18255 postinstall_cmds=$lt_postinstall_cmds
18256 postuninstall_cmds=$lt_postuninstall_cmds
18257
18258 # Commands used to build a loadable module (assumed same as above if empty)
18259 module_cmds=$lt_module_cmds_GCJ
18260 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18261
18262 # Commands to strip libraries.
18263 old_striplib=$lt_old_striplib
18264 striplib=$lt_striplib
18265
18266 # Dependencies to place before the objects being linked to create a
18267 # shared library.
18268 predep_objects=$lt_predep_objects_GCJ
18269
18270 # Dependencies to place after the objects being linked to create a
18271 # shared library.
18272 postdep_objects=$lt_postdep_objects_GCJ
18273
18274 # Dependencies to place before the objects being linked to create a
18275 # shared library.
18276 predeps=$lt_predeps_GCJ
18277
18278 # Dependencies to place after the objects being linked to create a
18279 # shared library.
18280 postdeps=$lt_postdeps_GCJ
18281
18282 # The library search path used internally by the compiler when linking
18283 # a shared library.
18284 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18285
18286 # Method to check whether dependent libraries are shared objects.
18287 deplibs_check_method=$lt_deplibs_check_method
18288
18289 # Command to use when deplibs_check_method == file_magic.
18290 file_magic_cmd=$lt_file_magic_cmd
18291
18292 # Flag that allows shared libraries with undefined symbols to be built.
18293 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18294
18295 # Flag that forces no undefined symbols.
18296 no_undefined_flag=$lt_no_undefined_flag_GCJ
18297
18298 # Commands used to finish a libtool library installation in a directory.
18299 finish_cmds=$lt_finish_cmds
18300
18301 # Same as above, but a single script fragment to be evaled but not shown.
18302 finish_eval=$lt_finish_eval
18303
18304 # Take the output of nm and produce a listing of raw symbols and C names.
18305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18306
18307 # Transform the output of nm in a proper C declaration
18308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18309
18310 # Transform the output of nm in a C name address pair
18311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18312
18313 # This is the shared library runtime path variable.
18314 runpath_var=$runpath_var
18315
18316 # This is the shared library path variable.
18317 shlibpath_var=$shlibpath_var
18318
18319 # Is shlibpath searched before the hard-coded library search path?
18320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18321
18322 # How to hardcode a shared library path into an executable.
18323 hardcode_action=$hardcode_action_GCJ
18324
18325 # Whether we should hardcode library paths into libraries.
18326 hardcode_into_libs=$hardcode_into_libs
18327
18328 # Flag to hardcode \$libdir into a binary during linking.
18329 # This must work even if \$libdir does not exist.
18330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18331
18332 # If ld is used when linking, flag to hardcode \$libdir into
18333 # a binary during linking. This must work even if \$libdir does
18334 # not exist.
18335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18336
18337 # Whether we need a single -rpath flag with a separated argument.
18338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18339
18340 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18341 # resulting binary.
18342 hardcode_direct=$hardcode_direct_GCJ
18343
18344 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18345 # resulting binary.
18346 hardcode_minus_L=$hardcode_minus_L_GCJ
18347
18348 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18349 # the resulting binary.
18350 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18351
18352 # Set to yes if building a shared library automatically hardcodes DIR into the library
18353 # and all subsequent libraries and executables linked against it.
18354 hardcode_automatic=$hardcode_automatic_GCJ
18355
18356 # Variables whose values should be saved in libtool wrapper scripts and
18357 # restored at relink time.
18358 variables_saved_for_relink="$variables_saved_for_relink"
18359
18360 # Whether libtool must link a program against all its dependency libraries.
18361 link_all_deplibs=$link_all_deplibs_GCJ
18362
18363 # Compile-time system search path for libraries
18364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18365
18366 # Run-time system search path for libraries
18367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18368
18369 # Fix the shell variable \$srcfile for the compiler.
18370 fix_srcfile_path="$fix_srcfile_path_GCJ"
18371
18372 # Set to yes if exported symbols are required.
18373 always_export_symbols=$always_export_symbols_GCJ
18374
18375 # The commands to list exported symbols.
18376 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18377
18378 # The commands to extract the exported symbol list from a shared archive.
18379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18380
18381 # Symbols that should not be listed in the preloaded symbols.
18382 exclude_expsyms=$lt_exclude_expsyms_GCJ
18383
18384 # Symbols that must always be exported.
18385 include_expsyms=$lt_include_expsyms_GCJ
18386
18387 # ### END LIBTOOL TAG CONFIG: $tagname
18388
18389 __EOF__
18390
18391
18392 else
18393   # If there is no Makefile yet, we rely on a make rule to execute
18394   # `config.status --recheck' to rerun these tests and create the
18395   # libtool script then.
18396   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18397   if test -f "$ltmain_in"; then
18398     test -f Makefile && make "$ltmain"
18399   fi
18400 fi
18401
18402
18403 ac_ext=c
18404 ac_cpp='$CPP $CPPFLAGS'
18405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18408
18409 CC="$lt_save_CC"
18410
18411         else
18412           tagname=""
18413         fi
18414         ;;
18415
18416       RC)
18417         ac_ext=c
18418 ac_cpp='$CPP $CPPFLAGS'
18419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18422
18423
18424 # Source file extension for RC test sources.
18425 ac_ext=rc
18426
18427 # Object file extension for compiled RC test sources.
18428 objext=o
18429 objext_RC=$objext
18430
18431 # Code to be used in simple compile tests
18432 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18433
18434 # Code to be used in simple link tests
18435 lt_simple_link_test_code="$lt_simple_compile_test_code"
18436
18437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18438
18439 # If no C compiler was specified, use CC.
18440 LTCC=${LTCC-"$CC"}
18441
18442 # Allow CC to be a program name with arguments.
18443 compiler=$CC
18444
18445
18446 # Allow CC to be a program name with arguments.
18447 lt_save_CC="$CC"
18448 CC=${RC-"windres"}
18449 compiler=$CC
18450 compiler_RC=$CC
18451 lt_cv_prog_compiler_c_o_RC=yes
18452
18453 # The else clause should only fire when bootstrapping the
18454 # libtool distribution, otherwise you forgot to ship ltmain.sh
18455 # with your package, and you will get complaints that there are
18456 # no rules to generate ltmain.sh.
18457 if test -f "$ltmain"; then
18458   # See if we are running on zsh, and set the options which allow our commands through
18459   # without removal of \ escapes.
18460   if test -n "${ZSH_VERSION+set}" ; then
18461     setopt NO_GLOB_SUBST
18462   fi
18463   # Now quote all the things that may contain metacharacters while being
18464   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18465   # variables and quote the copies for generation of the libtool script.
18466   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18467     SED SHELL STRIP \
18468     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18469     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18470     deplibs_check_method reload_flag reload_cmds need_locks \
18471     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18472     lt_cv_sys_global_symbol_to_c_name_address \
18473     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18474     old_postinstall_cmds old_postuninstall_cmds \
18475     compiler_RC \
18476     CC_RC \
18477     LD_RC \
18478     lt_prog_compiler_wl_RC \
18479     lt_prog_compiler_pic_RC \
18480     lt_prog_compiler_static_RC \
18481     lt_prog_compiler_no_builtin_flag_RC \
18482     export_dynamic_flag_spec_RC \
18483     thread_safe_flag_spec_RC \
18484     whole_archive_flag_spec_RC \
18485     enable_shared_with_static_runtimes_RC \
18486     old_archive_cmds_RC \
18487     old_archive_from_new_cmds_RC \
18488     predep_objects_RC \
18489     postdep_objects_RC \
18490     predeps_RC \
18491     postdeps_RC \
18492     compiler_lib_search_path_RC \
18493     archive_cmds_RC \
18494     archive_expsym_cmds_RC \
18495     postinstall_cmds_RC \
18496     postuninstall_cmds_RC \
18497     old_archive_from_expsyms_cmds_RC \
18498     allow_undefined_flag_RC \
18499     no_undefined_flag_RC \
18500     export_symbols_cmds_RC \
18501     hardcode_libdir_flag_spec_RC \
18502     hardcode_libdir_flag_spec_ld_RC \
18503     hardcode_libdir_separator_RC \
18504     hardcode_automatic_RC \
18505     module_cmds_RC \
18506     module_expsym_cmds_RC \
18507     lt_cv_prog_compiler_c_o_RC \
18508     exclude_expsyms_RC \
18509     include_expsyms_RC; do
18510
18511     case $var in
18512     old_archive_cmds_RC | \
18513     old_archive_from_new_cmds_RC | \
18514     archive_cmds_RC | \
18515     archive_expsym_cmds_RC | \
18516     module_cmds_RC | \
18517     module_expsym_cmds_RC | \
18518     old_archive_from_expsyms_cmds_RC | \
18519     export_symbols_cmds_RC | \
18520     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18521     postinstall_cmds | postuninstall_cmds | \
18522     old_postinstall_cmds | old_postuninstall_cmds | \
18523     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18524       # Double-quote double-evaled strings.
18525       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18526       ;;
18527     *)
18528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18529       ;;
18530     esac
18531   done
18532
18533   case $lt_echo in
18534   *'\$0 --fallback-echo"')
18535     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18536     ;;
18537   esac
18538
18539 cfgfile="$ofile"
18540
18541   cat <<__EOF__ >> "$cfgfile"
18542 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18543
18544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18545
18546 # Shell to use when invoking shell scripts.
18547 SHELL=$lt_SHELL
18548
18549 # Whether or not to build shared libraries.
18550 build_libtool_libs=$enable_shared
18551
18552 # Whether or not to build static libraries.
18553 build_old_libs=$enable_static
18554
18555 # Whether or not to add -lc for building shared libraries.
18556 build_libtool_need_lc=$archive_cmds_need_lc_RC
18557
18558 # Whether or not to disallow shared libs when runtime libs are static
18559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18560
18561 # Whether or not to optimize for fast installation.
18562 fast_install=$enable_fast_install
18563
18564 # The host system.
18565 host_alias=$host_alias
18566 host=$host
18567
18568 # An echo program that does not interpret backslashes.
18569 echo=$lt_echo
18570
18571 # The archiver.
18572 AR=$lt_AR
18573 AR_FLAGS=$lt_AR_FLAGS
18574
18575 # A C compiler.
18576 LTCC=$lt_LTCC
18577
18578 # A language-specific compiler.
18579 CC=$lt_compiler_RC
18580
18581 # Is the compiler the GNU C compiler?
18582 with_gcc=$GCC_RC
18583
18584 # An ERE matcher.
18585 EGREP=$lt_EGREP
18586
18587 # The linker used to build libraries.
18588 LD=$lt_LD_RC
18589
18590 # Whether we need hard or soft links.
18591 LN_S=$lt_LN_S
18592
18593 # A BSD-compatible nm program.
18594 NM=$lt_NM
18595
18596 # A symbol stripping program
18597 STRIP=$lt_STRIP
18598
18599 # Used to examine libraries when file_magic_cmd begins "file"
18600 MAGIC_CMD=$MAGIC_CMD
18601
18602 # Used on cygwin: DLL creation program.
18603 DLLTOOL="$DLLTOOL"
18604
18605 # Used on cygwin: object dumper.
18606 OBJDUMP="$OBJDUMP"
18607
18608 # Used on cygwin: assembler.
18609 AS="$AS"
18610
18611 # The name of the directory that contains temporary libtool files.
18612 objdir=$objdir
18613
18614 # How to create reloadable object files.
18615 reload_flag=$lt_reload_flag
18616 reload_cmds=$lt_reload_cmds
18617
18618 # How to pass a linker flag through the compiler.
18619 wl=$lt_lt_prog_compiler_wl_RC
18620
18621 # Object file suffix (normally "o").
18622 objext="$ac_objext"
18623
18624 # Old archive suffix (normally "a").
18625 libext="$libext"
18626
18627 # Shared library suffix (normally ".so").
18628 shrext_cmds='$shrext_cmds'
18629
18630 # Executable file suffix (normally "").
18631 exeext="$exeext"
18632
18633 # Additional compiler flags for building library objects.
18634 pic_flag=$lt_lt_prog_compiler_pic_RC
18635 pic_mode=$pic_mode
18636
18637 # What is the maximum length of a command?
18638 max_cmd_len=$lt_cv_sys_max_cmd_len
18639
18640 # Does compiler simultaneously support -c and -o options?
18641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18642
18643 # Must we lock files when doing compilation ?
18644 need_locks=$lt_need_locks
18645
18646 # Do we need the lib prefix for modules?
18647 need_lib_prefix=$need_lib_prefix
18648
18649 # Do we need a version for libraries?
18650 need_version=$need_version
18651
18652 # Whether dlopen is supported.
18653 dlopen_support=$enable_dlopen
18654
18655 # Whether dlopen of programs is supported.
18656 dlopen_self=$enable_dlopen_self
18657
18658 # Whether dlopen of statically linked programs is supported.
18659 dlopen_self_static=$enable_dlopen_self_static
18660
18661 # Compiler flag to prevent dynamic linking.
18662 link_static_flag=$lt_lt_prog_compiler_static_RC
18663
18664 # Compiler flag to turn off builtin functions.
18665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18666
18667 # Compiler flag to allow reflexive dlopens.
18668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18669
18670 # Compiler flag to generate shared objects directly from archives.
18671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18672
18673 # Compiler flag to generate thread-safe objects.
18674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18675
18676 # Library versioning type.
18677 version_type=$version_type
18678
18679 # Format of library name prefix.
18680 libname_spec=$lt_libname_spec
18681
18682 # List of archive names.  First name is the real one, the rest are links.
18683 # The last name is the one that the linker finds with -lNAME.
18684 library_names_spec=$lt_library_names_spec
18685
18686 # The coded name of the library, if different from the real name.
18687 soname_spec=$lt_soname_spec
18688
18689 # Commands used to build and install an old-style archive.
18690 RANLIB=$lt_RANLIB
18691 old_archive_cmds=$lt_old_archive_cmds_RC
18692 old_postinstall_cmds=$lt_old_postinstall_cmds
18693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18694
18695 # Create an old-style archive from a shared archive.
18696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18697
18698 # Create a temporary old-style archive to link instead of a shared archive.
18699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18700
18701 # Commands used to build and install a shared archive.
18702 archive_cmds=$lt_archive_cmds_RC
18703 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18704 postinstall_cmds=$lt_postinstall_cmds
18705 postuninstall_cmds=$lt_postuninstall_cmds
18706
18707 # Commands used to build a loadable module (assumed same as above if empty)
18708 module_cmds=$lt_module_cmds_RC
18709 module_expsym_cmds=$lt_module_expsym_cmds_RC
18710
18711 # Commands to strip libraries.
18712 old_striplib=$lt_old_striplib
18713 striplib=$lt_striplib
18714
18715 # Dependencies to place before the objects being linked to create a
18716 # shared library.
18717 predep_objects=$lt_predep_objects_RC
18718
18719 # Dependencies to place after the objects being linked to create a
18720 # shared library.
18721 postdep_objects=$lt_postdep_objects_RC
18722
18723 # Dependencies to place before the objects being linked to create a
18724 # shared library.
18725 predeps=$lt_predeps_RC
18726
18727 # Dependencies to place after the objects being linked to create a
18728 # shared library.
18729 postdeps=$lt_postdeps_RC
18730
18731 # The library search path used internally by the compiler when linking
18732 # a shared library.
18733 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18734
18735 # Method to check whether dependent libraries are shared objects.
18736 deplibs_check_method=$lt_deplibs_check_method
18737
18738 # Command to use when deplibs_check_method == file_magic.
18739 file_magic_cmd=$lt_file_magic_cmd
18740
18741 # Flag that allows shared libraries with undefined symbols to be built.
18742 allow_undefined_flag=$lt_allow_undefined_flag_RC
18743
18744 # Flag that forces no undefined symbols.
18745 no_undefined_flag=$lt_no_undefined_flag_RC
18746
18747 # Commands used to finish a libtool library installation in a directory.
18748 finish_cmds=$lt_finish_cmds
18749
18750 # Same as above, but a single script fragment to be evaled but not shown.
18751 finish_eval=$lt_finish_eval
18752
18753 # Take the output of nm and produce a listing of raw symbols and C names.
18754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18755
18756 # Transform the output of nm in a proper C declaration
18757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18758
18759 # Transform the output of nm in a C name address pair
18760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18761
18762 # This is the shared library runtime path variable.
18763 runpath_var=$runpath_var
18764
18765 # This is the shared library path variable.
18766 shlibpath_var=$shlibpath_var
18767
18768 # Is shlibpath searched before the hard-coded library search path?
18769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18770
18771 # How to hardcode a shared library path into an executable.
18772 hardcode_action=$hardcode_action_RC
18773
18774 # Whether we should hardcode library paths into libraries.
18775 hardcode_into_libs=$hardcode_into_libs
18776
18777 # Flag to hardcode \$libdir into a binary during linking.
18778 # This must work even if \$libdir does not exist.
18779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18780
18781 # If ld is used when linking, flag to hardcode \$libdir into
18782 # a binary during linking. This must work even if \$libdir does
18783 # not exist.
18784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18785
18786 # Whether we need a single -rpath flag with a separated argument.
18787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18788
18789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18790 # resulting binary.
18791 hardcode_direct=$hardcode_direct_RC
18792
18793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18794 # resulting binary.
18795 hardcode_minus_L=$hardcode_minus_L_RC
18796
18797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18798 # the resulting binary.
18799 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18800
18801 # Set to yes if building a shared library automatically hardcodes DIR into the library
18802 # and all subsequent libraries and executables linked against it.
18803 hardcode_automatic=$hardcode_automatic_RC
18804
18805 # Variables whose values should be saved in libtool wrapper scripts and
18806 # restored at relink time.
18807 variables_saved_for_relink="$variables_saved_for_relink"
18808
18809 # Whether libtool must link a program against all its dependency libraries.
18810 link_all_deplibs=$link_all_deplibs_RC
18811
18812 # Compile-time system search path for libraries
18813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18814
18815 # Run-time system search path for libraries
18816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18817
18818 # Fix the shell variable \$srcfile for the compiler.
18819 fix_srcfile_path="$fix_srcfile_path_RC"
18820
18821 # Set to yes if exported symbols are required.
18822 always_export_symbols=$always_export_symbols_RC
18823
18824 # The commands to list exported symbols.
18825 export_symbols_cmds=$lt_export_symbols_cmds_RC
18826
18827 # The commands to extract the exported symbol list from a shared archive.
18828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18829
18830 # Symbols that should not be listed in the preloaded symbols.
18831 exclude_expsyms=$lt_exclude_expsyms_RC
18832
18833 # Symbols that must always be exported.
18834 include_expsyms=$lt_include_expsyms_RC
18835
18836 # ### END LIBTOOL TAG CONFIG: $tagname
18837
18838 __EOF__
18839
18840
18841 else
18842   # If there is no Makefile yet, we rely on a make rule to execute
18843   # `config.status --recheck' to rerun these tests and create the
18844   # libtool script then.
18845   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18846   if test -f "$ltmain_in"; then
18847     test -f Makefile && make "$ltmain"
18848   fi
18849 fi
18850
18851
18852 ac_ext=c
18853 ac_cpp='$CPP $CPPFLAGS'
18854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18857
18858 CC="$lt_save_CC"
18859
18860         ;;
18861
18862       *)
18863         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18864 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18865    { (exit 1); exit 1; }; }
18866         ;;
18867       esac
18868
18869       # Append the new tag name to the list of available tags.
18870       if test -n "$tagname" ; then
18871       available_tags="$available_tags $tagname"
18872     fi
18873     fi
18874   done
18875   IFS="$lt_save_ifs"
18876
18877   # Now substitute the updated list of available tags.
18878   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18879     mv "${ofile}T" "$ofile"
18880     chmod +x "$ofile"
18881   else
18882     rm -f "${ofile}T"
18883     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18884 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18885    { (exit 1); exit 1; }; }
18886   fi
18887 fi
18888
18889
18890
18891 # This can be used to rebuild libtool when needed
18892 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18893
18894 # Always use our own libtool.
18895 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18896
18897 # Prevent multiple expansion
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919 # Extract the first word of "dot", so it can be a program name with args.
18920 set dummy dot; ac_word=$2
18921 echo "$as_me:$LINENO: checking for $ac_word" >&5
18922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18923 if test "${ac_cv_path_DOT+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   case $DOT in
18927   [\\/]* | ?:[\\/]*)
18928   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18929   ;;
18930   *)
18931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932 for as_dir in $PATH
18933 do
18934   IFS=$as_save_IFS
18935   test -z "$as_dir" && as_dir=.
18936   for ac_exec_ext in '' $ac_executable_extensions; do
18937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18938     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18940     break 2
18941   fi
18942 done
18943 done
18944
18945   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18946   ;;
18947 esac
18948 fi
18949 DOT=$ac_cv_path_DOT
18950
18951 if test -n "$DOT"; then
18952   echo "$as_me:$LINENO: result: $DOT" >&5
18953 echo "${ECHO_T}$DOT" >&6
18954 else
18955   echo "$as_me:$LINENO: result: no" >&5
18956 echo "${ECHO_T}no" >&6
18957 fi
18958
18959 # Extract the first word of "etags", so it can be a program name with args.
18960 set dummy etags; ac_word=$2
18961 echo "$as_me:$LINENO: checking for $ac_word" >&5
18962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18963 if test "${ac_cv_path_ETAGS+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   case $ETAGS in
18967   [\\/]* | ?:[\\/]*)
18968   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18969   ;;
18970   *)
18971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972 for as_dir in $PATH
18973 do
18974   IFS=$as_save_IFS
18975   test -z "$as_dir" && as_dir=.
18976   for ac_exec_ext in '' $ac_executable_extensions; do
18977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18980     break 2
18981   fi
18982 done
18983 done
18984
18985   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18986   ;;
18987 esac
18988 fi
18989 ETAGS=$ac_cv_path_ETAGS
18990
18991 if test -n "$ETAGS"; then
18992   echo "$as_me:$LINENO: result: $ETAGS" >&5
18993 echo "${ECHO_T}$ETAGS" >&6
18994 else
18995   echo "$as_me:$LINENO: result: no" >&5
18996 echo "${ECHO_T}no" >&6
18997 fi
18998
18999 etags_version=`$ETAGS --version 2>&1`
19000 case "$etags_version" in
19001         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19002         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19003         *) ETAGSFLAGS="" ;;
19004 esac
19005 ETAGSFLAGS=$ETAGSFLAGS
19006
19007 # Extract the first word of "python", so it can be a program name with args.
19008 set dummy python; ac_word=$2
19009 echo "$as_me:$LINENO: checking for $ac_word" >&5
19010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19011 if test "${ac_cv_path_PYTHON+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   case $PYTHON in
19015   [\\/]* | ?:[\\/]*)
19016   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19017   ;;
19018   *)
19019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020 for as_dir in $PATH
19021 do
19022   IFS=$as_save_IFS
19023   test -z "$as_dir" && as_dir=.
19024   for ac_exec_ext in '' $ac_executable_extensions; do
19025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19026     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19028     break 2
19029   fi
19030 done
19031 done
19032
19033   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19034   ;;
19035 esac
19036 fi
19037 PYTHON=$ac_cv_path_PYTHON
19038
19039 if test -n "$PYTHON"; then
19040   echo "$as_me:$LINENO: result: $PYTHON" >&5
19041 echo "${ECHO_T}$PYTHON" >&6
19042 else
19043   echo "$as_me:$LINENO: result: no" >&5
19044 echo "${ECHO_T}no" >&6
19045 fi
19046
19047 if test "$PYTHON" = "false"
19048 then
19049         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19050 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19051 fi
19052 # Extract the first word of "qmtest", so it can be a program name with args.
19053 set dummy qmtest; ac_word=$2
19054 echo "$as_me:$LINENO: checking for $ac_word" >&5
19055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19056 if test "${ac_cv_path_QMTEST+set}" = set; then
19057   echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059   case $QMTEST in
19060   [\\/]* | ?:[\\/]*)
19061   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19062   ;;
19063   *)
19064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065 for as_dir in $PATH
19066 do
19067   IFS=$as_save_IFS
19068   test -z "$as_dir" && as_dir=.
19069   for ac_exec_ext in '' $ac_executable_extensions; do
19070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19071     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19073     break 2
19074   fi
19075 done
19076 done
19077
19078   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19079   ;;
19080 esac
19081 fi
19082 QMTEST=$ac_cv_path_QMTEST
19083
19084 if test -n "$QMTEST"; then
19085   echo "$as_me:$LINENO: result: $QMTEST" >&5
19086 echo "${ECHO_T}$QMTEST" >&6
19087 else
19088   echo "$as_me:$LINENO: result: no" >&5
19089 echo "${ECHO_T}no" >&6
19090 fi
19091
19092 if test "$QMTEST" = "false"
19093 then
19094         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19095 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19096 fi
19097
19098 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19099 pymajor=`echo $pyversion | cut -d. -f1`
19100 pyminor=`echo $pyversion | cut -d. -f2`
19101
19102 if test "$pymajor" -ge "2"
19103 then
19104         if test "$pymajor" -eq "2"
19105         then
19106                 if test "$pyminor" -lt "2"
19107                 then
19108                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19109 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19110                 fi
19111         fi
19112 else
19113         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19114 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19115 fi
19116
19117
19118 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19119 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19120 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   ac_check_lib_save_LIBS=$LIBS
19124 LIBS="-lelf  $LIBS"
19125 cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131
19132 /* Override any gcc2 internal prototype to avoid an error.  */
19133 #ifdef __cplusplus
19134 extern "C"
19135 #endif
19136 /* We use char because int might match the return type of a gcc2
19137    builtin and then its argument prototype would still apply.  */
19138 char elf_begin ();
19139 int
19140 main ()
19141 {
19142 elf_begin ();
19143   ;
19144   return 0;
19145 }
19146 _ACEOF
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149   (eval $ac_link) 2>conftest.er1
19150   ac_status=$?
19151   grep -v '^ *+' conftest.er1 >conftest.err
19152   rm -f conftest.er1
19153   cat conftest.err >&5
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } &&
19156          { ac_try='test -z "$ac_c_werror_flag"
19157                          || test ! -s conftest.err'
19158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159   (eval $ac_try) 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; } &&
19163          { ac_try='test -s conftest$ac_exeext'
19164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165   (eval $ac_try) 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; }; then
19169   ac_cv_lib_elf_elf_begin=yes
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 ac_cv_lib_elf_elf_begin=no
19175 fi
19176 rm -f conftest.err conftest.$ac_objext \
19177       conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19179 fi
19180 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19181 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19182 if test $ac_cv_lib_elf_elf_begin = yes; then
19183   cat >>confdefs.h <<_ACEOF
19184 #define HAVE_LIBELF 1
19185 _ACEOF
19186
19187   LIBS="-lelf $LIBS"
19188
19189 fi
19190
19191
19192 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19194 if test "${ac_cv_search_dlopen+set}" = set; then
19195   echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197   ac_func_search_save_LIBS=$LIBS
19198 ac_cv_search_dlopen=no
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205
19206 /* Override any gcc2 internal prototype to avoid an error.  */
19207 #ifdef __cplusplus
19208 extern "C"
19209 #endif
19210 /* We use char because int might match the return type of a gcc2
19211    builtin and then its argument prototype would still apply.  */
19212 char dlopen ();
19213 int
19214 main ()
19215 {
19216 dlopen ();
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223   (eval $ac_link) 2>conftest.er1
19224   ac_status=$?
19225   grep -v '^ *+' conftest.er1 >conftest.err
19226   rm -f conftest.er1
19227   cat conftest.err >&5
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } &&
19230          { ac_try='test -z "$ac_c_werror_flag"
19231                          || test ! -s conftest.err'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; } &&
19237          { ac_try='test -s conftest$ac_exeext'
19238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239   (eval $ac_try) 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; }; then
19243   ac_cv_search_dlopen="none required"
19244 else
19245   echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 fi
19249 rm -f conftest.err conftest.$ac_objext \
19250       conftest$ac_exeext conftest.$ac_ext
19251 if test "$ac_cv_search_dlopen" = no; then
19252   for ac_lib in dl; do
19253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19254     cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h.  */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h.  */
19260
19261 /* Override any gcc2 internal prototype to avoid an error.  */
19262 #ifdef __cplusplus
19263 extern "C"
19264 #endif
19265 /* We use char because int might match the return type of a gcc2
19266    builtin and then its argument prototype would still apply.  */
19267 char dlopen ();
19268 int
19269 main ()
19270 {
19271 dlopen ();
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19278   (eval $ac_link) 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -z "$ac_c_werror_flag"
19286                          || test ! -s conftest.err'
19287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288   (eval $ac_try) 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } &&
19292          { ac_try='test -s conftest$ac_exeext'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_search_dlopen="-l$ac_lib"
19299 break
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 fi
19305 rm -f conftest.err conftest.$ac_objext \
19306       conftest$ac_exeext conftest.$ac_ext
19307   done
19308 fi
19309 LIBS=$ac_func_search_save_LIBS
19310 fi
19311 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19313 if test "$ac_cv_search_dlopen" != no; then
19314   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19315
19316 cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_DLOPEN 1
19318 _ACEOF
19319
19320 else
19321   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19322 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19323 fi
19324
19325
19326 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19327 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19328 if test "${ac_cv_search_mallinfo+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   ac_func_search_save_LIBS=$LIBS
19332 ac_cv_search_mallinfo=no
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339
19340 /* Override any gcc2 internal prototype to avoid an error.  */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 /* We use char because int might match the return type of a gcc2
19345    builtin and then its argument prototype would still apply.  */
19346 char mallinfo ();
19347 int
19348 main ()
19349 {
19350 mallinfo ();
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357   (eval $ac_link) 2>conftest.er1
19358   ac_status=$?
19359   grep -v '^ *+' conftest.er1 >conftest.err
19360   rm -f conftest.er1
19361   cat conftest.err >&5
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } &&
19364          { ac_try='test -z "$ac_c_werror_flag"
19365                          || test ! -s conftest.err'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; } &&
19371          { ac_try='test -s conftest$ac_exeext'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; }; then
19377   ac_cv_search_mallinfo="none required"
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 fi
19383 rm -f conftest.err conftest.$ac_objext \
19384       conftest$ac_exeext conftest.$ac_ext
19385 if test "$ac_cv_search_mallinfo" = no; then
19386   for ac_lib in malloc; do
19387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19388     cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394
19395 /* Override any gcc2 internal prototype to avoid an error.  */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 /* We use char because int might match the return type of a gcc2
19400    builtin and then its argument prototype would still apply.  */
19401 char mallinfo ();
19402 int
19403 main ()
19404 {
19405 mallinfo ();
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412   (eval $ac_link) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_search_mallinfo="-l$ac_lib"
19433 break
19434 else
19435   echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 fi
19439 rm -f conftest.err conftest.$ac_objext \
19440       conftest$ac_exeext conftest.$ac_ext
19441   done
19442 fi
19443 LIBS=$ac_func_search_save_LIBS
19444 fi
19445 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19446 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19447 if test "$ac_cv_search_mallinfo" != no; then
19448   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19449
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_MALLINFO 1
19452 _ACEOF
19453
19454 fi
19455
19456
19457 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19458 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19459 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   ac_func_search_save_LIBS=$LIBS
19463 ac_cv_search_pthread_mutex_lock=no
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470
19471 /* Override any gcc2 internal prototype to avoid an error.  */
19472 #ifdef __cplusplus
19473 extern "C"
19474 #endif
19475 /* We use char because int might match the return type of a gcc2
19476    builtin and then its argument prototype would still apply.  */
19477 char pthread_mutex_lock ();
19478 int
19479 main ()
19480 {
19481 pthread_mutex_lock ();
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19488   (eval $ac_link) 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } &&
19495          { ac_try='test -z "$ac_c_werror_flag"
19496                          || test ! -s conftest.err'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; } &&
19502          { ac_try='test -s conftest$ac_exeext'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; }; then
19508   ac_cv_search_pthread_mutex_lock="none required"
19509 else
19510   echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 fi
19514 rm -f conftest.err conftest.$ac_objext \
19515       conftest$ac_exeext conftest.$ac_ext
19516 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19517   for ac_lib in pthread; do
19518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19519     cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525
19526 /* Override any gcc2 internal prototype to avoid an error.  */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 /* We use char because int might match the return type of a gcc2
19531    builtin and then its argument prototype would still apply.  */
19532 char pthread_mutex_lock ();
19533 int
19534 main ()
19535 {
19536 pthread_mutex_lock ();
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543   (eval $ac_link) 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } &&
19550          { ac_try='test -z "$ac_c_werror_flag"
19551                          || test ! -s conftest.err'
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); }; } &&
19557          { ac_try='test -s conftest$ac_exeext'
19558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559   (eval $ac_try) 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; }; then
19563   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19564 break
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 fi
19570 rm -f conftest.err conftest.$ac_objext \
19571       conftest$ac_exeext conftest.$ac_ext
19572   done
19573 fi
19574 LIBS=$ac_func_search_save_LIBS
19575 fi
19576 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19577 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19578 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19579   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19580   HAVE_PTHREAD_MUTEX_LOCK=1
19581 else
19582   HAVE_PTHREAD_MUTEX_LOCK=0
19583 fi
19584
19585
19586
19587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19589 if test "${ac_cv_header_stdc+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592   cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598 #include <stdlib.h>
19599 #include <stdarg.h>
19600 #include <string.h>
19601 #include <float.h>
19602
19603 int
19604 main ()
19605 {
19606
19607   ;
19608   return 0;
19609 }
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613   (eval $ac_compile) 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } &&
19620          { ac_try='test -z "$ac_c_werror_flag"
19621                          || test ! -s conftest.err'
19622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623   (eval $ac_try) 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; } &&
19627          { ac_try='test -s conftest.$ac_objext'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; }; then
19633   ac_cv_header_stdc=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_cv_header_stdc=no
19639 fi
19640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19641
19642 if test $ac_cv_header_stdc = yes; then
19643   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19644   cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 #include <string.h>
19651
19652 _ACEOF
19653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19654   $EGREP "memchr" >/dev/null 2>&1; then
19655   :
19656 else
19657   ac_cv_header_stdc=no
19658 fi
19659 rm -f conftest*
19660
19661 fi
19662
19663 if test $ac_cv_header_stdc = yes; then
19664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19665   cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 #include <stdlib.h>
19672
19673 _ACEOF
19674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19675   $EGREP "free" >/dev/null 2>&1; then
19676   :
19677 else
19678   ac_cv_header_stdc=no
19679 fi
19680 rm -f conftest*
19681
19682 fi
19683
19684 if test $ac_cv_header_stdc = yes; then
19685   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19686   if test "$cross_compiling" = yes; then
19687   :
19688 else
19689   cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695 #include <ctype.h>
19696 #if ((' ' & 0x0FF) == 0x020)
19697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19699 #else
19700 # define ISLOWER(c) \
19701                    (('a' <= (c) && (c) <= 'i') \
19702                      || ('j' <= (c) && (c) <= 'r') \
19703                      || ('s' <= (c) && (c) <= 'z'))
19704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19705 #endif
19706
19707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19708 int
19709 main ()
19710 {
19711   int i;
19712   for (i = 0; i < 256; i++)
19713     if (XOR (islower (i), ISLOWER (i))
19714         || toupper (i) != TOUPPER (i))
19715       exit(2);
19716   exit (0);
19717 }
19718 _ACEOF
19719 rm -f conftest$ac_exeext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721   (eval $ac_link) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726   (eval $ac_try) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; }; then
19730   :
19731 else
19732   echo "$as_me: program exited with status $ac_status" >&5
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736 ( exit $ac_status )
19737 ac_cv_header_stdc=no
19738 fi
19739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19740 fi
19741 fi
19742 fi
19743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19745 if test $ac_cv_header_stdc = yes; then
19746
19747 cat >>confdefs.h <<\_ACEOF
19748 #define STDC_HEADERS 1
19749 _ACEOF
19750
19751 fi
19752
19753 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19754 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19755 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19756   echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758   cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764 #include <sys/types.h>
19765 #include <sys/wait.h>
19766 #ifndef WEXITSTATUS
19767 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19768 #endif
19769 #ifndef WIFEXITED
19770 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19771 #endif
19772
19773 int
19774 main ()
19775 {
19776   int s;
19777   wait (&s);
19778   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19779   ;
19780   return 0;
19781 }
19782 _ACEOF
19783 rm -f conftest.$ac_objext
19784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19785   (eval $ac_compile) 2>conftest.er1
19786   ac_status=$?
19787   grep -v '^ *+' conftest.er1 >conftest.err
19788   rm -f conftest.er1
19789   cat conftest.err >&5
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); } &&
19792          { ac_try='test -z "$ac_c_werror_flag"
19793                          || test ! -s conftest.err'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; } &&
19799          { ac_try='test -s conftest.$ac_objext'
19800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801   (eval $ac_try) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; }; then
19805   ac_cv_header_sys_wait_h=yes
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 ac_cv_header_sys_wait_h=no
19811 fi
19812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19813 fi
19814 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19815 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19816 if test $ac_cv_header_sys_wait_h = yes; then
19817
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE_SYS_WAIT_H 1
19820 _ACEOF
19821
19822 fi
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836 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
19837 do
19838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19840   echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 fi
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847 else
19848   # Is the header compilable?
19849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857 $ac_includes_default
19858 #include <$ac_header>
19859 _ACEOF
19860 rm -f conftest.$ac_objext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862   (eval $ac_compile) 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } &&
19869          { ac_try='test -z "$ac_c_werror_flag"
19870                          || test ! -s conftest.err'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; } &&
19876          { ac_try='test -s conftest.$ac_objext'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; }; then
19882   ac_header_compiler=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_header_compiler=no
19888 fi
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891 echo "${ECHO_T}$ac_header_compiler" >&6
19892
19893 # Is the header present?
19894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h.  */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h.  */
19902 #include <$ac_header>
19903 _ACEOF
19904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19906   ac_status=$?
19907   grep -v '^ *+' conftest.er1 >conftest.err
19908   rm -f conftest.er1
19909   cat conftest.err >&5
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } >/dev/null; then
19912   if test -s conftest.err; then
19913     ac_cpp_err=$ac_c_preproc_warn_flag
19914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19915   else
19916     ac_cpp_err=
19917   fi
19918 else
19919   ac_cpp_err=yes
19920 fi
19921 if test -z "$ac_cpp_err"; then
19922   ac_header_preproc=yes
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927   ac_header_preproc=no
19928 fi
19929 rm -f conftest.err conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6
19932
19933 # So?  What about this header?
19934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19935   yes:no: )
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19940     ac_header_preproc=yes
19941     ;;
19942   no:yes:* )
19943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19955     (
19956       cat <<\_ASBOX
19957 ## ----------------------------------- ##
19958 ## Report this to llvmbugs@cs.uiuc.edu ##
19959 ## ----------------------------------- ##
19960 _ASBOX
19961     ) |
19962       sed "s/^/$as_me: WARNING:     /" >&2
19963     ;;
19964 esac
19965 echo "$as_me:$LINENO: checking for $ac_header" >&5
19966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   eval "$as_ac_Header=\$ac_header_preproc"
19971 fi
19972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19974
19975 fi
19976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19977   cat >>confdefs.h <<_ACEOF
19978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19979 _ACEOF
19980
19981 fi
19982
19983 done
19984
19985
19986 if test "${ac_cv_header_sys_types_h+set}" = set; then
19987   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19988 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19989 if test "${ac_cv_header_sys_types_h+set}" = set; then
19990   echo $ECHO_N "(cached) $ECHO_C" >&6
19991 fi
19992 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19993 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19994 else
19995   # Is the header compilable?
19996 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19997 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19998 cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h.  */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h.  */
20004 $ac_includes_default
20005 #include <sys/types.h>
20006 _ACEOF
20007 rm -f conftest.$ac_objext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20009   (eval $ac_compile) 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } &&
20016          { ac_try='test -z "$ac_c_werror_flag"
20017                          || test ! -s conftest.err'
20018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019   (eval $ac_try) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; } &&
20023          { ac_try='test -s conftest.$ac_objext'
20024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025   (eval $ac_try) 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; }; then
20029   ac_header_compiler=yes
20030 else
20031   echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20033
20034 ac_header_compiler=no
20035 fi
20036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20038 echo "${ECHO_T}$ac_header_compiler" >&6
20039
20040 # Is the header present?
20041 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20042 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 #include <sys/types.h>
20050 _ACEOF
20051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20053   ac_status=$?
20054   grep -v '^ *+' conftest.er1 >conftest.err
20055   rm -f conftest.er1
20056   cat conftest.err >&5
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } >/dev/null; then
20059   if test -s conftest.err; then
20060     ac_cpp_err=$ac_c_preproc_warn_flag
20061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20062   else
20063     ac_cpp_err=
20064   fi
20065 else
20066   ac_cpp_err=yes
20067 fi
20068 if test -z "$ac_cpp_err"; then
20069   ac_header_preproc=yes
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074   ac_header_preproc=no
20075 fi
20076 rm -f conftest.err conftest.$ac_ext
20077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20078 echo "${ECHO_T}$ac_header_preproc" >&6
20079
20080 # So?  What about this header?
20081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20082   yes:no: )
20083     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20084 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20085     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20086 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20087     ac_header_preproc=yes
20088     ;;
20089   no:yes:* )
20090     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20091 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20093 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20094     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20095 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20096     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20097 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20099 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20101 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20102     (
20103       cat <<\_ASBOX
20104 ## ----------------------------------- ##
20105 ## Report this to llvmbugs@cs.uiuc.edu ##
20106 ## ----------------------------------- ##
20107 _ASBOX
20108     ) |
20109       sed "s/^/$as_me: WARNING:     /" >&2
20110     ;;
20111 esac
20112 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20113 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20114 if test "${ac_cv_header_sys_types_h+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   ac_cv_header_sys_types_h=$ac_header_preproc
20118 fi
20119 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20120 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20121
20122 fi
20123 if test $ac_cv_header_sys_types_h = yes; then
20124   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
20125 else
20126   INCLUDE_SYS_TYPES_H=''
20127 fi
20128
20129
20130
20131 if test "${ac_cv_header_inttypes_h+set}" = set; then
20132   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20133 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20134 if test "${ac_cv_header_inttypes_h+set}" = set; then
20135   echo $ECHO_N "(cached) $ECHO_C" >&6
20136 fi
20137 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20138 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20139 else
20140   # Is the header compilable?
20141 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20142 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h.  */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h.  */
20149 $ac_includes_default
20150 #include <inttypes.h>
20151 _ACEOF
20152 rm -f conftest.$ac_objext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154   (eval $ac_compile) 2>conftest.er1
20155   ac_status=$?
20156   grep -v '^ *+' conftest.er1 >conftest.err
20157   rm -f conftest.er1
20158   cat conftest.err >&5
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); } &&
20161          { ac_try='test -z "$ac_c_werror_flag"
20162                          || test ! -s conftest.err'
20163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164   (eval $ac_try) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; } &&
20168          { ac_try='test -s conftest.$ac_objext'
20169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170   (eval $ac_try) 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; }; then
20174   ac_header_compiler=yes
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_header_compiler=no
20180 fi
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183 echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185 # Is the header present?
20186 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20187 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194 #include <inttypes.h>
20195 _ACEOF
20196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } >/dev/null; then
20204   if test -s conftest.err; then
20205     ac_cpp_err=$ac_c_preproc_warn_flag
20206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20207   else
20208     ac_cpp_err=
20209   fi
20210 else
20211   ac_cpp_err=yes
20212 fi
20213 if test -z "$ac_cpp_err"; then
20214   ac_header_preproc=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219   ac_header_preproc=no
20220 fi
20221 rm -f conftest.err conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223 echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225 # So?  What about this header?
20226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227   yes:no: )
20228     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20230     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20231 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20232     ac_header_preproc=yes
20233     ;;
20234   no:yes:* )
20235     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20236 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20238 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20239     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20240 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20241     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20242 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20243     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20244 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20245     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20246 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20247     (
20248       cat <<\_ASBOX
20249 ## ----------------------------------- ##
20250 ## Report this to llvmbugs@cs.uiuc.edu ##
20251 ## ----------------------------------- ##
20252 _ASBOX
20253     ) |
20254       sed "s/^/$as_me: WARNING:     /" >&2
20255     ;;
20256 esac
20257 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260   echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262   ac_cv_header_inttypes_h=$ac_header_preproc
20263 fi
20264 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20266
20267 fi
20268 if test $ac_cv_header_inttypes_h = yes; then
20269   INCLUDE_INTTYPES_H='#include <inttypes.h>'
20270 else
20271   INCLUDE_INTTYPES_H=''
20272 fi
20273
20274
20275
20276 if test "${ac_cv_header_stdint_h+set}" = set; then
20277   echo "$as_me:$LINENO: checking for stdint.h" >&5
20278 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20279 if test "${ac_cv_header_stdint_h+set}" = set; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 fi
20282 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20283 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20284 else
20285   # Is the header compilable?
20286 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20287 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294 $ac_includes_default
20295 #include <stdint.h>
20296 _ACEOF
20297 rm -f conftest.$ac_objext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299   (eval $ac_compile) 2>conftest.er1
20300   ac_status=$?
20301   grep -v '^ *+' conftest.er1 >conftest.err
20302   rm -f conftest.er1
20303   cat conftest.err >&5
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); } &&
20306          { ac_try='test -z "$ac_c_werror_flag"
20307                          || test ! -s conftest.err'
20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309   (eval $ac_try) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; } &&
20313          { ac_try='test -s conftest.$ac_objext'
20314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315   (eval $ac_try) 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); }; }; then
20319   ac_header_compiler=yes
20320 else
20321   echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_header_compiler=no
20325 fi
20326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20328 echo "${ECHO_T}$ac_header_compiler" >&6
20329
20330 # Is the header present?
20331 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20332 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20333 cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 #include <stdint.h>
20340 _ACEOF
20341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20343   ac_status=$?
20344   grep -v '^ *+' conftest.er1 >conftest.err
20345   rm -f conftest.er1
20346   cat conftest.err >&5
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); } >/dev/null; then
20349   if test -s conftest.err; then
20350     ac_cpp_err=$ac_c_preproc_warn_flag
20351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20352   else
20353     ac_cpp_err=
20354   fi
20355 else
20356   ac_cpp_err=yes
20357 fi
20358 if test -z "$ac_cpp_err"; then
20359   ac_header_preproc=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364   ac_header_preproc=no
20365 fi
20366 rm -f conftest.err conftest.$ac_ext
20367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20368 echo "${ECHO_T}$ac_header_preproc" >&6
20369
20370 # So?  What about this header?
20371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20372   yes:no: )
20373     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20374 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20375     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20376 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20377     ac_header_preproc=yes
20378     ;;
20379   no:yes:* )
20380     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20381 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20382     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20383 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20384     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20385 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20386     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20387 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20388     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20389 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20390     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20391 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20392     (
20393       cat <<\_ASBOX
20394 ## ----------------------------------- ##
20395 ## Report this to llvmbugs@cs.uiuc.edu ##
20396 ## ----------------------------------- ##
20397 _ASBOX
20398     ) |
20399       sed "s/^/$as_me: WARNING:     /" >&2
20400     ;;
20401 esac
20402 echo "$as_me:$LINENO: checking for stdint.h" >&5
20403 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20404 if test "${ac_cv_header_stdint_h+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   ac_cv_header_stdint_h=$ac_header_preproc
20408 fi
20409 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20410 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20411
20412 fi
20413 if test $ac_cv_header_stdint_h = yes; then
20414   INCLUDE_STDINT_H='#include <stdint.h>'
20415 else
20416   INCLUDE_STDINT_H=''
20417 fi
20418
20419
20420
20421
20422
20423 echo "$as_me:$LINENO: checking for pid_t" >&5
20424 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20425 if test "${ac_cv_type_pid_t+set}" = set; then
20426   echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428   cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h.  */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h.  */
20434 $ac_includes_default
20435 int
20436 main ()
20437 {
20438 if ((pid_t *) 0)
20439   return 0;
20440 if (sizeof (pid_t))
20441   return 0;
20442   ;
20443   return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448   (eval $ac_compile) 2>conftest.er1
20449   ac_status=$?
20450   grep -v '^ *+' conftest.er1 >conftest.err
20451   rm -f conftest.er1
20452   cat conftest.err >&5
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -z "$ac_c_werror_flag"
20456                          || test ! -s conftest.err'
20457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458   (eval $ac_try) 2>&5
20459   ac_status=$?
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); }; } &&
20462          { ac_try='test -s conftest.$ac_objext'
20463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464   (eval $ac_try) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; }; then
20468   ac_cv_type_pid_t=yes
20469 else
20470   echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473 ac_cv_type_pid_t=no
20474 fi
20475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20476 fi
20477 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20478 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20479 if test $ac_cv_type_pid_t = yes; then
20480   :
20481 else
20482
20483 cat >>confdefs.h <<_ACEOF
20484 #define pid_t int
20485 _ACEOF
20486
20487 fi
20488
20489 echo "$as_me:$LINENO: checking for size_t" >&5
20490 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20491 if test "${ac_cv_type_size_t+set}" = set; then
20492   echo $ECHO_N "(cached) $ECHO_C" >&6
20493 else
20494   cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500 $ac_includes_default
20501 int
20502 main ()
20503 {
20504 if ((size_t *) 0)
20505   return 0;
20506 if (sizeof (size_t))
20507   return 0;
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest.$ac_objext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20514   (eval $ac_compile) 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } &&
20521          { ac_try='test -z "$ac_c_werror_flag"
20522                          || test ! -s conftest.err'
20523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524   (eval $ac_try) 2>&5
20525   ac_status=$?
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); }; } &&
20528          { ac_try='test -s conftest.$ac_objext'
20529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530   (eval $ac_try) 2>&5
20531   ac_status=$?
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); }; }; then
20534   ac_cv_type_size_t=yes
20535 else
20536   echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 ac_cv_type_size_t=no
20540 fi
20541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20542 fi
20543 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20544 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20545 if test $ac_cv_type_size_t = yes; then
20546   :
20547 else
20548
20549 cat >>confdefs.h <<_ACEOF
20550 #define size_t unsigned
20551 _ACEOF
20552
20553 fi
20554
20555 echo "$as_me:$LINENO: checking for int64_t" >&5
20556 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20557 if test "${ac_cv_type_int64_t+set}" = set; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560   cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 $ac_includes_default
20567 int
20568 main ()
20569 {
20570 if ((int64_t *) 0)
20571   return 0;
20572 if (sizeof (int64_t))
20573   return 0;
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580   (eval $ac_compile) 2>conftest.er1
20581   ac_status=$?
20582   grep -v '^ *+' conftest.er1 >conftest.err
20583   rm -f conftest.er1
20584   cat conftest.err >&5
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } &&
20587          { ac_try='test -z "$ac_c_werror_flag"
20588                          || test ! -s conftest.err'
20589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590   (eval $ac_try) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; } &&
20594          { ac_try='test -s conftest.$ac_objext'
20595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596   (eval $ac_try) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; }; then
20600   ac_cv_type_int64_t=yes
20601 else
20602   echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 ac_cv_type_int64_t=no
20606 fi
20607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20610 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20611 if test $ac_cv_type_int64_t = yes; then
20612
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_INT64_T 1
20615 _ACEOF
20616
20617
20618 else
20619   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20620 echo "$as_me: error: Type int64_t required but not found" >&2;}
20621    { (exit 1); exit 1; }; }
20622 fi
20623
20624 echo "$as_me:$LINENO: checking for uint64_t" >&5
20625 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20626 if test "${ac_cv_type_uint64_t+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629   cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h.  */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h.  */
20635 $ac_includes_default
20636 int
20637 main ()
20638 {
20639 if ((uint64_t *) 0)
20640   return 0;
20641 if (sizeof (uint64_t))
20642   return 0;
20643   ;
20644   return 0;
20645 }
20646 _ACEOF
20647 rm -f conftest.$ac_objext
20648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20649   (eval $ac_compile) 2>conftest.er1
20650   ac_status=$?
20651   grep -v '^ *+' conftest.er1 >conftest.err
20652   rm -f conftest.er1
20653   cat conftest.err >&5
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } &&
20656          { ac_try='test -z "$ac_c_werror_flag"
20657                          || test ! -s conftest.err'
20658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659   (eval $ac_try) 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; } &&
20663          { ac_try='test -s conftest.$ac_objext'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; }; then
20669   ac_cv_type_uint64_t=yes
20670 else
20671   echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20673
20674 ac_cv_type_uint64_t=no
20675 fi
20676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20677 fi
20678 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20679 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20680 if test $ac_cv_type_uint64_t = yes; then
20681
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_UINT64_T 1
20684 _ACEOF
20685
20686
20687 else
20688   echo "$as_me:$LINENO: checking for u_int64_t" >&5
20689 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20690 if test "${ac_cv_type_u_int64_t+set}" = set; then
20691   echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693   cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699 $ac_includes_default
20700 int
20701 main ()
20702 {
20703 if ((u_int64_t *) 0)
20704   return 0;
20705 if (sizeof (u_int64_t))
20706   return 0;
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713   (eval $ac_compile) 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } &&
20720          { ac_try='test -z "$ac_c_werror_flag"
20721                          || test ! -s conftest.err'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; } &&
20727          { ac_try='test -s conftest.$ac_objext'
20728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729   (eval $ac_try) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); }; }; then
20733   ac_cv_type_u_int64_t=yes
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ac_cv_type_u_int64_t=no
20739 fi
20740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20741 fi
20742 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20743 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20744 if test $ac_cv_type_u_int64_t = yes; then
20745
20746 cat >>confdefs.h <<_ACEOF
20747 #define HAVE_U_INT64_T 1
20748 _ACEOF
20749
20750
20751 else
20752   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20753 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20754    { (exit 1); exit 1; }; }
20755 fi
20756
20757 fi
20758
20759 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20760 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20761 if test "${ac_cv_header_time+set}" = set; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764   cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770 #include <sys/types.h>
20771 #include <sys/time.h>
20772 #include <time.h>
20773
20774 int
20775 main ()
20776 {
20777 if ((struct tm *) 0)
20778 return 0;
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785   (eval $ac_compile) 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } &&
20792          { ac_try='test -z "$ac_c_werror_flag"
20793                          || test ! -s conftest.err'
20794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795   (eval $ac_try) 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; } &&
20799          { ac_try='test -s conftest.$ac_objext'
20800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801   (eval $ac_try) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; }; then
20805   ac_cv_header_time=yes
20806 else
20807   echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ac_cv_header_time=no
20811 fi
20812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813 fi
20814 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20815 echo "${ECHO_T}$ac_cv_header_time" >&6
20816 if test $ac_cv_header_time = yes; then
20817
20818 cat >>confdefs.h <<\_ACEOF
20819 #define TIME_WITH_SYS_TIME 1
20820 _ACEOF
20821
20822 fi
20823
20824 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20825 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20826 if test "${ac_cv_struct_tm+set}" = set; then
20827   echo $ECHO_N "(cached) $ECHO_C" >&6
20828 else
20829   cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 #include <sys/types.h>
20836 #include <time.h>
20837
20838 int
20839 main ()
20840 {
20841 struct tm *tp; tp->tm_sec;
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20848   (eval $ac_compile) 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } &&
20855          { ac_try='test -z "$ac_c_werror_flag"
20856                          || test ! -s conftest.err'
20857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858   (eval $ac_try) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; } &&
20862          { ac_try='test -s conftest.$ac_objext'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   ac_cv_struct_tm=time.h
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 ac_cv_struct_tm=sys/time.h
20874 fi
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20876 fi
20877 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20878 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20879 if test $ac_cv_struct_tm = sys/time.h; then
20880
20881 cat >>confdefs.h <<\_ACEOF
20882 #define TM_IN_SYS_TIME 1
20883 _ACEOF
20884
20885 fi
20886
20887
20888
20889   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20890 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20891   ac_ext=c
20892 ac_cpp='$CPP $CPPFLAGS'
20893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20896
20897   if test "$cross_compiling" = yes; then
20898   ac_c_printf_a=no
20899 else
20900   cat >conftest.$ac_ext <<_ACEOF
20901
20902     /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907
20908 #include <stdio.h>
20909 #include <stdlib.h>
20910
20911 int
20912 main ()
20913 {
20914
20915 volatile double A, B;
20916 char Buffer[100];
20917 A = 1;
20918 A /= 10.0;
20919 sprintf(Buffer, "%a", A);
20920 B = atof(Buffer);
20921 if (A != B)
20922   return (1);
20923 if (A != 0x1.999999999999ap-4)
20924   return (1);
20925 return (0);
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932   (eval $ac_link) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937   (eval $ac_try) 2>&5
20938   ac_status=$?
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); }; }; then
20941   ac_c_printf_a=yes
20942 else
20943   echo "$as_me: program exited with status $ac_status" >&5
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ( exit $ac_status )
20948 ac_c_printf_a=no
20949 fi
20950 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20951 fi
20952  ac_ext=c
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957
20958  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20959 echo "${ECHO_T}$ac_c_printf_a" >&6
20960  if test "$ac_c_printf_a" = "yes"; then
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_PRINTF_A 1
20964 _ACEOF
20965
20966  fi
20967
20968
20969 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20970 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20971 if test "${ac_cv_c_bigendian+set}" = set; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974   # See if sys/param.h defines the BYTE_ORDER macro.
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 #include <sys/types.h>
20982 #include <sys/param.h>
20983
20984 int
20985 main ()
20986 {
20987 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20988  bogus endian macros
20989 #endif
20990
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_c_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   # It does; now see whether it defined to BIG_ENDIAN or not.
21018 cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h.  */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h.  */
21024 #include <sys/types.h>
21025 #include <sys/param.h>
21026
21027 int
21028 main ()
21029 {
21030 #if BYTE_ORDER != BIG_ENDIAN
21031  not big endian
21032 #endif
21033
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040   (eval $ac_compile) 2>conftest.er1
21041   ac_status=$?
21042   grep -v '^ *+' conftest.er1 >conftest.err
21043   rm -f conftest.er1
21044   cat conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } &&
21047          { ac_try='test -z "$ac_c_werror_flag"
21048                          || test ! -s conftest.err'
21049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050   (eval $ac_try) 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; } &&
21054          { ac_try='test -s conftest.$ac_objext'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; }; then
21060   ac_cv_c_bigendian=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065 ac_cv_c_bigendian=no
21066 fi
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 # It does not; compile a test program.
21073 if test "$cross_compiling" = yes; then
21074   # try to guess the endianness by grepping values into an object file
21075   ac_cv_c_bigendian=unknown
21076   cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21083 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21084 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21085 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21086 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21087 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21088 int
21089 main ()
21090 {
21091  _ascii (); _ebcdic ();
21092   ;
21093   return 0;
21094 }
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21098   (eval $ac_compile) 2>conftest.er1
21099   ac_status=$?
21100   grep -v '^ *+' conftest.er1 >conftest.err
21101   rm -f conftest.er1
21102   cat conftest.err >&5
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } &&
21105          { ac_try='test -z "$ac_c_werror_flag"
21106                          || test ! -s conftest.err'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; } &&
21112          { ac_try='test -s conftest.$ac_objext'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; }; then
21118   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21119   ac_cv_c_bigendian=yes
21120 fi
21121 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21122   if test "$ac_cv_c_bigendian" = unknown; then
21123     ac_cv_c_bigendian=no
21124   else
21125     # finding both strings is unlikely to happen, but who knows?
21126     ac_cv_c_bigendian=unknown
21127   fi
21128 fi
21129 else
21130   echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 fi
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21135 else
21136   cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142 int
21143 main ()
21144 {
21145   /* Are we little or big endian?  From Harbison&Steele.  */
21146   union
21147   {
21148     long l;
21149     char c[sizeof (long)];
21150   } u;
21151   u.l = 1;
21152   exit (u.c[sizeof (long) - 1] == 1);
21153 }
21154 _ACEOF
21155 rm -f conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157   (eval $ac_link) 2>&5
21158   ac_status=$?
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ac_cv_c_bigendian=no
21167 else
21168   echo "$as_me: program exited with status $ac_status" >&5
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 ( exit $ac_status )
21173 ac_cv_c_bigendian=yes
21174 fi
21175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21176 fi
21177 fi
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21179 fi
21180 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21181 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21182 case $ac_cv_c_bigendian in
21183   yes)
21184     ENDIAN=big
21185  ;;
21186   no)
21187     ENDIAN=little
21188  ;;
21189   *)
21190     { { echo "$as_me:$LINENO: error: unknown endianness
21191 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21192 echo "$as_me: error: unknown endianness
21193 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21194    { (exit 1); exit 1; }; } ;;
21195 esac
21196
21197
21198 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21199 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21200 if test "${ac_cv_cxx_namespaces+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   ac_ext=cc
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209  cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215 namespace Outer { namespace Inner { int i = 0; }}
21216 int
21217 main ()
21218 {
21219 using namespace Outer::Inner; return i;
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226   (eval $ac_compile) 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } &&
21233          { ac_try='test -z "$ac_cxx_werror_flag"
21234                          || test ! -s conftest.err'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; } &&
21240          { ac_try='test -s conftest.$ac_objext'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; }; then
21246   ac_cv_cxx_namespaces=yes
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 ac_cv_cxx_namespaces=no
21252 fi
21253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254  ac_ext=c
21255 ac_cpp='$CPP $CPPFLAGS'
21256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260
21261 fi
21262 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21263 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21264 if test "$ac_cv_cxx_namespaces" = yes; then
21265
21266 cat >>confdefs.h <<\_ACEOF
21267 #define HAVE_NAMESPACES
21268 _ACEOF
21269
21270 fi
21271
21272 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21273 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21274 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277
21278   ac_ext=cc
21279 ac_cpp='$CXXCPP $CPPFLAGS'
21280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
21284   cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #include <ext/hash_map>
21291 #ifdef HAVE_NAMESPACES
21292 using namespace std;
21293 #endif
21294 int
21295 main ()
21296 {
21297 hash_map<int, int> t;
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304   (eval $ac_compile) 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } &&
21311          { ac_try='test -z "$ac_cxx_werror_flag"
21312                          || test ! -s conftest.err'
21313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314   (eval $ac_try) 2>&5
21315   ac_status=$?
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); }; } &&
21318          { ac_try='test -s conftest.$ac_objext'
21319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320   (eval $ac_try) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; }; then
21324   ac_cv_cxx_have_std_ext_hash_map=yes
21325 else
21326   echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329 ac_cv_cxx_have_std_ext_hash_map=no
21330 fi
21331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21332   ac_ext=c
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21337
21338 fi
21339 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21340 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21341  HAVE_STD_EXT_HASH_MAP=0
21342  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21343  then
21344    HAVE_STD_EXT_HASH_MAP=1
21345  fi
21346
21347  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21348 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21349 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21350   echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
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 <ext/hash_map>
21366 #ifdef HAVE_NAMESPACES
21367 using namespace __gnu_cxx;
21368 #endif
21369 int
21370 main ()
21371 {
21372 hash_map<int,int> t;
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21379   (eval $ac_compile) 2>conftest.er1
21380   ac_status=$?
21381   grep -v '^ *+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } &&
21386          { ac_try='test -z "$ac_cxx_werror_flag"
21387                          || test ! -s conftest.err'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; } &&
21393          { ac_try='test -s conftest.$ac_objext'
21394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395   (eval $ac_try) 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; }; then
21399   ac_cv_cxx_have_gnu_ext_hash_map=yes
21400 else
21401   echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404 ac_cv_cxx_have_gnu_ext_hash_map=no
21405 fi
21406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21407   ac_ext=c
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412
21413 fi
21414 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21415 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21416  HAVE_GNU_EXT_HASH_MAP=0
21417  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21418  then
21419    HAVE_GNU_EXT_HASH_MAP=1
21420  fi
21421
21422  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21423 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21424 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427
21428   ac_ext=cc
21429 ac_cpp='$CXXCPP $CPPFLAGS'
21430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21433
21434   cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 #include <hash_map>
21441 int
21442 main ()
21443 {
21444 hash_map<int,int> t;
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 rm -f conftest.$ac_objext
21450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21451   (eval $ac_compile) 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } &&
21458          { ac_try='test -z "$ac_cxx_werror_flag"
21459                          || test ! -s conftest.err'
21460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461   (eval $ac_try) 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; } &&
21465          { ac_try='test -s conftest.$ac_objext'
21466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467   (eval $ac_try) 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; }; then
21471   ac_cv_cxx_have_global_hash_map=yes
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476 ac_cv_cxx_have_global_hash_map=no
21477 fi
21478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21479   ac_ext=c
21480 ac_cpp='$CPP $CPPFLAGS'
21481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484
21485 fi
21486 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21487 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21488  HAVE_GLOBAL_HASH_MAP=0
21489  if test "$ac_cv_cxx_have_global_hash_map" = yes
21490  then
21491    HAVE_GLOBAL_HASH_MAP=1
21492  fi
21493
21494 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21495 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21496 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21497   echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499
21500   ac_ext=cc
21501 ac_cpp='$CXXCPP $CPPFLAGS'
21502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21505
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <ext/hash_set>
21513 #ifdef HAVE_NAMESPACES
21514 using namespace std;
21515 #endif
21516 int
21517 main ()
21518 {
21519 hash_set<int> t;
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526   (eval $ac_compile) 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } &&
21533          { ac_try='test -z "$ac_cxx_werror_flag"
21534                          || test ! -s conftest.err'
21535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536   (eval $ac_try) 2>&5
21537   ac_status=$?
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); }; } &&
21540          { ac_try='test -s conftest.$ac_objext'
21541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542   (eval $ac_try) 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); }; }; then
21546   ac_cv_cxx_have_std_ext_hash_set=yes
21547 else
21548   echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 ac_cv_cxx_have_std_ext_hash_set=no
21552 fi
21553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21554   ac_ext=c
21555 ac_cpp='$CPP $CPPFLAGS'
21556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21559
21560 fi
21561 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21562 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21563  HAVE_STD_EXT_HASH_SET=0
21564  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21565  then
21566    HAVE_STD_EXT_HASH_SET=1
21567  fi
21568
21569  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21570 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21571 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574
21575   ac_ext=cc
21576 ac_cpp='$CXXCPP $CPPFLAGS'
21577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21580
21581   cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 #include <ext/hash_set>
21588 #ifdef HAVE_NAMESPACES
21589 using namespace __gnu_cxx;
21590 #endif
21591 int
21592 main ()
21593 {
21594 hash_set<int> t;
21595   ;
21596   return 0;
21597 }
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601   (eval $ac_compile) 2>conftest.er1
21602   ac_status=$?
21603   grep -v '^ *+' conftest.er1 >conftest.err
21604   rm -f conftest.er1
21605   cat conftest.err >&5
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); } &&
21608          { ac_try='test -z "$ac_cxx_werror_flag"
21609                          || test ! -s conftest.err'
21610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611   (eval $ac_try) 2>&5
21612   ac_status=$?
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); }; } &&
21615          { ac_try='test -s conftest.$ac_objext'
21616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617   (eval $ac_try) 2>&5
21618   ac_status=$?
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); }; }; then
21621   ac_cv_cxx_have_gnu_ext_hash_set=yes
21622 else
21623   echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626 ac_cv_cxx_have_gnu_ext_hash_set=no
21627 fi
21628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21629   ac_ext=c
21630 ac_cpp='$CPP $CPPFLAGS'
21631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21634
21635 fi
21636 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21637 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21638  HAVE_GNU_EXT_HASH_SET=0
21639  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21640  then
21641    HAVE_GNU_EXT_HASH_SET=1
21642  fi
21643
21644  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21645 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21646 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21647   echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649
21650   ac_ext=cc
21651 ac_cpp='$CXXCPP $CPPFLAGS'
21652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21655
21656   cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 #include <hash_set>
21663 int
21664 main ()
21665 {
21666 hash_set<int> t; return 0;
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21673   (eval $ac_compile) 2>conftest.er1
21674   ac_status=$?
21675   grep -v '^ *+' conftest.er1 >conftest.err
21676   rm -f conftest.er1
21677   cat conftest.err >&5
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } &&
21680          { ac_try='test -z "$ac_cxx_werror_flag"
21681                          || test ! -s conftest.err'
21682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683   (eval $ac_try) 2>&5
21684   ac_status=$?
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); }; } &&
21687          { ac_try='test -s conftest.$ac_objext'
21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689   (eval $ac_try) 2>&5
21690   ac_status=$?
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); }; }; then
21693   ac_cv_cxx_have_global_hash_set=yes
21694 else
21695   echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 ac_cv_cxx_have_global_hash_set=no
21699 fi
21700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21701   ac_ext=c
21702 ac_cpp='$CPP $CPPFLAGS'
21703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21706
21707 fi
21708 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21709 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21710  HAVE_GLOBAL_HASH_SET=0
21711  if test "$ac_cv_cxx_have_global_hash_set" = yes
21712  then
21713    HAVE_GLOBAL_HASH_SET=1
21714  fi
21715
21716 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21717 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21718 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 else
21721
21722   ac_ext=cc
21723 ac_cpp='$CXXCPP $CPPFLAGS'
21724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21727
21728   cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 #include <iterator>
21735 #ifdef HAVE_NAMESPACES
21736 using namespace std;
21737 #endif
21738 int
21739 main ()
21740 {
21741 iterator<int,int,int> t; return 0;
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748   (eval $ac_compile) 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } &&
21755          { ac_try='test -z "$ac_cxx_werror_flag"
21756                          || test ! -s conftest.err'
21757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758   (eval $ac_try) 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; } &&
21762          { ac_try='test -s conftest.$ac_objext'
21763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764   (eval $ac_try) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; }; then
21768   ac_cv_cxx_have_std_iterator=yes
21769 else
21770   echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 ac_cv_cxx_have_std_iterator=no
21774 fi
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776   ac_ext=c
21777 ac_cpp='$CPP $CPPFLAGS'
21778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781
21782
21783 fi
21784 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21785 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21786 HAVE_STD_ITERATOR=0
21787 if test "$ac_cv_cxx_have_std_iterator" = yes
21788 then
21789    HAVE_STD_ITERATOR=1
21790 fi
21791
21792 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21793 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21794 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797
21798   ac_ext=cc
21799 ac_cpp='$CXXCPP $CPPFLAGS'
21800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21803
21804   cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810 #include <iterator>
21811 #ifdef HAVE_NAMESPACES
21812 using namespace std;
21813 #endif
21814 int
21815 main ()
21816 {
21817 bidirectional_iterator<int,int> t; return 0;
21818   ;
21819   return 0;
21820 }
21821 _ACEOF
21822 rm -f conftest.$ac_objext
21823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21824   (eval $ac_compile) 2>conftest.er1
21825   ac_status=$?
21826   grep -v '^ *+' conftest.er1 >conftest.err
21827   rm -f conftest.er1
21828   cat conftest.err >&5
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); } &&
21831          { ac_try='test -z "$ac_cxx_werror_flag"
21832                          || test ! -s conftest.err'
21833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834   (eval $ac_try) 2>&5
21835   ac_status=$?
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); }; } &&
21838          { ac_try='test -s conftest.$ac_objext'
21839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840   (eval $ac_try) 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; }; then
21844   ac_cv_cxx_have_bi_iterator=yes
21845 else
21846   echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 ac_cv_cxx_have_bi_iterator=no
21850 fi
21851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21852   ac_ext=c
21853 ac_cpp='$CPP $CPPFLAGS'
21854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21857
21858
21859 fi
21860 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21861 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21862 HAVE_BI_ITERATOR=0
21863 if test "$ac_cv_cxx_have_bi_iterator" = yes
21864 then
21865    HAVE_BI_ITERATOR=1
21866 fi
21867
21868 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21869 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21870 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873
21874   ac_ext=cc
21875 ac_cpp='$CXXCPP $CPPFLAGS'
21876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21879
21880   cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h.  */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h.  */
21886 #include <iterator>
21887 #ifdef HAVE_NAMESPACES
21888 using namespace std;
21889 #endif
21890 int
21891 main ()
21892 {
21893 forward_iterator<int,int> t; return 0;
21894   ;
21895   return 0;
21896 }
21897 _ACEOF
21898 rm -f conftest.$ac_objext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21900   (eval $ac_compile) 2>conftest.er1
21901   ac_status=$?
21902   grep -v '^ *+' conftest.er1 >conftest.err
21903   rm -f conftest.er1
21904   cat conftest.err >&5
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } &&
21907          { ac_try='test -z "$ac_cxx_werror_flag"
21908                          || test ! -s conftest.err'
21909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910   (eval $ac_try) 2>&5
21911   ac_status=$?
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); }; } &&
21914          { ac_try='test -s conftest.$ac_objext'
21915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916   (eval $ac_try) 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; }; then
21920   ac_cv_cxx_have_fwd_iterator=yes
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925 ac_cv_cxx_have_fwd_iterator=no
21926 fi
21927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21928   ac_ext=c
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933
21934
21935 fi
21936 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21937 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21938 HAVE_FWD_ITERATOR=0
21939 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21940 then
21941    HAVE_FWD_ITERATOR=1
21942 fi
21943
21944
21945
21946 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21947 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21948 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21949   echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951   ac_ext=cc
21952 ac_cpp='$CXXCPP $CPPFLAGS'
21953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21956
21957   cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 #include <math.h>
21964                      int foo(float f) {return isnan(f);}
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21968   (eval $ac_compile) 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_cxx_werror_flag"
21976                          || test ! -s conftest.err'
21977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978   (eval $ac_try) 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; } &&
21982          { ac_try='test -s conftest.$ac_objext'
21983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984   (eval $ac_try) 2>&5
21985   ac_status=$?
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); }; }; then
21988   ac_cv_func_isnan_in_math_h=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 ac_cv_func_isnan_in_math_h=no
21994 fi
21995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21996  ac_ext=c
21997 ac_cpp='$CPP $CPPFLAGS'
21998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22001
22002 fi
22003 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22004 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22005  if test "$ac_cv_func_isnan_in_math_h" = "yes"
22006  then
22007
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_ISNAN_IN_MATH_H 1
22010 _ACEOF
22011
22012  fi
22013 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22014 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22015 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   ac_ext=cc
22019 ac_cpp='$CXXCPP $CPPFLAGS'
22020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22023
22024   cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 #include <cmath>
22031                      int foo(float f) {return isnan(f);}
22032 _ACEOF
22033 rm -f conftest.$ac_objext
22034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22035   (eval $ac_compile) 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } &&
22042          { ac_try='test -z "$ac_cxx_werror_flag"
22043                          || test ! -s conftest.err'
22044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045   (eval $ac_try) 2>&5
22046   ac_status=$?
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); }; } &&
22049          { ac_try='test -s conftest.$ac_objext'
22050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051   (eval $ac_try) 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; }; then
22055   ac_cv_func_isnan_in_cmath=yes
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060 ac_cv_func_isnan_in_cmath=no
22061 fi
22062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22063  ac_ext=c
22064 ac_cpp='$CPP $CPPFLAGS'
22065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22068
22069 fi
22070 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22071 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22072  if test "$ac_cv_func_isnan_in_cmath" = "yes"
22073  then
22074
22075 cat >>confdefs.h <<\_ACEOF
22076 #define HAVE_ISNAN_IN_CMATH 1
22077 _ACEOF
22078
22079  fi
22080 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22081 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22082 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22083   echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085   ac_ext=cc
22086 ac_cpp='$CXXCPP $CPPFLAGS'
22087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22090
22091   cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097 #include <cmath>
22098                      using std::isnan; int foo(float f) {return isnan(f);}
22099 _ACEOF
22100 rm -f conftest.$ac_objext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22102   (eval $ac_compile) 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } &&
22109          { ac_try='test -z "$ac_cxx_werror_flag"
22110                          || test ! -s conftest.err'
22111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; } &&
22116          { ac_try='test -s conftest.$ac_objext'
22117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118   (eval $ac_try) 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; }; then
22122   ac_cv_func_std_isnan_in_cmath=yes
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 ac_cv_func_std_isnan_in_cmath=no
22128 fi
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22130  ac_ext=c
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136 fi
22137 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22138 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22139  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22140  then
22141
22142 cat >>confdefs.h <<\_ACEOF
22143 #define HAVE_STD_ISNAN_IN_CMATH 1
22144 _ACEOF
22145
22146  fi
22147
22148
22149 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22150 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22151 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   ac_ext=cc
22155 ac_cpp='$CXXCPP $CPPFLAGS'
22156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22159
22160   cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166 #include <math.h>
22167                      int foo(float f) {return isinf(f);}
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22171   (eval $ac_compile) 2>conftest.er1
22172   ac_status=$?
22173   grep -v '^ *+' conftest.er1 >conftest.err
22174   rm -f conftest.er1
22175   cat conftest.err >&5
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } &&
22178          { ac_try='test -z "$ac_cxx_werror_flag"
22179                          || test ! -s conftest.err'
22180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181   (eval $ac_try) 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; } &&
22185          { ac_try='test -s conftest.$ac_objext'
22186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187   (eval $ac_try) 2>&5
22188   ac_status=$?
22189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); }; }; then
22191   ac_cv_func_isinf_in_math_h=yes
22192 else
22193   echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196 ac_cv_func_isinf_in_math_h=no
22197 fi
22198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22199  ac_ext=c
22200 ac_cpp='$CPP $CPPFLAGS'
22201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22204
22205 fi
22206 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22207 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22208  if test "$ac_cv_func_isinf_in_math_h" = "yes"
22209  then
22210
22211 cat >>confdefs.h <<\_ACEOF
22212 #define HAVE_ISINF_IN_MATH_H 1
22213 _ACEOF
22214
22215  fi
22216 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22217 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22218 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22219   echo $ECHO_N "(cached) $ECHO_C" >&6
22220 else
22221   ac_ext=cc
22222 ac_cpp='$CXXCPP $CPPFLAGS'
22223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22226
22227   cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h.  */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h.  */
22233 #include <cmath>
22234                      int foo(float f) {return isinf(f);}
22235 _ACEOF
22236 rm -f conftest.$ac_objext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238   (eval $ac_compile) 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } &&
22245          { ac_try='test -z "$ac_cxx_werror_flag"
22246                          || test ! -s conftest.err'
22247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248   (eval $ac_try) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); }; } &&
22252          { ac_try='test -s conftest.$ac_objext'
22253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254   (eval $ac_try) 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; }; then
22258   ac_cv_func_isinf_in_cmath=yes
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263 ac_cv_func_isinf_in_cmath=no
22264 fi
22265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22266  ac_ext=c
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272 fi
22273 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22274 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22275  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22276  then
22277
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_ISINF_IN_CMATH 1
22280 _ACEOF
22281
22282  fi
22283 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22284 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22285 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22286   echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288   ac_ext=cc
22289 ac_cpp='$CXXCPP $CPPFLAGS'
22290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22293
22294   cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 #include <cmath>
22301                      using std::isinf; int foo(float f) {return isinf(f);}
22302 _ACEOF
22303 rm -f conftest.$ac_objext
22304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305   (eval $ac_compile) 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } &&
22312          { ac_try='test -z "$ac_cxx_werror_flag"
22313                          || test ! -s conftest.err'
22314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315   (eval $ac_try) 2>&5
22316   ac_status=$?
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); }; } &&
22319          { ac_try='test -s conftest.$ac_objext'
22320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321   (eval $ac_try) 2>&5
22322   ac_status=$?
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); }; }; then
22325   ac_cv_func_std_isinf_in_cmath=yes
22326 else
22327   echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22329
22330 ac_cv_func_std_isinf_in_cmath=no
22331 fi
22332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22333  ac_ext=c
22334 ac_cpp='$CPP $CPPFLAGS'
22335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22338
22339 fi
22340 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22341 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22342  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22343  then
22344
22345 cat >>confdefs.h <<\_ACEOF
22346 #define HAVE_STD_ISINF_IN_CMATH 1
22347 _ACEOF
22348
22349  fi
22350 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22351 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22352 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22353   echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355   ac_ext=cc
22356 ac_cpp='$CXXCPP $CPPFLAGS'
22357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22360
22361   cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367 #include <ieeefp.h>
22368                      int foo(float f) {return finite(f);}
22369 _ACEOF
22370 rm -f conftest.$ac_objext
22371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22372   (eval $ac_compile) 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } &&
22379          { ac_try='test -z "$ac_cxx_werror_flag"
22380                          || test ! -s conftest.err'
22381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382   (eval $ac_try) 2>&5
22383   ac_status=$?
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); }; } &&
22386          { ac_try='test -s conftest.$ac_objext'
22387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388   (eval $ac_try) 2>&5
22389   ac_status=$?
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); }; }; then
22392   ac_cv_func_finite_in_ieeefp_h=yes
22393 else
22394   echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397 ac_cv_func_finite_in_ieeefp_h=no
22398 fi
22399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22400  ac_ext=c
22401 ac_cpp='$CPP $CPPFLAGS'
22402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22405
22406 fi
22407 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22408 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22409  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22410  then
22411
22412 cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_FINITE_IN_IEEEFP_H 1
22414 _ACEOF
22415
22416  fi
22417
22418
22419 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22420 # for constant arguments.  Useless!
22421 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22422 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22423 if test "${ac_cv_working_alloca_h+set}" = set; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432 #include <alloca.h>
22433 int
22434 main ()
22435 {
22436 char *p = (char *) alloca (2 * sizeof (int));
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443   (eval $ac_link) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"
22451                          || test ! -s conftest.err'
22452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453   (eval $ac_try) 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); }; } &&
22457          { ac_try='test -s conftest$ac_exeext'
22458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   ac_cv_working_alloca_h=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ac_cv_working_alloca_h=no
22469 fi
22470 rm -f conftest.err conftest.$ac_objext \
22471       conftest$ac_exeext conftest.$ac_ext
22472 fi
22473 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22474 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22475 if test $ac_cv_working_alloca_h = yes; then
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_ALLOCA_H 1
22479 _ACEOF
22480
22481 fi
22482
22483 echo "$as_me:$LINENO: checking for alloca" >&5
22484 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22485 if test "${ac_cv_func_alloca_works+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 #ifdef __GNUC__
22495 # define alloca __builtin_alloca
22496 #else
22497 # ifdef _MSC_VER
22498 #  include <malloc.h>
22499 #  define alloca _alloca
22500 # else
22501 #  if HAVE_ALLOCA_H
22502 #   include <alloca.h>
22503 #  else
22504 #   ifdef _AIX
22505  #pragma alloca
22506 #   else
22507 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22508 char *alloca ();
22509 #    endif
22510 #   endif
22511 #  endif
22512 # endif
22513 #endif
22514
22515 int
22516 main ()
22517 {
22518 char *p = (char *) alloca (1);
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest.$ac_objext conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525   (eval $ac_link) 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -z "$ac_c_werror_flag"
22533                          || test ! -s conftest.err'
22534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535   (eval $ac_try) 2>&5
22536   ac_status=$?
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); }; } &&
22539          { ac_try='test -s conftest$ac_exeext'
22540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541   (eval $ac_try) 2>&5
22542   ac_status=$?
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); }; }; then
22545   ac_cv_func_alloca_works=yes
22546 else
22547   echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22549
22550 ac_cv_func_alloca_works=no
22551 fi
22552 rm -f conftest.err conftest.$ac_objext \
22553       conftest$ac_exeext conftest.$ac_ext
22554 fi
22555 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22556 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22557
22558 if test $ac_cv_func_alloca_works = yes; then
22559
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_ALLOCA 1
22562 _ACEOF
22563
22564 else
22565   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22566 # that cause trouble.  Some versions do not even contain alloca or
22567 # contain a buggy version.  If you still want to use their alloca,
22568 # use ar to extract alloca.o from them instead of compiling alloca.c.
22569
22570 ALLOCA=alloca.$ac_objext
22571
22572 cat >>confdefs.h <<\_ACEOF
22573 #define C_ALLOCA 1
22574 _ACEOF
22575
22576
22577 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22578 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22579 if test "${ac_cv_os_cray+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 #if defined(CRAY) && ! defined(CRAY2)
22589 webecray
22590 #else
22591 wenotbecray
22592 #endif
22593
22594 _ACEOF
22595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22596   $EGREP "webecray" >/dev/null 2>&1; then
22597   ac_cv_os_cray=yes
22598 else
22599   ac_cv_os_cray=no
22600 fi
22601 rm -f conftest*
22602
22603 fi
22604 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22605 echo "${ECHO_T}$ac_cv_os_cray" >&6
22606 if test $ac_cv_os_cray = yes; then
22607   for ac_func in _getb67 GETB67 getb67; do
22608     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22609 echo "$as_me:$LINENO: checking for $ac_func" >&5
22610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22611 if eval "test \"\${$as_ac_var+set}\" = set"; then
22612   echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614   cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22622 #define $ac_func innocuous_$ac_func
22623
22624 /* System header to define __stub macros and hopefully few prototypes,
22625     which can conflict with char $ac_func (); below.
22626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22627     <limits.h> exists even on freestanding compilers.  */
22628
22629 #ifdef __STDC__
22630 # include <limits.h>
22631 #else
22632 # include <assert.h>
22633 #endif
22634
22635 #undef $ac_func
22636
22637 /* Override any gcc2 internal prototype to avoid an error.  */
22638 #ifdef __cplusplus
22639 extern "C"
22640 {
22641 #endif
22642 /* We use char because int might match the return type of a gcc2
22643    builtin and then its argument prototype would still apply.  */
22644 char $ac_func ();
22645 /* The GNU C library defines this for functions which it implements
22646     to always fail with ENOSYS.  Some functions are actually named
22647     something starting with __ and the normal name is an alias.  */
22648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22649 choke me
22650 #else
22651 char (*f) () = $ac_func;
22652 #endif
22653 #ifdef __cplusplus
22654 }
22655 #endif
22656
22657 int
22658 main ()
22659 {
22660 return f != $ac_func;
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 rm -f conftest.$ac_objext conftest$ac_exeext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22667   (eval $ac_link) 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } &&
22674          { ac_try='test -z "$ac_c_werror_flag"
22675                          || test ! -s conftest.err'
22676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677   (eval $ac_try) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); }; } &&
22681          { ac_try='test -s conftest$ac_exeext'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687   eval "$as_ac_var=yes"
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 eval "$as_ac_var=no"
22693 fi
22694 rm -f conftest.err conftest.$ac_objext \
22695       conftest$ac_exeext conftest.$ac_ext
22696 fi
22697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22699 if test `eval echo '${'$as_ac_var'}'` = yes; then
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define CRAY_STACKSEG_END $ac_func
22703 _ACEOF
22704
22705     break
22706 fi
22707
22708   done
22709 fi
22710
22711 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22712 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22713 if test "${ac_cv_c_stack_direction+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716   if test "$cross_compiling" = yes; then
22717   ac_cv_c_stack_direction=0
22718 else
22719   cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725 int
22726 find_stack_direction ()
22727 {
22728   static char *addr = 0;
22729   auto char dummy;
22730   if (addr == 0)
22731     {
22732       addr = &dummy;
22733       return find_stack_direction ();
22734     }
22735   else
22736     return (&dummy > addr) ? 1 : -1;
22737 }
22738
22739 int
22740 main ()
22741 {
22742   exit (find_stack_direction () < 0);
22743 }
22744 _ACEOF
22745 rm -f conftest$ac_exeext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22747   (eval $ac_link) 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752   (eval $ac_try) 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; }; then
22756   ac_cv_c_stack_direction=1
22757 else
22758   echo "$as_me: program exited with status $ac_status" >&5
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762 ( exit $ac_status )
22763 ac_cv_c_stack_direction=-1
22764 fi
22765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 fi
22768 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22769 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22770
22771 cat >>confdefs.h <<_ACEOF
22772 #define STACK_DIRECTION $ac_cv_c_stack_direction
22773 _ACEOF
22774
22775
22776 fi
22777
22778
22779
22780 for ac_header in stdlib.h unistd.h
22781 do
22782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22784   echo "$as_me:$LINENO: checking for $ac_header" >&5
22785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 fi
22789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22791 else
22792   # Is the header compilable?
22793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 $ac_includes_default
22802 #include <$ac_header>
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806   (eval $ac_compile) 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } &&
22813          { ac_try='test -z "$ac_c_werror_flag"
22814                          || test ! -s conftest.err'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; } &&
22820          { ac_try='test -s conftest.$ac_objext'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; }; then
22826   ac_header_compiler=yes
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_header_compiler=no
22832 fi
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22835 echo "${ECHO_T}$ac_header_compiler" >&6
22836
22837 # Is the header present?
22838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22840 cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h.  */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h.  */
22846 #include <$ac_header>
22847 _ACEOF
22848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22850   ac_status=$?
22851   grep -v '^ *+' conftest.er1 >conftest.err
22852   rm -f conftest.er1
22853   cat conftest.err >&5
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); } >/dev/null; then
22856   if test -s conftest.err; then
22857     ac_cpp_err=$ac_c_preproc_warn_flag
22858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22859   else
22860     ac_cpp_err=
22861   fi
22862 else
22863   ac_cpp_err=yes
22864 fi
22865 if test -z "$ac_cpp_err"; then
22866   ac_header_preproc=yes
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871   ac_header_preproc=no
22872 fi
22873 rm -f conftest.err conftest.$ac_ext
22874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22875 echo "${ECHO_T}$ac_header_preproc" >&6
22876
22877 # So?  What about this header?
22878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22879   yes:no: )
22880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22884     ac_header_preproc=yes
22885     ;;
22886   no:yes:* )
22887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22899     (
22900       cat <<\_ASBOX
22901 ## ----------------------------------- ##
22902 ## Report this to llvmbugs@cs.uiuc.edu ##
22903 ## ----------------------------------- ##
22904 _ASBOX
22905     ) |
22906       sed "s/^/$as_me: WARNING:     /" >&2
22907     ;;
22908 esac
22909 echo "$as_me:$LINENO: checking for $ac_header" >&5
22910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   eval "$as_ac_Header=\$ac_header_preproc"
22915 fi
22916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22918
22919 fi
22920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22921   cat >>confdefs.h <<_ACEOF
22922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22923 _ACEOF
22924
22925 fi
22926
22927 done
22928
22929
22930 for ac_func in getpagesize
22931 do
22932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22933 echo "$as_me:$LINENO: checking for $ac_func" >&5
22934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22935 if eval "test \"\${$as_ac_var+set}\" = set"; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938   cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22946 #define $ac_func innocuous_$ac_func
22947
22948 /* System header to define __stub macros and hopefully few prototypes,
22949     which can conflict with char $ac_func (); below.
22950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22951     <limits.h> exists even on freestanding compilers.  */
22952
22953 #ifdef __STDC__
22954 # include <limits.h>
22955 #else
22956 # include <assert.h>
22957 #endif
22958
22959 #undef $ac_func
22960
22961 /* Override any gcc2 internal prototype to avoid an error.  */
22962 #ifdef __cplusplus
22963 extern "C"
22964 {
22965 #endif
22966 /* We use char because int might match the return type of a gcc2
22967    builtin and then its argument prototype would still apply.  */
22968 char $ac_func ();
22969 /* The GNU C library defines this for functions which it implements
22970     to always fail with ENOSYS.  Some functions are actually named
22971     something starting with __ and the normal name is an alias.  */
22972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22973 choke me
22974 #else
22975 char (*f) () = $ac_func;
22976 #endif
22977 #ifdef __cplusplus
22978 }
22979 #endif
22980
22981 int
22982 main ()
22983 {
22984 return f != $ac_func;
22985   ;
22986   return 0;
22987 }
22988 _ACEOF
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22991   (eval $ac_link) 2>conftest.er1
22992   ac_status=$?
22993   grep -v '^ *+' conftest.er1 >conftest.err
22994   rm -f conftest.er1
22995   cat conftest.err >&5
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } &&
22998          { ac_try='test -z "$ac_c_werror_flag"
22999                          || test ! -s conftest.err'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; } &&
23005          { ac_try='test -s conftest$ac_exeext'
23006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007   (eval $ac_try) 2>&5
23008   ac_status=$?
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); }; }; then
23011   eval "$as_ac_var=yes"
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 eval "$as_ac_var=no"
23017 fi
23018 rm -f conftest.err conftest.$ac_objext \
23019       conftest$ac_exeext conftest.$ac_ext
23020 fi
23021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23023 if test `eval echo '${'$as_ac_var'}'` = yes; then
23024   cat >>confdefs.h <<_ACEOF
23025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23026 _ACEOF
23027
23028 fi
23029 done
23030
23031 echo "$as_me:$LINENO: checking for working mmap" >&5
23032 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23033 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   if test "$cross_compiling" = yes; then
23037   ac_cv_func_mmap_fixed_mapped=no
23038 else
23039   cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045 $ac_includes_default
23046 /* malloc might have been renamed as rpl_malloc. */
23047 #undef malloc
23048
23049 /* Thanks to Mike Haertel and Jim Avera for this test.
23050    Here is a matrix of mmap possibilities:
23051         mmap private not fixed
23052         mmap private fixed at somewhere currently unmapped
23053         mmap private fixed at somewhere already mapped
23054         mmap shared not fixed
23055         mmap shared fixed at somewhere currently unmapped
23056         mmap shared fixed at somewhere already mapped
23057    For private mappings, we should verify that changes cannot be read()
23058    back from the file, nor mmap's back from the file at a different
23059    address.  (There have been systems where private was not correctly
23060    implemented like the infamous i386 svr4.0, and systems where the
23061    VM page cache was not coherent with the file system buffer cache
23062    like early versions of FreeBSD and possibly contemporary NetBSD.)
23063    For shared mappings, we should conversely verify that changes get
23064    propagated back to all the places they're supposed to be.
23065
23066    Grep wants private fixed already mapped.
23067    The main things grep needs to know about mmap are:
23068    * does it exist and is it safe to write into the mmap'd area
23069    * how to use it (BSD variants)  */
23070
23071 #include <fcntl.h>
23072 #include <sys/mman.h>
23073
23074 #if !STDC_HEADERS && !HAVE_STDLIB_H
23075 char *malloc ();
23076 #endif
23077
23078 /* This mess was copied from the GNU getpagesize.h.  */
23079 #if !HAVE_GETPAGESIZE
23080 /* Assume that all systems that can run configure have sys/param.h.  */
23081 # if !HAVE_SYS_PARAM_H
23082 #  define HAVE_SYS_PARAM_H 1
23083 # endif
23084
23085 # ifdef _SC_PAGESIZE
23086 #  define getpagesize() sysconf(_SC_PAGESIZE)
23087 # else /* no _SC_PAGESIZE */
23088 #  if HAVE_SYS_PARAM_H
23089 #   include <sys/param.h>
23090 #   ifdef EXEC_PAGESIZE
23091 #    define getpagesize() EXEC_PAGESIZE
23092 #   else /* no EXEC_PAGESIZE */
23093 #    ifdef NBPG
23094 #     define getpagesize() NBPG * CLSIZE
23095 #     ifndef CLSIZE
23096 #      define CLSIZE 1
23097 #     endif /* no CLSIZE */
23098 #    else /* no NBPG */
23099 #     ifdef NBPC
23100 #      define getpagesize() NBPC
23101 #     else /* no NBPC */
23102 #      ifdef PAGESIZE
23103 #       define getpagesize() PAGESIZE
23104 #      endif /* PAGESIZE */
23105 #     endif /* no NBPC */
23106 #    endif /* no NBPG */
23107 #   endif /* no EXEC_PAGESIZE */
23108 #  else /* no HAVE_SYS_PARAM_H */
23109 #   define getpagesize() 8192   /* punt totally */
23110 #  endif /* no HAVE_SYS_PARAM_H */
23111 # endif /* no _SC_PAGESIZE */
23112
23113 #endif /* no HAVE_GETPAGESIZE */
23114
23115 int
23116 main ()
23117 {
23118   char *data, *data2, *data3;
23119   int i, pagesize;
23120   int fd;
23121
23122   pagesize = getpagesize ();
23123
23124   /* First, make a file with some known garbage in it. */
23125   data = (char *) malloc (pagesize);
23126   if (!data)
23127     exit (1);
23128   for (i = 0; i < pagesize; ++i)
23129     *(data + i) = rand ();
23130   umask (0);
23131   fd = creat ("conftest.mmap", 0600);
23132   if (fd < 0)
23133     exit (1);
23134   if (write (fd, data, pagesize) != pagesize)
23135     exit (1);
23136   close (fd);
23137
23138   /* Next, try to mmap the file at a fixed address which already has
23139      something else allocated at it.  If we can, also make sure that
23140      we see the same garbage.  */
23141   fd = open ("conftest.mmap", O_RDWR);
23142   if (fd < 0)
23143     exit (1);
23144   data2 = (char *) malloc (2 * pagesize);
23145   if (!data2)
23146     exit (1);
23147   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23148   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23149                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23150     exit (1);
23151   for (i = 0; i < pagesize; ++i)
23152     if (*(data + i) != *(data2 + i))
23153       exit (1);
23154
23155   /* Finally, make sure that changes to the mapped area do not
23156      percolate back to the file as seen by read().  (This is a bug on
23157      some variants of i386 svr4.0.)  */
23158   for (i = 0; i < pagesize; ++i)
23159     *(data2 + i) = *(data2 + i) + 1;
23160   data3 = (char *) malloc (pagesize);
23161   if (!data3)
23162     exit (1);
23163   if (read (fd, data3, pagesize) != pagesize)
23164     exit (1);
23165   for (i = 0; i < pagesize; ++i)
23166     if (*(data + i) != *(data3 + i))
23167       exit (1);
23168   close (fd);
23169   exit (0);
23170 }
23171 _ACEOF
23172 rm -f conftest$ac_exeext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23174   (eval $ac_link) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179   (eval $ac_try) 2>&5
23180   ac_status=$?
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); }; }; then
23183   ac_cv_func_mmap_fixed_mapped=yes
23184 else
23185   echo "$as_me: program exited with status $ac_status" >&5
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ( exit $ac_status )
23190 ac_cv_func_mmap_fixed_mapped=no
23191 fi
23192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23193 fi
23194 fi
23195 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23196 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23197 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23198
23199 cat >>confdefs.h <<\_ACEOF
23200 #define HAVE_MMAP 1
23201 _ACEOF
23202
23203 fi
23204 rm -f conftest.mmap
23205
23206 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23207 then
23208         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23209 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23210 fi
23211 echo "$as_me:$LINENO: checking for mmap of files" >&5
23212 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23213 if test "${ac_cv_func_mmap_file+set}" = set; then
23214   echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216    ac_ext=c
23217 ac_cpp='$CPP $CPPFLAGS'
23218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23221
23222   if test "$cross_compiling" = yes; then
23223   ac_cv_func_mmap_file=no
23224 else
23225   cat >conftest.$ac_ext <<_ACEOF
23226
23227     /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232
23233 #include <sys/types.h>
23234 #include <sys/mman.h>
23235 #include <fcntl.h>
23236
23237 int
23238 main ()
23239 {
23240
23241   int fd;
23242   fd = creat ("foo",0777);
23243   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23244   unlink ("foo");
23245   return (fd != (int) MAP_FAILED);
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest$ac_exeext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252   (eval $ac_link) 2>&5
23253   ac_status=$?
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257   (eval $ac_try) 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; }; then
23261   ac_cv_func_mmap_file=yes
23262 else
23263   echo "$as_me: program exited with status $ac_status" >&5
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267 ( exit $ac_status )
23268 ac_cv_func_mmap_file=no
23269 fi
23270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23271 fi
23272   ac_ext=c
23273 ac_cpp='$CPP $CPPFLAGS'
23274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23277
23278
23279 fi
23280 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23281 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23282 if test "$ac_cv_func_mmap_file" = yes; then
23283
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_MMAP_FILE
23286 _ACEOF
23287
23288    MMAP_FILE=yes
23289
23290 fi
23291
23292 if test "$ac_cv_func_mmap_file" = "no"
23293 then
23294         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23295 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23296 fi
23297 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23298 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23299 if test "${ac_cv_header_mmap_anon+set}" = set; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302    ac_ext=c
23303 ac_cpp='$CPP $CPPFLAGS'
23304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23307
23308   cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 #include <sys/mman.h>
23315 #include <unistd.h>
23316 #include <fcntl.h>
23317 int
23318 main ()
23319 {
23320 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23327   (eval $ac_compile) 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } &&
23334          { ac_try='test -z "$ac_c_werror_flag"
23335                          || test ! -s conftest.err'
23336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337   (eval $ac_try) 2>&5
23338   ac_status=$?
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); }; } &&
23341          { ac_try='test -s conftest.$ac_objext'
23342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343   (eval $ac_try) 2>&5
23344   ac_status=$?
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); }; }; then
23347   ac_cv_header_mmap_anon=yes
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352 ac_cv_header_mmap_anon=no
23353 fi
23354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23355   ac_ext=c
23356 ac_cpp='$CPP $CPPFLAGS'
23357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23360
23361
23362 fi
23363 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23364 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23365 if test "$ac_cv_header_mmap_anon" = yes; then
23366
23367 cat >>confdefs.h <<\_ACEOF
23368 #define HAVE_MMAP_ANONYMOUS
23369 _ACEOF
23370
23371 fi
23372
23373 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23374 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23375 if test "${ac_cv_type_signal+set}" = set; then
23376   echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378   cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384 #include <sys/types.h>
23385 #include <signal.h>
23386 #ifdef signal
23387 # undef signal
23388 #endif
23389 #ifdef __cplusplus
23390 extern "C" void (*signal (int, void (*)(int)))(int);
23391 #else
23392 void (*signal ()) ();
23393 #endif
23394
23395 int
23396 main ()
23397 {
23398 int i;
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext
23404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23405   (eval $ac_compile) 2>conftest.er1
23406   ac_status=$?
23407   grep -v '^ *+' conftest.er1 >conftest.err
23408   rm -f conftest.er1
23409   cat conftest.err >&5
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); } &&
23412          { ac_try='test -z "$ac_c_werror_flag"
23413                          || test ! -s conftest.err'
23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415   (eval $ac_try) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); }; } &&
23419          { ac_try='test -s conftest.$ac_objext'
23420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; }; then
23425   ac_cv_type_signal=void
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23429
23430 ac_cv_type_signal=int
23431 fi
23432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23433 fi
23434 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23435 echo "${ECHO_T}$ac_cv_type_signal" >&6
23436
23437 cat >>confdefs.h <<_ACEOF
23438 #define RETSIGTYPE $ac_cv_type_signal
23439 _ACEOF
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23452 do
23453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23454 echo "$as_me:$LINENO: checking for $ac_func" >&5
23455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23456 if eval "test \"\${$as_ac_var+set}\" = set"; then
23457   echo $ECHO_N "(cached) $ECHO_C" >&6
23458 else
23459   cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23467 #define $ac_func innocuous_$ac_func
23468
23469 /* System header to define __stub macros and hopefully few prototypes,
23470     which can conflict with char $ac_func (); below.
23471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23472     <limits.h> exists even on freestanding compilers.  */
23473
23474 #ifdef __STDC__
23475 # include <limits.h>
23476 #else
23477 # include <assert.h>
23478 #endif
23479
23480 #undef $ac_func
23481
23482 /* Override any gcc2 internal prototype to avoid an error.  */
23483 #ifdef __cplusplus
23484 extern "C"
23485 {
23486 #endif
23487 /* We use char because int might match the return type of a gcc2
23488    builtin and then its argument prototype would still apply.  */
23489 char $ac_func ();
23490 /* The GNU C library defines this for functions which it implements
23491     to always fail with ENOSYS.  Some functions are actually named
23492     something starting with __ and the normal name is an alias.  */
23493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23494 choke me
23495 #else
23496 char (*f) () = $ac_func;
23497 #endif
23498 #ifdef __cplusplus
23499 }
23500 #endif
23501
23502 int
23503 main ()
23504 {
23505 return f != $ac_func;
23506   ;
23507   return 0;
23508 }
23509 _ACEOF
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23512   (eval $ac_link) 2>conftest.er1
23513   ac_status=$?
23514   grep -v '^ *+' conftest.er1 >conftest.err
23515   rm -f conftest.er1
23516   cat conftest.err >&5
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } &&
23519          { ac_try='test -z "$ac_c_werror_flag"
23520                          || test ! -s conftest.err'
23521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522   (eval $ac_try) 2>&5
23523   ac_status=$?
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); }; } &&
23526          { ac_try='test -s conftest$ac_exeext'
23527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528   (eval $ac_try) 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); }; }; then
23532   eval "$as_ac_var=yes"
23533 else
23534   echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537 eval "$as_ac_var=no"
23538 fi
23539 rm -f conftest.err conftest.$ac_objext \
23540       conftest$ac_exeext conftest.$ac_ext
23541 fi
23542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23544 if test `eval echo '${'$as_ac_var'}'` = yes; then
23545   cat >>confdefs.h <<_ACEOF
23546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23547 _ACEOF
23548
23549 fi
23550 done
23551
23552 echo "$as_me:$LINENO: checking for mprotect" >&5
23553 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23554 if test "${ac_cv_func_mprotect+set}" = set; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557   cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23565 #define mprotect innocuous_mprotect
23566
23567 /* System header to define __stub macros and hopefully few prototypes,
23568     which can conflict with char mprotect (); below.
23569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23570     <limits.h> exists even on freestanding compilers.  */
23571
23572 #ifdef __STDC__
23573 # include <limits.h>
23574 #else
23575 # include <assert.h>
23576 #endif
23577
23578 #undef mprotect
23579
23580 /* Override any gcc2 internal prototype to avoid an error.  */
23581 #ifdef __cplusplus
23582 extern "C"
23583 {
23584 #endif
23585 /* We use char because int might match the return type of a gcc2
23586    builtin and then its argument prototype would still apply.  */
23587 char mprotect ();
23588 /* The GNU C library defines this for functions which it implements
23589     to always fail with ENOSYS.  Some functions are actually named
23590     something starting with __ and the normal name is an alias.  */
23591 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23592 choke me
23593 #else
23594 char (*f) () = mprotect;
23595 #endif
23596 #ifdef __cplusplus
23597 }
23598 #endif
23599
23600 int
23601 main ()
23602 {
23603 return f != mprotect;
23604   ;
23605   return 0;
23606 }
23607 _ACEOF
23608 rm -f conftest.$ac_objext conftest$ac_exeext
23609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23610   (eval $ac_link) 2>conftest.er1
23611   ac_status=$?
23612   grep -v '^ *+' conftest.er1 >conftest.err
23613   rm -f conftest.er1
23614   cat conftest.err >&5
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); } &&
23617          { ac_try='test -z "$ac_c_werror_flag"
23618                          || test ! -s conftest.err'
23619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620   (eval $ac_try) 2>&5
23621   ac_status=$?
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); }; } &&
23624          { ac_try='test -s conftest$ac_exeext'
23625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626   (eval $ac_try) 2>&5
23627   ac_status=$?
23628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629   (exit $ac_status); }; }; then
23630   ac_cv_func_mprotect=yes
23631 else
23632   echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23634
23635 ac_cv_func_mprotect=no
23636 fi
23637 rm -f conftest.err conftest.$ac_objext \
23638       conftest$ac_exeext conftest.$ac_ext
23639 fi
23640 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23641 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23642 if test $ac_cv_func_mprotect = yes; then
23643   :
23644 else
23645   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23646 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23647    { (exit 1); exit 1; }; }
23648 fi
23649
23650
23651
23652   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23653 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23654   ac_ext=c
23655 ac_cpp='$CPP $CPPFLAGS'
23656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23659
23660   oldcflags="$CFLAGS"
23661   CFLAGS="$CFLAGS -Wl,-R."
23662   cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668
23669 int
23670 main ()
23671 {
23672 int main() { return 0; }
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679   (eval $ac_link) 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } &&
23686          { ac_try='test -z "$ac_c_werror_flag"
23687                          || test ! -s conftest.err'
23688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); }; } &&
23693          { ac_try='test -s conftest$ac_exeext'
23694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695   (eval $ac_try) 2>&5
23696   ac_status=$?
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); }; }; then
23699   ac_cv_link_use_r=yes
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704 ac_cv_link_use_r=no
23705 fi
23706 rm -f conftest.err conftest.$ac_objext \
23707       conftest$ac_exeext conftest.$ac_ext
23708   CFLAGS="$oldcflags"
23709   ac_ext=c
23710 ac_cpp='$CPP $CPPFLAGS'
23711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23714
23715   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23716 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23717   if test "$ac_cv_link_use_r" = yes
23718   then
23719
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_LINK_R 1
23722 _ACEOF
23723
23724   fi
23725
23726
23727 # Check whether --enable-optimized or --disable-optimized was given.
23728 if test "${enable_optimized+set}" = set; then
23729   enableval="$enable_optimized"
23730
23731 else
23732   enableval=no
23733 fi;
23734 if test ${enableval} = "no"
23735 then
23736         ENABLE_OPTIMIZED=
23737
23738 else
23739         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23740
23741 fi
23742
23743 # Check whether --enable-jit or --disable-jit was given.
23744 if test "${enable_jit+set}" = set; then
23745   enableval="$enable_jit"
23746
23747 else
23748   enableval=default
23749 fi;
23750 if test ${enableval} = "no"
23751 then
23752         JIT=
23753
23754 else
23755         case $target in
23756                 *i*86*)
23757                         JIT=TARGET_HAS_JIT=1
23758
23759                         ;;
23760                 *sparc*)
23761                         JIT=TARGET_HAS_JIT=1
23762
23763                         ;;
23764                 *)
23765                         JIT=
23766
23767                         ;;
23768         esac
23769 fi
23770
23771
23772 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23773 if test "${with_llvmgccdir+set}" = set; then
23774   withval="$with_llvmgccdir"
23775   LLVMGCCDIR=$withval
23776
23777 fi;
23778 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23779 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23780 LLVM_GCC_CHECK=no
23781 if test -d "$LLVMGCCDIR"
23782 then
23783         if test -x "$LLVMGCCDIR/bin/gcc"
23784         then
23785                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23786         fi
23787 fi
23788 llvmgccwarn=no
23789 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23790 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23791 if test "$LLVM_GCC_CHECK" = "no"
23792 then
23793     llvmgccwarn=yes
23794 fi
23795 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23796 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23797 LLVM_GCC_SANE=no
23798 if test -x "$LLVM_GCC_CHECK"
23799 then
23800         cp /dev/null conftest.c
23801     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23802         if test $? -eq 0
23803         then
23804                 LLVM_GCC_SANE=yes
23805         fi
23806         rm conftest.c
23807         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23808         LLVMCC1=$llvmcc1path
23809
23810         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23811         LLVMCC1PLUS=$llvmcc1pluspath
23812
23813 fi
23814 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23815 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23816 if test "$LLVM_GCC_SANE" = "no"
23817 then
23818         llvmgccwarn=yes
23819 fi
23820
23821 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23822 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23823 eval "SHLIBEXT=$shrext_cmds"
23824 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23825 echo "${ECHO_T}$SHLIBEXT" >&6
23826 SHLIBEXT=$SHLIBEXT
23827
23828
23829 cat >>confdefs.h <<_ACEOF
23830 #define SHLIBEXT "$SHLIBEXT"
23831 _ACEOF
23832
23833
23834 # Translate the various configuration directories and other basic
23835 # information into substitutions that will end up in config.h.in so
23836 # that these configured values can be hard-wired into a program.
23837 eval LLVM_PREFIX="${prefix}";
23838 eval LLVM_BINDIR="${prefix}/bin";
23839 eval LLVM_LIBDIR="${prefix}/lib";
23840 eval LLVM_DATADIR="${prefix}/data";
23841 eval LLVM_DOCSDIR="${prefix}/docs";
23842 eval LLVM_ETCDIR="${prefix}/etc";
23843 eval LLVM_INCLUDEDIR="${prefix}/include";
23844 eval LLVM_INFODIR="${prefix}/info";
23845 eval LLVM_MANDIR="${prefix}/man";
23846 LLVM_CONFIGTIME=`date`
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858 cat >>confdefs.h <<_ACEOF
23859 #define LLVM_PREFIX "$LLVM_PREFIX"
23860 _ACEOF
23861
23862
23863 cat >>confdefs.h <<_ACEOF
23864 #define LLVM_BINDIR "$LLVM_BINDIR"
23865 _ACEOF
23866
23867
23868 cat >>confdefs.h <<_ACEOF
23869 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23870 _ACEOF
23871
23872
23873 cat >>confdefs.h <<_ACEOF
23874 #define LLVM_DATADIR "$LLVM_DATADIR"
23875 _ACEOF
23876
23877
23878 cat >>confdefs.h <<_ACEOF
23879 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23880 _ACEOF
23881
23882
23883 cat >>confdefs.h <<_ACEOF
23884 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23885 _ACEOF
23886
23887
23888 cat >>confdefs.h <<_ACEOF
23889 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23890 _ACEOF
23891
23892
23893 cat >>confdefs.h <<_ACEOF
23894 #define LLVM_INFODIR "$LLVM_INFODIR"
23895 _ACEOF
23896
23897
23898 cat >>confdefs.h <<_ACEOF
23899 #define LLVM_MANDIR "$LLVM_MANDIR"
23900 _ACEOF
23901
23902
23903 cat >>confdefs.h <<_ACEOF
23904 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23905 _ACEOF
23906
23907
23908 cat >confcache <<\_ACEOF
23909 # This file is a shell script that caches the results of configure
23910 # tests run on this system so they can be shared between configure
23911 # scripts and configure runs, see configure's option --config-cache.
23912 # It is not useful on other systems.  If it contains results you don't
23913 # want to keep, you may remove or edit it.
23914 #
23915 # config.status only pays attention to the cache file if you give it
23916 # the --recheck option to rerun configure.
23917 #
23918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23920 # following values.
23921
23922 _ACEOF
23923
23924 # The following way of writing the cache mishandles newlines in values,
23925 # but we know of no workaround that is simple, portable, and efficient.
23926 # So, don't put newlines in cache variables' values.
23927 # Ultrix sh set writes to stderr and can't be redirected directly,
23928 # and sets the high bit in the cache file unless we assign to the vars.
23929 {
23930   (set) 2>&1 |
23931     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23932     *ac_space=\ *)
23933       # `set' does not quote correctly, so add quotes (double-quote
23934       # substitution turns \\\\ into \\, and sed turns \\ into \).
23935       sed -n \
23936         "s/'/'\\\\''/g;
23937           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23938       ;;
23939     *)
23940       # `set' quotes correctly as required by POSIX, so do not add quotes.
23941       sed -n \
23942         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23943       ;;
23944     esac;
23945 } |
23946   sed '
23947      t clear
23948      : clear
23949      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23950      t end
23951      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23952      : end' >>confcache
23953 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23954   if test -w $cache_file; then
23955     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23956     cat confcache >$cache_file
23957   else
23958     echo "not updating unwritable cache $cache_file"
23959   fi
23960 fi
23961 rm -f confcache
23962
23963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23964 # Let make expand exec_prefix.
23965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23966
23967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23969 # trailing colons and then remove the whole line if VPATH becomes empty
23970 # (actually we leave an empty line to preserve line numbers).
23971 if test "x$srcdir" = x.; then
23972   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23973 s/:*\$(srcdir):*/:/;
23974 s/:*\${srcdir}:*/:/;
23975 s/:*@srcdir@:*/:/;
23976 s/^\([^=]*=[     ]*\):*/\1/;
23977 s/:*$//;
23978 s/^[^=]*=[       ]*$//;
23979 }'
23980 fi
23981
23982 DEFS=-DHAVE_CONFIG_H
23983
23984 ac_libobjs=
23985 ac_ltlibobjs=
23986 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23987   # 1. Remove the extension, and $U if already installed.
23988   ac_i=`echo "$ac_i" |
23989          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23990   # 2. Add them.
23991   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23992   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23993 done
23994 LIBOBJS=$ac_libobjs
23995
23996 LTLIBOBJS=$ac_ltlibobjs
23997
23998
23999
24000 : ${CONFIG_STATUS=./config.status}
24001 ac_clean_files_save=$ac_clean_files
24002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24005 cat >$CONFIG_STATUS <<_ACEOF
24006 #! $SHELL
24007 # Generated by $as_me.
24008 # Run this file to recreate the current configuration.
24009 # Compiler output produced by configure, useful for debugging
24010 # configure, is in config.log if it exists.
24011
24012 debug=false
24013 ac_cs_recheck=false
24014 ac_cs_silent=false
24015 SHELL=\${CONFIG_SHELL-$SHELL}
24016 _ACEOF
24017
24018 cat >>$CONFIG_STATUS <<\_ACEOF
24019 ## --------------------- ##
24020 ## M4sh Initialization.  ##
24021 ## --------------------- ##
24022
24023 # Be Bourne compatible
24024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24025   emulate sh
24026   NULLCMD=:
24027   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24028   # is contrary to our usage.  Disable this feature.
24029   alias -g '${1+"$@"}'='"$@"'
24030 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24031   set -o posix
24032 fi
24033 DUALCASE=1; export DUALCASE # for MKS sh
24034
24035 # Support unset when possible.
24036 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24037   as_unset=unset
24038 else
24039   as_unset=false
24040 fi
24041
24042
24043 # Work around bugs in pre-3.0 UWIN ksh.
24044 $as_unset ENV MAIL MAILPATH
24045 PS1='$ '
24046 PS2='> '
24047 PS4='+ '
24048
24049 # NLS nuisances.
24050 for as_var in \
24051   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24052   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24053   LC_TELEPHONE LC_TIME
24054 do
24055   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24056     eval $as_var=C; export $as_var
24057   else
24058     $as_unset $as_var
24059   fi
24060 done
24061
24062 # Required to use basename.
24063 if expr a : '\(a\)' >/dev/null 2>&1; then
24064   as_expr=expr
24065 else
24066   as_expr=false
24067 fi
24068
24069 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24070   as_basename=basename
24071 else
24072   as_basename=false
24073 fi
24074
24075
24076 # Name of the executable.
24077 as_me=`$as_basename "$0" ||
24078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24079          X"$0" : 'X\(//\)$' \| \
24080          X"$0" : 'X\(/\)$' \| \
24081          .     : '\(.\)' 2>/dev/null ||
24082 echo X/"$0" |
24083     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24084           /^X\/\(\/\/\)$/{ s//\1/; q; }
24085           /^X\/\(\/\).*/{ s//\1/; q; }
24086           s/.*/./; q'`
24087
24088
24089 # PATH needs CR, and LINENO needs CR and PATH.
24090 # Avoid depending upon Character Ranges.
24091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24094 as_cr_digits='0123456789'
24095 as_cr_alnum=$as_cr_Letters$as_cr_digits
24096
24097 # The user is always right.
24098 if test "${PATH_SEPARATOR+set}" != set; then
24099   echo "#! /bin/sh" >conf$$.sh
24100   echo  "exit 0"   >>conf$$.sh
24101   chmod +x conf$$.sh
24102   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24103     PATH_SEPARATOR=';'
24104   else
24105     PATH_SEPARATOR=:
24106   fi
24107   rm -f conf$$.sh
24108 fi
24109
24110
24111   as_lineno_1=$LINENO
24112   as_lineno_2=$LINENO
24113   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24114   test "x$as_lineno_1" != "x$as_lineno_2" &&
24115   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24116   # Find who we are.  Look in the path if we contain no path at all
24117   # relative or not.
24118   case $0 in
24119     *[\\/]* ) as_myself=$0 ;;
24120     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24121 for as_dir in $PATH
24122 do
24123   IFS=$as_save_IFS
24124   test -z "$as_dir" && as_dir=.
24125   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24126 done
24127
24128        ;;
24129   esac
24130   # We did not find ourselves, most probably we were run as `sh COMMAND'
24131   # in which case we are not to be found in the path.
24132   if test "x$as_myself" = x; then
24133     as_myself=$0
24134   fi
24135   if test ! -f "$as_myself"; then
24136     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24137 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24138    { (exit 1); exit 1; }; }
24139   fi
24140   case $CONFIG_SHELL in
24141   '')
24142     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24143 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24144 do
24145   IFS=$as_save_IFS
24146   test -z "$as_dir" && as_dir=.
24147   for as_base in sh bash ksh sh5; do
24148          case $as_dir in
24149          /*)
24150            if ("$as_dir/$as_base" -c '
24151   as_lineno_1=$LINENO
24152   as_lineno_2=$LINENO
24153   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24154   test "x$as_lineno_1" != "x$as_lineno_2" &&
24155   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24156              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24157              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24158              CONFIG_SHELL=$as_dir/$as_base
24159              export CONFIG_SHELL
24160              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24161            fi;;
24162          esac
24163        done
24164 done
24165 ;;
24166   esac
24167
24168   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24169   # uniformly replaced by the line number.  The first 'sed' inserts a
24170   # line-number line before each line; the second 'sed' does the real
24171   # work.  The second script uses 'N' to pair each line-number line
24172   # with the numbered line, and appends trailing '-' during
24173   # substitution so that $LINENO is not a special case at line end.
24174   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24175   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24176   sed '=' <$as_myself |
24177     sed '
24178       N
24179       s,$,-,
24180       : loop
24181       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24182       t loop
24183       s,-$,,
24184       s,^['$as_cr_digits']*\n,,
24185     ' >$as_me.lineno &&
24186   chmod +x $as_me.lineno ||
24187     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24188 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24189    { (exit 1); exit 1; }; }
24190
24191   # Don't try to exec as it changes $[0], causing all sort of problems
24192   # (the dirname of $[0] is not the place where we might find the
24193   # original and so on.  Autoconf is especially sensible to this).
24194   . ./$as_me.lineno
24195   # Exit status is that of the last command.
24196   exit
24197 }
24198
24199
24200 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24201   *c*,-n*) ECHO_N= ECHO_C='
24202 ' ECHO_T='      ' ;;
24203   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24204   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24205 esac
24206
24207 if expr a : '\(a\)' >/dev/null 2>&1; then
24208   as_expr=expr
24209 else
24210   as_expr=false
24211 fi
24212
24213 rm -f conf$$ conf$$.exe conf$$.file
24214 echo >conf$$.file
24215 if ln -s conf$$.file conf$$ 2>/dev/null; then
24216   # We could just check for DJGPP; but this test a) works b) is more generic
24217   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24218   if test -f conf$$.exe; then
24219     # Don't use ln at all; we don't have any links
24220     as_ln_s='cp -p'
24221   else
24222     as_ln_s='ln -s'
24223   fi
24224 elif ln conf$$.file conf$$ 2>/dev/null; then
24225   as_ln_s=ln
24226 else
24227   as_ln_s='cp -p'
24228 fi
24229 rm -f conf$$ conf$$.exe conf$$.file
24230
24231 if mkdir -p . 2>/dev/null; then
24232   as_mkdir_p=:
24233 else
24234   test -d ./-p && rmdir ./-p
24235   as_mkdir_p=false
24236 fi
24237
24238 as_executable_p="test -f"
24239
24240 # Sed expression to map a string onto a valid CPP name.
24241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24242
24243 # Sed expression to map a string onto a valid variable name.
24244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24245
24246
24247 # IFS
24248 # We need space, tab and new line, in precisely that order.
24249 as_nl='
24250 '
24251 IFS="   $as_nl"
24252
24253 # CDPATH.
24254 $as_unset CDPATH
24255
24256 exec 6>&1
24257
24258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24259 # report actual input values of CONFIG_FILES etc. instead of their
24260 # values after options handling.  Logging --version etc. is OK.
24261 exec 5>>config.log
24262 {
24263   echo
24264   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24265 ## Running $as_me. ##
24266 _ASBOX
24267 } >&5
24268 cat >&5 <<_CSEOF
24269
24270 This file was extended by LLVM $as_me 1.4, which was
24271 generated by GNU Autoconf 2.59.  Invocation command line was
24272
24273   CONFIG_FILES    = $CONFIG_FILES
24274   CONFIG_HEADERS  = $CONFIG_HEADERS
24275   CONFIG_LINKS    = $CONFIG_LINKS
24276   CONFIG_COMMANDS = $CONFIG_COMMANDS
24277   $ $0 $@
24278
24279 _CSEOF
24280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24281 echo >&5
24282 _ACEOF
24283
24284 # Files that config.status was made for.
24285 if test -n "$ac_config_files"; then
24286   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24287 fi
24288
24289 if test -n "$ac_config_headers"; then
24290   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24291 fi
24292
24293 if test -n "$ac_config_links"; then
24294   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24295 fi
24296
24297 if test -n "$ac_config_commands"; then
24298   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24299 fi
24300
24301 cat >>$CONFIG_STATUS <<\_ACEOF
24302
24303 ac_cs_usage="\
24304 \`$as_me' instantiates files from templates according to the
24305 current configuration.
24306
24307 Usage: $0 [OPTIONS] [FILE]...
24308
24309   -h, --help       print this help, then exit
24310   -V, --version    print version number, then exit
24311   -q, --quiet      do not print progress messages
24312   -d, --debug      don't remove temporary files
24313       --recheck    update $as_me by reconfiguring in the same conditions
24314   --file=FILE[:TEMPLATE]
24315                    instantiate the configuration file FILE
24316   --header=FILE[:TEMPLATE]
24317                    instantiate the configuration header FILE
24318
24319 Configuration files:
24320 $config_files
24321
24322 Configuration headers:
24323 $config_headers
24324
24325 Configuration links:
24326 $config_links
24327
24328 Configuration commands:
24329 $config_commands
24330
24331 Report bugs to <bug-autoconf@gnu.org>."
24332 _ACEOF
24333
24334 cat >>$CONFIG_STATUS <<_ACEOF
24335 ac_cs_version="\\
24336 LLVM config.status 1.4
24337 configured by $0, generated by GNU Autoconf 2.59,
24338   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24339
24340 Copyright (C) 2003 Free Software Foundation, Inc.
24341 This config.status script is free software; the Free Software Foundation
24342 gives unlimited permission to copy, distribute and modify it."
24343 srcdir=$srcdir
24344 INSTALL="$INSTALL"
24345 _ACEOF
24346
24347 cat >>$CONFIG_STATUS <<\_ACEOF
24348 # If no file are specified by the user, then we need to provide default
24349 # value.  By we need to know if files were specified by the user.
24350 ac_need_defaults=:
24351 while test $# != 0
24352 do
24353   case $1 in
24354   --*=*)
24355     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24356     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24357     ac_shift=:
24358     ;;
24359   -*)
24360     ac_option=$1
24361     ac_optarg=$2
24362     ac_shift=shift
24363     ;;
24364   *) # This is not an option, so the user has probably given explicit
24365      # arguments.
24366      ac_option=$1
24367      ac_need_defaults=false;;
24368   esac
24369
24370   case $ac_option in
24371   # Handling of the options.
24372 _ACEOF
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24374   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24375     ac_cs_recheck=: ;;
24376   --version | --vers* | -V )
24377     echo "$ac_cs_version"; exit 0 ;;
24378   --he | --h)
24379     # Conflict between --help and --header
24380     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24381 Try \`$0 --help' for more information." >&5
24382 echo "$as_me: error: ambiguous option: $1
24383 Try \`$0 --help' for more information." >&2;}
24384    { (exit 1); exit 1; }; };;
24385   --help | --hel | -h )
24386     echo "$ac_cs_usage"; exit 0 ;;
24387   --debug | --d* | -d )
24388     debug=: ;;
24389   --file | --fil | --fi | --f )
24390     $ac_shift
24391     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24392     ac_need_defaults=false;;
24393   --header | --heade | --head | --hea )
24394     $ac_shift
24395     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24396     ac_need_defaults=false;;
24397   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24398   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24399     ac_cs_silent=: ;;
24400
24401   # This is an error.
24402   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24403 Try \`$0 --help' for more information." >&5
24404 echo "$as_me: error: unrecognized option: $1
24405 Try \`$0 --help' for more information." >&2;}
24406    { (exit 1); exit 1; }; } ;;
24407
24408   *) ac_config_targets="$ac_config_targets $1" ;;
24409
24410   esac
24411   shift
24412 done
24413
24414 ac_configure_extra_args=
24415
24416 if $ac_cs_silent; then
24417   exec 6>/dev/null
24418   ac_configure_extra_args="$ac_configure_extra_args --silent"
24419 fi
24420
24421 _ACEOF
24422 cat >>$CONFIG_STATUS <<_ACEOF
24423 if \$ac_cs_recheck; then
24424   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24425   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24426 fi
24427
24428 _ACEOF
24429
24430 cat >>$CONFIG_STATUS <<_ACEOF
24431 #
24432 # INIT-COMMANDS section.
24433 #
24434
24435 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24436 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24437 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24438 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24439 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24442 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24443 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24444 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24445 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24446 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24447
24448 _ACEOF
24449
24450
24451
24452 cat >>$CONFIG_STATUS <<\_ACEOF
24453 for ac_config_target in $ac_config_targets
24454 do
24455   case "$ac_config_target" in
24456   # Handling of arguments.
24457   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24458   "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24459   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24460   "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24461   "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24462   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24463   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24464   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24465   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24466   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24467   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24468   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24469   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24470   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24471   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24472   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24473   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24474   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24475   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24476   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24477   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24479    { (exit 1); exit 1; }; };;
24480   esac
24481 done
24482
24483 # If the user did not use the arguments to specify the items to instantiate,
24484 # then the envvar interface is used.  Set only those that are not.
24485 # We use the long form for the default assignment because of an extremely
24486 # bizarre bug on SunOS 4.1.3.
24487 if $ac_need_defaults; then
24488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24490   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24491   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24492 fi
24493
24494 # Have a temporary directory for convenience.  Make it in the build tree
24495 # simply because there is no reason to put it here, and in addition,
24496 # creating and moving files from /tmp can sometimes cause problems.
24497 # Create a temporary directory, and hook for its removal unless debugging.
24498 $debug ||
24499 {
24500   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24501   trap '{ (exit 1); exit 1; }' 1 2 13 15
24502 }
24503
24504 # Create a (secure) tmp directory for tmp files.
24505
24506 {
24507   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24508   test -n "$tmp" && test -d "$tmp"
24509 }  ||
24510 {
24511   tmp=./confstat$$-$RANDOM
24512   (umask 077 && mkdir $tmp)
24513 } ||
24514 {
24515    echo "$me: cannot create a temporary directory in ." >&2
24516    { (exit 1); exit 1; }
24517 }
24518
24519 _ACEOF
24520
24521 cat >>$CONFIG_STATUS <<_ACEOF
24522
24523 #
24524 # CONFIG_FILES section.
24525 #
24526
24527 # No need to generate the scripts if there are no CONFIG_FILES.
24528 # This happens for instance when ./config.status config.h
24529 if test -n "\$CONFIG_FILES"; then
24530   # Protect against being on the right side of a sed subst in config.status.
24531   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24532    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24533 s,@SHELL@,$SHELL,;t t
24534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24540 s,@exec_prefix@,$exec_prefix,;t t
24541 s,@prefix@,$prefix,;t t
24542 s,@program_transform_name@,$program_transform_name,;t t
24543 s,@bindir@,$bindir,;t t
24544 s,@sbindir@,$sbindir,;t t
24545 s,@libexecdir@,$libexecdir,;t t
24546 s,@datadir@,$datadir,;t t
24547 s,@sysconfdir@,$sysconfdir,;t t
24548 s,@sharedstatedir@,$sharedstatedir,;t t
24549 s,@localstatedir@,$localstatedir,;t t
24550 s,@libdir@,$libdir,;t t
24551 s,@includedir@,$includedir,;t t
24552 s,@oldincludedir@,$oldincludedir,;t t
24553 s,@infodir@,$infodir,;t t
24554 s,@mandir@,$mandir,;t t
24555 s,@build_alias@,$build_alias,;t t
24556 s,@host_alias@,$host_alias,;t t
24557 s,@target_alias@,$target_alias,;t t
24558 s,@DEFS@,$DEFS,;t t
24559 s,@ECHO_C@,$ECHO_C,;t t
24560 s,@ECHO_N@,$ECHO_N,;t t
24561 s,@ECHO_T@,$ECHO_T,;t t
24562 s,@LIBS@,$LIBS,;t t
24563 s,@subdirs@,$subdirs,;t t
24564 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24565 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24566 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24567 s,@build@,$build,;t t
24568 s,@build_cpu@,$build_cpu,;t t
24569 s,@build_vendor@,$build_vendor,;t t
24570 s,@build_os@,$build_os,;t t
24571 s,@host@,$host,;t t
24572 s,@host_cpu@,$host_cpu,;t t
24573 s,@host_vendor@,$host_vendor,;t t
24574 s,@host_os@,$host_os,;t t
24575 s,@target@,$target,;t t
24576 s,@target_cpu@,$target_cpu,;t t
24577 s,@target_vendor@,$target_vendor,;t t
24578 s,@target_os@,$target_os,;t t
24579 s,@OS@,$OS,;t t
24580 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24581 s,@ARCH@,$ARCH,;t t
24582 s,@CXX@,$CXX,;t t
24583 s,@CXXFLAGS@,$CXXFLAGS,;t t
24584 s,@LDFLAGS@,$LDFLAGS,;t t
24585 s,@CPPFLAGS@,$CPPFLAGS,;t t
24586 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24587 s,@EXEEXT@,$EXEEXT,;t t
24588 s,@OBJEXT@,$OBJEXT,;t t
24589 s,@CC@,$CC,;t t
24590 s,@CFLAGS@,$CFLAGS,;t t
24591 s,@ac_ct_CC@,$ac_ct_CC,;t t
24592 s,@CPP@,$CPP,;t t
24593 s,@ifGNUmake@,$ifGNUmake,;t t
24594 s,@LEX@,$LEX,;t t
24595 s,@LEXLIB@,$LEXLIB,;t t
24596 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24597 s,@FLEX@,$FLEX,;t t
24598 s,@YACC@,$YACC,;t t
24599 s,@BISON@,$BISON,;t t
24600 s,@EGREP@,$EGREP,;t t
24601 s,@LN_S@,$LN_S,;t t
24602 s,@ECHO@,$ECHO,;t t
24603 s,@AR@,$AR,;t t
24604 s,@ac_ct_AR@,$ac_ct_AR,;t t
24605 s,@RANLIB@,$RANLIB,;t t
24606 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24607 s,@STRIP@,$STRIP,;t t
24608 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24609 s,@CXXCPP@,$CXXCPP,;t t
24610 s,@F77@,$F77,;t t
24611 s,@FFLAGS@,$FFLAGS,;t t
24612 s,@ac_ct_F77@,$ac_ct_F77,;t t
24613 s,@LIBTOOL@,$LIBTOOL,;t t
24614 s,@DOT@,$DOT,;t t
24615 s,@ETAGS@,$ETAGS,;t t
24616 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24617 s,@PYTHON@,$PYTHON,;t t
24618 s,@QMTEST@,$QMTEST,;t t
24619 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24620 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24621 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24622 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24623 s,@ENDIAN@,$ENDIAN,;t t
24624 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24625 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24626 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24627 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24628 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24629 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24630 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24631 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24632 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24633 s,@ALLOCA@,$ALLOCA,;t t
24634 s,@MMAP_FILE@,$MMAP_FILE,;t t
24635 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24636 s,@JIT@,$JIT,;t t
24637 s,@LLVMCC1@,$LLVMCC1,;t t
24638 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24639 s,@SHLIBEXT@,$SHLIBEXT,;t t
24640 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24641 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24642 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24643 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24644 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24645 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24646 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24647 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24648 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24649 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24650 s,@LIBOBJS@,$LIBOBJS,;t t
24651 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24652 CEOF
24653
24654 _ACEOF
24655
24656   cat >>$CONFIG_STATUS <<\_ACEOF
24657   # Split the substitutions into bite-sized pieces for seds with
24658   # small command number limits, like on Digital OSF/1 and HP-UX.
24659   ac_max_sed_lines=48
24660   ac_sed_frag=1 # Number of current file.
24661   ac_beg=1 # First line for current file.
24662   ac_end=$ac_max_sed_lines # Line after last line for current file.
24663   ac_more_lines=:
24664   ac_sed_cmds=
24665   while $ac_more_lines; do
24666     if test $ac_beg -gt 1; then
24667       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24668     else
24669       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24670     fi
24671     if test ! -s $tmp/subs.frag; then
24672       ac_more_lines=false
24673     else
24674       # The purpose of the label and of the branching condition is to
24675       # speed up the sed processing (if there are no `@' at all, there
24676       # is no need to browse any of the substitutions).
24677       # These are the two extra sed commands mentioned above.
24678       (echo ':t
24679   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24680       if test -z "$ac_sed_cmds"; then
24681         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24682       else
24683         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24684       fi
24685       ac_sed_frag=`expr $ac_sed_frag + 1`
24686       ac_beg=$ac_end
24687       ac_end=`expr $ac_end + $ac_max_sed_lines`
24688     fi
24689   done
24690   if test -z "$ac_sed_cmds"; then
24691     ac_sed_cmds=cat
24692   fi
24693 fi # test -n "$CONFIG_FILES"
24694
24695 _ACEOF
24696 cat >>$CONFIG_STATUS <<\_ACEOF
24697 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24698   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24699   case $ac_file in
24700   - | *:- | *:-:* ) # input from stdin
24701         cat >$tmp/stdin
24702         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24703         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24704   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24705         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24706   * )   ac_file_in=$ac_file.in ;;
24707   esac
24708
24709   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24710   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24712          X"$ac_file" : 'X\(//\)[^/]' \| \
24713          X"$ac_file" : 'X\(//\)$' \| \
24714          X"$ac_file" : 'X\(/\)' \| \
24715          .     : '\(.\)' 2>/dev/null ||
24716 echo X"$ac_file" |
24717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24719           /^X\(\/\/\)$/{ s//\1/; q; }
24720           /^X\(\/\).*/{ s//\1/; q; }
24721           s/.*/./; q'`
24722   { if $as_mkdir_p; then
24723     mkdir -p "$ac_dir"
24724   else
24725     as_dir="$ac_dir"
24726     as_dirs=
24727     while test ! -d "$as_dir"; do
24728       as_dirs="$as_dir $as_dirs"
24729       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24731          X"$as_dir" : 'X\(//\)[^/]' \| \
24732          X"$as_dir" : 'X\(//\)$' \| \
24733          X"$as_dir" : 'X\(/\)' \| \
24734          .     : '\(.\)' 2>/dev/null ||
24735 echo X"$as_dir" |
24736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24737           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24738           /^X\(\/\/\)$/{ s//\1/; q; }
24739           /^X\(\/\).*/{ s//\1/; q; }
24740           s/.*/./; q'`
24741     done
24742     test ! -n "$as_dirs" || mkdir $as_dirs
24743   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24744 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24745    { (exit 1); exit 1; }; }; }
24746
24747   ac_builddir=.
24748
24749 if test "$ac_dir" != .; then
24750   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24751   # A "../" for each directory in $ac_dir_suffix.
24752   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24753 else
24754   ac_dir_suffix= ac_top_builddir=
24755 fi
24756
24757 case $srcdir in
24758   .)  # No --srcdir option.  We are building in place.
24759     ac_srcdir=.
24760     if test -z "$ac_top_builddir"; then
24761        ac_top_srcdir=.
24762     else
24763        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24764     fi ;;
24765   [\\/]* | ?:[\\/]* )  # Absolute path.
24766     ac_srcdir=$srcdir$ac_dir_suffix;
24767     ac_top_srcdir=$srcdir ;;
24768   *) # Relative path.
24769     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24770     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24771 esac
24772
24773 # Do not use `cd foo && pwd` to compute absolute paths, because
24774 # the directories may not exist.
24775 case `pwd` in
24776 .) ac_abs_builddir="$ac_dir";;
24777 *)
24778   case "$ac_dir" in
24779   .) ac_abs_builddir=`pwd`;;
24780   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24781   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24782   esac;;
24783 esac
24784 case $ac_abs_builddir in
24785 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24786 *)
24787   case ${ac_top_builddir}. in
24788   .) ac_abs_top_builddir=$ac_abs_builddir;;
24789   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24790   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24791   esac;;
24792 esac
24793 case $ac_abs_builddir in
24794 .) ac_abs_srcdir=$ac_srcdir;;
24795 *)
24796   case $ac_srcdir in
24797   .) ac_abs_srcdir=$ac_abs_builddir;;
24798   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24799   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24800   esac;;
24801 esac
24802 case $ac_abs_builddir in
24803 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24804 *)
24805   case $ac_top_srcdir in
24806   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24807   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24808   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24809   esac;;
24810 esac
24811
24812
24813   case $INSTALL in
24814   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24815   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24816   esac
24817
24818   if test x"$ac_file" != x-; then
24819     { echo "$as_me:$LINENO: creating $ac_file" >&5
24820 echo "$as_me: creating $ac_file" >&6;}
24821     rm -f "$ac_file"
24822   fi
24823   # Let's still pretend it is `configure' which instantiates (i.e., don't
24824   # use $as_me), people would be surprised to read:
24825   #    /* config.h.  Generated by config.status.  */
24826   if test x"$ac_file" = x-; then
24827     configure_input=
24828   else
24829     configure_input="$ac_file.  "
24830   fi
24831   configure_input=$configure_input"Generated from `echo $ac_file_in |
24832                                      sed 's,.*/,,'` by configure."
24833
24834   # First look for the input files in the build tree, otherwise in the
24835   # src tree.
24836   ac_file_inputs=`IFS=:
24837     for f in $ac_file_in; do
24838       case $f in
24839       -) echo $tmp/stdin ;;
24840       [\\/$]*)
24841          # Absolute (can't be DOS-style, as IFS=:)
24842          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24843 echo "$as_me: error: cannot find input file: $f" >&2;}
24844    { (exit 1); exit 1; }; }
24845          echo "$f";;
24846       *) # Relative
24847          if test -f "$f"; then
24848            # Build tree
24849            echo "$f"
24850          elif test -f "$srcdir/$f"; then
24851            # Source tree
24852            echo "$srcdir/$f"
24853          else
24854            # /dev/null tree
24855            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24856 echo "$as_me: error: cannot find input file: $f" >&2;}
24857    { (exit 1); exit 1; }; }
24858          fi;;
24859       esac
24860     done` || { (exit 1); exit 1; }
24861 _ACEOF
24862 cat >>$CONFIG_STATUS <<_ACEOF
24863   sed "$ac_vpsub
24864 $extrasub
24865 _ACEOF
24866 cat >>$CONFIG_STATUS <<\_ACEOF
24867 :t
24868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24869 s,@configure_input@,$configure_input,;t t
24870 s,@srcdir@,$ac_srcdir,;t t
24871 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24872 s,@top_srcdir@,$ac_top_srcdir,;t t
24873 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24874 s,@builddir@,$ac_builddir,;t t
24875 s,@abs_builddir@,$ac_abs_builddir,;t t
24876 s,@top_builddir@,$ac_top_builddir,;t t
24877 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24878 s,@INSTALL@,$ac_INSTALL,;t t
24879 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24880   rm -f $tmp/stdin
24881   if test x"$ac_file" != x-; then
24882     mv $tmp/out $ac_file
24883   else
24884     cat $tmp/out
24885     rm -f $tmp/out
24886   fi
24887
24888 done
24889 _ACEOF
24890 cat >>$CONFIG_STATUS <<\_ACEOF
24891
24892 #
24893 # CONFIG_HEADER section.
24894 #
24895
24896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24898 #
24899 # ac_d sets the value in "#define NAME VALUE" lines.
24900 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24901 ac_dB='[         ].*$,\1#\2'
24902 ac_dC=' '
24903 ac_dD=',;t'
24904 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24905 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24906 ac_uB='$,\1#\2define\3'
24907 ac_uC=' '
24908 ac_uD=',;t'
24909
24910 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24911   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24912   case $ac_file in
24913   - | *:- | *:-:* ) # input from stdin
24914         cat >$tmp/stdin
24915         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24916         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24917   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24918         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24919   * )   ac_file_in=$ac_file.in ;;
24920   esac
24921
24922   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24923 echo "$as_me: creating $ac_file" >&6;}
24924
24925   # First look for the input files in the build tree, otherwise in the
24926   # src tree.
24927   ac_file_inputs=`IFS=:
24928     for f in $ac_file_in; do
24929       case $f in
24930       -) echo $tmp/stdin ;;
24931       [\\/$]*)
24932          # Absolute (can't be DOS-style, as IFS=:)
24933          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24934 echo "$as_me: error: cannot find input file: $f" >&2;}
24935    { (exit 1); exit 1; }; }
24936          # Do quote $f, to prevent DOS paths from being IFS'd.
24937          echo "$f";;
24938       *) # Relative
24939          if test -f "$f"; then
24940            # Build tree
24941            echo "$f"
24942          elif test -f "$srcdir/$f"; then
24943            # Source tree
24944            echo "$srcdir/$f"
24945          else
24946            # /dev/null tree
24947            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24948 echo "$as_me: error: cannot find input file: $f" >&2;}
24949    { (exit 1); exit 1; }; }
24950          fi;;
24951       esac
24952     done` || { (exit 1); exit 1; }
24953   # Remove the trailing spaces.
24954   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24955
24956 _ACEOF
24957
24958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24959 # `conftest.undefs', that substitutes the proper values into
24960 # config.h.in to produce config.h.  The first handles `#define'
24961 # templates, and the second `#undef' templates.
24962 # And first: Protect against being on the right side of a sed subst in
24963 # config.status.  Protect against being in an unquoted here document
24964 # in config.status.
24965 rm -f conftest.defines conftest.undefs
24966 # Using a here document instead of a string reduces the quoting nightmare.
24967 # Putting comments in sed scripts is not portable.
24968 #
24969 # `end' is used to avoid that the second main sed command (meant for
24970 # 0-ary CPP macros) applies to n-ary macro definitions.
24971 # See the Autoconf documentation for `clear'.
24972 cat >confdef2sed.sed <<\_ACEOF
24973 s/[\\&,]/\\&/g
24974 s,[\\$`],\\&,g
24975 t clear
24976 : clear
24977 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24978 t end
24979 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24980 : end
24981 _ACEOF
24982 # If some macros were called several times there might be several times
24983 # the same #defines, which is useless.  Nevertheless, we may not want to
24984 # sort them, since we want the *last* AC-DEFINE to be honored.
24985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24987 rm -f confdef2sed.sed
24988
24989 # This sed command replaces #undef with comments.  This is necessary, for
24990 # example, in the case of _POSIX_SOURCE, which is predefined and required
24991 # on some systems where configure will not decide to define it.
24992 cat >>conftest.undefs <<\_ACEOF
24993 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24994 _ACEOF
24995
24996 # Break up conftest.defines because some shells have a limit on the size
24997 # of here documents, and old seds have small limits too (100 cmds).
24998 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24999 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25000 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25001 echo '  :' >>$CONFIG_STATUS
25002 rm -f conftest.tail
25003 while grep . conftest.defines >/dev/null
25004 do
25005   # Write a limited-size here document to $tmp/defines.sed.
25006   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25007   # Speed up: don't consider the non `#define' lines.
25008   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25009   # Work around the forget-to-reset-the-flag bug.
25010   echo 't clr' >>$CONFIG_STATUS
25011   echo ': clr' >>$CONFIG_STATUS
25012   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25013   echo 'CEOF
25014   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25015   rm -f $tmp/in
25016   mv $tmp/out $tmp/in
25017 ' >>$CONFIG_STATUS
25018   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25019   rm -f conftest.defines
25020   mv conftest.tail conftest.defines
25021 done
25022 rm -f conftest.defines
25023 echo '  fi # grep' >>$CONFIG_STATUS
25024 echo >>$CONFIG_STATUS
25025
25026 # Break up conftest.undefs because some shells have a limit on the size
25027 # of here documents, and old seds have small limits too (100 cmds).
25028 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25029 rm -f conftest.tail
25030 while grep . conftest.undefs >/dev/null
25031 do
25032   # Write a limited-size here document to $tmp/undefs.sed.
25033   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25034   # Speed up: don't consider the non `#undef'
25035   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25036   # Work around the forget-to-reset-the-flag bug.
25037   echo 't clr' >>$CONFIG_STATUS
25038   echo ': clr' >>$CONFIG_STATUS
25039   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25040   echo 'CEOF
25041   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25042   rm -f $tmp/in
25043   mv $tmp/out $tmp/in
25044 ' >>$CONFIG_STATUS
25045   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25046   rm -f conftest.undefs
25047   mv conftest.tail conftest.undefs
25048 done
25049 rm -f conftest.undefs
25050
25051 cat >>$CONFIG_STATUS <<\_ACEOF
25052   # Let's still pretend it is `configure' which instantiates (i.e., don't
25053   # use $as_me), people would be surprised to read:
25054   #    /* config.h.  Generated by config.status.  */
25055   if test x"$ac_file" = x-; then
25056     echo "/* Generated by configure.  */" >$tmp/config.h
25057   else
25058     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25059   fi
25060   cat $tmp/in >>$tmp/config.h
25061   rm -f $tmp/in
25062   if test x"$ac_file" != x-; then
25063     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25064       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25065 echo "$as_me: $ac_file is unchanged" >&6;}
25066     else
25067       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25069          X"$ac_file" : 'X\(//\)[^/]' \| \
25070          X"$ac_file" : 'X\(//\)$' \| \
25071          X"$ac_file" : 'X\(/\)' \| \
25072          .     : '\(.\)' 2>/dev/null ||
25073 echo X"$ac_file" |
25074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25076           /^X\(\/\/\)$/{ s//\1/; q; }
25077           /^X\(\/\).*/{ s//\1/; q; }
25078           s/.*/./; q'`
25079       { if $as_mkdir_p; then
25080     mkdir -p "$ac_dir"
25081   else
25082     as_dir="$ac_dir"
25083     as_dirs=
25084     while test ! -d "$as_dir"; do
25085       as_dirs="$as_dir $as_dirs"
25086       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088          X"$as_dir" : 'X\(//\)[^/]' \| \
25089          X"$as_dir" : 'X\(//\)$' \| \
25090          X"$as_dir" : 'X\(/\)' \| \
25091          .     : '\(.\)' 2>/dev/null ||
25092 echo X"$as_dir" |
25093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095           /^X\(\/\/\)$/{ s//\1/; q; }
25096           /^X\(\/\).*/{ s//\1/; q; }
25097           s/.*/./; q'`
25098     done
25099     test ! -n "$as_dirs" || mkdir $as_dirs
25100   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25102    { (exit 1); exit 1; }; }; }
25103
25104       rm -f $ac_file
25105       mv $tmp/config.h $ac_file
25106     fi
25107   else
25108     cat $tmp/config.h
25109     rm -f $tmp/config.h
25110   fi
25111 done
25112 _ACEOF
25113 cat >>$CONFIG_STATUS <<\_ACEOF
25114
25115 #
25116 # CONFIG_LINKS section.
25117 #
25118
25119 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25120   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25121   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25122
25123   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25124 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25125
25126   if test ! -r $srcdir/$ac_source; then
25127     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25128 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25129    { (exit 1); exit 1; }; }
25130   fi
25131   rm -f $ac_dest
25132
25133   # Make relative symlinks.
25134   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25135 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25136          X"$ac_dest" : 'X\(//\)[^/]' \| \
25137          X"$ac_dest" : 'X\(//\)$' \| \
25138          X"$ac_dest" : 'X\(/\)' \| \
25139          .     : '\(.\)' 2>/dev/null ||
25140 echo X"$ac_dest" |
25141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25142           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25143           /^X\(\/\/\)$/{ s//\1/; q; }
25144           /^X\(\/\).*/{ s//\1/; q; }
25145           s/.*/./; q'`
25146   { if $as_mkdir_p; then
25147     mkdir -p "$ac_dest_dir"
25148   else
25149     as_dir="$ac_dest_dir"
25150     as_dirs=
25151     while test ! -d "$as_dir"; do
25152       as_dirs="$as_dir $as_dirs"
25153       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155          X"$as_dir" : 'X\(//\)[^/]' \| \
25156          X"$as_dir" : 'X\(//\)$' \| \
25157          X"$as_dir" : 'X\(/\)' \| \
25158          .     : '\(.\)' 2>/dev/null ||
25159 echo X"$as_dir" |
25160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162           /^X\(\/\/\)$/{ s//\1/; q; }
25163           /^X\(\/\).*/{ s//\1/; q; }
25164           s/.*/./; q'`
25165     done
25166     test ! -n "$as_dirs" || mkdir $as_dirs
25167   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25168 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25169    { (exit 1); exit 1; }; }; }
25170
25171   ac_builddir=.
25172
25173 if test "$ac_dest_dir" != .; then
25174   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25175   # A "../" for each directory in $ac_dir_suffix.
25176   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25177 else
25178   ac_dir_suffix= ac_top_builddir=
25179 fi
25180
25181 case $srcdir in
25182   .)  # No --srcdir option.  We are building in place.
25183     ac_srcdir=.
25184     if test -z "$ac_top_builddir"; then
25185        ac_top_srcdir=.
25186     else
25187        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25188     fi ;;
25189   [\\/]* | ?:[\\/]* )  # Absolute path.
25190     ac_srcdir=$srcdir$ac_dir_suffix;
25191     ac_top_srcdir=$srcdir ;;
25192   *) # Relative path.
25193     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25194     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25195 esac
25196
25197 # Do not use `cd foo && pwd` to compute absolute paths, because
25198 # the directories may not exist.
25199 case `pwd` in
25200 .) ac_abs_builddir="$ac_dest_dir";;
25201 *)
25202   case "$ac_dest_dir" in
25203   .) ac_abs_builddir=`pwd`;;
25204   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25205   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25206   esac;;
25207 esac
25208 case $ac_abs_builddir in
25209 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25210 *)
25211   case ${ac_top_builddir}. in
25212   .) ac_abs_top_builddir=$ac_abs_builddir;;
25213   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25214   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25215   esac;;
25216 esac
25217 case $ac_abs_builddir in
25218 .) ac_abs_srcdir=$ac_srcdir;;
25219 *)
25220   case $ac_srcdir in
25221   .) ac_abs_srcdir=$ac_abs_builddir;;
25222   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25223   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25224   esac;;
25225 esac
25226 case $ac_abs_builddir in
25227 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25228 *)
25229   case $ac_top_srcdir in
25230   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25231   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25232   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25233   esac;;
25234 esac
25235
25236
25237   case $srcdir in
25238   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25239       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25240   esac
25241
25242   # Try a symlink, then a hard link, then a copy.
25243   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25244     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25245     cp -p $srcdir/$ac_source $ac_dest ||
25246     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25247 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25248    { (exit 1); exit 1; }; }
25249 done
25250 _ACEOF
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25252
25253 #
25254 # CONFIG_COMMANDS section.
25255 #
25256 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25257   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25258   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25259   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25260 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25261          X"$ac_dest" : 'X\(//\)[^/]' \| \
25262          X"$ac_dest" : 'X\(//\)$' \| \
25263          X"$ac_dest" : 'X\(/\)' \| \
25264          .     : '\(.\)' 2>/dev/null ||
25265 echo X"$ac_dest" |
25266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25268           /^X\(\/\/\)$/{ s//\1/; q; }
25269           /^X\(\/\).*/{ s//\1/; q; }
25270           s/.*/./; q'`
25271   { if $as_mkdir_p; then
25272     mkdir -p "$ac_dir"
25273   else
25274     as_dir="$ac_dir"
25275     as_dirs=
25276     while test ! -d "$as_dir"; do
25277       as_dirs="$as_dir $as_dirs"
25278       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25280          X"$as_dir" : 'X\(//\)[^/]' \| \
25281          X"$as_dir" : 'X\(//\)$' \| \
25282          X"$as_dir" : 'X\(/\)' \| \
25283          .     : '\(.\)' 2>/dev/null ||
25284 echo X"$as_dir" |
25285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25287           /^X\(\/\/\)$/{ s//\1/; q; }
25288           /^X\(\/\).*/{ s//\1/; q; }
25289           s/.*/./; q'`
25290     done
25291     test ! -n "$as_dirs" || mkdir $as_dirs
25292   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25294    { (exit 1); exit 1; }; }; }
25295
25296   ac_builddir=.
25297
25298 if test "$ac_dir" != .; then
25299   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25300   # A "../" for each directory in $ac_dir_suffix.
25301   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25302 else
25303   ac_dir_suffix= ac_top_builddir=
25304 fi
25305
25306 case $srcdir in
25307   .)  # No --srcdir option.  We are building in place.
25308     ac_srcdir=.
25309     if test -z "$ac_top_builddir"; then
25310        ac_top_srcdir=.
25311     else
25312        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25313     fi ;;
25314   [\\/]* | ?:[\\/]* )  # Absolute path.
25315     ac_srcdir=$srcdir$ac_dir_suffix;
25316     ac_top_srcdir=$srcdir ;;
25317   *) # Relative path.
25318     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25319     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25320 esac
25321
25322 # Do not use `cd foo && pwd` to compute absolute paths, because
25323 # the directories may not exist.
25324 case `pwd` in
25325 .) ac_abs_builddir="$ac_dir";;
25326 *)
25327   case "$ac_dir" in
25328   .) ac_abs_builddir=`pwd`;;
25329   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25330   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25331   esac;;
25332 esac
25333 case $ac_abs_builddir in
25334 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25335 *)
25336   case ${ac_top_builddir}. in
25337   .) ac_abs_top_builddir=$ac_abs_builddir;;
25338   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25339   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25340   esac;;
25341 esac
25342 case $ac_abs_builddir in
25343 .) ac_abs_srcdir=$ac_srcdir;;
25344 *)
25345   case $ac_srcdir in
25346   .) ac_abs_srcdir=$ac_abs_builddir;;
25347   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25348   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25349   esac;;
25350 esac
25351 case $ac_abs_builddir in
25352 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25353 *)
25354   case $ac_top_srcdir in
25355   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25356   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25357   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25358   esac;;
25359 esac
25360
25361
25362   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25363 echo "$as_me: executing $ac_dest commands" >&6;}
25364   case $ac_dest in
25365     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25366     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25367     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25368     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25369     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25370     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25371     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25372     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25373     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25374     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25375     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25376     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25377   esac
25378 done
25379 _ACEOF
25380
25381 cat >>$CONFIG_STATUS <<\_ACEOF
25382
25383 { (exit 0); exit 0; }
25384 _ACEOF
25385 chmod +x $CONFIG_STATUS
25386 ac_clean_files=$ac_clean_files_save
25387
25388
25389 # configure is writing to config.log, and then calls config.status.
25390 # config.status does its own redirection, appending to config.log.
25391 # Unfortunately, on DOS this fails, as config.log is still kept open
25392 # by configure, so config.status won't be able to write to it; its
25393 # output is simply discarded.  So we exec the FD to /dev/null,
25394 # effectively closing config.log, so it can be properly (re)opened and
25395 # appended to by config.status.  When coming back to configure, we
25396 # need to make the FD available again.
25397 if test "$no_create" != yes; then
25398   ac_cs_success=:
25399   ac_config_status_args=
25400   test "$silent" = yes &&
25401     ac_config_status_args="$ac_config_status_args --quiet"
25402   exec 5>/dev/null
25403   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25404   exec 5>>config.log
25405   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25406   # would make configure fail if this is the last instruction.
25407   $ac_cs_success || { (exit 1); exit 1; }
25408 fi
25409
25410 #
25411 # CONFIG_SUBDIRS section.
25412 #
25413 if test "$no_recursion" != yes; then
25414
25415   # Remove --cache-file and --srcdir arguments so they do not pile up.
25416   ac_sub_configure_args=
25417   ac_prev=
25418   for ac_arg in $ac_configure_args; do
25419     if test -n "$ac_prev"; then
25420       ac_prev=
25421       continue
25422     fi
25423     case $ac_arg in
25424     -cache-file | --cache-file | --cache-fil | --cache-fi \
25425     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25426       ac_prev=cache_file ;;
25427     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25428     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25429     | --c=*)
25430       ;;
25431     --config-cache | -C)
25432       ;;
25433     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25434       ac_prev=srcdir ;;
25435     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25436       ;;
25437     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25438       ac_prev=prefix ;;
25439     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25440       ;;
25441     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25442     esac
25443   done
25444
25445   # Always prepend --prefix to ensure using the same prefix
25446   # in subdir configurations.
25447   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25448
25449   ac_popdir=`pwd`
25450   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25451
25452     # Do not complain, so a configure script can configure whichever
25453     # parts of a large source tree are present.
25454     test -d $srcdir/$ac_dir || continue
25455
25456     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25457 echo "$as_me: configuring in $ac_dir" >&6;}
25458     { if $as_mkdir_p; then
25459     mkdir -p "$ac_dir"
25460   else
25461     as_dir="$ac_dir"
25462     as_dirs=
25463     while test ! -d "$as_dir"; do
25464       as_dirs="$as_dir $as_dirs"
25465       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25467          X"$as_dir" : 'X\(//\)[^/]' \| \
25468          X"$as_dir" : 'X\(//\)$' \| \
25469          X"$as_dir" : 'X\(/\)' \| \
25470          .     : '\(.\)' 2>/dev/null ||
25471 echo X"$as_dir" |
25472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25474           /^X\(\/\/\)$/{ s//\1/; q; }
25475           /^X\(\/\).*/{ s//\1/; q; }
25476           s/.*/./; q'`
25477     done
25478     test ! -n "$as_dirs" || mkdir $as_dirs
25479   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25480 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25481    { (exit 1); exit 1; }; }; }
25482
25483     ac_builddir=.
25484
25485 if test "$ac_dir" != .; then
25486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25487   # A "../" for each directory in $ac_dir_suffix.
25488   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25489 else
25490   ac_dir_suffix= ac_top_builddir=
25491 fi
25492
25493 case $srcdir in
25494   .)  # No --srcdir option.  We are building in place.
25495     ac_srcdir=.
25496     if test -z "$ac_top_builddir"; then
25497        ac_top_srcdir=.
25498     else
25499        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25500     fi ;;
25501   [\\/]* | ?:[\\/]* )  # Absolute path.
25502     ac_srcdir=$srcdir$ac_dir_suffix;
25503     ac_top_srcdir=$srcdir ;;
25504   *) # Relative path.
25505     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25506     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25507 esac
25508
25509 # Do not use `cd foo && pwd` to compute absolute paths, because
25510 # the directories may not exist.
25511 case `pwd` in
25512 .) ac_abs_builddir="$ac_dir";;
25513 *)
25514   case "$ac_dir" in
25515   .) ac_abs_builddir=`pwd`;;
25516   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25517   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25518   esac;;
25519 esac
25520 case $ac_abs_builddir in
25521 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25522 *)
25523   case ${ac_top_builddir}. in
25524   .) ac_abs_top_builddir=$ac_abs_builddir;;
25525   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25526   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25527   esac;;
25528 esac
25529 case $ac_abs_builddir in
25530 .) ac_abs_srcdir=$ac_srcdir;;
25531 *)
25532   case $ac_srcdir in
25533   .) ac_abs_srcdir=$ac_abs_builddir;;
25534   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25535   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25536   esac;;
25537 esac
25538 case $ac_abs_builddir in
25539 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25540 *)
25541   case $ac_top_srcdir in
25542   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25543   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25544   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25545   esac;;
25546 esac
25547
25548
25549     cd $ac_dir
25550
25551     # Check for guested configure; otherwise get Cygnus style configure.
25552     if test -f $ac_srcdir/configure.gnu; then
25553       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25554     elif test -f $ac_srcdir/configure; then
25555       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25556     elif test -f $ac_srcdir/configure.in; then
25557       ac_sub_configure=$ac_configure
25558     else
25559       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25561       ac_sub_configure=
25562     fi
25563
25564     # The recursion is here.
25565     if test -n "$ac_sub_configure"; then
25566       # Make the cache file name correct relative to the subdirectory.
25567       case $cache_file in
25568       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25569       *) # Relative path.
25570         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25571       esac
25572
25573       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25574 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25575       # The eval makes quoting arguments work.
25576       eval $ac_sub_configure $ac_sub_configure_args \
25577            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25578         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25579 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25580    { (exit 1); exit 1; }; }
25581     fi
25582
25583     cd $ac_popdir
25584   done
25585 fi
25586
25587
25588 if test $llvmgccwarn = yes
25589 then
25590         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25591 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25592         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25593 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25594         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25595 echo "$as_me: WARNING: ***** " >&2;}
25596         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25597 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25598         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25599 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25600         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25601 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25602 fi
25603